**** BEGIN LOGGING AT Sat Feb 02 03:00:00 2013 Feb 02 03:06:31 androidquestion well I'm not to sure whats the best way to set it up Feb 02 03:06:45 one sec let me past what I have now Feb 02 03:08:27 actually seem this may work as is http://pastebin.com/NN8YHEPH Feb 02 03:08:56 just need to know were I should place the dash at.. guess thats part of the dialog.title style Feb 02 03:10:29 which part is failing Feb 02 03:12:27 not sure if I can say the best way, but if you are running what you have and it doesn't work, I can try to help Feb 02 03:13:26 I think use the STROKE tag for the yellow outline Feb 02 03:13:57 dont use a yellow underlayer Feb 02 03:15:56 if the titlebar is showing, look for the style that has notitle Feb 02 03:17:34 to get the background transparent, look for code like this dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); Feb 02 03:17:34 dialog.getWindow().setBackgroundDrawable( Feb 02 03:17:34 new ColorDrawable(android.graphics.Color.TRANSPARENT)); Feb 02 03:19:05 androidquestion right now I'm trying to figure out how to style the window title background Feb 02 03:19:13 so I can add the dash Feb 02 03:24:54 which dash do u mean Feb 02 03:25:16 oh the line of dashes? Feb 02 03:26:23 correct Feb 02 03:26:48 I know how to make the dashes.. just trying to find what attribute to set for the dialog title style Feb 02 03:27:34 guess android:background should work Feb 02 03:28:39 I'm not caught up on the latest API level tricks for this, but do you need the title? meaning the dialog title style, from my use I want to hide the title bar Feb 02 03:29:16 so the title text is just a textview, the dashbar a textview Feb 02 03:29:18 yeah I need the title bar in this case Feb 02 03:31:06 what is your min api level Feb 02 03:31:37 7 Feb 02 03:31:43 almost got it Feb 02 03:32:16 just can't place the dash at the bottom of the title/textView Feb 02 03:33:13 I would create it in it's own textview Feb 02 03:33:43 *its Feb 02 03:35:21 is there another xml for the dialog layout? Feb 02 03:35:23 that may work better.. and just style that Feb 02 03:35:27 good idea Feb 02 03:35:51 I'm thinking of the most basic way Feb 02 03:36:03 I was trying to make it global.. but thats is giving me problems Feb 02 03:36:26 relative layout, dashes in a textview, center in parent, etc Feb 02 03:36:37 global how Feb 02 03:36:39 yeap Feb 02 03:36:43 I'll just do that Feb 02 03:37:00 I already have the dialog styled , the borders Feb 02 03:37:00 you can define the string of dashes in strings.xml Feb 02 03:37:45 all that still applies Feb 02 03:38:51 umm the why I did it before was make an ImageView set the src to a drawable dash.. and set the layoutType to "software" Feb 02 03:43:24 I don't think you need a drawable of the dash unless nothing else works Feb 02 03:54:58 well thanks androidquestion the setup you proposed worked perfectly Feb 02 03:57:39 yw Feb 02 04:18:28 how can i remove the footer divider from an AlertDialog.builder's setItems list. Feb 02 04:51:15 Hi, if I'm calling addView() in onCreate() in an Activity, should I call removeView() in the onPause()? Feb 02 04:51:54 atsui I normaly don't Feb 02 04:52:37 xastey, are you addView() calls normally in your onCreate() or onResume()? Feb 02 04:53:01 well I normaly dont call addView on the activity I just call setContentView in onCreate Feb 02 04:53:15 ah Feb 02 04:53:26 i try to do all my layouts in xml if I can Feb 02 04:53:55 i see Feb 02 04:53:58 and if not just create them when needed Feb 02 04:54:12 if your activity ends it will go through the whole process anyways Feb 02 04:54:40 http://stackoverflow.com/questions/5726109/onpause-onresume-events-in-android Feb 02 04:54:49 check that out, thats the lifecycle of an activity Feb 02 04:55:21 Yeah, I'm having trouble resuming my app Feb 02 04:55:37 If it gets destroyed then it's okay Feb 02 04:56:07 dont quote me on this but I think if you open another active with startActivityForResult then the onPause and onResume may be useful Feb 02 04:56:32 like restoring its state? Feb 02 04:57:08 Ah, I've just added the removeView() to onPause() and at least it doesn't crash when I hit the home button now Feb 02 04:57:25 Still, going back into it with onResume() still isn't working Feb 02 04:57:54 say i want to write a path to a folder is it proper to add the trailing / or not? Feb 02 04:58:06 I guess I need to do my addView() calls into onResume() now Feb 02 04:58:54 jug6ernaut, I think so. I have something like "/myFolder/" + filename Feb 02 04:59:34 what are you trying to restore atsui? Feb 02 04:59:45 sanity Feb 02 04:59:49 jug6ernaut dont do that Feb 02 04:59:53 use the file api if you can Feb 02 05:00:04 new File(dir,file) Feb 02 05:00:13 xastey i know ;), but i still need to hardcode sub folders Feb 02 05:00:26 it really doesn't matter though.. its all unix, not like you deving multi platform Feb 02 05:00:29 xastey, trying to get my views added back into the activity. think that's the cause of my crash. Feb 02 05:02:05 so I take it you have say an popup in your view that you want to restore if the app is rotated or another app intent is launched? Feb 02 05:02:54 xastey, I'm just having trouble resuming my app (get an ANR) Feb 02 05:03:12 xastey, just check all object reference are still valid now... Feb 02 05:04:07 gotcha.. I'm going to stfu now :) Feb 02 05:04:12 dont think I can be of any help Feb 02 05:04:37 xastey, lol, cheers though, just someone asking questions makes my mind work more Feb 02 05:06:51 atsui no problem man.. could you show exception stack Feb 02 05:06:57 maybe I can help a bit more Feb 02 05:09:15 Ah, one moment Feb 02 05:31:06 xastey, ah I know the root cause now. It's my worker thread. Feb 02 05:31:27 xastey, I'm not pausing/resuming it properly Feb 02 05:34:52 atsui, sir you left out very important information Feb 02 05:35:03 not like I would of sovled it anyways, but still Feb 02 05:35:31 xastey, yeah, sorry, i thought i had my threading working properly Feb 02 05:44:20 any fo you code exclusively in c/c++? Feb 02 06:04:57 So i'm using View.setKeepScreenOn, because i have an activity that the screen needs to stay on for. So when I start that activity i call setKeepScreenOn(true) and when it's finished i call setKeepScreenOn(false) However it never goes off after that Feb 02 06:05:50 i'm wondering, does it matter that i'm calling it off a different View? Feb 02 06:10:08 baudtack I've had a lot of screen issues in the past. Most of them are due to timing. I recommend going line by line in the debugger to see exactly what's going on when Feb 02 06:10:57 also, after you setKeepScreenOn(false), do you ever set the view to invisible? Feb 02 06:11:11 well it hits the setKeepScreenOn(false) line i see that in the debugger Feb 02 06:11:14 and no Feb 02 06:11:16 do i need to? Feb 02 06:11:37 i think maybe it would just be simpler to set it in xml and keep the screen on while the app is open period. Feb 02 06:11:38 so so so Feb 02 06:11:40 yes, all setkeepscreenon(false) does is say "it's no longer true that you must keep the screen on". That doesn't mean it should go off Feb 02 06:11:41 but that mildly annoys me Feb 02 06:12:00 hip2p: it doesn't time out like normal? Feb 02 06:12:08 I don't think so Feb 02 06:12:13 o huh Feb 02 06:12:24 I could be wrong, but I'm guessing that's an issue. Try setting it to invisible after to see if it goes off Feb 02 06:43:38 Hey, anyone here really experienced in flashing using ADB? In a dilemma... searched everywhere and can't find what I'm looking for :/ Feb 02 06:43:47 I've got an Allwinner dev board, A13... trying to flash the nand. Feb 02 06:43:57 I connected to it, pushed the image over, but I'm not sure where to cat it to... Feb 02 06:44:08 From what I've heard, nanda is bootloader, nandc is boot, nandg is recovery... But I have no clue if that applies to all A13's... Feb 02 06:45:42 Anyone? :S Feb 02 07:00:30 hi Feb 02 07:07:53 hi Feb 02 07:08:20 hi Feb 02 07:09:20 does this part of the song sound really good? http://youtu.be/-ic4vv_7OpA?t=34s Feb 02 07:20:24 for WiFi direct, what is the typical network topology ? Feb 02 07:20:58 the docs seem to infer star (a group owner) but i'm interested in mesh or bus Feb 02 07:21:31 p_l: any ideas :P Feb 02 07:32:02 hm, 1:1 and 1:n. so maybe hierarchical at best? Feb 02 07:43:57 g00s you got wifi direct to actually work on 2 devices (from a user stance) ? Feb 02 07:44:13 StingRay_: no, i'm still in research phase Feb 02 07:44:39 save the research and do a practical user test to see how reliable it is Feb 02 07:44:45 I've seen it demoed... Feb 02 07:44:46 cause dunno if it's just me Feb 02 07:44:53 it only took 3 or 4 tries to get it working :) Feb 02 07:45:03 uh oh Feb 02 07:45:08 Leeds I've never seen it work Feb 02 07:45:19 oh, gonna try 2 nexus devices Feb 02 07:45:22 hold on :) Feb 02 07:45:27 drum roll Feb 02 07:45:28 demo was being given by a Googler Feb 02 07:48:13 isn't it basically ad-hoc with APIs? Feb 02 07:49:29 it's *magic* Feb 02 07:57:58 huh Feb 02 07:58:14 have they taken direct file sending out of wifi direct ? Feb 02 07:58:48 cause the samsung galaxy s2 can send a file over a wifi connection but fails (to galaxy nexus) Feb 02 07:59:10 the nexus 7 and galaxy nexus connect, but not registering a share option Feb 02 07:59:36 galaxy tab 8.9 to both the n7 and gnex fails to connect Feb 02 07:59:39 ugh Feb 02 07:59:41 sounds like the typical android UX :/ Feb 02 07:59:46 *magic* Feb 02 08:00:02 well thats my second round of looking at it Feb 02 08:00:10 both fails imo Feb 02 08:00:10 thanks StingRay_ Feb 02 08:00:14 lol Feb 02 08:00:49 I just love the fact the nexus devices connect seamlessly but then cant do anything Feb 02 08:00:51 :) Feb 02 08:01:06 maybe they are doing something, but not telling you Feb 02 08:01:15 oooo yeah Feb 02 08:01:18 secret Feb 02 08:01:35 sharing processing tasks, and getting to know each other Feb 02 08:01:40 very scary Feb 02 08:02:22 after all, they are just disembodied robots that are using you for mobility right ? Feb 02 08:02:41 or tracking devices that happen to make calls, whatever :) Feb 02 08:02:57 dont, I may have to break out the shotguns and go at them ! Feb 02 08:09:29 need to ask some basic programming questions that I just dont grasp Feb 02 08:09:30 just drop them onto a plush carpet from a height of 3 feet Feb 02 08:09:40 watch them explode Feb 02 08:09:50 whats the difference between myClass.this and this ? Feb 02 08:10:04 this refers to the current scoped instance Feb 02 08:10:26 MyClass.this refers to an explicit instance which is potentially outside of your scope Feb 02 08:10:47 for example, if you are in an anonymous click listener then 'this' would be the click listener and 'MyClass.this' would be your activity instance Feb 02 08:11:10 he did say myClass with a lowercase 'm' Feb 02 08:11:26 I hoped that was a typo Feb 02 08:11:40 so I assumed he was referring to a member variable Feb 02 08:12:06 well see thats another thing, I dont really use a prefix m for members Feb 02 08:12:12 suppose thats bad Feb 02 08:12:12 GOOD Feb 02 08:12:17 most people tend to be morons like that, so I tend to not assume the more logical possibilities Feb 02 08:12:54 StingRay_: yes, I could tell that the m was part of the word "my" ... Feb 02 08:13:31 oddly I use a _ prefix from python scripting inside maya Feb 02 08:14:21 I can't even tell if I think that's better or worse Feb 02 08:14:32 whatever works for you, I suppose Feb 02 08:15:22 i suppose not many of you use eclipse still ? Feb 02 08:15:28 all intellij now ? Feb 02 08:15:37 most are still stuck in Eclipse Feb 02 08:15:43 "still"? more like used it once, vomited and never touched it again Feb 02 08:15:48 all IDEs are crap Feb 02 08:16:05 command-line tools, vim and ant is all you need Feb 02 08:16:23 and by command-line tools, I'm of course referring to the common linux tools like sed, grep, etc Feb 02 08:16:23 ant is never what you need :) Feb 02 08:16:35 (or cygwin) Feb 02 08:16:36 well not quite a coder yet so I dont even have an opinion on that Feb 02 08:17:26 is it common practice to null large variables when an activity closes ? Feb 02 08:17:37 as in does android GC take care of that better ? Feb 02 08:17:39 not since 1991 Feb 02 08:17:43 no, yes, respectively Feb 02 08:18:06 the gc collects things that are inaccessible Feb 02 08:18:18 pragma-: why such extravagance with vim? ex is all you need. Feb 02 08:18:29 and android kills apps when memory is low Feb 02 08:18:50 you mean ed? Feb 02 08:19:07 ex predated ed Feb 02 08:19:08 ok so I have a situation where a complex listView that does all kinds of things, conditional visual changes etc, all works well, but there is a not easily repeatable situation where I will get the that activity after some time and not only the list but my popup menus are sluggish Feb 02 08:19:33 using eclipse how do I actually narrow or visualise whats happening ? Feb 02 08:19:46 ddms allocation tracker Feb 02 08:20:07 thats what I thought Feb 02 08:20:18 but is there any reference on how to actually read the stats Feb 02 08:20:20 also Feb 02 08:20:21 you could do heap/thread dumps too Feb 02 08:20:49 stand-alone MAT ftw Feb 02 08:21:03 so in a heap I see my data objects Feb 02 08:21:09 it's annoying that ddms only tracks the last 256 allocations or whatever it was Feb 02 08:21:30 how do I decide if thats big ? Feb 02 08:21:35 ok Feb 02 08:21:37 or something else Feb 02 08:21:39 it's also annoying that ddms keeps nagging me to start it in some new fashion Feb 02 08:21:57 pragma-: oops, ed predated ex Feb 02 08:22:19 "this standalone version of DDMS is deprecated, use monitor" Feb 02 08:22:22 thanks for this btw Feb 02 08:22:24 bah Feb 02 08:23:23 still there should be some reference someplace as to the types/amounts of figures to compare against Feb 02 08:23:30 this is what still puzzles me a bit Feb 02 08:24:52 every use will have different figures Feb 02 08:25:06 i understand that Feb 02 08:25:29 but there is no relative figures to compare to for a noob like myself Feb 02 08:25:54 like , oh this is a rss app and it has xxxx Feb 02 08:26:09 it's 100% subjective to your implementation Feb 02 08:26:36 my point being how does one decide that ...well I maybe not doing something quite right Feb 02 08:28:11 if you have no context and figures to derive your opinion from, tis quite hard Feb 02 08:29:04 my head size is 10.484mb and using 96% Feb 02 08:29:19 I would guess thats quite heavy Feb 02 08:29:33 but it's a "guess" out of thin air really Feb 02 08:30:38 and #objects from 60k - 120k Feb 02 08:31:17 again I would assume that is quite high, is there no where to go to read/learn and contrast ? Feb 02 08:34:44 download an app and profile it for its figures Feb 02 08:37:04 my app has 250,000 listview rows and uses about 40mb for the whole app Feb 02 08:37:37 it has what ?????! Feb 02 08:37:41 what is it ? Feb 02 08:38:08 https://github.com/pragma-/networklog Feb 02 08:38:44 of course, there's an option in settings to change the maximum number of log entries to any value Feb 02 08:38:51 the default is 250,000 Feb 02 08:39:29 what are the number of objects in use at a high point ? Feb 02 08:39:51 one of these days I'll get around to making the log history streamable so as you scroll the view, it dynamically loads the history from the logfile Feb 02 08:40:10 it works fine not doing that already ? Feb 02 08:40:15 nice Feb 02 08:41:38 tI take it thats your own graph/stats system too ? Feb 02 08:41:44 i* Feb 02 08:42:27 I modified jjoe64's graph library Feb 02 08:42:30 quite heavily Feb 02 08:42:39 pragma IF you made a mental choice to have the menu bar at the bottom, you have my respect Feb 02 08:42:41 well done Feb 02 08:42:53 it's a split bar Feb 02 08:43:05 in horizontal orientation, they're at the top Feb 02 08:43:12 thats fine Feb 02 08:43:17 respect Feb 02 08:43:42 in the world of 5" displays, it's somewhat silly to have them topside in portrait Feb 02 08:43:57 unless you have chimp thumbs Feb 02 08:43:57 i wonder how androidplot is coming along; all of the android plot libs were terrible last i looked Feb 02 08:54:49 StingRay_: they're only on the bottom for w360dp displays Feb 02 08:55:08 see i dont agree with that at all Feb 02 08:55:17 not a fan of responsive design? Feb 02 08:55:23 even on a modest 4.1 inch screen Feb 02 08:55:44 display size is only half the equation Feb 02 08:55:52 responsive ? Feb 02 08:55:56 4.1" at 160dp and at 320dp are two different beasts Feb 02 08:56:30 if by responsive you mean reaching for a menu on a phone whereby 90% of the time with one hand it cant be done, then yes, not a fan of responsive :) Feb 02 08:56:58 then blame the OEM, or get a smaller phone. or both Feb 02 08:57:26 is abs not just a fragment ? Feb 02 08:57:42 no Feb 02 08:57:44 I have no idea, never used or looked at Feb 02 08:57:52 fragments are management containers around views Feb 02 08:57:54 or dialogs Feb 02 08:58:04 abs is a full backport of actionbar then Feb 02 08:58:18 and position is decided by OS ? Feb 02 08:58:18 ABS is a set of views and a bunch of infrastructure to normalize the API across all versions of Android (that are still relevant) Feb 02 08:58:42 StingRay_: Samsung implements own "send" functionality over WiFi Direct Feb 02 08:59:00 it's basically a normal application that uses it Feb 02 08:59:00 the configuration of the action bar is decided by many things Feb 02 08:59:21 tabs can collapse into lists, the number of displayed action items can change, and the split action bar may appear at the bottom or inline Feb 02 08:59:30 JakeWharton: oh question, if some1 uses ABS, do you require they give credit in the app ? Feb 02 08:59:32 even the height of the action bar changes based on configuration Feb 02 08:59:49 I don't, no Feb 02 09:00:05 it is Apache 2 licensed, though. you have to conform with that Feb 02 09:00:26 I've just seen apps use it and give credit but lots dont Feb 02 09:00:33 StingRay_: i.e. you can't sue JakeWharton Feb 02 09:00:40 :) Feb 02 09:00:44 most don't Feb 02 09:00:57 the company that I work for that uses it doesn't even include in-app attribution Feb 02 09:01:00 StingRay_: some apps have "open source licenses" bit in menu that tends to have all the credits Feb 02 09:01:10 we bury it somewhere in a legal page on the web or help center Feb 02 09:01:14 that comes often from use of old BSD Feb 02 09:01:28 (similarly check the Windows install disc :D) Feb 02 09:22:08 StingRay_: on WP the app bar slides in from the bottom so it remains inside the thumbable area. Feb 02 09:23:07 to me it's fine having non-frequent use UI elements on the top Feb 02 09:23:43 its good usability to have everything within thumb reach. often difficult to do tho Feb 02 09:23:47 but ones that indicate context change or have any visual result and or used frequently should not be the furthest from the fingers Feb 02 09:24:08 need a big thumb on a 5+ " device :) Feb 02 09:24:21 chimp thumb design thats what it all is Feb 02 09:24:40 tested and works fine on monkeys with a thumb thats 30% bigger Feb 02 09:24:47 :) Feb 02 09:25:19 same reasons I crit ubuntu phone Feb 02 09:25:25 use the .isUserAMonkey() fn to optimize your UI :) Feb 02 09:25:33 lol Feb 02 09:26:25 well at the moment I have a nice little fragment that controls UI/button/menus Feb 02 09:26:32 just put cascading menus in Feb 02 09:26:36 actually, Orangutans are using iPads + Skype to chat between zoos Feb 02 09:26:42 not that I think i "should" ever use them Feb 02 09:26:50 http://www.extremetech.com/extreme/111143-orangutans-to-skype-between-zoos-with-ipads Feb 02 09:27:02 now, this dude has all his appendages on the device Feb 02 09:27:09 so everything is thumbable i guess :) Feb 02 09:27:15 SEO bot Feb 02 09:27:23 XD Feb 02 09:27:23 bet the UI/UX designers didn't figure on that Feb 02 09:27:32 as great as apple are Feb 02 09:27:43 i would think they break them easily :/ Feb 02 09:28:08 orangutans <----- Feb 02 09:28:25 that means that ipad must be about 40-50cm tall Feb 02 09:28:32 i think it's cardboard Feb 02 09:28:34 :) Feb 02 09:29:10 maybe next year they will get some google galsses Feb 02 09:29:12 actually more like 60-80cm tall ipad Feb 02 09:29:13 *glasses Feb 02 09:29:58 question, is it fine tagging views with objects that contain ints, message, strings ? Feb 02 09:30:04 or is that a no no ? Feb 02 09:32:08 you can put whatever you want as a View's tag Feb 02 09:32:14 it's just an object reference for your convenience Feb 02 09:32:25 ah ok, great Feb 02 09:32:42 just seems simpler than keeping some kind of map for referencing Feb 02 09:39:08 that's what it's there for Feb 02 09:39:20 I actually think I'm in quite a weak position with android development, having learned by myself, I'm in the worst position of "not knowing what I dont know" Feb 02 09:39:54 and missing a few fundamentals/basics Feb 02 09:40:08 god I should have stuck with 3D graphics :) Feb 02 09:43:21 StingRay_: "not knowing what you don't know" is only 2nd order ignorance; it could be worse :) Feb 02 09:49:46 not whatever you want, technically -- only things that are Objects Feb 02 09:50:08 you can't put a primitive type in a tag unless it's wrapped in a class Feb 02 09:50:59 * g00s puts pragma- in a tag wrapped in a class Feb 02 09:52:37 well it'll be auto-boxed in all likelihood Feb 02 09:57:36 g00s: Orangutans are late to the party Feb 02 09:58:13 g00s: I think in late 90s, MIT had a parrot holding a job there, with its own desk and computer Feb 02 09:58:14 p_l: do you think the FBI is peeking into their communications? Feb 02 09:58:43 (the parrot was, yes, chatting on video with other parrot somewhere) Feb 02 09:58:46 did they pay it with crackers? Feb 02 10:00:10 bacon Feb 02 10:00:57 g00s well I think I'm 0.5 down from that tbh, cause I also sometimes "think I know while actually not knowing that I dont" Feb 02 10:04:07 in contrast with console/pc or any real-time 3d graphics and or DCC packages and tech/techniques I'm quite ok, I always "know what I dont know!" Feb 02 10:04:57 there should be an online test "are you a coder" Feb 02 10:05:07 I would be interested to know that :) Feb 02 10:05:41 there's one that was designed to help recruiters Feb 02 10:05:59 http://codility.com/ ? Feb 02 10:06:20 but it's pretty generic, designed to find if you can program, not specific technology Feb 02 10:10:36 p_l well that I could do I think Feb 02 10:10:43 but that dont say I'm a coder Feb 02 10:11:01 it says I have a logical brain and can visualise conditions Feb 02 10:15:27 JakeWharton: are you using colloquy or textual now ? Feb 02 10:26:46 p_l: might have to use ragel again :P Feb 02 10:26:56 the swiss army knife of awesomeness Feb 02 10:33:34 Hello.. Ive an HTTP Push Class which sends a POST Request to a Webserver. The Constructor is built this way that it will create an AsyncTask which creates a new HTTPClient to send the Push Feb 02 10:34:24 How can i put this all in a Queue? Sometimes ive about 100 HTTP Request at Once which are sent in the same time. Better would be to wait until the request is done and proceed with the next Request. Any Ideas? Feb 02 10:35:53 build a class that accepts your async params and que it ? checking the que on completion of every asyc ? Feb 02 10:36:31 ok which means to wait until postExecute() is done and call itself with the new Data in the Queue Feb 02 10:36:43 ya Feb 02 10:36:46 would anyone be able to provide advise on using the official Dropbox lib? I have a data abstraction layer for files with a file interface almost identical to java.io.File. The Dropbox lib includes a getFileStream function which provides an InputStream for reading, however the methods for writing files all expect.. an input stream, as it "reads" from the local stream to write to the file on dropbox externally Feb 02 10:37:55 misterli: maybe look at what happens if a task fails though Feb 02 10:37:57 in a system where I am intending to use myDropboxFileClassInstance.getOutputStream() as a means of writing to a remote file, can anyone shed any light on how to bridge the gap between these two seemingly conflicting mechanics? Feb 02 10:38:00 well.. how is the best way to make a Queue which is accessable from all services, activitys and modules? i think about creating a static class or store the data in SharedPreferences...? Feb 02 10:38:42 well a service is what I'd do/have done Feb 02 10:38:46 It's an module-based-app which means that passing the object to other classes is a bad idea -_- Feb 02 10:38:58 okay Feb 02 10:39:36 warning : your talking to some1 with no previous programming experience! and who has only been "playing" with android for a year or so Feb 02 10:39:41 :) Feb 02 10:40:29 haha. well.. the best way would be if everything of the ASyncTask is running in one single BLocking Thread (ouf of mainUI) which means that it will get proceed step by step without freezing the App Feb 02 10:40:46 but not sure if this is posssible Feb 02 10:41:34 hi. Any hints about how to embed git rev-parse HEAD with Android.mk in a C file. Feb 02 11:02:05 hmm, looks like im going to need to nab authentication keys from the dropbox lib and do the upload in my own class Feb 02 11:24:19 Hi. How come Galaxy Nexus runs on Android 4.2.1 while my Samsung Galaxy S3 still only allows me 4.1.2 ? Thanks Feb 02 11:25:10 Ask samsung Feb 02 11:25:37 aha Feb 02 11:25:38 :) Feb 02 11:27:13 is there any reason why, when I dont track selection and use my own tracking/drawable on an item element in a listView and use the listViews selector, that the drawable doesn't become visible until the list is scrolled ? Feb 02 11:27:21 as in is there a common mistake made ? Feb 02 11:28:21 Wtf did that mean Feb 02 11:28:36 see I thought I said that really well Feb 02 11:29:08 :/ Feb 02 11:29:20 I mean using default list selection, rather than my own checks in getView, results in an item being selected, but not visibly so until the listView scrolls Feb 02 11:30:38 So setItemChecked doesn't do anything until you touch the screen? Feb 02 11:30:49 hi... one stupid noob question... :) private static int prefs=R.xml.myprefs; why and how does this work, i mean i would put it in string and not in int... :D Feb 02 11:31:23 R contains integer id's Feb 02 11:31:48 so it automatically returns int number as id Feb 02 11:31:50 SimonVT it does the transition, but take finger away and no, no visual result, until I scroll the view, then it pops on Feb 02 11:32:45 "returns in number as id"? The id is an integer, plain and simple Feb 02 11:34:07 okay thx Feb 02 11:38:28 how to deal with generated files in Android.mk? Feb 02 11:39:26 hello Feb 02 11:39:53 ooo playbook OS update :) Feb 02 11:40:21 what theme should i apply so that its compatible with 2.3.6 and 4.1.2 sdk Feb 02 11:40:44 if I eclipse do export to zip, can I just rename that to apk and install it on other devices? Feb 02 11:40:58 do I only need the signing stuff for google play? Feb 02 11:41:02 Theme(.Light) on <3.0, Theme.Holo(.Light) on 3.0+ Feb 02 11:41:30 It needs to be signed to be installed on a device Feb 02 11:42:22 ok, thanks Feb 02 11:43:55 SimonVT: if i have a project already and i changed my target sdk from 14 to 10 2.3.3 how do i change the theme so that when i compile i dont get errors on my style.xml Feb 02 11:44:10 Why would you change your target sdk to 10 Feb 02 11:44:19 Do you hate your 3.0+ users? Feb 02 11:44:23 right now im getting errors at values-v11 and values-v14 Feb 02 11:44:50 oh im a noob i dont know how to change it properly Feb 02 11:44:59 it wont work on my 2.3.6 device Feb 02 11:45:06 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Feb 02 11:45:24 Read that, should tell you what you need to know Feb 02 11:52:07 What theme do I need to have the native look on all platforms? (I use ABS btw) Feb 02 11:52:29 The Seekbar still looks the same on 4.2.1 as on 2.3 even with target 17. Feb 02 11:53:51 I was hoping that the android styles.xml would take care of that. Feb 02 11:54:05 You use the Theme.Sherlock themes Feb 02 11:54:12 I do Feb 02 11:54:23 Then it will use the native styles Feb 02 11:54:41 thanks SimonVT Feb 02 11:56:10 hello if some one is wondering how to generate dynamic files (by shell commands) in Android.mk here is a link http://stackoverflow.com/questions/12372500/how-to-run-custom-rule-in-android-mk-before-compilation Feb 02 12:09:13 SimonVT: you used "simply" instead of "simple" in that article Feb 02 12:09:31 :/ Feb 02 12:09:51 "A simply example could be to take a look at the Editor class." Feb 02 12:10:35 I'd use "As a simple example, lets take a look at the Editor class." Feb 02 12:10:37 Not anymore! Feb 02 12:11:01 I'm not feeling the use of "could" there. Feb 02 12:11:03 * pragma- critic. Feb 02 12:11:44 There :p Feb 02 12:11:54 I write it a year ago, don't think I did much proof reading Feb 02 12:12:15 * pragma- feels famous. Feb 02 12:12:26 though no-one will know the work that I have done Feb 02 12:12:59 "wrote" Feb 02 12:13:03 * pragma- smiles happily. Feb 02 12:13:25 * pragma- helpful! Feb 02 12:13:49 I'm lost Feb 02 12:14:00 Just talking to yourself now? Feb 02 12:14:23 i think hes just happy to make small positive changes in the world wherever he goes Feb 02 12:17:58 actually, it should be "let's" not "lets" :( Feb 02 12:18:48 damnit pragma- Feb 02 12:19:25 "let's" is the contraction of "let us", whereas "lets" is a third-person singular present, e.g., "my boss lets us leave early" Feb 02 12:19:46 "let's go the park" on the other hand ... Feb 02 12:19:51 * pragma- aplogetic. Feb 02 12:19:57 apologetic Feb 02 12:20:07 I have failed. Feb 02 12:22:40 At least I corrected it! Feb 02 12:22:59 That you did Feb 02 12:38:27 how can I kill an Activity from a BroadcastReceiver? Feb 02 12:42:22 maybe I can just use onStop() Feb 02 12:52:01 yay, weekend! Feb 02 12:54:32 Hurray! Feb 02 12:56:41 is there some way to clear webview cache periodically ? ? Feb 02 13:23:41 Quacked how about .finish() Feb 02 13:36:00 xorgate: yeah, but I need it run in a broadcastreceiver Feb 02 13:36:15 but I did a workaround with onStop Feb 02 13:36:28 that sounds like it is a dirty hack Feb 02 13:36:39 and unsafe Feb 02 13:36:52 can you make the receiver a membre of the activity? Feb 02 13:37:09 Is it common to write two separate apps for versions with and without ads? It seems like pain to implement "two versions" in one based on whether or not someone paid. Feb 02 13:37:38 spade several options.. can also check if a certain app is installed (the paid one) Feb 02 13:38:01 or have your code in a library and have 2 projects using it, paid and unpaid Feb 02 13:38:33 I'm just starting out so my questions are vague at this point... Feb 02 13:38:44 are ads all that profitable ? Feb 02 13:38:45 member how? Feb 02 13:38:53 SQLite is the obvious choice over CSV, I gather from googling. Feb 02 13:39:03 For data persistence. Feb 02 13:39:43 member as in you define the receiver in your actiivyt Feb 02 13:40:00 so it can have a handle on the activity Feb 02 13:40:08 and thus can call .finish() on it Feb 02 13:40:14 how do you do that? :) Feb 02 13:40:49 defining the receiver in the activity I mean Feb 02 13:42:03 sumthing like this http://pastebin.com/xrZ3QC5Z Feb 02 13:42:56 cool. hadnt thought of that. thanks Feb 02 13:44:34 >< Feb 02 13:44:40 My search button gets added to EVERY activity Feb 02 13:46:10 my head hurts Feb 02 13:54:53 Hi guys Feb 02 13:56:12 not that I'm a girl!!! but how do you know there aren't any here ? or you just directing that hello at all the men ? Feb 02 13:56:14 :) Feb 02 13:57:43 why is zeId in DialogActivity here 0 and not 1234? http://pastebin.com/Adyn1jLR Feb 02 13:58:50 I'm setting an image for layout background with android:background="@drawable/background" and put this image in mdpi, hdpi and xhdpi folders. I can see this image under graphical layout tab in eclipse, and in emulator it shows fine, but if I compile on my device, I only see a black background. Any idea?? Feb 02 14:00:59 for some reason the putExtra isnt working properly Feb 02 14:01:02 Quacked extras.getInt("GOGO") not returning anything ? Feb 02 14:01:03 what am I forgetting :) Feb 02 14:01:29 Rather, what are you assuming Feb 02 14:01:45 StingRay_: 0 Feb 02 14:02:00 is it ? Feb 02 14:02:10 are you sure ? Feb 02 14:03:13 or is that it's not returning anything ? Feb 02 14:03:16 Move the putextra before you create your pendingintent Feb 02 14:04:36 that actually worked, SimonVT Feb 02 14:05:13 I guess thats obvious. Thank you for spotting it Feb 02 14:06:50 in intellij, there is a "make module" and "compile module" what is the difference between the two? Feb 02 14:08:11 I'd imagine compile module only compiles the module, while make also handles dependencies Feb 02 14:09:02 ic, makes sense. Feb 02 14:09:21 night guys Feb 02 14:09:21 Hi. So what is the right way to use get context in AsyncTask.doInBackground() ? There's a lot of discussing on this, but i don't see the right solution. Thank you! Feb 02 14:12:17 just pass through constructor :\ Feb 02 14:12:33 doesn't work for Toast Feb 02 14:12:37 http://stackoverflow.com/questions/5747645/problem-with-toast-in-asynctask-method-call Feb 02 14:12:57 seems the best way is just to do all gui work in the main gui thread :( Feb 02 14:13:11 That has nothing to do with how to pass context Feb 02 14:13:19 thats they only way to do gui work lol Feb 02 14:13:19 Is it possible to add configchanges for the whole application instead of having it to add to each activity? Feb 02 14:13:21 Well, yeah.. Feb 02 14:13:27 ui happens on the ui thread, not really a surprise Feb 02 14:13:36 hehe Feb 02 14:14:08 MartinCz just have ur toasts run in the onProgressBlaBla method Feb 02 14:14:11 well i can easily imagine i could do ui in other threads :) Feb 02 14:14:12 since it runs on ui thread Feb 02 14:14:31 let me just explain my thoughts Feb 02 14:14:50 first i used a normal Thread Feb 02 14:15:05 to download some data and display notification Feb 02 14:15:14 then i migrated to asynctask Feb 02 14:15:31 i moved the notification generation to onComplete Feb 02 14:15:39 and the whole thing was slower Feb 02 14:15:57 and i thought it was because of the oncomplete method running in the main ui thread Feb 02 14:16:08 can't you just do something like runOnUiThread? Feb 02 14:16:10 but it was because asynctask has lower priority by default :) Feb 02 14:16:34 Silox|: you tell me :) Feb 02 14:16:45 MartinCz the thread u linked tells you how to do it... Feb 02 14:16:53 run it in your onProgressUpdate method Feb 02 14:17:08 yes i will Feb 02 14:17:13 that sound great Feb 02 14:17:31 that is how you interact with the UI while in doInBckground Feb 02 14:17:45 oh my - i did not realize this Feb 02 14:17:49 that just amazing :) Feb 02 14:18:00 now i get it :) many thanks Feb 02 14:18:12 yup Feb 02 14:18:13 np Feb 02 14:18:23 So you can't add configChanges in the XML to the whole application? Feb 02 14:20:57 https://developer.android.com/guide/topics/manifest/application-element.html Feb 02 14:21:15 anyone use linux here ? Feb 02 14:22:05 and if so, and you haven't already, have a go with mint Feb 02 14:23:47 Hey Guys Feb 02 14:23:48 StingRay_ i haven't used it personally but I've heard good things about it Feb 02 14:24:11 hi all, the adb sideload command should be available on a standard android development environment under Windows right ? Feb 02 14:24:17 jug6ernaut: well worth a look Feb 02 14:24:26 I now have a HDMI output for my phone.. but how can i record it now? can i use displayport from my graphic card as input? :-/ Feb 02 14:24:31 somehow i don't have the command and i just updated to latest adb tool Feb 02 14:24:32 I'm setting an image for layout background with android:background="@drawable/background" and put this image in mdpi, hdpi and xhdpi folders. I can see this image under graphical layout tab in eclipse, and in emulator it shows fine, but if I compile on my device, I only see a black background. Any idea?? Feb 02 14:24:44 Styler2go err no Feb 02 14:25:04 so i need a grabber? Feb 02 14:25:04 Styler2go: nope nope Feb 02 14:25:18 Sepho format error in the image ? Feb 02 14:25:19 you need a framegrabber that can record from hdmi Feb 02 14:25:32 Here is my layout code: http://pastebin.com/mSq6G3DA Feb 02 14:25:39 god damn.. no store in my area has such a thing Feb 02 14:25:48 and i want to record today :( Feb 02 14:25:49 Styler2go AND you should hope HDCP isnt on by default Feb 02 14:25:50 Well, yes, SimonVT, I looked at it. I was merely wondering if it was possible to have the same effect without having this effect http://pastebin.com/Lu78ss9h Feb 02 14:26:00 but why in emulator I can see that background but on my device I get nothing but a black screen? Feb 02 14:26:01 hdcp? Feb 02 14:26:17 HighDefCopyProtection Feb 02 14:26:51 some devices have hdcp only for video apps, some devices have it on for everything Feb 02 14:26:54 which is pants Feb 02 14:26:56 where can i get a grabber now... ok thank you guys :) Feb 02 14:27:25 Silox|: You generally shouldn't handle config changes at all Feb 02 14:27:57 If I don't do it that way, every activity in my application pulls for new content every time I tilt my device Feb 02 14:28:15 because the activity gets recreated Feb 02 14:28:31 Hey guys. One more question.In AsyncTask.onPostExecute() how do I make sure I have an up-to-date context reference in case the context has been destroyed and recreated during the background task processing (for example orientation change) ? THank you. Feb 02 14:28:42 if (savedInstanceState == null) { pullNewContent(); } Feb 02 14:28:44 Solved Feb 02 14:31:09 MartinCz in ondestroy of your activity set the task's ref to the activity to null Feb 02 14:31:37 is that savedInstanceState the same as icicle? Feb 02 14:32:15 ah, nvm Feb 02 14:32:18 http://stackoverflow.com/questions/919153/what-is-androids-icicle-parameter Feb 02 14:32:20 this explains it well Feb 02 14:32:46 ok guys.. someone is using screencast? Feb 02 14:33:40 xorgate: Thank you! Feb 02 14:35:01 Styler2go: nope, http://www.blackmagicdesign.com/ all the way :) Feb 02 14:35:29 SimonVT: It's a bit more complicated as the view gets 'created' on the onReceiveResult method of the Receiver. Feb 02 14:35:33 dafuq? :D Feb 02 14:36:37 i'm trying to set up galaxy s3 for development under my windows machine Feb 02 14:36:42 adb devices doesn't show the device Feb 02 14:36:55 even though it appears in device manager as i9300 and I have usb debugging enabled Feb 02 14:37:02 am i missing something obvious ? Feb 02 14:37:13 Did you enable the developer option? Feb 02 14:37:21 yes Feb 02 14:37:23 Oh - you have. Feb 02 14:37:34 i have used this machine before to develop on the S2 Feb 02 14:37:45 and i just updated all android stuff on it Feb 02 14:38:21 this is my luck, a 10 minute thing takes 5 hours so far ... Feb 02 14:38:27 since yesterday Feb 02 14:38:40 blip-: uninstall drivers, replace with universal ones (someone on XDA got an universal package) Feb 02 14:39:17 p_l: do you even need that ? google has own adb usb drivers no ? Feb 02 14:39:35 StingRay_: it's related to how the adb driver finds devices on windows Feb 02 14:39:35 installable from sdk manager Feb 02 14:39:37 i have the google usb drivers installed too (through the eclipse ADT plugin) Feb 02 14:40:02 blip-: the google ones don't have config entries for Samsungs Feb 02 14:40:10 ah i see Feb 02 14:40:14 then just kill kies and sammy drivers, or manually change drivers in device manager Feb 02 14:40:18 ok i'm searching xda for the univ driver Feb 02 14:40:39 the universal thing is basically "add all the damned device IDs to INF file", afaik :) Feb 02 14:40:51 p_l: works Feb 02 14:40:55 hmm i don't have kies install Feb 02 14:41:02 maybe i install kies and let it install its drivers ? Feb 02 14:41:10 blip-: no, don't install Kies Feb 02 14:41:13 blip-: no Feb 02 14:41:19 find at most the drivers as separate install Feb 02 14:41:25 kies breaks shit Feb 02 14:44:34 is there any alternative for ApplicationInfo.nativeLibraryDir that would work on froyo? Feb 02 14:44:38 so noone uses screencast? Feb 02 14:46:09 oh screencast Feb 02 14:46:12 no Feb 02 14:46:20 but I have used techsmith products b4 Feb 02 14:46:48 damn there MUST be a way to record my screen today.. :-/ Feb 02 14:46:50 as in camtasia etc Feb 02 14:47:19 Styler2go: how badnly you need it ? Feb 02 14:47:23 badly* Feb 02 14:47:37 i need it today... Feb 02 14:47:48 maybe i will just use my camera to record the screen... Feb 02 14:48:02 duration of what you need ? Feb 02 14:48:14 and device type/res/aspect ? Feb 02 14:48:15 can i use my pc mouse as mouse on android? Feb 02 14:48:17 hey guys, so if my activity is recreated due to a config change, how do i get the reference to an asynctask that was started by the destroyed activity? Feb 02 14:48:57 i just need about 20-30 seconds Feb 02 14:49:13 ok, fill out the other info I asked also Feb 02 14:49:24 device type ? screen ? etc Feb 02 14:49:31 what i have? Feb 02 14:49:36 no Feb 02 14:49:38 what you want Feb 02 14:49:50 ehrm Feb 02 14:49:51 any Feb 02 14:50:03 any/any/any Feb 02 14:50:20 ok 2 options then Feb 02 14:50:44 in reverse order, I do it for you will my nice suite of capture hardware Feb 02 14:50:46 or Feb 02 14:51:09 you use something like androVM or emulator with GPU accel Feb 02 14:51:30 the latter would just require screen capture s/w Feb 02 14:51:39 brb coffee/cig time Feb 02 14:52:27 This is a script to run the adb command of Android SDK to connect and disconnect from WiFi. this is mainly used with devices that cannot allow the android debugger upload the apk files thru the USB cable. http://superlinux.zxq.net/downloads/adb_script.tar.gz Feb 02 14:52:51 i will try androVM Feb 02 14:52:52 guys Feb 02 14:52:58 ADB devics works now Feb 02 14:53:15 but adb sideload says "failed to write data 'protocol fault (no status)' * Feb 02 14:53:22 :( Feb 02 14:53:32 if you want I am willing to develop it to a complete adb front end. Feb 02 14:54:15 why have all the errors in the world suddenly popped up to me ? Feb 02 14:54:33 and on the same day the SD card gets corrupted so I can't install a rom through it Feb 02 15:09:52 Guess what, this issue decides to show up in my app: https://github.com/JakeWharton/ActionBarSherlock/issues/685 Feb 02 15:10:33 Keep reading, the solution is posted Feb 02 15:14:00 Mhm, it crashes when I add this line: getSupportMenuInflater().inflate(R.menu.building_search, menu); Feb 02 15:14:47 The solution you posted is already includes a search view, which I don't use (yet. Feb 02 15:15:03 Then it's not the same issue Feb 02 15:15:24 It's exactly the same stacktrace though. Feb 02 15:15:44 Then you're not using the sherlock themes Feb 02 15:17:56 Hmm, I indeed specify a different theme without Sherlock for v11 and up, but that worked everywhere ... up 'till now I guess. Feb 02 15:18:58 There you go Feb 02 15:19:00 can i use usb debugging in androVM? Feb 02 15:19:13 Myeah Feb 02 15:19:27 This app got started by somebody else who quitted it and he wrote some meh code. Feb 02 15:19:50 Styler2go errr usb ? Feb 02 15:20:02 Styler2go if you just mean connect it to adb then yes Feb 02 15:20:10 yeah i mean... emulated usb debugging^^ Feb 02 15:20:19 yes thats what i mean Feb 02 15:20:29 can you tell me how? Feb 02 15:20:33 well no, nothing to do with usb, but you can enable tcp debugging Feb 02 15:20:36 and use Feb 02 15:20:43 how? Feb 02 15:20:44 adb connect ipaddy:port Feb 02 15:20:48 ok Feb 02 15:20:50 oh Feb 02 15:24:02 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6e8mVkk70bTGY3YMiqrDEC7Df8lkW.jpg thos should be correct or? Feb 02 15:24:44 yes Feb 02 15:25:05 ok, maybe i have to enable it on the vm first? Feb 02 15:25:25 well yeah, you have to give the vm networking Feb 02 15:25:27 :) Feb 02 15:25:42 the vm can go online if you mean that Feb 02 15:25:52 oh then thats good Feb 02 15:26:02 is that address live then ? Feb 02 15:26:09 you can ping it Feb 02 15:27:26 does anyone know a nice approach how to bind a dynamic button to a specific identifier, int or string does not matter. I first used the text i set to the button but then I needed to add some more text e.g "Click to challenge " Feb 02 15:28:40 MelvinKelvin: use format strings, in your strings.xml: "Challenge user %s", and then getString(R.string.challenge, username) Feb 02 15:29:15 no i cant ping it StingRay_ Feb 02 15:29:35 Styler2go: the there will be a problem with your nat setyp/type Feb 02 15:29:38 setup* Feb 02 15:30:54 Ge0rG: thanks will look into it Feb 02 15:32:51 where can i configure it? Feb 02 15:33:26 anyone with AndEngine experience is it possible to incapsulate andengine into a view or fragment? rather then a whole activity Feb 02 15:34:57 i found this on xda Feb 02 15:34:59 " If your device fails to Install the ROM.zip, I had this happen to me. You must push the CWM SuperSU ZIP" Feb 02 15:35:20 So maybe I should install the CWM SuperSU Zip first then try to install my rom zip again Feb 02 15:35:24 http://forum.xda-developers.com/showthread.php?t=1538053 Feb 02 15:35:37 blip- wrong chan, try android-root Feb 02 15:35:42 blip-: #xda-devs Feb 02 15:36:03 or xda lol Feb 02 15:38:21 https://ssl.gstatic.com/ui/v1/icons/mail/localized/de/scpromo.png how can I achieve texts like the email addresses? Feb 02 15:38:43 StingRay_ : what would it cost if you would record this? Feb 02 15:38:48 the bubble like textfields with delete Feb 02 15:38:54 I have 16 buttons in a View, should I use 1 OnLongClickListener for alle of them or one for each? Feb 02 15:38:55 Ge0rG: but in later, how do you parse out just the variable from the string? Feb 02 15:39:06 all* Feb 02 15:40:58 MelvinKelvin: there is no way for that Feb 02 15:41:40 MelvinKelvin: you could attach a tag to the button, which contains your own data or the user name string Feb 02 15:47:13 Styler2go: dunno, hadn't thought of what I would charge , what problem are you having now ? Feb 02 15:47:26 Refacterd the code and everything works now, thanks SimonVT! Feb 02 15:47:44 sonOfRa: is that not just a drawable x 2 + textfield ? Feb 02 15:48:08 i found something, it's a little more complicated Feb 02 15:48:22 sonOfRa: not really Feb 02 15:48:22 http://stackoverflow.com/questions/10812316/contact-bubble-edittext/10815184#10815184 Feb 02 15:48:51 well thats 1 of many ways Feb 02 15:49:14 StingRay_: wait i will try some things Feb 02 15:56:28 i cant ping the vm :-/ Feb 02 15:57:01 aaah now :) Feb 02 15:58:30 Hello, I'm trying to create a small Android app based on http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ Feb 02 15:59:32 For this I'm using eclipse with the Android SDK (downloaded/installed today for the latest version) Feb 02 15:59:51 StingRay_: Its working! Feb 02 16:00:03 Styler2go congrats Feb 02 16:00:36 thank you so much with the androVM tip Feb 02 16:01:49 not a problem Feb 02 16:01:50 :) Feb 02 16:03:40 I have 16 buttons in a View, should I use 1 OnLongClickListener for all of them or one for each? does it matter? Feb 02 16:04:43 i'd let my activity implement onLongClickListener and do .setOnLongClickListener(this) 16 times Feb 02 16:05:03 but who longclicks a button? Feb 02 16:05:24 hi Feb 02 16:06:27 xorgate: I'm gonna let user modify its value Feb 02 16:08:09 Is there an option to get the errors it finds and reports as "Project has compilation error(s)"? Feb 02 16:08:22 Long-presses should usually be a secondary way to achieve an action. It isn't always obvious what is long-pressable and what is not, so the main method should be clearly visible somewhere Feb 02 16:08:44 MarkS-: is there a folder with a red X on it in the project view? Feb 02 16:08:58 It should be ok for this purpose. I'm gonna add a help-popup first time user opens app Feb 02 16:09:36 clever: no Feb 02 16:09:44 MarkS-: red ! ? Feb 02 16:10:27 no red X (maybe I'm on the wrong view, but I don't think so) Feb 02 16:10:47 MarkS-: can you upload a screenshot somewhere? Feb 02 16:11:08 clever: yes, one moment Feb 02 16:13:17 clever: http://streamservice.nl/android/screen201302021712.PNG Feb 02 16:13:56 MarkS-: the project view isnt open, its the tiny button to the left of palatte Feb 02 16:15:27 there is a red X, let's see what the problem is Feb 02 16:15:31 clever: thank you Feb 02 16:16:44 is there somewhere documentation available with all functions and how they should be used? Feb 02 16:16:53 eclipse or android functions? Feb 02 16:17:11 android Feb 02 16:17:24 http://developer.android.com/reference/android/telephony/SignalStrength.html Feb 02 16:23:35 hi guys, could you please tell me why this throws "bitmap size exceeds VM memory"? http://pastebin.com/XiMBsRDe Feb 02 16:24:14 1920*1080*4 = Feb 02 16:24:15 when i use only the first line of the code (so i use bigger bitmap, its something like 3K x 2K), it works Feb 02 16:24:26 MetalGuru: it needs atleast 8mb of ram, depending on how much your already using, you can be over the limit Feb 02 16:24:57 oh, ok Feb 02 16:25:26 and is there a way to... well, to somehow limit quality of picture that im taking with camera? because i need to get fullHD picture from camera Feb 02 16:25:42 but my camera does more than fullHD resolution, so i thought i will resize it this way Feb 02 16:26:49 what should I use if I want a popup where I can input a number from 1-99? Feb 02 16:26:59 maybe it does not make a bitmap but dumps it on sd immediately Feb 02 16:27:13 and for preview it uses 16bit colors Feb 02 16:27:16 dunno, could be Feb 02 16:28:11 hm, what i need to do is this - take picture with camera, resize it to fullhd resolution, merge it with another bitmap through canvas, export it Feb 02 16:28:15 xorgate: or it could be using less ram in other areas, making room for the 8mb monster Feb 02 16:28:38 Hi, I have a http request, and when I do client.getParams().setParameter(ClientPNames.MAX_REDIRECTS, 1); it throws an ClientProtocolException Feb 02 16:29:05 if I set it to 2 or not at all it doesn't give me the exception Feb 02 16:29:26 and there is also camera-preview going on during this Feb 02 16:29:36 do I start another Activity and theme it so its not full screen? Feb 02 16:30:19 a DialogFragment perhaps Feb 02 16:30:28 no ideas guys? :) Feb 02 16:30:55 oh and btw - is there a way to somehow see ram usage of that app? Feb 02 16:31:51 MetalGuru: yes Feb 02 16:31:56 alright, so i have a method, draw() - http://pastebin.com/NCeyUBuf that is being called every frame, and a different method drawBG() which should only be called in onSurfaceChanged().. is this even possible? i mean, having a background that is drawn once and be able to redraw the rest without clearing the view? Feb 02 16:32:03 MetalGuru: in eclipse Feb 02 16:32:21 MetalGuru: click on the device, the app and then on heapinfo Feb 02 16:32:42 MetalGuru: 20-40mb is btw. the max ram size for one app (!) that's not a lot Feb 02 16:33:16 yeah it says something about 32Mb max in log, its so...stupid! Feb 02 16:33:25 why? Feb 02 16:33:28 learn to code... Feb 02 16:33:45 well is there other way around for what I am trying to do? Feb 02 16:33:54 because I´ve found only this as a sollution Feb 02 16:33:56 MetalGuru: its generaly set based on the resolution of the display, so the app can manage full-screen images Feb 02 16:33:58 no idea what you want to do ;) Feb 02 16:34:11 but images in >1megapixel really suck Feb 02 16:34:21 i couldn't solve this Feb 02 16:34:23 but once you get up to 1080, your likely way beyond screen res Feb 02 16:34:48 i call the gallerie for displaying big images Feb 02 16:34:56 so i don't have to handle this by myself Feb 02 16:35:11 i also created a html based preview with javascript elements Feb 02 16:35:19 but what i need is to produce fullHD photo and export it on SD card Feb 02 16:35:31 I need something like this https://play.google.com/store/apps/details?id=com.hl2.hud&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5obDIuaHVkIl0. Feb 02 16:35:35 yeah? so take the image with outputpath to the sdcard Feb 02 16:35:44 i tell you how Feb 02 16:35:50 app takes photo, adds another image on the top of it and saves it Feb 02 16:36:04 well Feb 02 16:36:21 that's a different problem Feb 02 16:36:28 you need the image as raw pixels in memory to do that Feb 02 16:36:40 even if your user took a 14mpixel resolution Feb 02 16:36:44 you can downscale this Feb 02 16:37:35 yes well im trying to downscale it with this code - bottomImage = Bitmap.createScaledBitmap(bottomImage, 1920, 1080, true); Feb 02 16:37:52 wait, raw pixels? Feb 02 16:37:55 no Feb 02 16:38:18 use BitmapFactory.decodeStream(fileinputstrean, null, sampleSize) Feb 02 16:38:28 this will put a reduced image in your ram Feb 02 16:39:34 ok im officially getting lost :D Feb 02 16:39:46 the image is on sd card Feb 02 16:39:56 before you add that top image Feb 02 16:40:02 well its not, its being taken by camera Feb 02 16:40:04 load it with BitmapFactory.decodeStream Feb 02 16:40:10 well so change that :) Feb 02 16:40:17 oh ok :) Feb 02 16:41:38 well this is less stupid then writing your own photo app Feb 02 16:41:54 but it's still a very stupid api Feb 02 16:42:08 ok so if i get it right - i take the picture, save it temporarily on internal memory/sd card, then load it reduced with .decodeStream, overlay it in canvas with second bitmap and save it as final image? Feb 02 16:42:57 yes Feb 02 16:43:04 you might have to rotate the image :) Feb 02 16:43:18 my S3 takes a -90 degree version of images Feb 02 16:43:22 this depends on the camera Feb 02 16:43:33 jesus... Feb 02 16:43:45 now how to do that compatible with every android device... Feb 02 16:43:47 :/ Feb 02 16:43:48 you can check this with ExifInterface Feb 02 16:44:01 read the attribute ExifInterface.TAG_ORIENTATION Feb 02 16:44:06 god when i started doing this app Feb 02 16:44:11 and do some rotation if needed Feb 02 16:44:13 i never thought of how difficult it could be Feb 02 16:44:28 well some of the google guys failed in 2.x Feb 02 16:44:47 ... reminds me on windows 3.11... Feb 02 16:45:28 clever: thank you, now the package is building after reading the error and adding 5 images :) Feb 02 16:45:29 god i hate it :D 3 days of coding, no progress at all Feb 02 16:45:48 and i had everything else done in...few hours Feb 02 16:45:56 well it took me one week to implement this Feb 02 16:45:57 90:10 rule Feb 02 16:46:02 (or 80:20) Feb 02 16:46:05 i still have some issues with content providers Feb 02 16:46:18 i want to call the galerie and stream the image content from a sqlite database Feb 02 16:46:19 80% of the code takes 20% of the time, the remaining 20% of the code take 80% of the time. Feb 02 16:46:20 you did something like this before? Feb 02 16:46:34 oh Feb 02 16:46:43 in my app i save a littl preview 100x80 pixels Feb 02 16:46:48 whatsapp is so ... dirty coded. Database.. Securityconcept, everything.. Its so crazy that this app is that famous! Feb 02 16:46:50 this can be done in memory Feb 02 16:47:59 :) Feb 02 16:48:06 thank you very much man, you helped me a lot Feb 02 16:48:11 i will try to code it later on Feb 02 16:48:20 now i have to go out with GF :D Feb 02 16:48:25 well if you find better ideas, please tell me! Feb 02 16:49:14 girlfriends get in the way of coding Feb 02 16:49:14 ok :) Feb 02 16:49:36 GF are nice testers ;) Feb 02 16:50:02 https://plus.google.com/s/%23Devbytes hat two posts about Bitmaps recently Feb 02 16:50:19 :D Feb 02 16:50:25 i have a feeling Feb 02 16:50:33 that someone is reading #android-dev Feb 02 16:51:48 ok, thanks again, i have to go, see you later guys, bye Feb 02 16:52:02 take care Feb 02 17:09:05 i have a question, have any of you released apps for < sdk 10 and during updating it decided to switch to higher min sdk ? what happens if you do that ? new app ? new app name ? users complain ? Feb 02 17:12:31 StingRay_ http://developer.android.com/about/dashboards/index.html Feb 02 17:12:43 it's up to you Feb 02 17:13:55 yeah but I wondered what happens when your app is relaesed and then later updates (min sdk) cut some people off who may have purchased it ? surely google has some kind of safeguards ? Feb 02 17:15:10 They just wont get the update Feb 02 17:15:39 ah right Feb 02 17:15:44 makes sense Feb 02 17:15:59 still get users complaining though right ? :) Feb 02 17:16:17 You can leave the old apk activated, they can continue to download that then Feb 02 17:17:10 SimonVT: does the user get any indication that a new version is out that they dont have min requirements for ? Feb 02 17:17:19 No Feb 02 17:41:51 Hi, I have a http request, and when I do client.getParams().setParameter(ClientPNames.MAX_REDIRECTS, 1); it throws an ClientProtocolException Feb 02 17:41:54 if I set it to 2 or not at all it doesn't give me the exception Feb 02 17:47:33 http://imgur.com/jacoj Feb 02 17:50:58 hi, does the avd's support OpenGL ES? Feb 02 18:14:04 i want to decrypt a AES 256 file.. The File is about 4-10MB in size. Its easy to decrypt and encrypt strings but is it a good idea to load the whole file in a String? ;) Feb 02 18:14:11 If i do it bunchwise i'm sure it get destroyed.. Feb 02 18:14:31 misterli: keeping 10mb in RAM is not deadly on high-end smartphones Feb 02 18:14:35 not too deadly ;) Feb 02 18:14:45 misterli: besides, use a byte[] instead of a String Feb 02 18:14:48 well, it should run on old devices (android 2,3) too Feb 02 18:18:39 if decrypting blocks destroys the data, your aes algorithm is screwed. Feb 02 18:22:20 Why would you load a file into a String? Feb 02 18:22:46 Use a byte[] and try to decrypt blockwise again. Feb 02 18:23:29 okay thanks Feb 02 18:30:43 Guys.. i know this is the wrong channel but does someone know if there is an irc channel fot adobe after effects? or does someone use it? Feb 02 18:35:57 Styler2go whats up ? Feb 02 18:36:08 hey StingRay_ :) Feb 02 18:36:18 AE = primitive compositor Feb 02 18:36:27 Yeah, i just need a bit of help in ae.. :D Feb 02 18:36:35 there are much better things that AE Feb 02 18:37:01 oh probably not as easy as AE though Feb 02 18:37:36 i dont know anything better than AE.. theres nothing you can't do... so.. do you know ae? Feb 02 18:37:55 I know all DCC/effects/composing/3d stuff Feb 02 18:38:01 some more than others Feb 02 18:38:06 in AE? Feb 02 18:38:22 AE falls into the compositing/video editing catagory Feb 02 18:38:38 yes Feb 02 18:38:38 of which I know most if not all major apps Feb 02 18:38:45 AE included Feb 02 18:38:49 ? Feb 02 18:39:24 so... are you good in AE or do u never used it? :D Feb 02 18:39:29 omg Feb 02 18:39:41 sry i did not understand you Feb 02 18:39:50 ask your question Feb 02 18:39:58 sorry :-/ Feb 02 18:40:01 I dont use it, I use higher end software Feb 02 18:40:11 but AE is like a limited home user version Feb 02 18:40:20 so yeah, I will probably be able to help Feb 02 18:40:33 its a question about controls Feb 02 18:40:37 i will jzst ask wait Feb 02 18:41:19 JakeWharton: Won't these downloads soon vanish? Since Downloads are now deprecated? https://github.com/square/tape/downloads Feb 02 18:42:28 They will Feb 02 18:42:39 i have a 3d camera and, if i click on it, i get the view of the camera in my top view, if i go to another level the view of the camera gets blend out. if i select the camera and my desired level i see both, but if i move the desired level the camera moves too. but: i just want to see the view of the camera AND move only the desired level... Feb 02 18:43:26 Styler2go why are you using a 3d scene ? Feb 02 18:43:40 cause i am working in a 3d space :D Feb 02 18:44:02 AE is not good for 3D compositing Feb 02 18:44:06 not at all Feb 02 18:44:52 but neways, not sure what you mean by "level" Feb 02 18:45:16 whats the correct name for it... Feb 02 18:45:38 since i dont know what your referring to, I wouldn't know Feb 02 18:45:56 i am not the best at english as u see.. :-/ Feb 02 18:45:59 "go to another level" ? Feb 02 18:46:05 could mean Feb 02 18:46:11 move the camera in Y Feb 02 18:46:17 click on a layer Feb 02 18:46:18 no i mean Feb 02 18:46:20 layer Feb 02 18:46:20 click on a group Feb 02 18:46:22 yeah thats it Feb 02 18:46:22 ah Feb 02 18:46:24 ok Feb 02 18:46:32 level = layer Feb 02 18:46:44 ok lemme re-read your question :) Feb 02 18:47:02 blend out? Feb 02 18:47:07 i have a layer and i want to position it to the camera view Feb 02 18:47:18 and to help me with that i want to see the camera view while i am on my desired layer Feb 02 18:48:28 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6e8AjoxbxmJV5vkYPg0k6Ui1rStj2.jpg as you see here the layer at the end of the camera view is not in the center, but if i go to the layer the camera view gets hidden Feb 02 18:50:25 now i get ya Feb 02 18:50:26 ish Feb 02 18:50:42 well you can have more "Views" Feb 02 18:50:50 and have them show what you want Feb 02 18:51:09 View > New Viewer Feb 02 18:51:44 do you really know what i mean? :-/ Feb 02 18:52:28 you want to "position the camera in 3d" while " looking thought the camera" Feb 02 18:52:35 in 2 different views Feb 02 18:52:37 no no... Feb 02 18:52:37 ? Feb 02 18:52:50 then no I dont :) Feb 02 18:52:54 wait Feb 02 18:53:00 let me think how to better explain Feb 02 18:53:16 in my screenshot, you see the layer at the end of the camera? Feb 02 18:53:37 yes Feb 02 18:53:39 4 of them Feb 02 18:53:42 yes Feb 02 18:53:56 and you see the middle line of the camera view, yes? Feb 02 18:54:06 yes Feb 02 18:54:27 Hi, im having trouble with an sql query, im using http://pastebin.com/C6yG1zyy this and get no results, but i do when i query the database with another sqlite-tool. MySQLiteHelper.COLUMNS_TIMES_DATE contains time as unix timestamp Feb 02 18:54:38 i want this layer on the end of this line Feb 02 18:55:06 simply move it there... but wait i got an idea... Feb 02 18:55:23 it has rulers! yeah.... Feb 02 18:55:59 ok, i got a solution with rulers... but thank you very much StingRay_! Feb 02 18:56:46 Styler2go AE is horrid for 3D composition, AND what your doing can be done easily with Layer Transitions Feb 02 18:56:48 fyi Feb 02 18:58:40 uhm Feb 02 18:58:58 i know many really good things in 3d done with AE Feb 02 18:59:25 Styler2go: maybe, but what your doing doesnt warrant it Feb 02 19:00:31 AE is powerful enough for this what i want to do :) but, what kind of tools do u use? Feb 02 19:01:54 i found the error now :) Feb 02 19:02:50 Styler2go nuke, shake, smoke etc for compositing Feb 02 19:03:03 and maya, houdini, xsi for 3d stuff Feb 02 19:03:07 is this your work? Feb 02 19:03:17 for 17 years yes Feb 02 19:03:25 VFX games/film Feb 02 19:03:30 cool Feb 02 19:03:42 Hello! So I defined a custom view in xml that should be the template for my list items. How can I add list items based on this view in another xml now? Feb 02 19:03:47 not really, attempting something all new with android dev... :) Feb 02 19:04:19 how is your attempt going? :D Feb 02 19:04:21 marrrk: you mean custom layout ? or custom view? Feb 02 19:04:35 Styler2go: so so, to fair :) Feb 02 19:04:45 I don't know. I have a list view and I want to populate it with items that have a text on the left and a toggle button on the right. Feb 02 19:05:16 marrrk: considered a spinner ? and using default android:items ? Feb 02 19:05:22 rather than a listView ? Feb 02 19:05:31 no I have not Feb 02 19:05:34 what is a spinner? Feb 02 19:06:06 I see Feb 02 19:06:10 No, that's not what I want Feb 02 19:06:24 I want this in the settings activity to quickly turn on and off certain features Feb 02 19:07:13 marrrk: http://developer.android.com/reference/android/preference/PreferenceActivity.html Feb 02 19:07:26 well.. decrypting of the AES File didnt work probably. It's really annoying. I have the Key (in HEX) for the AES File, but what the heck is the IvParameterSpec? Is it required? The PERL-Script (which i try to port) dont use any ivSpec or similar.. Feb 02 19:07:49 I guess that's an initialization vector specification Feb 02 19:09:07 StingRay_: How dare they not put a screenshot of what this is about? Feb 02 19:09:08 hmm, how would it work if i have activity with lets say 10 different layouts.. and change them as needed, on some i need shown some stuff on other not.. is that going to be slow? Feb 02 19:09:33 i want to replace for example menu, inbox, etc.. Feb 02 19:09:38 to not create separate activity Feb 02 19:09:41 but just change content Feb 02 19:10:42 I'm interested in that too Feb 02 19:11:13 I think you could use a TabHost if that is consistent with your design ideas Feb 02 19:11:28 nope, i have sliding menu Feb 02 19:11:32 but without fragments.. Feb 02 19:11:42 SimonVT's library Feb 02 19:11:56 on click on sliding menu item Feb 02 19:12:01 i would like to only change view Feb 02 19:12:07 and if i have 10 things in menu Feb 02 19:12:45 that would be at least 10 views, with its own content from device or both device and server stuff.. to get data.. show that in some listview.. etc.. Feb 02 19:13:55 Does anybody know if you have to call an update function or something similar after making changes to a supportMapFragment? Feb 02 19:14:33 I sent the appropriate methods to the containing sectionsPagerAdapter, but it still shows a blank screen Feb 02 19:15:38 mbarisa: now I want to use that simonVT thing too Feb 02 19:15:56 t.t Feb 02 19:16:30 SimonVT: hahaha! :) Feb 02 19:16:44 SimonVT: i'm making you popular :P Feb 02 19:17:14 I'm more concerned about him wanting to use my thing Feb 02 19:17:31 I might be a girl Feb 02 19:17:42 but of course I wouldn't be here if I was Feb 02 19:17:43 statistically, that's unlikely Feb 02 19:17:45 yeah Feb 02 19:18:40 roar Feb 02 19:18:50 Why does Cyril Mottier speak proper english although he's french? Feb 02 19:18:50 Hey - has anyone ever dealt with graphics corruption issues in an app after using GLSurfaceView? Feb 02 19:20:31 oO Feb 02 19:20:51 ugh when i type "maps" in chrome, it still autocompeltes to maps.google.ca Feb 02 19:20:57 which gives me a zoomed out view of north america Feb 02 19:21:34 Remove it from your history Feb 02 19:21:54 what do you want it to do instead? Feb 02 19:22:47 Probably make it go to the .com version Feb 02 19:23:37 the history search isnt useful enough Feb 02 19:23:55 wouldn't the .com version also give a zoomed out view of north america? Feb 02 19:24:03 Yeah, I just noticed Feb 02 19:24:12 It also wont let you delete items older than X Feb 02 19:24:28 oh hey theres an easier way Feb 02 19:24:40 in the address bar, just highlight the entry, and shift-delete Feb 02 19:24:40 :D Feb 02 19:25:00 achievement unlocked - chrome no longer thinks i live in canada Feb 02 19:25:48 hah Feb 02 19:25:50 Didn't know that Feb 02 19:26:29 SimonVT: to use your thing (menu drawer) is there some ready made library or can I compile one or should I just copy the necessary files into my project? Feb 02 19:26:53 You need to add it as an android library project Feb 02 19:27:02 Still can't package resources in a jar Feb 02 19:27:16 Ah okay. I will see if I find how to do that in Intellij Feb 02 19:30:18 You can also just use maven and add it with a few lines of xml :p Feb 02 19:31:02 That sounds tempting but I guess the other guys might not like that Feb 02 19:31:30 Hmm there is an option "From maven…" for adding a library Feb 02 19:32:03 SimonVT: What URL would I specify there? Feb 02 19:32:28 Not sure how that would work Feb 02 19:32:36 Just create a new module from existing sources Feb 02 19:32:42 OK Feb 02 19:35:20 I guess that worked. Feb 02 19:35:37 it is easy Feb 02 19:35:39 i made it work Feb 02 19:35:43 in 2 secs in intellij Feb 02 19:36:03 Remember it does not only depend on the software you're using whether it's simple or not. Feb 02 19:36:27 very simple :D Feb 02 19:36:34 Hi Feb 02 19:36:45 I need help in configuring the Eclipse Feb 02 19:36:52 Is there anyone who can help me in this Feb 02 19:37:01 You need Intellij Feb 02 19:37:35 Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 21.0.1.v201212060256-543035 (com.android.ide.eclipse.adt.feature.group 21.0.1.v201212060256-543035) Missing requirement: Android Development Tools 21.0.1.v201212060256-543035 (com.android.ide.eclipse.adt.feature.group 21.0.1.v201212060256-543035) requires 'org.eclipse.wst.sse.core 0.0.0' bu Feb 02 19:37:35 I am getting the below error Feb 02 19:38:12 Dennis85_: you dont have ADT! :) Feb 02 19:38:14 install that Feb 02 19:38:32 I have installed it Feb 02 19:39:18 Android SDK tools 21.0.1 is installed Feb 02 19:39:34 Still Eclipse is giving the error Feb 02 19:40:02 I have install the API for Adroid 2.3.3 Feb 02 19:40:15 Can you help me in this Feb 02 19:40:30 if you run sh from an activity and the sh process is performing a background task - does that sh task get paused if it was called in the context of an activity? Feb 02 19:40:57 and the user switches from that activity. Feb 02 19:41:13 activity -> sh process running -> switch activity -> sh still going? Feb 02 19:41:25 make otapackage doesnt appear to include the recovery built and present in /out/target/product. everything is defined in BoardConfig.mk as necessary... Feb 02 19:41:33 how can i get the otapackage to include a recovery update? Feb 02 19:41:51 Hi anyone here to guide me pls Feb 02 19:42:15 crypted, this channel is for app development. you might have more luck with https://groups.google.com/forum/?fromgroups#!forum/android-building or something like that Feb 02 19:42:26 ah yeah thanks Feb 02 19:42:41 has anyone heard whether the new game consoles(xbox/wiiu/ps3) will be easier for indies to create games for? Feb 02 19:42:58 i heard wiiu is hacked already Feb 02 19:43:04 ouya for indies! :D Feb 02 19:43:21 I do have an ouya coming in march :) Feb 02 19:43:36 is it bad practise trying to build up a list of dynamic buttons? I loop through an array and for each item I try to add a button but strange is only the first dynamic button is added to the view Feb 02 19:44:39 Ge0rG: not hacked, but creating and selling games in the store the way you would for Android Feb 02 19:45:09 Hi.. can anyone help this newbie to configure the Eclipse Feb 02 19:45:13 MelvinKelvin I do that with most views, inc buttons Feb 02 19:45:37 SimonVT: I can't run the samples. The first error I get is Error retrieving parent for item: No resource found that matches the given name 'Widget.MenuDrawer'. Feb 02 19:45:43 in styles.xml Feb 02 19:46:02 Then you didn't add the library as a dependency Feb 02 19:46:28 folks..I have a question Feb 02 19:46:37 how can I debug an apk? Feb 02 19:46:50 the app from the android project works different than the apk Feb 02 19:47:15 Actually I just opened the whole folder as a project Feb 02 19:47:43 StingRay_: do I doe something wrong? http://pastebin.com/ciMtCaKe as am only getting the first button to the view Feb 02 19:47:55 there is 4 items in the list Feb 02 19:48:41 MelvinKelvin llWaitingGames <-- orientation set correct ? Feb 02 19:48:56 I take it ll = linearLayout Feb 02 19:49:10 orientation:vertical ? Feb 02 19:49:25 Well, Widget.MenuDrawer is a style in the library.. If it can't find it, it isn't added as a dependency Feb 02 19:49:57 Hi.. can anyone help this newbie to configure the Eclipse Feb 02 19:50:12 Alright I will get this Feb 02 19:50:14 StingRay_: thank you, can't understand I missed that. it is working fine now. Thanks a lot. Now I just need to put it inside a scrollview Feb 02 19:50:17 anyone knows if there is any lib for this: http://android.cyrilmottier.com/?p=556 Feb 02 19:50:47 I managed to crash Intellij at least Feb 02 19:50:49 oh i found: https://github.com/rno/Android-ScrollBarPanel Feb 02 19:52:04 Hi.. can anyone help this newbie to configure the Eclipse Feb 02 19:52:40 Hi.. can anyone help this newbie to configure the Eclipse Feb 02 19:53:58 mbarisa: Alright you tell me how to add the library properly in Intellij. If it took you so little time doing it it shouldn't be that much longer telling me here. Feb 02 19:54:45 "Hello, I'm trying to set up the developer tools in Eclipse version x.x. I did X and Y, but during Z happened. Anyone who knows what to do?" <- Template you can use for asking your question, Dennis85_ Feb 02 19:54:56 I cant find the error in google.. thats the reason I need your help Feb 02 19:55:01 marrrk: ok.. Feb 02 19:55:10 open project view.. Feb 02 19:55:15 alright Feb 02 19:55:23 right click on empty space Feb 02 19:55:33 new module Feb 02 19:55:40 Library module Feb 02 19:55:44 android library module Feb 02 19:55:54 select content root Feb 02 19:56:00 and set package name correctly Feb 02 19:56:05 same as in the project is Feb 02 19:56:26 that sounds good Feb 02 19:56:28 for simons it is Feb 02 19:56:34 net.simonvt.menudrawer Feb 02 19:56:51 and then write in your activity in your app Feb 02 19:57:11 MenuDrawer and add dependency menudrawer to that project Feb 02 19:57:17 you would get suggestion from intellij Feb 02 19:57:22 and that would do i t.. Feb 02 19:58:01 by content root do you mean the "library" folder or the whole root? Feb 02 19:58:11 library folder Feb 02 19:58:54 Hmm still no luck Feb 02 19:59:19 Let me start over Feb 02 19:59:56 for me that works every time Feb 02 20:00:21 anyone have any experience with custom radio buttons? Do u have images for every resolution? I can get the custom images to resize :\ Feb 02 20:00:23 "Hello, I'm trying to set up the developer tools in Eclipse version 4.2.1. I have installed the Android SDK manager and installed the Android SDK Tools Rev. 21.0.1 with API Android 2.3.3, but during loading IDE in Eclipse --> Install new software-- > with https://dl-ssl.android..... --> I am getting two options when I try to install that--> getting and error --> "Cannot complete the install because one or more required items c Feb 02 20:00:29 "Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 21.0.1.v201212060256-543035 (com.android.ide.eclipse.adt.feature.group 21.0.1.v201212060256-543035) Missing requirement: Android Development Tools 21.0.1.v201212060256-543035 (com.android.ide.eclipse.adt.feature.group 21.0.1.v201212060256-543035) requires 'org.eclipse.wst.sse.core 0.0.0' b Feb 02 20:00:34 Can any one help me in this Feb 02 20:00:39 thank you mbarisa before I forget! Feb 02 20:01:52 marrrk: did it work? Feb 02 20:02:02 and np Feb 02 20:02:27 When I add the library Feb 02 20:02:29 I get Feb 02 20:02:50 "Hello, I'm trying to set up the developer tools in Eclipse version 4.2.1. I have installed the Android SDK manager and installed the Android SDK Tools Rev. 21.0.1 with API Android 2.3.3, but during loading IDE in Eclipse --> Install new software-- > with https://dl-ssl.android..... --> I am getting two options when I try to install that--> getting and error --> "Cannot complete the install because one or more required items c Feb 02 20:02:59 "Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 21.0.1.v201212060256-543035 (com.android.ide.eclipse.adt.feature.group 21.0.1.v201212060256-543035) Missing requirement: Android Development Tools 21.0.1.v201212060256-543035 (com.android.ide.eclipse.adt.feature.group 21.0.1.v201212060256-543035) requires 'org.eclipse.wst.sse.core 0.0.0' b Feb 02 20:03:03 Changes have been made to '/.../android-menudrawer-master/library/gen/net/simonvt/menudrawer/BuildConfig.java' in memory and on dis. Feb 02 20:03:04 Dennis85_: stop spamming, we dont use Eclipse Feb 02 20:03:20 try later on Feb 02 20:03:32 http://stackoverflow.com/questions/4249695/adt-requires-org-eclipse-wst-sse-core-0-0-0-but-it-could-not-be-found Feb 02 20:03:33 http://stackoverflow.com/questions/12436019/eclipse-starting-with-android-sdk Feb 02 20:03:43 and then I can choose to keep memory changes or load file system changes Feb 02 20:03:46 Just a few hits on google Feb 02 20:03:59 marrrk: Doesn't matter, BuildConfig is created at build time Feb 02 20:04:02 SimonVT .. Google give me nothing Feb 02 20:04:14 marrrk: yes.. it should load it up Feb 02 20:04:15 for this particular error Feb 02 20:04:37 so now there is no run configuration for the samples project Feb 02 20:04:39 Dennis85_: because you obviously googled it with this large peice of string Feb 02 20:04:41 https://www.google.com/search?q=requires+'org.eclipse.wst.sse.core+0.0.0'+b Feb 02 20:04:57 Dennis85_ I just got lots of results Feb 02 20:05:17 marrrk: So create one ;O Feb 02 20:05:24 yeah I'm on it Feb 02 20:05:44 before i deleted and started over it was already there that's what's confusing me Feb 02 20:06:40 mbarisa I got some results.. but all the issues was reported a week before and there seems to be no solution for this error Feb 02 20:08:18 Please select android sdk grr where? Feb 02 20:08:44 so anyone watch sharktank? Feb 02 20:09:52 Finally! Feb 02 20:10:02 some guy developed an application called cateapp and sold it to a HUSTLER for $10,000. Cateapp is a "cheaters" app for people who like to have affairs and hide it. Feb 02 20:10:32 android sdk and eclipse both are in same folder Feb 02 20:11:06 and this hustler proposed it to multi-millionaires/multi-billionaires Feb 02 20:11:08 Daymond John and Keven O'Leary for $70k and 35% equity in the privacy app. Feb 02 20:12:17 so anyone knows if i should use more views in one activity? or create separate activities, fragments, something? Feb 02 20:12:59 now SimonVT I have to tell you that your thing is very sexy :) Feb 02 20:13:11 trinity the app that I'm doing currently is kinda like that Feb 02 20:13:17 t.t Feb 02 20:13:19 well has features that are for that Feb 02 20:13:36 Anyone have any experience dealing withe opengl context corruption after using a glsurfaceview to draw part of an app? When I return to another activity after finishing one with a glsurfaceview, UI elements are being drawn with corruption Feb 02 20:14:49 SimonVT: how have you used it in your apps? to show content from menu? Feb 02 20:14:50 StinRay_: its not the fact that i think the app is bogus Feb 02 20:15:02 just change views in activity Feb 02 20:15:14 Changing between fragments Feb 02 20:15:22 stingRay: or the concept, its the guy who purchased the app from another developer. the guy who purchased it doesnt code lol and bought it off of flippa Feb 02 20:15:49 i tried to use fragments.. but i get error when i do that.. Feb 02 20:15:59 Then you're doing it wrong Feb 02 20:16:00 it just does not want to work, do you have an example Feb 02 20:16:31 SimonVT: do you think it would be possible to animate the triangle instead of having it jump immediately? Feb 02 20:16:41 or some code that you could share with me, i tried to do it with fragments, it sounds best option but i only managed to do it with changing few relative layouts in same activity Feb 02 20:17:02 marrrk: https://plus.google.com/u/0/113568348592516405843/posts/FMCbHCA2awj Feb 02 20:17:16 mbarisa: Got no samples with fragments and the menu Feb 02 20:17:26 But there's no difference in how you change fragments Feb 02 20:18:32 SimonVT: Exactly! So is that already there and just not implemented in a sample? Feb 02 20:18:46 It's on the dev branch Feb 02 20:18:58 SimonVT: so i declare fragments in my layout.. then from activity i call separate fragment and place it in some layout i have.. with f.replace... Feb 02 20:19:28 Don't declare fragments in xml if you wish to remove it later Feb 02 20:19:48 but i need to design it somewhere.. Feb 02 20:20:05 i would not like to design fragment in code :/ Feb 02 20:20:18 http://developer.android.com/guide/components/fragments.html Feb 02 20:20:24 I think you need to read up on how fragments work Feb 02 20:20:37 me too Feb 02 20:20:41 i did that yesterday Feb 02 20:20:44 let me try again :D Feb 02 20:21:12 far too much text Feb 02 20:21:19 Declare the fragment inside the activity's layout file. Feb 02 20:21:27 so when i do that Feb 02 20:21:32 i get error on activity that i start Feb 02 20:21:36 with menu drawer Feb 02 20:21:54 As I said, you don't want to declare fragments in xml if you want to replace them later Feb 02 20:22:02 because of menuDrawer.setContentView(...) Feb 02 20:22:08 Also, I doubt that's related to the menu Feb 02 20:22:26 ok then sorry :) let me see it again Feb 02 20:22:26 SimonVT: Any reason why I should not use the dev branch? Feb 02 20:23:00 marrrk: Not really, no Feb 02 20:23:03 Not atm anyway Feb 02 20:23:11 very good Feb 02 20:23:15 But I don't always test my commits very well until it's time for a release Feb 02 20:23:35 Cus I'm lazy Feb 02 20:23:38 Is it true that you can't style the searchable searchfield? >< Feb 02 20:24:06 SimonVT: I guess you need to read up on what lazy means :) Feb 02 20:27:52 Seems like actionbarsherlock makes the searchbar appear ugly in 2.3 style, instead of the native 4.0 style Feb 02 20:29:18 Silox|: you sure it's not 2.3 that makes the thing ugly ? Feb 02 20:29:43 logout Feb 02 20:29:51 Well, I'd like my icons to show the native 4.0 style when I'm on 4.0. Feb 02 20:30:38 But for some reason when I click the 'nice' icon to start my search, the 'search bar' scrolls in, with a 2.3-like icon. Feb 02 20:31:09 What do you mean by search bar Feb 02 20:31:15 Only search thing in abs is SearchView Feb 02 20:31:22 It doesn't touch anything else search related Feb 02 20:31:55 i get stupid FragmentManager fragmentManager = getFragmentManager(); Feb 02 20:31:56 I'll screenshot it. Feb 02 20:31:59 incompatible type Feb 02 20:32:13 in this.. and that is because i am using android support library Feb 02 20:32:27 mbarisa: getSupportFragmentManager(); ? Feb 02 20:32:49 nope Feb 02 20:33:20 Did you import it as Feb 02 20:33:40 yes i have dependency on it Feb 02 20:33:49 import android.support.v4.app.Fragment; Feb 02 20:33:49 import android.support.v4.app.FragmentTransaction; Feb 02 20:33:50 import android.support.v4.app.FragmentManager; Feb 02 20:33:52 this is all fine.. Feb 02 20:33:54 hm Feb 02 20:33:59 FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); Feb 02 20:34:02 Fragment inboxFragment = new ExampleFragment(); fragmentTransaction.replace(R.id.content_listings, inboxFragment); fragmentTransaction.commit(); Feb 02 20:34:02 And you're using FragmentActivity? Feb 02 20:34:05 and all this no error Feb 02 20:34:13 only getFragmentManager Feb 02 20:34:53 Well, use getSupportFragmentManager.. Feb 02 20:35:07 getFragmentManager is the native version, not support Feb 02 20:35:12 SimonVT: StingRay_: http://imgur.com/gvQ2JG1,aLMsB0A#0 http://imgur.com/gvQ2JG1,aLMsB0A#1 Feb 02 20:35:17 i dont have it.. Feb 02 20:35:59 FragmentActivity.. Feb 02 20:36:10 What's your class header, mbarisa? Feb 02 20:36:50 ohhh! :D Feb 02 20:37:09 everything fine now.. sorry :P Feb 02 20:37:15 Np :3 Feb 02 20:37:48 works perfectly now.. Feb 02 20:38:25 SimonVT: See what I mean with the 'ugly' icon in the searchview now? Feb 02 20:38:39 Also, I have Club Mate. Yuy. Feb 02 20:38:46 Yeah, I don't know what you're doing wrong Feb 02 20:39:17 Here's what it looks like in the samples: https://dl.dropbox.com/u/100261/2013-02-02%2021.38.40.png Feb 02 20:39:37 Myeah, I know, that's how it looks like on the play store etc too Feb 02 20:40:50 I also don't get any handleIntent when I search for something, meh. Feb 02 20:41:22 Silox, are you having trouble with searching? Feb 02 20:41:32 Myeah Feb 02 20:41:47 I'm just going to put a breakpoint here to test it again :P Feb 02 20:41:52 to get the search icon to display in the actual search box, you have to: Feb 02 20:42:00 Yeah I know Feb 02 20:42:08 if i want to select a certain week from my sqlite database, can i compare like this? WHERE strftime("%W", dateColumn") = "5" ? Feb 02 20:42:11 That's was just a boolean that I tried to set on/off to see if it makes a difference. Feb 02 20:43:47 SimonVT: In the ViewPager example where are you specifying the individual fragments? Feb 02 20:44:28 In the adapter Feb 02 20:44:55 Ah wait, I get an Intent, so that works, it only doesn't display the toast. Feb 02 20:45:15 stayfrosty555: If you compare text, you should use .equals. Feb 02 20:45:22 Oh wait, it's SQL. Feb 02 20:49:14 Okay I see, is it possible to change the TextViewFragment class in such a way that it just inflates an xml instead of setting the content programmatically? Feb 02 20:49:52 fragments are quite easy to use :D Feb 02 20:50:50 I don't like them. Feb 02 20:50:52 :P Feb 02 20:51:29 mbarisa: is that an answer to my question? Feb 02 20:51:44 marrrk: what question Feb 02 20:51:50 i am doing it now.. so not reading much Feb 02 20:51:54 I guess that's a no then Feb 02 20:52:18 yeah it is possible Feb 02 20:52:23 @Override Feb 02 20:52:23 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Feb 02 20:52:26 return inflater.inflate(R.layout.inbox, container, false); Feb 02 20:52:29 } Feb 02 20:52:59 R.layout.inbox is normal relativelayout with shit in it :P Feb 02 20:53:18 okay Feb 02 20:57:18 Why does that simply work. I find that to be very satisfying Feb 02 20:57:30 me too :P Feb 02 20:59:38 Hi Feb 02 21:01:13 SimonVT: where have you declared that shadow on right side of sliding menu.. i would like to remove that.. if you remember Feb 02 21:02:15 Just call MenuDrawer#setDropShadowEnabled Feb 02 21:02:36 thanks! Feb 02 21:04:56 I'm a advanced developer for the PC :) but totally new on the Android, which I bought today, can someopne point me a side for beginners? Feb 02 21:05:40 d.android.com Feb 02 21:07:36 If you were an advanced developer, you'd know how to google to find documentation. Feb 02 21:11:14 Say I've got a scrollview with a linearlayout and 5 items in it, but I want the height of each view in that linearlayout to be weighted such that only 4 elements were visible within the height of the scrollview. layout_weight doesn't seem to work, I assume that's because the height of it's parent is filling an indefinite amount of space in the scrollview. Any ideas how to achieve that effect? Feb 02 21:11:43 MaxVandervelde code Feb 02 21:12:11 Is it really necesarry to set up a whole contentprovidor if I just want some simple string suggestions in my search box? :/ Feb 02 21:12:54 You can use a regular adapter to provide suggestions Feb 02 21:13:57 SimonVT: Are you familiar with dagger by square? Feb 02 21:14:09 Not at all Feb 02 21:14:13 okay.jpg Feb 02 21:14:35 SimonVT: Are the three Tab instances you're adding in the ViewPagerSample the same for each menu item or am I missing something? Feb 02 21:15:15 The menu items does nothing in that sample Feb 02 21:15:15 How is the British Railways thingie called? Feb 02 21:15:33 It's just to display how scrolling is handled Feb 02 21:16:00 Ah okay Feb 02 21:16:48 So I guess I'll have to go through another sample Feb 02 21:32:50 Any Londonners / British people here? :P Feb 02 21:33:01 I'm planning a journey in London and I'm confused: http://ojp.nationalrail.co.uk/service/timesandfares/London/Southampton/060413/1424/dep Feb 02 21:33:12 How the heck can that train be 5£ while alll the others are 34? Feb 02 21:34:19 Silox slow Feb 02 21:34:23 is it just for the specific time, and type of ticket? Feb 02 21:34:31 prices here are dynamic Feb 02 21:34:41 dependant on both time/deman Feb 02 21:34:41 also, "Advance" Feb 02 21:34:45 demand Feb 02 21:34:52 I see o_o Feb 02 21:34:53 meaning "buy early" Feb 02 21:35:19 my ticket to work, into london was stupid expensive Feb 02 21:35:29 due to demand/peak time Feb 02 21:35:32 OffPeak is for the tickets that are still bought on the day of travel but only work for "off peak" times Feb 02 21:35:58 Anytime = as the name says, basically a ticket for one travel on the line anytime during the day Feb 02 21:36:16 saves your ass when you get off at wrong station Feb 02 21:37:27 your "arse" Feb 02 21:37:39 marrrk: right Feb 02 21:37:41 :P Feb 02 21:37:48 * p_l isn't a brit Feb 02 21:37:57 can you use TransitionDrawable inside a listView item ? Feb 02 21:38:06 * StingRay_ is a brit Feb 02 21:38:31 yes Feb 02 21:38:37 listview is just a viewgroup like any other Feb 02 21:38:59 * StingRay_ runs of to try Feb 02 21:39:12 actually sod this, I need a break Feb 02 21:39:42 Silox you will love our london underground Feb 02 21:40:05 studies every year show that it would be inhuman to transport cattle in such conditions !!! Feb 02 21:40:07 SimonVT: Is it possible to fake an action bar for pre 4.0? Feb 02 21:40:24 Nobody will guess that they can slide from left to right to make the menu come up Feb 02 21:41:25 StingRay_: It probably beats overused, blockedup roads full of single people, each in individual, gas-guzzling, smog-making, car Feb 02 21:41:36 marrrk: https://github.com/JakeWharton/ActionBarSherlock Feb 02 21:41:43 very good Feb 02 21:42:09 p_l: no, no it doesnt Feb 02 21:42:41 yes it does Feb 02 21:43:04 there is no comparison to being surrounded by 20 or more sweaty men all pushed up against you!! Feb 02 21:43:14 so NO Feb 02 21:43:15 haha I have a comparison Feb 02 21:43:37 gangbang != blocked up roads!! Feb 02 21:43:42 StingRay_: Yes, it is. Also, stop crowding :P Feb 02 21:43:55 blocked up pipes Feb 02 21:44:25 I left the big city neways so no more for me Feb 02 21:44:26 :) Feb 02 21:44:59 Where are you now? Feb 02 21:45:20 small village Feb 02 21:45:20 http://www.youtube.com/watch?v=eQdS5HY_O6k Feb 02 21:45:22 countryside Feb 02 21:46:05 I've never been to London actually Feb 02 21:46:19 dont bother Feb 02 21:46:29 unless you like sweaty men Feb 02 21:46:36 then go for it Feb 02 21:46:52 I've lived in Bathampton which was nice Feb 02 21:47:21 ignorance and man sweat, fuelled by ego...thats my description of london Feb 02 21:47:34 dont forget the pidgions Feb 02 21:47:36 don't the women sweat? Feb 02 21:47:38 lots of them Feb 02 21:47:51 marrrk NO!!!! Feb 02 21:48:00 and they dont fart either!! Feb 02 21:48:02 ever Feb 02 21:48:07 they are women Feb 02 21:48:19 I forgot for a split second Feb 02 21:49:17 I'm so lazy I want a combined sample with the view pager and a working menu... Feb 02 21:52:09 ok, I installed succsessfuly the OEM USB Drivers on my win7 and swiched my android 4.2 to developer mode and made USB debugging on. I make an "Hallo World" project with Eclipse and do "RUN as -> Android Application" and nothing hapens :( tips? Feb 02 21:52:41 swipe the lockscreen away ? Feb 02 21:52:44 :) Feb 02 21:53:00 Have you set it to run on the phone? Feb 02 21:53:30 marrrk: how that? Feb 02 21:53:48 I don't know you're using eclipse Feb 02 21:54:09 what to use than? Feb 02 21:54:09 The only thing I know about that is http://www.ihateeclipse.com . Feb 02 21:54:20 insertion of obligatory "use IntelliJ instead of Eclipse" statement. Feb 02 21:54:56 Well I don't care I just can't help with Eclipse. Feb 02 21:59:20 ok, how to start with InteliJ ? should I get the Ultimate or the Comunity version? Feb 02 21:59:31 I'm new in JAVA Feb 02 21:59:32 Community Feb 02 21:59:37 Community will be fine for Android Feb 02 21:59:50 the Ultimate is geared towards Enterprise projects Feb 02 22:00:08 or at least looks like Feb 02 22:01:41 i create a context menu from a listview on long click, but when onContextItemSelected is called the code executing is in another fragment 1 level higher on backstack... what is happening here? Feb 02 22:02:08 key-real whats your device? Feb 02 22:02:24 LG Nexus 4 Feb 02 22:02:43 sabton: really? i remember something like that bug a /long/ time ago Feb 02 22:03:01 i think there is a hack; you assign a groupId or something and check that Feb 02 22:03:06 g00s yes it is as if the back stack is popped twice when the menu returns Feb 02 22:03:10 key-real: did you install the OEM drivers as administrator? Feb 02 22:03:14 if i back out of context the backstack in in tact Feb 02 22:03:52 trinity: they where installed without problems Feb 02 22:04:09 mhmm, but sometimes not installing the drivers as admin on a windows device causes problems Feb 02 22:04:13 i know it did fo rmy windows 7 Feb 02 22:04:13 i get a kick out of people that hate eclipse so bady; as if android as a whole is any less frustrating. i guess you have to vent somewhere :/ Feb 02 22:04:44 g00s could you suggest some search terms? im coming up empty on the obvious Feb 02 22:04:47 uninstall, reinstall. make sure when you reinstall youre right clicking sdk manager and running as admin Feb 02 22:05:06 trinity: I have only one Account Feb 02 22:05:09 on my win7 Feb 02 22:05:13 keyreal: so did i Feb 02 22:05:35 keyreal: as a matter of fact that one account was the admin, but for some reason right click running did the trick Feb 02 22:05:38 sabton: are you using the compatibility/support library? Feb 02 22:05:39 sabton: http://code.google.com/p/android/issues/detail?id=20065 Feb 02 22:06:00 g00s: does this look familiar? http://stackoverflow.com/questions/9753213/wrong-fragment-in-viewpager-receives-oncontextitemselected-call Feb 02 22:06:05 could someone please explain what is a frame layout >_> the explanations are pretty vague Feb 02 22:06:05 napalm: yes Feb 02 22:06:08 also make sure you unplug your device at first, after the reinstall reboot, reconnect and follow the directions when the "found new drivers" pops up Feb 02 22:06:16 It wannts to restart Feb 02 22:06:24 sabton: http://code.google.com/p/android/issues/detail?id=19203 Feb 02 22:06:24 do it :) Feb 02 22:06:25 I restart Feb 02 22:06:39 sabton: right click on your project in eclipse and select Android>Add Support Library and it will update your support jar to the latest Feb 02 22:06:57 napalm: you're saying this is fixed in latest support libs? Feb 02 22:07:11 sabton: i suggest this because it might be fixed in the latest from the repo Feb 02 22:07:28 Napalm: cool thanks, i will try that Feb 02 22:07:37 g00s: thanks, this all seems relevant Feb 02 22:07:43 i will read up Feb 02 22:12:27 Key-Real: now follow this, http://developer.android.com/tools/extras/oem-usb.html#Win7 Feb 02 22:12:48 keyreal: i hope you didnt press automatically install or something like that yet haha, but not that it would matter Feb 02 22:13:48 I made it like in the maual your link point to Feb 02 22:14:08 key-real: try "adb devices" Feb 02 22:17:19 * daemon not running. starting it now on port 5037 * Feb 02 22:17:20 * daemon started successfully * Feb 02 22:17:20 List of devices attached Feb 02 22:17:20 01712634c94d85c4 device Feb 02 22:17:40 cool, now run eclipse and it should go smoothly :) Feb 02 22:17:55 run hallo world * Feb 02 22:19:37 LOAD "*",8,1 Feb 02 22:19:38 RUN Feb 02 22:19:58 &^%&£^%$^$%^ CASSETTE DATA CORRUPTED Feb 02 22:20:00 ;) Feb 02 22:21:57 trinity: I make run as-> android aplication , nothing hapens Feb 02 22:22:41 shoul I change something in the activity_mail.xml? Feb 02 22:23:38 change hallo world's run configurations to run manually Feb 02 22:23:41 and run again Feb 02 22:24:04 key-real: also is adt installed? Feb 02 22:24:12 adt? Feb 02 22:24:19 the plugin for eclipse Feb 02 22:24:41 is it not in the adt-bundle-windows-x86_64 bundle? Feb 02 22:25:27 how to change the configurations to run manualy? Feb 02 22:26:17 nvmd thats just the bundle Feb 02 22:26:25 im going to assume adt is already installed Feb 02 22:27:21 yeh, I have thouse to buttons and all the stuff to create an android project in eclipse Feb 02 22:28:20 key-real: http://vinothnat.blogspot.com/2007/11/launch-configuration-for-android.html Feb 02 22:31:43 Hi. I created an app for Android.16. Now I want to make it backward compatible to Android.10. I changed the SDK to Android.2.2.3 and now I get the following error: android-apt-compiler: [my-app] AndroidManifest.xml:26: error: No resource identifier found for attribute 'parentActivityName' in package 'android'. What could be wrong? Thank you Feb 02 22:32:29 you should not use parentActivityName then Feb 02 22:32:38 because it was introduced in api lvl 16 Feb 02 22:33:18 trinity: Great Succsess :) Feb 02 22:33:25 Anyone know of an easy guide to follow to convert a ListActivity to ListFragment + FragmentActivity? Feb 02 22:33:44 key-real: great, grats on getting started on android :) Feb 02 22:34:06 MartinCz: that answer was meant to you Feb 02 22:34:18 I have a massive ListActivity and I'm trying to support 2.2 and 2.3, so I need to use some support classes and it's a bit foreign to me Feb 02 22:34:39 trinity: what is Auto Monitor Logcat? Feb 02 22:36:59 key-real: http://developer.android.com/training/index.html Feb 02 22:37:10 key-real: and, http://www.amazon.com/Beginning-Android-4-Apress/dp/1430239840/ref=sr_1_2?ie=UTF8&qid=1359844614&sr=8-2&keywords=beginning+android Feb 02 22:37:49 mbarisa: So which SDK version should I build agains? my target is 16 but want to go backward to 10. Feb 02 22:38:05 is it possible get radio buttons to scale? Feb 02 22:38:22 MartinCz: so do as mbarisa said, remove parentActivityName then if you want to go backwards to 10 Feb 02 22:39:00 ok :) but what do i do with this? Feb 02 22:39:01 android-apt-compiler: [bmi-calc] D:\intellij_projects\bmi-calc\AndroidManifest.xml:50: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize'). Feb 02 22:39:10 i would have to remove the last two Feb 02 22:39:20 but i want them to be there for android.16 devices Feb 02 22:39:23 MartinCz: another backwards compatability error lol Feb 02 22:41:46 trinity: thx :) Feb 02 22:43:12 hey, can someone help me regarding getting a 2nd screen up [w/ a couple of text boxes + a button]? Feb 02 22:43:12 https://github.com/civilordergone/sierpinski Feb 02 22:43:18 right now that program just outputs the sierpinski triangle Feb 02 22:43:40 hi folks , im looking to set up my own internal site similar to android market and app but wondered if there was already and opensource version out there Feb 02 22:45:24 trinity: ok so I saw somewhere that for example parentActivity was defned both using android:parentActivityName and with meta-data. But this does not compile. So should I use android.16 sdk for build and just make sure to use the support package? Feb 02 22:55:28 martincz: i wouldn't know never dabbled with support sdk. From what i know in most android projects you should use highest api build and declare in manifest the sdk level you wish to support (compatability) Feb 02 23:00:35 MartinCz: Which SDK do you build against? Feb 02 23:00:51 As defined in project.properties Feb 02 23:02:23 Also, is this about AdMob? Feb 02 23:10:11 someone kenws something about the OUYA? how to compile a sample out of the ODK with eclipse? Feb 02 23:13:14 I do a bit of LAMP stuff, all hand-coded using Perl, and want to move to android apps, and have a few stupid questions, I guess Feb 02 23:13:23 is HTML5 a valid path for me? Feb 02 23:13:42 mmlj4: if you want to piss off people who use the app, yes Feb 02 23:13:57 (at least those that don't have awesome phones) Feb 02 23:13:58 I can live with that :-) Feb 02 23:14:07 seriously, what are the problems? Feb 02 23:14:38 besides slow on older hardware, I mean Feb 02 23:15:02 mmlj4: in my experience? It was a) slow b) (worse than (a)) does not mesh with the rest of the system, from looks through navigation to integration with services Feb 02 23:15:31 SimonVT: are you still there? Feb 02 23:15:52 ok, I'll investigate Feb 02 23:16:12 what about packaging my HTML5 app so it can get into the play store? Feb 02 23:16:38 easy peasy Feb 02 23:16:53 lemme take a stab, you tell me how off I am Feb 02 23:17:21 you can use something like PhoneGap and similar, which basically give you scaffolding that runs a web view with your app and stuff, and pack it in APK file that can be installed Feb 02 23:17:36 code an app that just launches webview, or another browser? Feb 02 23:17:40 mmlj4, try Facebook (Messenger) (uses PhoneGap?) on Gen2 devices like the Motorola Milestone. It is unusable fast. Feb 02 23:18:09 phonegap ain't free, or not really, right? Feb 02 23:18:41 dunno about facebook, about the only app that looks html5-isy that I liked was my network's management tool, which didn't look like *any* UI thus avoiding crappy "iPhone UI in my Android" Feb 02 23:18:44 but this can be done without phonegap? Feb 02 23:18:47 mmlj4: it's technically free Feb 02 23:19:26 mmlj4: PhoneGap gives you premade parts. Without it, you'd have to learn enough about the native programming that you might end up writing it all native :) Feb 02 23:19:38 SimonVT: Are you still there? Is there actually one example that uses different views for each menu item and not changing the text in one? Feb 02 23:20:08 :D i created that with fragments Feb 02 23:20:18 hmm Feb 02 23:20:26 but how to make work that menu arrow Feb 02 23:20:27 I'd love to see that Feb 02 23:20:33 to be on right side.. Feb 02 23:20:37 do you have that working? Feb 02 23:20:48 mmlj4, just use a WebView and you are good to go for simple apps (without using services and hardware features). But please do do not use much HTML5/JS magic. Feb 02 23:20:56 hrm? phonegap leads me to apache cordoba? Feb 02 23:21:00 i dont see it at all Feb 02 23:21:19 hi :) Feb 02 23:21:20 and i have this code: Feb 02 23:21:36 afk Feb 02 23:21:36 sorry for copying directly here.. but it is 4 lines :) Feb 02 23:24:16 what is that code for? Feb 02 23:25:53 for menu_arrow.. i dont know how to make it work.. and show which one is active Feb 02 23:26:14 ah okay Feb 02 23:26:33 what about that Feb 02 23:26:38 Hmm, how do I know if a POST request I sent completed on the server? I guess the client knows because of the response code, how does the server know? Feb 02 23:26:46 setActiveView() mbarisa ? Feb 02 23:27:05 setActiveView Feb 02 23:27:08 yeah i found it now Feb 02 23:27:21 fragments? Feb 02 23:27:28 on the MenuDrawer Feb 02 23:27:29 read up a bit on them.. it is rly easy Feb 02 23:28:05 I can't read up "a bit" it's like 10 pages if I printed it. My attention span is too short for that. Feb 02 23:29:55 :D hahahah Feb 02 23:30:03 ok marrrk did you made work that arrow? Feb 02 23:30:24 I don't know why it wouldn't work. It works in the examples. Feb 02 23:30:26 for me it does not want to work.. maybe because i have some background image on every imem Feb 02 23:30:37 yeah Feb 02 23:30:44 But I can't put my finger on what command does it. Feb 02 23:30:45 but i'm trying to write myself.. and i dont see it.. Feb 02 23:30:56 I'd guess the one that I just told you about. Feb 02 23:31:32 i guess that too but i dont see nothing happenin Feb 02 23:31:45 that is sad :( Feb 02 23:32:54 Well I can try by commenting stuff out and seeing where it fails Feb 02 23:33:59 I think the variable is mActivePosition Feb 02 23:34:07 I don't know which functions manipulate it Feb 02 23:34:57 mMenuDrawer.setActiveView(v); Feb 02 23:34:57 FragmentManager fragmentManager = getSupportFragmentManager(); Feb 02 23:34:57 FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); Feb 02 23:35:00 Fragment inboxFragment = new InboxFragment(); Feb 02 23:35:03 Feb 02 23:35:05  Feb 02 23:35:12 set active view should do it.. Feb 02 23:35:23 fragmentManager Feb 02 23:35:26 man that seems hard Feb 02 23:35:38 I think setActiveView handles it Feb 02 23:35:38 it is not actually Feb 02 23:35:52 you create fragment and tell it to replace some view Feb 02 23:36:03 layout or such.. it is rly not hard Feb 02 23:36:45 now that I'm testing it I don't have an arrow anymore Feb 02 23:36:57 well why do you need a manager than? for caching? Feb 02 23:37:22 hey all, i have a website that works on mobile which I want to frame in an app (For the sake of having an app store presence) - is there a simple way of doing this? I was looking at phonegap but it still looks like i have to build and maintain (admittedly small) code bases for each mobile OS myself, does anyone know of an easier way? Feb 02 23:38:03 hi where to find android 2.2 image? in SDK manager Feb 02 23:38:09 under 2.2 there is no System image Feb 02 23:38:18 just SDK Platform, samples and google api Feb 02 23:38:51 stupid arrow! Feb 02 23:39:22 alright I commented it out and back in again Feb 02 23:39:31 and the arrow depends on setActiveView Feb 02 23:39:45 are you sure you have the drawable for the arrow? Feb 02 23:41:47 yea Feb 02 23:42:08 oh but it is svg Feb 02 23:42:35 used the one from art Feb 02 23:43:20 I think for that you need some support library Feb 02 23:43:54 yeah i changed with png and still dont see it :D Feb 02 23:44:34 you have to be sure it's found because it might not throw an error Feb 02 23:49:47 it is found Feb 02 23:49:50 i dont get error Feb 02 23:49:52 just dont see it Feb 02 23:50:37 let me check something Feb 02 23:51:18 nothing Feb 02 23:51:18 is it possible to set drawable paddings in code for a button? I can't find such under the button in code, it's there in layout Feb 02 23:51:32 mbarisa Feb 02 23:51:46 with what function do you set the fragment? Feb 02 23:52:03 how do you get it into the menu drawer? Feb 02 23:53:05 Fragment inboxFragment = new InboxFragment(); fragmentTransaction.replace(R.id.content, inboxFragment); fragmentTransaction.commit(); Feb 02 23:53:46 damn arrowwww appear! Feb 02 23:54:00 but none of that Feb 02 23:54:08 has anything to do with the menu drawer Feb 02 23:54:16 or is it Feb 02 23:54:20 R.id.content? Feb 02 23:55:12 you have your main activity Feb 02 23:55:34 and you wanna change its content through fragments Feb 02 23:56:02 yes Feb 02 23:56:04 so, that main activity has some linear layout that is fill parent fill parent.. Feb 02 23:56:19 and i called it content Feb 02 23:56:34 and with replace(R.id.content, inboxFragment) Feb 02 23:56:54 it changes content that is there with fragment(that is kind of small activity) Feb 02 23:57:17 and fragment can call getActivity() so you can do stuff on your activity.. with a lot of fragments.. Feb 02 23:57:40 and MainActivity extends FragmentActivity not Activity Feb 02 23:58:03 did you manage to get that arrow working? :D Feb 02 23:58:17 I see I suppose Feb 02 23:58:29 yeah I do see Feb 02 23:58:36 you're right it doesn't seem too complicated Feb 02 23:59:01 it rly is not, ok on what code are you looking Feb 02 23:59:21 https://github.com/SimonVT/android-menudrawer/blob/dev/samples/src/net/simonvt/menudrawer/samples/WindowSample.java Feb 02 23:59:24 this class? Feb 03 00:01:23 try the content sample Feb 03 00:06:14 same thing is there.. Feb 03 00:06:23 it is not the problem in code.. just not appearing :D Feb 03 00:06:26 what? Feb 03 00:06:28 not working? Feb 03 00:06:38 you see it when you open it again Feb 03 00:06:42 you see what it's pointing at Feb 03 00:08:45 i made it different myself :D Feb 03 00:09:01 works fine :) Feb 03 00:09:37 would you send me your code or is it confidential? Feb 03 00:09:49 np Feb 03 00:10:04 but i changed only to not animate, and to set it selected Feb 03 00:10:08 it does the thing i wanted Feb 03 00:10:58 public void setActiveView(View v, int position) { Feb 03 00:10:58 final View oldView = mActiveView; Feb 03 00:10:58 mActiveView = v; Feb 03 00:10:58 mActiveView.setSelected(true); Feb 03 00:10:58 if (oldView != null) { Feb 03 00:11:01 oldView.setSelected(false); Feb 03 00:11:03 } Feb 03 00:11:06 invalidate(); Feb 03 00:11:08 } Feb 03 00:11:16 MenuDrawer class Feb 03 00:11:38 actually I meant everything Feb 03 00:12:10 oh that is confidential for now :) sorry.. but i can help you make it work.. Feb 03 00:12:22 It's just that I will have to go to bed now Feb 03 00:12:37 i'm here all the time, always same nick.. every day Feb 03 00:12:59 and i dont go offline, leave it here.. so send me private message tomorrow.. and we can continue our adventure :P Feb 03 00:13:43 ok Feb 03 00:13:49 so I'll leave for today Feb 03 00:13:51 good night Feb 03 00:13:59 good night mate Feb 03 00:16:47 mbarisa pastebin Feb 03 00:17:10 has anyone encountered: syntax error on token "1", delete this token in R.java file when added a resource starting with 1_ Feb 03 00:17:30 I can't solve it, if I delete the image I get tons of errors, if I delete the row in R.java I get tons of errors Feb 03 00:17:34 jug6ernaut: yeah i know, didnt want to bother for 6 lines Feb 03 00:17:50 MelvinKelvin: you can't start it with 1 Feb 03 00:17:53 u should bother :) Feb 03 00:18:00 MelvinKelvin: it has to be a valid member name Feb 03 00:18:04 MelvinKelvin: did you try to clean project Feb 03 00:18:16 MelvinKelvin: you can start it with a-zA-Z_ Feb 03 00:20:04 jug6ernaut: ok, i am sorry! it would not happen again soon! :P Feb 03 00:20:52 guys how can i get bitmap from .png saved in drawables? this code doesnt work: Bitmap Image = BitmapFactory.decodeFile("image.png"); Feb 03 00:23:07 lol Feb 03 00:23:56 zinx: yeah but I cannot regret the insert :/ Feb 03 00:24:03 mbarisa: yes, several times Feb 03 00:24:21 MetalGuru: ? Feb 03 00:24:37 you wanna save it in drawable folder? Feb 03 00:24:47 MetalGuru: You'll have to load it as a resource. Feb 03 00:25:00 nope, just load it Feb 03 00:25:05 ok, thanks bryanl Feb 03 00:25:12 oh ok! :) Feb 03 00:25:54 more like... context.getResources().getDrawable(R.drawable.your_png) Feb 03 00:26:24 oh ok, thanks :) Feb 03 00:28:13 but problem is i cant use it with bitmapfactory Feb 03 00:28:26 there´s no getResources for BitmapFactory Feb 03 00:29:33 oh, this works Feb 03 00:29:34 BitmapFactory.decodeResource(getResources(), R.drawable.image); Feb 03 00:29:41 :) Feb 03 00:30:17 MetalGuru: yes, that's what I was going to suggest next Feb 03 00:30:29 :) Feb 03 00:32:20 oh my god :D Feb 03 00:32:31 im trying to figure out why is my scaledBitmap somehow weird Feb 03 00:32:37 and i swapped width with height... Feb 03 00:49:20 has anyone had success with a native project in eclipse resolving headers? Feb 03 01:04:23 Megatron03, yes Feb 03 01:12:44 uh oh http://techcrunch.com/2013/02/02/creator-of-the-x-plane-flight-simulator-seeks-help-fighting-a-patent-troll/ Feb 03 01:14:06 hopefully google helps out Feb 03 01:15:18 ug, it says they wont Feb 03 01:31:52 shrug, he can just change his code or buy a license Feb 03 01:32:45 Seems pretty broad Feb 03 01:32:47 why? its a google API Feb 03 01:33:44 I don't see how this is different from e.g. windows activation Feb 03 01:38:57 guys why isnt gravity working in horizontal relativelayout? Feb 03 01:39:23 or at least not for me :D Feb 03 01:40:26 pragma-: buying a licence can cost as much as they choose to demand. Feb 03 01:40:49 changing his code does not defend against the prior damages claim Feb 03 01:41:09 i think the part about it that gets me the most upset; is that google is not helping and they are using a google api Feb 03 01:41:09 he simply used published android APIs Feb 03 01:49:43 so why aren't they suing google, then? Feb 03 01:50:13 Because google got more money Feb 03 01:50:18 :) Feb 03 01:50:33 And more lawyers Feb 03 01:50:37 then they'd get more money if they win! Feb 03 01:51:01 pragma-: try it, and let us know how it goes :) Feb 03 01:51:42 I'd imagine it'd be a lot more expensive, and harder, to sue a company of googles size Feb 03 01:51:45 it's not in google's best interest if the flight simulator guy loses Feb 03 01:52:35 folks Feb 03 01:52:48 I have a question plz Feb 03 01:52:53 I don't know what is wrong Feb 03 01:53:03 how can an app..that is backgrounded...not fire resume? Feb 03 01:53:34 anyone plz help me Feb 03 01:54:04 in other news, I discovered you can mount a linux.img on a loop device in android and chroot it and you can have a full linux shell (and even X) side-by-side with android Feb 03 01:54:27 even using apt-get to install anything Feb 03 01:57:11 anyone? Feb 03 02:09:10 we did the install with the apk Feb 03 02:09:12 it doesn't work Feb 03 02:09:22 the android project seems to work Feb 03 02:57:38 pragma-: sweet Feb 03 02:58:44 deanclkclk: Your app is in the background, you bring it back to the foreground and the visible activities/fragments @Override public void onResume() {} is not getting called? Feb 03 02:59:20 kakazza: ...it's a phonegap project Feb 03 02:59:39 I have a document.addEventListener("resume") **** ENDING LOGGING AT Sun Feb 03 02:59:59 2013