**** BEGIN LOGGING AT Sun May 27 02:59:59 2012 May 27 03:00:52 freakin' awesome. my page reader activity is finally working the way i want it to May 27 03:06:46 leslie not so much, all its purpose is; is to open up the default android browser to the member login May 27 03:07:29 so just a shortcut? you can use an intent for that May 27 03:07:36 so no one knows about setCaptureSize() called in wrong state: 2?? May 27 03:08:12 leslie ok great, i'll do a bit of reading on it. May 27 03:08:21 yes just a shortcut May 27 03:08:33 I'll write something up, gimme a sec May 27 03:10:34 leslie wow mate thank you, dont expect any more time than what you have given me.. May 27 03:10:39 Reecieboy: http://pastebin.com/G2MZ7Rj3 something like that May 27 03:11:06 lol, too easy May 27 03:11:32 was about to ask you java's shellexecute() equivelant = Intent ;) May 27 03:11:33 <3 May 27 03:11:39 np :) May 27 03:12:14 Intents are used quite extensively in Android May 27 03:12:19 like for sharing May 27 03:16:37 is there a way, outside of onCreateOptionsMenu, to "hide" a menu option May 27 03:17:56 in my 'reader' app, i want to either have an 'add bookmark' or 'clear bookmark' option depending on whether the bookmark exists already. and that can change while the activity is running (e.g. if they 'add bookmark' it switches the option to 'clear bookmark') May 27 03:18:36 could you modify it in onPrepareOptionsMenu ? May 27 03:18:41 figure the easiest way to do this, if possible, is to have both created as part of onCreateOptionsMenu and show/hide May 27 03:18:47 wait, I don't think that works with the action bar. hmm May 27 03:19:14 basically, to change the content of the options menu during activity runtime May 27 03:20:24 I think it'd be different depending on the version of android you're targeting May 27 03:20:35 "If you want to modify the options menu based on events that occur during the activity lifecycle, you can do so in the onPrepareOptionsMenu() method." May 27 03:20:41 you were right :) May 27 03:21:03 yes, but it changes when you have an actionbar May 27 03:21:13 so I'm unsure if it'd do what you want it to May 27 03:21:30 I'm trying to decode an image from the resources but for some odd reason it doubles the images size. I've looked through the BitmapFactory.Options docs but haven't found anything useful. Any ideas? May 27 03:21:42 "On Android 3.0 and higher, the options menu is considered to always be open when menu items are presented in the action bar. When an event occurs and you want to perform a menu update, you must call invalidateOptionsMenu() to request that the system call onPrepareOptionsMenu()." May 27 03:21:42 without an actionbar, it gets called just before the menu is shown (when the user presses the menu button). with an actionbar, it gets called when the activity is created May 27 03:21:51 right, exactly May 27 03:22:06 so i should just be able to call invalidateOptionsMenu May 27 03:22:11 sounds good May 27 03:22:13 and "reprepare" May 27 03:22:19 i'll give it a try... best way to find out, eh? May 27 03:23:18 as they "turn pages" in the reader activity, there may or may not be a bookmark on the new page, that's why i'm doing this May 27 03:23:22 Taar779: it's probably adjusting for DPI differences May 27 03:23:51 leslie, what is the default DPI for android? May 27 03:23:55 160 May 27 03:24:59 doesn't that depend on the device? May 27 03:25:30 no, the default is always 160, MDPI. other devices are defined as multiples of this May 27 03:25:35 so HDPI is 1.5 May 27 03:26:08 ok, i get it May 27 03:26:12 id be very hesitant to use the word "default" there May 27 03:26:18 160 was the FIRST android device May 27 03:26:25 im not sure i'd call it the default May 27 03:26:33 maybe "baseline" is a better word May 27 03:26:41 if you create a folder called drawable without m/h/ldpi, it assumes 160 May 27 03:26:52 but that's for backward compatibility May 27 03:26:57 my tablet is 1.33 May 27 03:27:09 is that mdpi or hdpi? ;) May 27 03:27:19 b1n0ry: they're separated into groups May 27 03:27:32 ldpi, mdpi, hdpi or xhdpi May 27 03:27:40 and tv May 27 03:27:44 ah yes May 27 03:27:47 ...interestingly, that's what my tablet is May 27 03:28:05 frankentablet May 27 03:28:14 strange. what tablet it is? May 27 03:28:20 zte optik May 27 03:28:32 * leslie googles May 27 03:28:53 looks cool May 27 03:29:04 changing the images from 72DPI to 160DPI didn't help but actally placing it in the drawable-hdpi folder did May 27 03:29:18 i dont think you understand May 27 03:29:20 it's not bad. i got it for free May 27 03:29:26 so i won't complain May 27 03:29:50 free is an interesting term May 27 03:29:57 lioke last year i got a galaxy tab 10.1 for free May 27 03:29:58 I have a Galaxy Tab 10.1 May 27 03:30:00 but I rarely use it May 27 03:30:00 i jsut had to buy a conference ticket May 27 03:30:02 and a hotel May 27 03:30:04 and a flight May 27 03:30:13 this was truely free May 27 03:30:24 what's IO like? May 27 03:30:30 best conference ever May 27 03:30:35 i work for a company that gets demo units from vendors all the time - they want us to switch to their device/service/etc. May 27 03:30:48 nice :) I tried to get tickets this year, but it sold out pretty quikc May 27 03:30:56 rarely do we ever actually buy/use their device/service but they tell us to keep the device, so they go in a drawer or whatnot. May 27 03:30:58 plus I'm 5,000 miles away from the venue. but still May 27 03:31:07 then they had a contest where every entrant got the opportunity to buy a ticket ;) May 27 03:31:19 yeah, I saw those May 27 03:31:33 wait, every entrant? May 27 03:31:37 not just a few? May 27 03:32:16 they fucked it up so everyone got one :) May 27 03:32:19 i gave mine to JakeWharton May 27 03:32:22 oh, didn't know May 27 03:32:30 i had a friend who got a code, and he let it expire ~_~ May 27 03:32:32 want to win a lot of free stuff at a tradeshow? make up business cards that say "President" as your job title and drop them into their "random" contest/drawing things May 27 03:32:40 lol May 27 03:33:09 i can usually tlak my way into stuff May 27 03:33:12 got an ipad and a $100 visa gift card two years ago doing that May 27 03:33:21 sold the ipad May 27 03:33:25 (not an apple fan) May 27 03:33:50 also managed to get invited to several parties that way, too... vendors throwing bashes trying to make business contacts May 27 03:34:08 free food/open bar at emril lagasse's restaurant in vegas was pretty nice May 27 03:34:46 yea last year at IO i went to a couple of those parties May 27 03:34:52 samsung's was nice May 27 03:35:00 spent another free night at some nightclub that had hallways full of modelesque women taking baths in flower petals... May 27 03:35:00 cant remember the shitty one May 27 03:35:02 but it was shitty May 27 03:36:12 and another night got invited to a private dinner at a $200+/plate restaurant... sat next to robin leach May 27 03:36:41 big plates, I hope? May 27 03:36:48 heh, i wish May 27 03:36:53 hi guys, anyone have any experience with EnvironmentalReverb? May 27 03:37:06 no, they weren't bad, though. i got a surf and turf. filet mignon and rock lobster May 27 03:37:24 and weird saki shooters with raw oysters in them May 27 03:37:30 ah, so a fancy surf 'n' turf May 27 03:37:30 they were... odd May 27 03:37:38 here it's just scampi and steak May 27 03:37:55 for $200, it better be friggin' fancy May 27 03:38:05 yeah :p May 27 03:38:17 place was called the aquaknox in the venetian, las vegas May 27 03:38:57 then got a private concert from paul mccartney May 27 03:39:06 that was pretty slick May 27 03:39:37 oh yeah... i'm going there again this year. i leave a week from tomorrow. May 27 03:39:52 gotta take my 'president' business cards May 27 03:40:35 have fun May 27 03:40:42 I'll be in Seattle next week May 27 03:41:49 been to seattle, very nice city May 27 03:42:01 except the walking on the hills... lol May 27 03:42:08 there on business? May 27 03:43:32 nope. just for fun May 27 03:43:41 I'm a student, we get four months off for summer May 27 03:43:43 awesome, been there before? May 27 03:43:48 yup May 27 03:44:29 hopefully I won't get held up in customs for 3 hours like last time May 27 03:44:33 seattle is a beautiful area. May 27 03:44:43 they must think I'm only there to steal their wonderful socialised healthcare or something May 27 03:45:09 (I live in the UK, for the record) May 27 03:45:10 i stay at the sorrento when i'm there. May 27 03:45:24 socialized healthcare? in the US? not yet ;) May 27 03:45:31 that was my point ;) May 27 03:45:37 hopefully that gets shot down in the supreme court May 27 03:45:43 why's that? May 27 03:45:55 prescedent because of the way they wrote it. May 27 03:46:00 ahh May 27 03:46:11 it's not a nationalized single-payer system like the UK and Canada May 27 03:46:23 explain? May 27 03:46:34 basically, it forces people to pick and choose from private health insurers and maintain minimum coverage rather than having a single, government sponsored plan May 27 03:46:47 ah, strange May 27 03:47:11 which means that, if passed, it grants government the permission to mandate that citizens buy a commercial product as a condition for citizenship May 27 03:47:36 and they want us to believe that it will -only- be exercised "just this once" for health care coverage May 27 03:47:41 and the people who can't afford it? May 27 03:48:06 depends on your definition of "can't afford" - if they are within federal poverty guidelines, they get a subsidy May 27 03:48:24 although there are people at 2 or 3 times the federal poverty level that "can't afford" it. and being unemployed is no excuse. May 27 03:48:53 being unemployed is no excuse? May 27 03:49:10 2.1 is the best SDK to use correct? May 27 03:49:11 exactly. unemployed or not, you must carry and (possibly) pay for health insurance May 27 03:49:21 Reecieboy, define "best" May 27 03:49:31 Reecieboy: use the latest one, target 2.2 May 27 03:49:53 well compatability, i want this one app to work on hopefully 99.9% of android devices. May 27 03:50:32 is it the app you specified before? because that'll work on anything May 27 03:50:32 leslie, suppose i have a job that pays $90,000 USD per year. but i lose my job in march. well, i just made enough to cross federal poverty guidelines. and if i can't find a job into the next year... i still get to pay for my health insurance for the next 9 months without a job. May 27 03:50:39 like 1.5+ May 27 03:50:53 leslie yes and thank you May 27 03:51:40 leslie, and, if i have been "used" to having a job that pays $90,000 per year, i probably still have a decent mortgage and car payments and other expenses to pay that someone who is normally within poverty guidelines wouldn't have. May 27 03:52:08 that would be your fault for bad financial planning May 27 03:52:10 so... it needs a big overhaul/rewrite. so i hope it gets shot down. May 27 03:52:25 anyway just make an app May 27 03:52:35 you can be a billionaire! May 27 03:52:37 readme, millions of people in the country are one paycheck away from homeless. May 27 03:52:44 sure, if i make the next drawsomething ;) May 27 03:52:52 and then i don't have to worry about it May 27 03:54:18 those people should make apps! you can get rich, with apps! May 27 03:54:41 what's the % of apps that hit the market that even surpass 100 downloads? probably not high, lol. May 27 03:55:56 if they cant make apps, they can start a meth lab. May 27 03:56:07 some probably will, haha May 27 03:56:32 our neighbor is starting a taco truck... kinda the same thing. May 27 03:56:51 that is a good idea May 27 03:57:09 i have thought about buying stuff like that May 27 03:57:30 they painted it today. i think he's trying to get it inspected sometime next week so he can get it open within the next couple of weeks. May 27 03:57:47 should be a good business. May 27 03:58:13 he should use square to accept payments May 27 03:58:30 i have a good friend that owns a .com called "Hungerly.com" that works with food truck and street vendors - coordinates locations, etc. they have mobile apps that help you find where street vendors are and such. pretty slick. May 27 03:58:35 and get one of those pos programs from the market and run on a cheap tablet May 27 03:58:59 oh cool May 27 03:59:59 he's working with a pizza truck company called "late night slice" that has pizza trucks on college campuses that park on bar strips with hours like 10:00 PM to 4:00 AM May 27 04:00:59 what city May 27 04:01:14 through his advertising, that company is now expanding to more campuses. and he's got many other vendors he's working with as well. was a really neat idea. he's working on funding another company now that is also a social-media meets real-world kind of company. May 27 04:01:23 they're primarily in columbus, ohio now (ohio state campus) May 27 04:02:45 for the sake of being newbie, should i just put all images in "drawable" instead of having the proceeding -hdpi May 27 04:03:18 also, what px width/height should i use for a static background of an app. May 27 04:03:19 Reecieboy: have more than one version May 27 04:04:00 get imagemagick and resize all at once with mogrify May 27 04:07:32 commandline -.- May 27 04:08:05 say im using photoshop.... May 27 04:08:22 i'm using photoshop May 27 04:08:52 nice.. word play.. May 27 04:09:07 lol ill try to figure it out.. May 27 04:09:33 ideally you should have one drawable for each of ldpi/mdpi/hdpi/xhdpi. but if you're just learning and don't want to bother with all that crap, stick them in drawable May 27 04:10:49 suppose you do l, m and h but not x, will x-systems use h? May 27 04:10:58 yep May 27 04:11:01 i dont mind, i just wanted to know what width, height and resolution May 27 04:11:21 so they will 'fall back' to the highest-supported-available image for that particular display May 27 04:11:30 for just l m and h May 27 04:11:33 ? May 27 04:11:51 i suspected that behavior May 27 04:11:53 Reecieboy: it varies depending on the device May 27 04:12:23 I can't give you a background size, because different devices have different screen sizes May 27 04:12:44 i just want to acheive a static fullscreen background image, so for that do i need to create one for each resolution May 27 04:13:01 and as b1n0ry said the highest is supported. May 27 04:13:05 depends on what you want as the background. you can get creative May 27 04:13:15 ill show u sec. May 27 04:13:34 technically you could just make a single image, stick it in 'drawable' and it will scale. May 27 04:14:12 although, might be a bit 'fuzzy' on higher resolution devices May 27 04:14:55 you can create a drawable that'd scale without pixellation in xml. but I haven't quite figured out how all that stuff works yet May 27 04:15:49 plants vs zombies was built with ldpi only, i think. run it on anything bigger than a cell phone and it's fuzzy/pixelated. May 27 04:16:24 yet still manages to be a very popular app May 27 04:16:26 I don't have access to the Android version May 27 04:16:45 it's only on the amazon app store I think. and that's US only May 27 04:16:51 i play it on my 7" tablet May 27 04:16:57 ahh May 27 04:17:03 and it's a bit fuzzy, not too noticible but enough May 27 04:17:29 enough to know there aren't platform scaled images ;) May 27 04:18:14 alright, i got my haircut today (close shave) and the micro hairs are getting a bit itchy... so i'm heading to the shower, catch ya'll later! May 27 04:19:17 http://clip2net.com/s/1XSY6 May 27 04:20:01 ill probably do as b1n0ry|warshin just said. May 27 04:20:03 so the background image would be what, the logo? May 27 04:20:54 yeah and some fancy gradients on it. May 27 04:21:31 for simplicity, yeah, just create one and let it scale. but technically there are better ways May 27 04:22:05 http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape for example May 27 04:25:21 http://clip2net.com/s/1XSZq May 27 04:25:27 had to show you that.. first one was embarrassing May 27 04:26:06 ooh, fancy May 27 04:26:43 probably split it into two resources. May 27 04:26:50 right, bedtime for me I think May 27 04:26:58 allow for the logo to move if needs. May 27 04:27:05 needed* May 27 04:27:15 ok thanks for all your help, your a "dime a dozen" May 27 04:27:23 any time :) night May 27 04:33:26 nite leslie May 27 05:16:46 hello anyone awake? May 27 05:17:58 I'm here May 27 05:22:55 Zacharias3690, are you any good with android themeing? May 27 05:23:08 what do you mean? May 27 05:23:37 its with AOSP Mms and making the threads backgrounds transparent May 27 05:24:22 is it possible to put a textview into the little strip with the app_name in the default ics theme? May 27 05:24:27 at the top of the screen May 27 05:25:14 I have an app with Action Bar tabs, which set the view to three different fragments I have. In said fragments, onStart() and onResume() seem to cause the app to crash. Here's the fragment in question: http://goo.gl/qMQz7 Does anyone know what's going on or how to fix it? May 27 05:25:41 Seanmc98, no, sorry, no experience with that :/ May 27 05:26:00 :-/ wel thank you anyway Zacharias3690 May 27 05:26:03 Seanmc98, how is the background color chosen? May 27 05:26:13 tnzr, do you mean the grey bar at the top that just has your app name? May 27 05:26:50 Seanmc98, if it's a color resource, go find it in the colors.xml and edit it to what you want May 27 05:27:52 cr5315, you can choose via black or white color, however the ROM im running has a cool background that shows when your in settings and such, and i enabled that to show when your in one thread, but i cant figure out how to enable it when your at the main screen May 27 05:28:32 Zacharias3690: well in Honeycomb (sorry, not ics), with no layout and a GLSurfaceView (and with a default layout) theres a black strip along the top (horizontal) with the app name and the launcher icon in the top left May 27 05:28:52 The action bar May 27 05:29:02 I was hoping maybe I could find that and throw a textview into it with some info May 27 05:29:56 tnzr: here's the dev page for it: http://developer.android.com/guide/topics/ui/actionbar.html May 27 05:30:07 tnzr, not sure but this might help: http://stackoverflow.com/questions/8325607/can-we-have-an-edit-text-as-a-menu-item-in-android-3-0-honeycomb May 27 05:31:22 tnzr: near the bottom, it looks like you can edit the text there, check under action items May 27 05:32:00 Zacharias3690: well hmm May 27 05:32:51 i feel like I know what the action bar is but I didnt think this was one but honestly I'm not sure hehe May 27 05:33:10 ive seen it in ICS too on a new project when you ahven't added anything yet May 27 05:33:53 so that's considered the action bar in honeycomb? May 27 05:34:32 i wannt say it wasnt there hwen I actually had a layout (but I removed my layout because i'm just using a GLSurfaceView) May 27 05:34:40 i should probably test that, brb May 27 05:53:21 leslie not still there are you o.O May 27 06:00:30 I'm having an "unexpected error" when i run my app.. it only started happening once i added the button onClick handler. May 27 06:00:31 http://pastebin.com/VW34TXpi May 27 06:00:39 can anyone please point me in the right direction May 27 06:04:29 cause we're all cool people in here :D May 27 06:04:39 paste the error May 27 06:06:23 sec May 27 06:06:59 http://clip2net.com/s/1XTvB May 27 06:12:49 @ JakeWharton :) May 27 06:15:38 Reecieboy: what does logcat say? May 27 06:22:56 ..11 more??. level E May 27 06:23:04 dont know how to use it May 27 06:24:58 Zacharias3690 May 27 06:25:18 Reecieboy: copy the whole thing and put it on pastebin May 27 06:25:23 it's time you learned :) May 27 06:28:38 copy the log? May 27 06:28:43 05-27 16:27:48.723: E/AndroidRuntime(704): ... 11 more May 27 06:28:54 thats all save log produced May 27 06:29:58 Reecieboy: are you working in eclipse? May 27 06:30:01 yes sir. May 27 06:30:28 http://clip2net.com/s/1XTFZ May 27 06:30:58 oh "All Messages" May 27 06:34:19 when your program crashes, logcat sends out a trace to the problem, there should be at least 10 lines that are red directing you to the error of your problem May 27 06:39:24 05-27 16:37:37.943: E/AndroidRuntime(813): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.webportal.qtc/com.webportal.qtc.QTCWebShortcutActivity}: java.lang.ClassCastException: android.widget.ImageButton May 27 06:40:40 Reecieboy: looks like you casted an ImageButton as a regular Button May 27 06:40:53 Zacharias3690 that the line im looking for? the other red ones look irrelevant May 27 06:41:24 Reecieboy: it all depends, sometimes I'll find the error 3/4 of the way down, sometimes It'll be the first line May 27 06:41:54 Reecieboy: what I do is look for the line that seems most relevant to my code, and look for the issue there May 27 06:42:52 Zacharias3690 ImageButton looks fine to me, there is only one button ill pastebin it May 27 06:43:42 Zacharias3690: http://pastebin.com/nUskCrJE May 27 06:43:47 when you casted (Button)findViewById(R.id.loginbtn) it should be casted as (ImageButton) May 27 06:43:57 ohhh May 27 06:44:00 nice. May 27 06:45:03 haha working, thanks Zacharias3690 May 27 06:45:12 Reecieboy: no problem :) May 27 06:45:12 ur time is greatly appreciated May 27 06:57:49 Zacharias3690 is there anyway to rename a project? May 27 06:57:55 the app specifically. May 27 06:58:34 Reecieboy: ya, right click the project name and go to refactor>rename May 27 06:59:15 it'll change all the necessary info (not sure about everything for projects) but you can do the same thing with any variable or method in eclipse as well, really handy tool May 27 07:03:20 cheers once again May 27 07:08:05 Zacharias3690 also, just after a point in the proper direction, on my app i have a phone number, when people "tap" the number i want it to goto the dialer, how would i go about that May 27 07:08:36 Reecieboy: do you know how to parse? May 27 07:13:56 Zacharias3690 not really, i come from a webdesigner background PHP/MySQL etc.. May 27 07:14:06 I'm only doing this for my companies website. May 27 07:15:39 programming language trends: http://www.drdobbs.com/mobile/232400093 May 27 07:16:33 Reecieboy: check this out first, maybe there's an easier way than parsing May 27 07:16:34 http://stackoverflow.com/questions/6972397/open-dialers-from-my-application May 27 07:17:49 Reecieboy: if there's not a different way, parsing is basically pulling text, checking for a certain pattern and doing something when that pattern occurs May 27 07:17:57 will take a look May 27 07:17:58 ty May 27 07:18:38 in your position you'd want to read the text and check for a phone number format "xxx-xxx-xxxx" and in that case, launch the dialer with that number May 27 07:19:06 check out the java api on strings to find out how to check for a pattern like that May 27 07:19:09 i can get the number from getText() May 27 07:19:16 since the number is just a string. May 27 07:21:04 would that be appropriate? May 27 07:23:45 Intent May 27 07:31:37 Why would installation instructions for a custom ROM (feralab) instruct me to restore to original firmware as a first step? Will everything not be overwritten anyway? (I'm currently on cyanogen mod). May 27 07:34:18 Hello, when i plug in my android (4.0) to my ubuntu computer it is not being detected as a mass storage device. How can i then transfer files to and from my android phone? May 27 07:35:23 Is it possible that I can specify something in manifest to run my app only in phone and not in tablet? May 27 07:36:27 cyclopse: http://developer.android.com/guide/topics/manifest/supports-screens-element.html May 27 07:36:46 whats a tablet and what not is not in your hand. It's in your hand what screen sizes you want to support. May 27 07:37:34 additionally, http://developer.android.com/guide/topics/manifest/compatible-screens-element.html May 27 07:37:36 Reecieboy: are you using a textview or pulling the information from a website? If you're using a textview, getText will work May 27 07:38:04 everythingWorks, wow, thanks. That is what I was looking for May 27 07:38:20 yea using textview but having a problem May 27 07:38:28 final Intent d = new Intent(Intent.ACTION_DIAL); May 27 07:38:29 you're welcome :) May 27 07:38:37 d.getText(phnumber) May 27 07:38:39 not working May 27 07:38:40 smart naming convention May 27 07:38:46 you missed a ; May 27 07:39:09 d is not a textview May 27 07:39:10 typo on here not in the code lol May 27 07:39:20 Reecieboy: what are you trying to do? May 27 07:39:29 post it in pastebin May 27 07:39:29 open the dialer with a number already entered May 27 07:39:30 What are you, nuts? ;) May 27 07:40:16 Reecieboy: try this http://stackoverflow.com/questions/9909153/how-to-get-dialed-mobile-number-in-my-application May 27 07:40:48 ahh simple fix May 27 07:40:49 thanks May 27 07:41:15 what was the fix? May 27 07:42:02 actually dont know yet, looked at the question source code instead of the answer lol May 27 07:42:19 a copy and paste programmer.. fine. May 27 07:43:39 there's a single question with about 5 lines of code, then a single answer with about 5 lines of code. how can you get confused here? May 27 07:45:01 startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:1300789969")));\ May 27 07:45:14 reading comprehension, you don't has it. May 27 07:46:30 not copy and paste lol... i read and write it myself.. May 27 07:46:59 good way to learn, proved itself 7~ programming languages later. May 27 08:02:55 Reecieboy: copying and pasting isn't a bad thing, especially when they're doing the exact same thing you need to do May 27 08:16:43 Zacharias3690 true that, but i meant rather than copy paste it, i'll alt tab alot and write it myself lol May 27 08:16:52 anyway: http://clip2net.com/s/1XURr May 27 08:16:58 you helped me make that and finish it, thank you May 27 08:17:08 Reecieboy: oh, ya, that's the only way to learn lol May 27 08:17:28 Awesome and congrats :) glad everything worked out for you May 27 08:18:59 np.. now just make the same for iphone lol May 27 08:25:27 Zacharias3690 damn one prob. how do i make the app vertical only May 27 08:26:01 gimme a sec to start up eclipse May 27 08:26:09 don't do that May 27 08:26:22 pragma-: why not? May 27 08:29:21 android:screenOrientation="portrait" May 27 08:29:41 add that to your android manifest in the weak May 27 08:29:59 I hate apps that lock themselves to portrait with no reason at all May 27 08:30:19 Zharf, pragma-, when an app doesn't need to be rotated, why rotate it? May 27 08:30:33 because i can rotate my phone May 27 08:30:38 and because slide-out keyboard May 27 08:30:43 yeah May 27 08:30:44 and looking at the screencap of his page it doesn't need to be rotated May 27 08:30:50 my app doesnt require a keyboard.. so winning May 27 08:31:22 users can still, and expect to be able to, rotate their phones May 27 08:31:30 so I can't navigate your app with my keyboard? that sucks May 27 08:31:45 why would you navigate with your keyboard when there's a touch screen? May 27 08:31:46 you are removing a capability because you don't know how to write code, just admit it. May 27 08:31:59 pragma why you being a sophomoric asshole? May 27 08:32:11 says the guy namecalling. May 27 08:32:14 because he's correct ;) May 27 08:32:43 semantics. May 27 08:33:00 doesnt matter.. its a relevant question which would' May 27 08:33:06 've been answered by now. -.-' May 27 08:33:14 portrait could also be the only way to lay something out correctly May 27 08:33:20 it was answered May 27 08:33:29 Reecieboy: I already answered it for you May 27 08:33:42 thanks. May 27 08:37:50 Zacharias3690, I would like to see that May 27 08:39:01 Zharf: https://play.google.com/store/apps/details?id=com.zeptolab.ctr.paid&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS56ZXB0b2xhYi5jdHIucGFpZCJd May 27 08:40:02 games are useless, try some real app ;) May 27 08:40:24 games are excellent money makers, don't disregard my example because it's a game May 27 08:40:34 I will May 27 08:40:55 money is irrelevant here May 27 08:41:41 then what's a "real" app? May 27 08:41:56 people put just as much time/effort into games than anything else on the market May 27 08:42:40 and it's all a waste of time, they could be doing some actually useful apps May 27 08:43:40 What have you created thats useful Zharf? May 27 08:43:46 Entertainment is useful May 27 08:43:56 A few examples will relieve you from inevitable insults. May 27 08:44:42 also, there's always people to make useful apps, I have myself, but games have a place just like everything else May 27 08:44:50 Reecieboy, xmms2, though it's not on market yet May 27 08:45:05 what does it do? May 27 08:45:08 The games are, already making money.. May 27 08:45:33 as I said, money is irrelevant May 27 08:46:03 Lol, to who? May 27 08:46:12 I make 90k a year and I still want more. May 27 08:46:22 from a game? May 27 08:46:25 no. May 27 08:46:38 graphic designer/webdesigner, my point was. money is relevant. May 27 08:46:49 oh thats different May 27 08:46:53 I make about 20 and I don't know what to do with it :) May 27 08:47:05 Zharf, get a life O.O May 27 08:47:28 Reecieboy, just because he doesn't spend money doesn't mean he has a bad life May 27 08:47:34 fair point. May 27 08:47:47 i meant social May 27 08:47:55 I make minimum wage + the 1.50 I've made off my app and I'm plenty social May 27 08:47:55 still.. fair point -.- May 27 08:47:55 I have a social life May 27 08:48:07 you don't have to spend money to have a good time May 27 08:48:19 Zharf, what does xmns do? May 27 08:48:22 To an extent. May 27 08:48:25 plays music May 27 08:48:31 xmms2.org May 27 08:49:01 lol, business in the front, party in the back ay May 27 08:49:19 i prefer audacious May 27 08:49:38 xMMS kind of gives the implication that its to do with Multimedia Messaging. May 27 08:50:03 but nice idea.. good work Zharf May 27 08:50:12 xmms was around before multimedia messaging. May 27 08:50:44 pragma, maybe so but 90% of people don't know that im sure. May 27 08:51:07 yes, you're obviously worldly and know of these things you've spoken of thus far May 27 08:51:27 Zharf: good work, it still doesn't change my argument though, games are as important to me as music is to you May 27 08:51:37 forgive me for having a vocabulary. I was complimenting Zharfs work -.- May 27 08:52:22 Zacharias3690, fine, but 95% of portrait locking apps on the market are doing it wrong May 27 08:52:39 I disagree with 87% of your statistics. May 27 08:52:45 ;) May 27 08:53:03 I gave 1 star to a couple of apps because of it May 27 08:53:34 Zharf, in regards to my app, its the very first android app, let alone java i've coded. May 27 08:53:35 Zharf: I can agree that a lot of apps shouldn't lock, but there are cases where they should May 27 08:54:19 i went with portrait cause truth be told, i dont get paid to make apps. anndd I can't be f**ked working out how to set up horizontal proportionately May 27 08:54:58 Reecieboy: in your position, I don't think it matters too much May 27 08:56:03 alright guys, well it's 4am here, so I'm heading out, see y'all later May 27 08:56:12 yeah, plus this app is only handed to already signed business affiliates and clients. my company is similar to bartercard but instead of making the shareholders rich, we aim to make the clients rich. May 27 08:57:39 Cya Zharf/pragma-, good chat, chisel some ego off though cause its quite sharp. May 27 08:57:46 enjoy your day May 27 09:16:01 So what's with all these apps that make you sit there and watch them download their assets, and abandon that and go back to the beginning if you decide you need to do something else? May 27 09:16:37 hi May 27 09:16:37 android dev is for mobile phones? what models include? May 27 09:17:15 Is it not possible to just say "I'm sorry, but I'm basically a really crappy application and you're going to have to wait a few minutes -- in the mean time, go and check your email or something". May 27 09:17:20 ? May 27 09:18:30 Instead we have "I'm sorry, but I'm an extremely crappy application and you're going to have to sit and appreciate how crappy I am for a few minutes -- or you could just give up now, uninstall me, and go and download something better instead". May 27 09:20:30 Up until last week I used to assume that internet was blindingly fast in the US and that nobody had realised how painful it is in the rest of the world. Only, it turns out it's just as painful in the US. May 27 09:21:13 android dev is for mobile phones? what models include? May 27 09:25:20 Gumboot: because those developers are too lazy and too inept to properly handle state/configuration changes May 27 09:28:29 Does anyone know how the bottom menu bar is done in the RedditNews app? I mean, is it something well-known or is it custom made? (like a simple linearlayout) I unpacked the .apk and it seems to be defined as a . May 27 09:29:04 ActionBarSherlock only handles the actionBar at the top right? May 27 09:29:23 <`z> ActionBarSherlock sounds interesting May 27 09:29:40 <`z> NoShitSherlock? May 27 09:29:43 <`z> hmm May 27 09:32:24 android has enough bugs in it; I don't want to wrap my code with another potentially buggy layer. I'd probably just follow the ActionBarCompat example, personally. May 27 09:33:58 kind of ironic that I was making a similiar statement last week/earlier this week and the next hour an update comes out fixing a null-pointer exception in sherlock May 27 09:34:09 * pragma- felt validated. May 27 09:35:12 I was slightly interested in possibly using sherlock until I realized it wanted me to replace everything with Sherlock: SherlockFragment, SherlockThis, SherlockThat. May 27 09:35:33 don't feel like sliding down that slippery slope May 27 09:36:53 how to "immediately refresh and show" passed data in textView on second activity(screen)... i have problem - it works and shows correct results but after i do something on second screen... when i open second screen its like default "Your total is 0" and it sould be "Your total is 'currentResult' "... thx May 27 09:42:16 Angel07: your problem description doesn't make sense. May 27 09:42:28 hey all, i have a smasung galaxy 2. it was working fine a few mintues ago, but now when I turn it on it freezes on the "samsung galaxy S II" boot image. its using ICS May 27 09:43:30 GuySoft: we talk about android application development, not technical support. May 27 09:44:00 pragma-, should i ask on #android? May 27 09:44:38 or perhaps #sgs2 or whatever the device-specific channel is May 27 09:45:41 assuming it's popular enough to have a population May 27 09:46:43 over 10mil May 27 09:46:53 pragma-, there are people there, but i am getting the feeling they wont answer - too few May 27 09:47:58 it's probably your best bet you just google the problem May 27 09:48:14 to just May 27 09:48:41 also watch the logcat output while its booting May 27 09:50:28 pragma- i have 2 screens(activities), in first i choose something and then i pass that value to second after that when i come to second my message in textValue is "Your total is 0" but when i press something it will show correct result(for example if 5 was press in 1st activity and 10 in 2nd it will show 15)... i want to make that when i come to 2nd activity it shows immediately current result "Your total is 5"(in this example). May 27 09:51:49 Angel07: find the textview and set its value in the onCreate() method, assuming your activity is being destroyed May 27 09:52:06 or use fragments May 27 10:10:45 pragma- thx for help... i dont understand one thing still -> myTextView.setText( "what to put here?" ) May 27 10:18:14 do I have to declare the uses-permission when I've declared uses-feature? May 27 10:21:58 (yes) May 27 10:23:04 pragma-: Asset download/upgrade seems fundamental enough that there'd be a standard way of doing it without having to be 'ept'. May 27 10:24:44 pragma- i manage to do it myself :) , thank you very much for your help... May 27 10:33:29 hi, how can I hand over an object to an activity? I have a running activity, with which I'm opening another activity. In my code I create an Intent and tell it to fire the activity. But how can I hand over an object from the one activity to the other via the intent? May 27 10:51:33 hi all May 27 10:51:46 i would emulator for tablet with api level 10, how can i do ? May 27 10:52:18 seems that in sdk manager is available only galaxy tab emulator, that use api level 8 May 27 10:57:35 ech0s7: yes, because android wasn't supposed to run on tablets until api level 11 May 27 10:58:01 ech0s7: so naturally you're not going to find a lot of tablet images for 10 May 27 10:58:11 ok, no problem…how can i install an emulator for tablet anyway with apilevel > 10 ? May 27 10:58:24 Will compiling towards a "too high" android API level and then adjusting it down affect behaviour on higher level devices? May 27 10:58:34 in sdk manager i see only galaxy tab that use api level 8 May 27 10:58:34 hello May 27 10:58:45 is it really the case that android 2.3's browser does not support rotate3d ? May 27 10:58:49 hmmm…. MDijkstra why galaxy tab has apilevel 8 ? May 27 10:59:01 Say I compiled for Android 2.3.3 and then lowered it to Android 1.6. Can it affect the behaviour on Android 4 devices? May 27 10:59:11 ech0s7: because google told manufacturers not to try and shoehorn phone versions of android onto tablets May 27 10:59:16 (the switch of target api) May 27 10:59:20 and samsung ignored that advice and did it anyway May 27 10:59:52 but it's not an official tablet version May 27 11:00:16 ok, so if i would emulate tablet with api level > 10 ? May 27 11:00:40 simply create a device with the ICS image May 27 11:00:43 give it a big screen May 27 11:01:48 or wait May 27 11:01:53 huh? which galaxy tab runs 2.x? May 27 11:01:55 or i could install motorola xoom emulator ? May 27 11:02:05 if you want honeycomb (11), you can simply select it from the target list May 27 11:02:12 Zider: the original one May 27 11:03:02 hm, I thought they all ran 3.x May 27 11:03:15 Zider: http://www.sammywiki.com/wiki/Samsung_Galaxy_Tab_(P1000) May 27 11:03:17 this one May 27 11:04:20 I see May 27 11:04:40 hm, wonder why it's taking so long to get ICS out for tab 10.1.. May 27 11:05:06 dunno, I've been running CM9 on it for months May 27 11:05:08 works well enough May 27 11:05:35 I'd prefer not to wipe it.. :P May 27 11:45:46 hi all, any idea how to unzip file programatically .. consider that files have 200+ MB.. is that doable under 3 min? May 27 12:13:06 mbarisa: http://developer.android.com/reference/java/util/zip/ZipFile.html May 27 12:16:33 tors: yeah i did it.. buttt some files i can not unzip and some files i can :/ May 27 12:16:48 for some files i get: java.util.zip.ZipException: Central Directory Entry not found May 27 12:17:23 howcome my device keeps getting a time out in eclipse it is online like it always has been just every time i try to send a project to the device i get a time out error May 27 12:17:46 hello May 27 12:18:38 can someone tell me why this is not working, ive done it like in tutorial May 27 12:18:48 i draw a bitmap May 27 12:18:49 Canvas c= holder.lockCanvas(); May 27 12:18:49 c.drawARGB(255,255,255,255); May 27 12:18:49 c.drawText("Å t.Zadetkov: "+stevec, 25, 25, new Paint()); May 27 12:18:50 c.drawBitmap(bitTarca, x - (bitTarca.getWidth()/2), y - (bitTarca.getHeight()/2), null); May 27 12:18:50 holder.unlockCanvasAndPost(c); May 27 12:19:11 and then set ontouchlistener May 27 12:19:13 public boolean onTouch(View v, MotionEvent event) { May 27 12:19:13 // TODO Auto-generated method stub May 27 12:19:13 x=event.getX(); May 27 12:19:13 y=event.getY(); May 27 12:19:13 May 27 12:19:13 return true; May 27 12:19:13 } May 27 12:19:37 in the tutorial, the picture moves where he clicks, and in my case its just in 0,0 position.. May 27 12:19:51 sNap0000: DONT FLOOD thats what pastebin is for May 27 12:20:06 or your favorite service is for May 27 12:22:52 how else could i tell my problem.. May 27 12:24:05 sNap0000: pastebin.com or pastie.. May 27 12:25:05 sNap0000: any of the pasting services anything more than two lines should be pasted May 27 12:25:09 in a web service May 27 12:25:19 in any irc channel fyi May 27 12:25:28 ok tnx ill know in the future.. May 27 12:25:35 no problem May 27 12:42:47 Error occurred during initialization of VM May 27 12:42:47 java/lang/NoClassDefFoundError: java/lang/ref/FinalReference May 27 12:42:58 im trying toi run a normal junit test May 27 12:43:08 i have a class with a bunch of @test functions May 27 13:05:01 Is runOnUiThread really reliable? I don't get it. It seems random for me. Sometimes it works, sometimes the ui doesn't seem refreshed. May 27 13:06:57 it sounds like you want post() instead May 27 13:08:33 What's the difference? May 27 13:09:39 runOnUiThread if executed will execute your runnable immediately if you call it from the UI thread rather than posting it May 27 13:10:03 bbl May 27 13:14:55 Error occurred during initialization of VM May 27 13:14:57 java/lang/NoClassDefFoundError: java/lang/ref/FinalReference May 27 13:16:02 woops May 27 13:16:30 anyone have run normal unittests on an android project? May 27 13:24:23 hi folks, I need to read the content of a file completely into a string. Using BufferedReader, it seems as if I can only read one line at a time. Is there a simpler way? May 27 13:24:59 a file on the sdcard May 27 13:32:45 Hackward code or explain more... May 27 13:44:24 When you guys want to clear a view and insert views after that. Are you doing it that way? : myView.removeAllViews(); views.map { x => myView.addView(x) }. I tried to put that in a post, in a runOnUiThread, always the same thing, it works sometimes, sometimes it doesn't. May 27 13:45:56 doesn't the removeallviews work either? May 27 13:46:55 The removeAllViews works. May 27 13:47:16 It's the view adding after that which doesn't seem to work all the time. May 27 14:07:52 how can i disable this autocorrection thing on this textview? May 27 14:07:53 http://dl.dropbox.com/u/6559846/ssem.PNG May 27 14:13:49 Hi, is there anybody familiar with android parse.com sdk? It keeps giving me java.lang.NoClassDefFoundError even though settings seem OK May 27 14:17:03 how do i switch between launching app and running testsyuite? May 27 14:35:44 * Jug6ernaut is a little confused May 27 14:36:00 why would you use a "Loader" as opposed to an AsyncTask? May 27 14:39:42 I assume I can have my testcode in a separate package pr something so i dont need to install it if i dont want to. how do I do so I can choose to run weither test code or launch app? May 27 14:41:32 yay got my partial transpaency May 27 14:41:40 transparency* May 27 14:44:13 anyone know where a real maguro dock can be purchased in north america? May 27 14:52:11 CrowdControl] Warning: No instrumentation runner found for the launch, using android.test.InstrumentationTestRunner May 27 14:52:13 ? May 27 14:58:44 hey everyone, it's my first time trying to develop for android and I'm struggling with the emulator. It takes like 20 minutes to start up (actually 10, but it always crashes the first time) when I run it from eclipse. I have 2 android devices, but I can't seem to get bluetooth working to send them the apk and have them run it instead. May 27 15:02:43 CrowdControl] Warning: No instrumentation runner found for the launch, using android.test.InstrumentationTestRunner I just put the thing about instrumentation in the xml file May 27 15:02:52 anyone good resoruce about this? May 27 15:04:06 mornin' May 27 15:28:08 Can I run junit tests without running on the phone!? May 27 15:28:20 if i write them so they are not depÃ¥endant on android features... May 27 15:35:14 Im creating a rectangle inside my constructor for MyTestApp and that makes testconstruction fail....!?!?! May 27 16:08:07 what package is the share intent in ? May 27 16:09:41 or action send ? for sharing ? May 27 16:13:44 Error occurred during initialization of VM May 27 16:13:44 java/lang/NoClassDefFoundError: java/lang/ref/FinalReference May 27 16:25:15 Anyone, can you run JUNIT tests in android and not use android junit? May 27 16:31:31 any good hints on how to take an existing TabActivity and convert it to a non-deprecated FragmentActivity? May 27 16:31:56 apparently just changing "extends TabActivity" to "extends FragmentActivity" and importing the compat library isn't adequate considering the cryptic stack dumping i'm getting. May 27 16:32:36 I hate cryptic error messages May 27 16:33:39 "Unable to start Activity" May 27 16:33:49 yeah... thanks sherlock holmes. May 27 16:34:31 apprently it doesn't like that i'm passing an intent to addTab May 27 16:35:02 so then what do i pass? May 27 16:36:05 Jug6ernaut: you asked why you would use a "Loader" rather than an AsyncTask? well for one the loader instance is maintained across rotation May 27 16:36:31 b1n0ry: there's no easy drop-in replacement kind of way to go from tabactivity to fragments May 27 16:36:45 then i guess i'm going to use deprecated code May 27 16:36:52 don't really have time for a 7th rewrite of the app. i have a week to get it done. May 27 16:37:01 thanks :) May 27 16:37:02 sure, it's just going to stop working somewhere in the future May 27 16:37:09 but that won't be soon May 27 16:37:35 and at some point in the future, i can deal with another rewrite. if i have to do that one more time at this stage, i'll probably pretty much give up trying to write apps May 27 16:37:47 switch to iphone or something May 27 16:38:14 iPhone is convenient in that sense, but Android is fairly stable these days May 27 16:38:33 I dunno, I've just rewritten this app to use fragments and added a tablet interface May 27 16:38:43 I don't think I'll have to do that again a year from now May 27 16:38:50 @SuppressWarnings("deprecation") is my friend May 27 16:40:16 i want to rewrite it to use the action bar more than tabs at some point. i just run into dozens of errors/issues trying to get that to work on my 2.3.3 device using action bar libraries May 27 16:40:36 once you do want to convert them, have a look at fragmentpager: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html May 27 16:40:53 kind of the same thing though: you'll usually place your tabs on the actionbar May 27 16:41:04 or what were previously your tab buttons May 27 16:42:05 yeah, which is what i want to do ultimately May 27 16:42:26 Anyone used Androids JUnit? May 27 16:42:37 How do you do @Before and @After? May 27 17:01:07 suppose I want to have a custom view that I want to stick in my layouts. that custom view should call an activity with an intent (to scan a barcode or take a picture) May 27 17:01:13 what would be the best way to get the intent results back to the view, so that I don't have to put intent-specific code in my activity? May 27 17:02:19 jnky: normally views don't control the program flow like that, though May 27 17:02:45 yeah I understand. but let's say I want a custom view with a button and a textview May 27 17:02:59 the standard practice is to register a callback to the view which the view may trigger when something of interest occurs in it (someone tapped it, for instance), and that then triggers things like going to that other activity May 27 17:03:13 if you click the button the camera opens and when the intent is finished the filename should be put in the textview May 27 17:03:22 that's what I'm trying to do May 27 17:04:07 alright, so I should stick my intent-specific/activity calling code in my activity then? May 27 17:04:16 since activities are the places that handle things like results from other activities, there's probably going to be at least one line of code in that activity to handle the result to the view May 27 17:04:43 I suppose this is how most people would structure the code May 27 17:04:50 yeah I was thinking of registering my custom views that are interested in intent results in my activity May 27 17:05:10 i was just hoping that my views could be as reusable in other activities as possible May 27 17:05:16 Seems like unnecessary complication to me unless you can make a good case for such design May 27 17:06:00 i have it working like that already, except that I use fragments rather than views, that works fine May 27 17:06:03 jnky: but an activity would have to implement such registering mechanic... it's likely more code than just handling the return result May 27 17:06:23 hey guys May 27 17:06:47 i understand but I was hoping there might have been a "cleaner" solution that I've been overlooking May 27 17:06:53 hi May 27 17:07:30 so my WebView will not properly display a "%", is this somewhere in html spec that it needs to be escaped? May 27 17:08:28 do you pass the text as a URL? maybe you have to percent-encode it then? May 27 17:08:37 i have a little question concerning onItemClickListener :) I am populating a ListView via ASyncTask which somehow seems to work (didn't compile it yet but eclipse says no errors so far) via e.g. ListView lv = (ListView)((Activity) mContext).findViewById(R.id.showlistview123);lv.setAdapter(simpleadapter); and so on... but now lv.setOnItemClickListener((Activity)mContext); does not work. why is this? my "mContext-Activity" extends May 27 17:08:52 how can i make him know that it does? :D May 27 17:09:04 or should i do this in some other way? May 27 17:09:24 jnky i do webview.loaddata May 27 17:09:37 and i input a string with the html May 27 17:09:49 % seems to be the code for % May 27 17:10:06 xorgate: http://code.google.com/p/android/issues/detail?id=1593 May 27 17:10:52 i see thanks May 27 17:11:20 or maybe that helps too: http://stackoverflow.com/questions/5097483/android-webview-unable-to-show-percentage-sign May 27 17:11:30 Aeefire: you were cut, but cast the mContext to the intervace, View.OnItemClickListener or something May 27 17:12:07 so... May 27 17:12:11 OnItemClickListener) mContext should do it.. May 27 17:12:18 lv.setOnItemClickListener((OnItemClickListener) mContext); May 27 17:12:21 hmm trying it. May 27 17:19:01 alankila: haha so Toast.makeText(mContext.getApplicationContext(),"Error",Toast.LENGTH_SHORT).show(); does work xDD May 27 17:19:25 why did you take the applicationcontext anyway? May 27 17:21:01 good question.... May 27 17:21:01 lol May 27 17:21:19 (activity)mContext works anyway lol May 27 17:21:20 ok May 27 17:22:08 i get following error: "Can't create handler inside thread that has not called Looper.prepare() May 27 17:22:53 your tendency to randomly cast things worry me May 27 17:23:06 you don't have to cast the context in that call, the API expects a context May 27 17:25:11 uhm yeah, right pretty much was used to it i guess as i needed it on the other actions.. still the error consists.. May 27 17:26:05 well you are trying to do that in a thread that is not the gui thread, I guess May 27 17:26:08 so you can't do that. May 27 17:27:39 lol so i guessed right. damn it. ok then i have to think about some other solution. thanks anyway May 27 17:30:52 what would cause an executorService.subimt(runnable); deadlock? May 27 17:31:56 to deadlock* May 27 17:39:15 where should i store a database file to handle it ? May 27 17:42:16 woooo! May 27 17:42:25 does anyone know if I can have a settings activity that will affect the properties of some singleton object (in this case, an EnvironmentalReverb applied to the main audio channel) without having to parcel anything up between activities? May 27 17:42:31 alankila :runOnUiThread(new Runnable() did the job :) May 27 17:42:58 like if I'm on the main activity (and every activity has an instance of the reverb object using getInstance() ), I can all methods from the reverb object when I adjust some sliders and that should apply for the whole app, right? May 27 17:43:27 err, im on the main activity, hit the settings button, go change some sliders there, and come back, without parceling anything to pass along between the two activities May 27 17:51:49 is there a way to navigate away from an activity (say with the back button, back to the previous activity) without finish() such that when I return to this activity, it doesn't have to call onCreate() again? May 27 17:57:48 tnzr: no May 27 17:58:42 JakeWharton: so if I want some settings to persist across activities I will have to use a parcelable? May 27 17:59:00 or use shared preferences May 27 17:59:51 JakeWharton: what if it's not so much a preference, but like..an EnvironmentalReverb setting for one or more of its params? May 27 18:00:36 I have a singleton EnvironmentalReverb object in the app (I chose to make it a singleton because I didn't want to have to package it up and send it around, if I understand that correctly)... but I want to go into a settings screen and move some sliders to change some values for the EnvironmentalReverb's parameters, then return with those settings intact May 27 18:01:01 and then come back later, and have the sliders where they were when I left (basically they check the EnvironmentalReverb object's current parameters and are initialized at those positions) May 27 18:01:27 but right now every time I return to the settings screen, onCreate() is called and the sliders are set back to zero May 27 18:05:29 what would cause doInBackground to not be called in an asynctask? May 27 18:09:54 tnzr: you should save the position of the sliders as shared preferences, probably. May 27 18:12:03 has anybody with some c2dm experience?? May 27 18:14:58 readme: ok thanks, I'll read up :) May 27 18:18:59 @tnzr is there a readme of android-dev too May 27 18:19:37 vettukal: yeah, i heard there is also doc on c2dm May 27 18:20:32 hello there, so i'm having fun with eclipse MAT all day long, may be someone can give me some advice how to catch my memory leak? The heap is growing when I switch from one activity to another so I think it's bitmap problem most probably, or dead context link wich never collected by GC, any help, pls! May 27 18:21:42 Defuera: in MAT, seach for instance of the Bitmap class and look what is holding them May 27 18:23:05 emm, not shure I can do this, cause i'm coding for 2.2 froyo and bitmaps storages in native memory... or am I wrong? May 27 18:25:08 I watched google io conference about it, so im a little bit confuced.. May 27 18:26:02 bubbleguuum, can u tell me first steps of this research? May 27 18:27:15 yes: RTFM the MAT doc. other than that, type the class name in one of the displays. I do not remember which one. MAT is complex tool, some reading will be required to make sense of it May 27 18:28:52 ok man, I agree. But should try, cause was reading manuals all day-) May 27 18:29:02 whish me a good luck) May 27 18:30:10 is it possible for a tab/fragment activity to call a method of an activity running within its view? May 27 18:30:59 for example, if i add an option menu on the tab host - have that option selection call a function located within the activity in the current tab May 27 19:13:33 hmm May 27 19:14:08 assuming i have a huge database, which would use more time, making the query or setting the cursor to the listview ? May 27 19:15:27 how huge May 27 19:15:31 1GB? May 27 19:15:35 10GB? May 27 19:15:35 no May 27 19:15:44 like 500 entries May 27 19:15:59 on a ~800 mhz device May 27 19:16:05 thats not huge May 27 19:16:12 gawd May 27 19:16:17 then say big May 27 19:16:18 or something May 27 19:16:33 250k i can say big May 27 19:18:19 omg May 27 19:18:24 Then take your 250k May 27 19:18:27 what would take more time May 27 19:18:34 none of the above May 27 19:18:45 'making the query' is constant time May 27 19:19:02 loading the query into the cursor.. would be more exact for "making the query" May 27 19:19:04 'setting the cursor to the listview' is unclear May 27 19:19:33 setting the cursor to the listview = populating the listview w/ the cursorcontent May 27 19:19:34 Aeefire: a cursor is nothing but a streaming view on a result set May 27 19:19:38 you don't load queries into it May 27 19:19:58 you run a query on a database, which returns a result set, which you access with a cursor May 27 19:21:05 whether the query takes a lot of time to execute depends on whether it is a good query, whether the database is complex, properly indexes and about five thousand other variables May 27 19:24:07 Aeefire: generally though, running the query will take more time, but if your database is small enough, properly designed and indexed May 27 19:24:24 then both should be more than fast enough if you have less than a million rows May 27 19:24:51 i don't want to know which is "fast enough" i want to know which is the faster. but "thanks" anyway. May 27 19:25:58 so you don't think a simple database with.. let's say a max of 250 entries containing strings only should be asynced ? May 27 19:26:15 Aeefire: which I answered in the first part of my sentence, the query is slower May 27 19:26:26 because the cursor loads stuff on demand May 27 19:26:54 (ie, data isn't loaded until android actually needs to create a cell when it comes into view) May 27 19:27:10 i guess i get what you mean. May 27 19:28:45 asynced? well, for this app I just wrote talking to a database (which has around a 1000 rows in its largest table) I didn't do connecting to the database asynchronously May 27 19:28:51 and it's fine May 27 19:29:33 loading in an background thread (asynctask)..... May 27 19:29:42 hm k May 27 19:29:47 yeah, I really should do that May 27 19:30:22 but it's not a problem in the sense that it'll cause the app to become unresponsive May 27 19:30:38 or get killed due to holding up the main loop May 27 19:30:40 I've already done that. now i am just not showing any type of progress of the loading because it makes the whole process slower if there are less than some 100 of items i guess. May 27 19:31:18 I mean I am just not showing any ProgressBar if i have like <500 rows. May 27 19:31:25 how do you intend to measure the progress? May 27 19:31:35 i am not really measuring it May 27 19:32:00 just doing some progressUpdates between the lines of code so that the user has something to look at ;) May 27 19:32:39 are you looping through all the rows and storing them somewhere or something? May 27 19:33:06 I mean, it seems unlikely that running a query would take so much time May 27 19:33:19 that you need to update a progressbar May 27 19:33:46 that's what i don't know May 27 19:33:49 and didn't try yet May 27 19:33:56 and that's why i have asked actually May 27 19:33:57 ^^ May 27 19:34:17 I mean, even if .query() were massively slow, you still couldn't update your progress bar inbetween May 27 19:35:39 i guess i'll just do some testcase with a thousand items or something. May 27 19:43:48 Guys, need help. Simple layout, 3 textViews: http://hash.su/7411 If second textView's content is big, than third textView shifted off screen. How to fix it? May 27 19:46:03 xa0c: depends on how you want it to be fixed May 27 19:48:01 Well... I want second textview be streched if he need so, but I dont want third textView be shifted off the screen. Like "hey, second text, take all available space, but stop growing when third text reached end of the screen" May 27 19:48:25 right May 27 19:48:31 let me experiment for a bit May 27 19:48:49 ok :) May 27 19:49:50 right May 27 19:50:35 what you need to do is drop the layout_weight from the second textview May 27 19:50:45 errr May 27 19:50:48 the layout_width May 27 19:50:57 and instead put layout_weight="1" there May 27 19:51:23 what? you're talking about http://hash.su/7412 ? May 27 19:51:36 yeah May 27 19:51:55 that is not a solution. seccond textView will take all space even if he dont need May 27 19:52:50 hm, true May 27 20:00:28 would it be a horrible violation of convention if I were to store SeekBar objects in a class and get them from the class when inside the activity that will display them? rather than having them exist in the activity May 27 20:21:34 does every android camera have a low framerate? May 27 20:23:46 tnzr: don't store the seekbar. May 27 20:23:49 store the position value. May 27 20:27:11 05-27 16:27:14.338: W/PhoneWindow(12883): Previously focused view reported id 16908298 during save, but can't be found during restore. May 27 20:27:12 <-- any idea what this means? seems to be triggered somewhere by my tab activity May 27 20:27:38 googling doesn't seem to be providing good answers May 27 20:28:56 i'm getting it on orientation change, btw May 27 20:29:40 b1n0ry: Are you creating a new view when rotating? May 27 20:29:51 define 'creating a new view' May 27 20:30:04 Making a new view object? May 27 20:30:06 i call setContentView May 27 20:30:10 i don't think so... May 27 20:30:23 b1n0ry: in onConfigurationChanged? May 27 20:30:51 b1n0ry: what I think is happening is that it wants to focus the view that was previously focused May 27 20:31:01 i don't have that function overriding that function May 27 20:31:02 but since the entire hierarchy has been replaced it can't find it anymore May 27 20:31:09 ah May 27 20:31:39 i'm not doing anything in onconfigurationchanged. all that's going on in my tab activity onCreate is setContentView... May 27 20:32:17 it's gotta be the tab activity, though. i brought the framed activity out (moved the intent to the 'home' tab activity) and the issue disappeared May 27 20:32:46 TabActivity is one of those things you shouldn't use May 27 20:33:02 the callback only gets called if you have config changes set May 27 20:33:04 i know May 27 20:33:23 but i'm not doing a 7th rewrite of this app. sorry. tabactivity is deprecated and sometime i'm going to have to do that, but for now, that's what i'm using. May 27 20:33:40 7th is that all ? May 27 20:33:49 Heh May 27 20:33:55 I still need an idea for an app May 27 20:34:01 b1n0ry: it's just a warning, right? May 27 20:34:05 yeah May 27 20:34:10 and it doesn't seem to impact functionality May 27 20:34:28 i just don't like seeing anything other than green in logcat ;) May 27 20:34:37 sonicrules1234: first, narrow down what your market is, then figure out an app idea May 27 20:35:11 readme: well in this case the seekbar basically changes the value of a parameter in an EnvironmentalReverb object. When I move it, the result is mapped to a value within the range of the param and setParam() is called to actually set it. When I switch to my activity with the sliders, I want to call "getParam()" from teh EnvironmentalReverb object to set them all to where they should be, but it never works May 27 20:35:36 I think my problem has more to do with the EnvronmentalReverb object (which is a singleton) getting accessed by different activities properly May 27 20:35:44 totally newbie problem but my first time encountering it :( May 27 20:38:05 i think when I switch to my "ReverbSettingsActivity", its like its the first time running, every time May 27 20:38:23 tnzr: you should devise a mechanism to perist the EnvironmentalReverb object's data May 27 20:38:30 then make an accessor to it for the slider value May 27 20:38:36 getReverbXValue() May 27 20:38:50 and populate the slider from that May 27 20:38:55 guess i'll ignore it for now May 27 20:39:01 you can persist it with java serialization, if you want.. May 27 20:39:14 readme: do you think making the EnvironmentalReverb being a singleton is a decent way to do that? May 27 20:39:29 that's only going to persist until the class is unloaded May 27 20:39:39 well it should be loaded for the life of the app May 27 20:40:02 I'm declaring a TabSpec and a setIndicator but it isn't styled....any idea how I can get the indicator styled? May 27 20:40:16 the amount of extra effort required to persist the state beyond class-unload is worth it. May 27 20:40:17 also, this is a sound/audio app so I worry that doing things like serialization and anything else that might cause the gc to run a lot will case skips & stutters (I had to defeat this problem earler, the gc was really making it sound bad) May 27 20:40:20 it's not even tha thard. May 27 20:40:26 readme: ok May 27 20:40:35 don't save unnecessary data you'll be fine May 27 20:40:45 just save what needs to be repopulated later. May 27 20:40:49 readme: Hey, haven't talked to you in a while May 27 20:40:55 hello May 27 20:41:01 also the EnvironmentalReverb object is attached to the main audio channel (as opposed to a MediaPlayer or something else) so I figured that could be another good reason to make it static or a singleton May 27 20:41:04 readme: ok thanks May 27 20:41:24 leave it static May 27 20:41:30 ok May 27 20:41:46 just persist it anyway, so if the user restarts his phone he doesn't lose his configuration. May 27 20:41:53 oh nice :) May 27 20:42:04 ok I guess that will be my new side-mission for now May 27 20:42:08 thanks for the help & advice May 27 20:42:21 I'm declaring a TabSpec and a setIndicator but it isn't styled....any idea how I can get the indicator styled? May 27 20:43:42 Anyone can help me with layouts? I'm stuck and trying to fix it about 3 hours... Oh... Cant find the way to say to layout "you may grow, you may take some space, but do not push other controls off the screen" May 27 20:44:23 readme: Thanks, you gave me an idea May 27 20:44:34 * sonicrules1234 is going to write an android IRC client :p May 27 20:44:38 xa0c: look into using android:layout_weight May 27 20:44:41 in a LinearLayout May 27 20:44:47 I just need to learn java sockets :P May 27 20:44:52 readme: that is not what I'm looking for May 27 20:44:55 http://hash.su/7413 May 27 20:44:56 the controls you want to keep on screen just need to have wrap_content May 27 20:45:00 xa0c: no, it is, trust me May 27 20:45:08 you must not know how to use it right May 27 20:45:22 readme: trust ME :) May 27 20:45:31 xa0c: ok, good luck on your own May 27 20:46:01 Got a really strange problem playing flash in a WebView on Honeycomb. The WebView is inside a LinearLayout which splits the screen evenly with a SurfaceView that I'm drawing to from native code. If the screen is split vertically, flash works fine, whether the WebView is on top or bottom. If the screen is split horizontally, flash plays fine if the WebView is on the left. But if the WebView is on the right, I only get audio! May 27 20:46:01 Just listen what I need and you will see that weight is not what I need. May 27 20:46:41 you do realize you can use weights to take up the available space except for the controls that you want to leave on the screen, don't you? May 27 20:46:57 Second textView on layout I posted above should take only required space. May 27 20:47:16 then you put wrap_content on it May 27 20:47:16 weight will give him all availabe space May 27 20:47:19 and use weights on the other May 27 20:47:36 look at the layout. it's simple May 27 20:47:54 which textview needs to take up the 'available space' May 27 20:48:00 second May 27 20:48:12 put layout_width="0dp" layout_weight="1" on it. May 27 20:48:26 oh... again... May 27 20:48:31 xa0c: DO IT May 27 20:48:36 I know what I"m talking about. May 27 20:48:42 he take ALL space May 27 20:48:52 no, that's not what it does. it takes up only available space. May 27 20:48:58 readme: I'm declaring a TabSpec and a setIndicator but it isn't styled....any idea how I can get the indicator styled? May 27 20:49:00 I will test it myself. May 27 20:49:06 I dont need third textview be aligned to the right corner May 27 20:49:18 what do you define as 'available space' then? May 27 20:49:28 btw, that doesn't align it. it grows the center textview. May 27 20:49:43 maybe you should draw what you want in paint or something May 27 20:51:22 has anyone used actionbarsherlock w/ intelliJ IDEA ? May 27 20:52:16 yep. here is the picture: |[text1][text2][text3].....space....| If text2 will grow, view become |[text1][largeText2][text2]...|, If one line is not enough, than view will looks exactly like when you're using weight=1 for second text May 27 20:52:22 readme: get it? :) May 27 20:53:14 http://imgur.com/jgprl http://pastie.org/3978970 May 27 20:53:22 if you want something other than what I've just done above May 27 20:53:26 nooooo May 27 20:53:27 draw it in paint May 27 20:53:28 and I will show you May 27 20:53:32 okay May 27 20:56:12 oh, you want text2 to grow to fit its content, but not take up multiple lines? May 27 20:58:55 Anyone have any ideas why flash would work in a WebView when it's on the right side of a LinearLayout but not the left side? May 27 20:59:01 alexfu: JakeWharton uses intellij. May 27 20:59:27 like a boss May 27 21:00:05 i also use ActionBarSherlock May 27 21:00:13 Hello everyone May 27 21:01:13 JakeWharton: IntelliJ is saying no resource is found that matches the given name @style/Theme.Sherlock. I've added the project library as a dependency to my project. Not sure what else I need to do. May 27 21:01:49 readme: http://imgur.com/bRZvw May 27 21:02:55 I'm working with action bar tabs and fragments and one of the tabs (the first one even) is a webview. I can't seem to find where to put the stuff for the webview itself in the activity. Here's the activity in question: http://goo.gl/OsVBI Does anyone know what I should do? May 27 21:03:10 xa0c: i somewhat doubt you can do that with a stock textview May 27 21:03:46 custom viewgroup only? May 27 21:04:02 well, the problem I see is that maxWidth wants a px value May 27 21:06:35 alexfu: that should be enough, really May 27 21:06:35 d May 27 21:06:40 debugging IDE problems over IRC is hard May 27 21:07:04 xa0c: if you don't want to write a custom view, you could use code to set the maxWidth May 27 21:07:35 you'd have to wait until the other two views are measured, then subtract the sum of their widths from the width of the root view May 27 21:07:41 then that will be your maxWidth May 27 21:07:51 I just cant get it: why wrap_content pushes off the screen other controls like it 'fill_parent' May 27 21:08:14 because it "wraps the content" May 27 21:08:22 it's going to wrap around as much content as you put in May 27 21:08:33 regardless of whether that content is going to push the other view off May 27 21:08:45 Does anyone know how I can pass a setIndicator though my styles May 27 21:09:03 I think it's not right. Well... Ok. Will see what I can do with code. May 27 21:09:32 for putting marks on maps, do I have access to any standard graphics for that, the ones that google uses? May 27 21:09:43 you may want to write a custom textview so that you can override onMeasure May 27 21:09:56 you'll need to hook it to properly get the view's measured width. May 27 21:10:41 TextView was just for quick sample. The main idea was "grow untill you reach some border". Sadly, it works only if border is end of the screen. May 27 21:13:17 the solutioon should work for all views May 27 21:13:41 the problem is defining the border May 27 21:13:55 right now to define the border, you must use a px value, (maxWidth) May 27 21:14:07 o hai JakeWharton May 27 21:14:29 hi May 27 21:14:39 yep. more important: I cant do such layout without code. May 27 21:14:51 custom layout May 27 21:18:13 I'm trying to connect to my server via TCP, the browser can reach it, but the socket fails to resolve, when I instead type in the IP it fails to connect. May 27 21:21:18 are you using the emulator ? May 27 21:21:50 No, I'm using adb over USB May 27 21:22:50 The same code works fine when I run it on my laptop May 27 21:22:54 kanyl, did you add INTERNET permissions to the AndroidManifest? May 27 21:23:16 b1n0ry: That might be it, thanks man :) May 27 21:23:26 yw May 27 21:24:00 :P May 27 21:28:40 I'll just leave this here... http://stackoverflow.com/questions/10777405/android-actionbar-tabs-fragments-and-webviews May 27 21:34:43 xa0c: i am close with relative layout May 27 21:34:46 but not quite what you wanted May 27 21:34:55 http://pastie.org/3979164 May 27 21:34:59 I played with relative too. May 27 21:35:02 can't stop it from overlapping, but it stays on the screen May 27 21:46:52 readme: I did it the way you said: using maxWidth setter. Enough for today. Extremely big amount of time wasted. May 27 21:56:10 I have two threads that both have to use methods of a singleton. This makes one of them to be locked almost all the time. What should I do? May 27 21:58:35 hey guys, looking for android development resources. Where can i read about and learn about this technology? I have already installed andoid plugins, emulator is running and i m using Eclipse May 27 21:59:58 developer.android.com has nice articles May 27 22:00:08 and google also give many :) May 27 22:00:22 alexGla: you can check out these videos on youtube: http://www.youtube.com/playlist?list=PLB03EA9545DD188C3&feature=plcp May 27 22:01:00 Android Development For Absolute Beginners, thanks ricardjorg May 27 22:06:05 Any help on my threads problem? I made the methods that both threads use synchronized, but one of the thread is still locked most of the time May 27 22:19:48 if I have a separate class I am using to define a bunch of buttons and layout info (so that the main activity doesn't have to be 3 pages long full of the stuff), I instantiate it by doing something like: LinearLayout layout = new MyClass(this); (where MyClass is a subclass of a LinearLayout). So how can I access methods inside of the context that I pass into the constructor for that class? May 27 22:19:59 I tried things like context.method() but it doesn't like it May 27 22:20:27 oh duh May 27 22:20:36 nevermind, I just cast it to my original activity and it works, sorry for the dumb question May 27 22:23:00 Can you have multipe styles in your manifest file? May 27 22:28:56 can anyone tell me why my calendar widget does not display data for the current month? just "no upcomoing events" May 27 22:29:22 whats the point of a calendar widget if it doesnt show the fucking caledar? May 27 22:29:24 calendar May 27 22:29:44 well i managed to hard-brick my phone without flashing the bootloader May 27 22:30:35 I440r maybe you have to set the calendar to the widget? try to get into the widget's settings or something like that May 27 22:30:50 GuySoft LOL how did you maange that? May 27 22:30:53 manage* May 27 22:30:59 set it to "all calendars" May 27 22:31:05 both my pc sync and gmail May 27 22:31:12 try to set a specific one... May 27 22:33:01 I440r: go wash your mouth out with soap May 27 22:33:02 the calendar app shows the data for the months and shows the events for the months where there are some set May 27 22:33:08 the widget shows nothing. not ever May 27 22:33:10 well May 27 22:33:16 it shows "no upcoming events" May 27 22:33:17 are you developing an app, or just using a widget? May 27 22:33:51 just trying to use the widget. this is the only active channel with anyone with half a clue about anything android May 27 22:34:03 you are off topic and cursing May 27 22:34:07 please stop May 27 22:34:26 I440r, half a clue? May 27 22:34:28 well fuck you too! May 27 22:34:45 lol at a MINIMUM lol May 27 22:35:15 with my half a clue, i put a listview in a scrollview May 27 22:35:39 unpossibal May 27 22:39:07 how does one disable an animation between two activities, specifically when returning from one (using finish())? On the way into it, I did intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); but I can't seem to figure out how to do it on the way back May 27 22:39:44 I have found a way to style my tabs but now the light blue line is gone from the tabs...anyone know how to get it back...I think I need something like ActionBar bar = getActionBar(); bar.setBackgroundDrawable(new ColorDrawable()); but I'm not sure May 27 22:45:26 nm, found it! overridePendingTransition(0, 0); after you call finish() does the trick May 27 22:52:49 i opened eclipse and my project is telling me cannot resolve R to a variable May 27 22:52:55 does anyone know how to fix this ? May 27 22:53:22 check xml for errors & build clean May 27 22:53:46 i did that May 27 22:53:52 import your apps R? May 27 22:54:13 default visiblity is within the package. other packages need to import. May 27 22:54:32 devslash: press CLTR + SHIFT + O to automatically import what you need May 27 22:54:44 ok May 27 22:54:52 just make sure it doesn't import android.R :| if you do that suggestion May 27 22:55:10 Yes you don't need android.R May 27 22:55:26 just com..etc May 27 22:55:34 thanks May 27 22:55:46 working now May 27 22:55:56 no problem May 27 22:56:25 can anyone recommend a resource or tutorial regarding handling multiple touch events at the same time? May 27 22:56:36 readme: hey, I got my tabs styled now (FINALLY) but now the little blue bar for the current item selected in the tabs is missing....any ideas how to add that? May 27 22:57:32 if you're using tabhost/tabwidget stuff I have no idea May 27 22:57:44 alright...thanks anyways May 27 22:57:56 action bar tabs? May 27 22:58:25 in either case, it uses a state-list drawable of 9-patches May 27 22:58:52 best to steal the default one from AOSP and customize to your liking May 27 22:58:55 has anyone used location manager ? May 27 22:58:56 JakeWharton: right...but it has disappeared though May 27 22:59:17 JakeWharton: default one from AOSP? ..what is AOSP? May 27 23:00:27 is there a different type of date picker for ICS? May 27 23:00:52 it is slightly different but the api is backward compatible May 27 23:00:59 simonvt backported the newer one, see his github. May 27 23:01:24 are you talking to me ? May 27 23:02:25 yes May 27 23:03:02 so if i add a date picker, will it automatically use the newer style on ics and older style and older versions of android May 27 23:03:02 readme: you use neither tabhost or tabwidget ? May 27 23:03:09 dominicdinada: correct. May 27 23:03:21 readme: page viewer ? May 27 23:03:31 you mean view pager? May 27 23:03:36 yes lol May 27 23:03:42 yes May 27 23:04:04 readme: so if i add a date picker, will it automatically use the newer style on ics and older style and older versions of android May 27 23:04:07 hmmm i have kinda seen tutorials on it but it looks like just as much work May 27 23:04:12 devslash: yeah, the new style will be used unless you do something weird to interfere with that May 27 23:04:17 ok May 27 23:04:20 JakeWharton: hey, I noticed that you stated that actionbar uses a state-list drawable of 9-patches...I'm missing the little blue underline bar....how would you suggest I get it back? May 27 23:04:20 I'm fine with that May 27 23:04:24 now i need a good tutorial indepth on share intents... May 27 23:04:48 do you have an item in your state list drawable for selected="true"? May 27 23:04:49 sharing the market er play store app link and then to other apps... and permissions needed May 27 23:04:56 and does that item have a blue underline? May 27 23:05:47 JakeWharton: I don't even have a state-list xml file set up May 27 23:06:07 well then whatever image you are setting is going to be used for every single state May 27 23:07:14 i have an edittext view. and when it first gets focus, the onscreen keyboard doesn't appear. i have to switch to another control and back again. any idea why? May 27 23:07:20 JakeWharton: well, I programatically created a TextView and assigned that TextView to the Tabhost setIndicator....so it's now missing ...guess I need to set up a state-list drawable May 27 23:08:34 JakeWharton: can I do this in the XML? May 27 23:15:47 JakeWharton: alright so I set up the image on the specs.setIndicator function....instead of using a custom 9 patch image...how can I just use androids blue underline that comes default w/ ActionBars? May 27 23:38:48 Where is an actionBar's little blue line nine-patch images stored? May 27 23:39:54 im confused about something. in my xml, i add a button. in code i create CompoundButton foo= (CompoundButton) findViewById(R.id.btnShowPointsSince); but when I load my app it crashes. if i change the type to Button, it works fine. isn't Button a subclass of Compoundbutton ? May 27 23:42:01 devslash: Just use View bOne = findViewByID(R.id.buttonID); May 27 23:42:29 ? May 27 23:42:38 its not a view May 27 23:43:02 devslash: yes it is May 27 23:43:15 View is the common ancestor of every ui element May 27 23:43:40 ok May 27 23:43:50 It's easier than having your app crash each time May 27 23:44:03 if you're going to find a view just to show/hide it, you might as well just use a View reference, and not cast it up May 27 23:44:15 because that way you will have to make less code changes later if you change the xml May 27 23:53:25 why/when someone wont store an sqlite db at ".../databases/" folder and store it on "/sdcard" ? May 28 00:18:02 is there a way to easily push a new value into a string array ? May 28 00:26:46 I'm looking to get started to learn about developing my own apps; where should I start? I've had experience with some Java in high school, if that matters. May 28 00:27:42 developer.android.com May 28 00:27:52 Paulcasals: the latest trend seems to be starting with blogspot and then graduating to stackoverflow May 28 00:28:02 hahah May 28 00:28:07 Paulcasals: http://developer.android.com/guide/index.html is a good starting point May 28 00:28:45 thanks. I'll check it out. May 28 00:33:02 the official site isn't as user friendly as those other 2 sites May 28 00:38:16 Does anyone know how I can use getResources() to return a string but have the string be styled? May 28 00:40:28 john_doe_jr: http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling May 28 00:42:39 is there a way to modify my list views width through code at runtime? May 28 00:43:53 cketti_: I think you have helped me a lot...I'm just going to play around w/ the info on that link...thanks May 28 00:44:14 devslash: Yes...ListAdapter May 28 00:46:49 devslash: setWidth? May 28 00:47:02 nm i figured out what i need to do May 28 00:52:33 cketti_: hey, using String text = String.format("Text Info", null); doesn't make the string pass through my custom styles...any idea how I can get it to do that? May 28 00:53:50 please read the documentation and don't try to guess what methods do based on the method name May 28 01:01:51 cketti_: I'm really trying to figure this one out...I've read the material May 28 01:02:31 and what exactly are you trying to do? May 28 01:04:24 cketti_: the setIndicator function on a tabspec requires a CharSquence...I'd like to set up my Text to be given to that setIndicator function but have that text styled through the custom styles that I have in my R.styles .. May 28 01:05:48 cketti_: so ultimatelly I want a CharSquence to give to the setIndicator function of my TabSpec but have it styled May 28 01:06:26 cketti_: String.format function takes 2 parameters ...a String and an Object....I can't use that to style it May 28 01:07:00 it's not meant for that at all... that's why i said read the docs and don't guess May 28 01:07:00 String.format has nothing to do with Android styles May 28 01:08:20 leslie: I know....it's just that setIndicator of TabSpec takes a CharSquence...how can I give it a CharSquence but have that CharSquence styled with my style? May 28 01:09:26 i don't know if you can apply a style resource to a charsequence. you can however use SpannableStringBuilder and manually apply some styles May 28 01:10:27 you can use Html.fromHtml I think May 28 01:10:39 does anyone know how to use a date picker ? every example I've found online uses ShowDialog which according to eclipse is deprecated May 28 01:10:52 leslie: html.fromHTML and then use a style? May 28 01:11:09 I don't know how you'd use a style, but you can use html code May 28 01:12:06 cketti_: the SpannableStringBuilder that you refer to...how would you use the constructor on this class but construct it w/ a default style? May 28 01:15:43 john_doe_jr: styles are used for views. since you can't access the view directly your only option is to use spans to format the charsequence May 28 01:20:52 cketti_: I think I can use TextAppearanceSpan May 28 01:25:41 anyone with actionbarsherlock experience... why, when i add the library to my project, do i get a ton of these: May 28 01:25:43 Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar' May 28 01:26:04 and now have tons of errors in my code as if the system can no longer resolve 'R' May 28 01:26:35 rebuild the project May 28 01:28:52 trying May 28 01:29:36 looks ok now except for: Type May 28 01:29:36 R cannot be resolved to a variable May 28 01:33:09 did you interrupt the build? R.java is generated with info from your res/* files May 28 01:34:06 no May 28 01:34:19 it's just a default project. all i did was import actionbarsherlock May 28 01:34:27 and rebuilt May 28 01:35:53 well, sometimes eclipse is stubborn. clean the project and build again May 28 01:38:11 that seemed to clean it up May 28 01:40:45 thanks, cketti_ May 28 01:42:55 b1n0ry: compile with Android 4.0 May 28 01:43:09 that's what i have. well.. target = 14, that sound right? May 28 01:43:39 i have target = 14 and min = 7. seems to compile ok now. May 28 01:44:01 ok, well neither of those are necessarily the SDK that you're compiling with May 28 01:44:46 but both are necessary anyways May 28 01:45:17 target=android-14 in project.properties May 28 01:45:36 if it's set somewhere else as well, it must be somewhere i'm not familiar with yet May 28 01:46:45 Could not find ActionBarSherlock.apk! <-- i do get this when building my project though i'm not sure why. it may have come from something i did when i was trying to fix the 'R' issue May 28 01:47:04 i may have added something to the build path i don't need May 28 01:50:58 Ok, why would installer_r18-qindows.exe tell me the java jdk is not installed after i ran jdk-6u32-windows-x64.exe May 28 01:51:24 is installer_r18-qindows.exe a 64-bit application? May 28 01:52:02 Nope there is no 64 bit install for the android sdk May 28 01:52:18 then how's it going to detect/use a 64-bit jdk? May 28 01:52:48 Why cant it? May 28 01:53:26 You telling me android sdk wont work on a 64 bit windows systsm? May 28 01:53:34 you're dumb, aren't you? May 28 01:53:39 works fine on a 64-bit windows system. i'm on a 64-bit windows system now. May 28 01:54:02 Pragm fuck off. Nuff sed. May 28 01:54:07 b1n0ry: do you have the "is library" box checked on the ABS project? May 28 01:54:09 you can install jdk-...-x86 on a 64-bit windows May 28 01:54:34 b1nory. What i do wrong? May 28 01:54:42 yeah, i also just cleaned the abs project as well May 28 01:54:55 I440r, you're trying to use a 32-bit SDK with a 64-bit JDK. May 28 01:54:56 Dont install 64 bit java? May 28 01:55:04 you can install both May 28 01:55:36 they go to different directories ((Program Files vs Program Files (x86)) May 28 01:56:24 grab the x86 package for the 1.6 jdk, install that, and i'll bet the sdk installer will find it just fine May 28 01:58:48 JakeWharton, it seems i get that when i try to deploy the app to an emulator/device. the build seems to be ok and the app seems to work. i don't know if it's critical. May 28 01:59:01 probably some ADT bug May 28 01:59:02 or Eclipse May 28 01:59:10 people complain about it all the time May 28 01:59:11 t May 28 01:59:16 there's a bunch of StackOverflow posts May 28 01:59:38 *ADT Plugin May 28 02:00:00 i'll just ignore it May 28 02:00:35 i guess we'll get used to ignoring certain messages after awhile. May 28 02:00:55 or you just switch to IntelliJ and Maven and watch all your problems disappear May 28 02:02:17 3 billion devices run java. How many od those are android :) May 28 02:02:20 does the community edition of intellij work fine with android dev? May 28 02:02:33 it works great May 28 02:02:41 Yea May 28 02:03:08 Ive used it bedore, its orders of magnitude better than eclipse May 28 02:03:16 I.e its mot May 28 02:03:43 Its not trying to compete with emacs for worlds worst editor title May 28 02:03:45 downloading it now May 28 02:04:07 emacs... one *has* to be an oldschool fanboy to even think that emacs is remotely usable. May 28 02:04:30 Its not. Neither is eclipse May 28 02:05:02 installing intellij now May 28 02:05:14 found some steps on stack overflow for setting it up, so i'll give that a shot May 28 02:15:16 Why do my sdk manager dow.loads keep stalling? May 28 02:16:26 because I keep hitting the reset button on your router May 28 02:17:05 I440r, make sure you're running ADT as administrator May 28 02:17:35 right-click >> Run as administrator May 28 02:17:35 My router does not have a reswt button. May 28 02:18:00 K, ty May 28 02:18:08 i soldered one on May 28 02:18:27 JakeWharton, looks decent on the surface so far. if it crashes less often than eclipse, i'll be happy. May 28 02:18:40 JakeWharton: What are, in your opinion, the main advantages of using maven? May 28 02:18:45 I dont see your button on my thunderbolt May 28 02:18:47 i did manage to get a project created May 28 02:18:51 dependency management May 28 02:19:00 the fact that it's a build system and not just a script language bastardized into XML May 28 02:19:53 i'm not really sure what maven is May 28 02:20:02 my last sentence should tell you May 28 02:20:43 I found it quite hard to convert an existing Android project to Maven. Especially since it seemed to require loads of time to read into. May 28 02:20:59 With all the artifacts, modules, poms, sub-poms, 21 goals,... May 28 02:21:10 oh, i did read your last sentence. i'm not really sure what a 'build system' is May 28 02:21:17 compiler? May 28 02:21:39 Is there something like github but for artifacts? Like a public Nessus or something? May 28 02:21:51 Nexus* May 28 02:21:56 Maven has the concept of central repositories May 28 02:22:00 and there are a few May 28 02:22:46 kakazza: people use github for that stuff too May 28 02:22:57 someone has a repository that they are storing the entire US code in, gradually May 28 02:23:18 https://github.com/divegeek/uscode May 28 02:26:36 needs commit messages May 28 02:27:11 no house or senate branches yet :( May 28 02:27:14 This Q is sort of dev related, sort of not. I want to use Tasker to open the new task screen of Astrid. Astrid has an intent for that, com.todoroo.astrid.activity.TaskEditActivity. Tasker has a Send Intent feature which has fields for Action, Category, Mime Type, Data, Extra, Package, Class, and Target. Can anyone intuit from that what needs to go where? If it helps, I can get ADW launcher May 28 02:27:14 to add an icon that will correctly trigger this and open the task edit screen. The onclick action it uses appears to be Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=com.timsu.astrid/com.todoroo.astrid.activity.TaskEditActivity May 28 02:27:48 Almost forgot: I'm not a developer. tasker is as far as I can make cool things happen on Android :/ May 28 02:40:44 i installed maven. eventually, i'll learn what it is :) May 28 02:40:55 in the meantime... i'll try to get used to intellij May 28 02:46:05 hm, doesn't look the iosched code is changing in its repo May 28 02:50:51 JakeWharton, have you tried loading abs into intellij without maven? May 28 02:51:01 yes May 28 02:51:07 we use it at Square and do not (yet) use Maven May 28 02:51:29 know any good tutorials on how to get it set up? everything i'm googling uses maven. May 28 02:51:38 i was able to import it as a module into my project May 28 02:51:42 100 errors... May 28 02:52:06 make sure it's compiling with Android 4.0+ May 28 02:53:43 how do i know what it's compiling with? May 28 02:59:06 ok, i got it to compile. turned out when i imported the eclipse project into idea, it defaulted to the java 1.7 sdk instead of the android 4 sdk **** ENDING LOGGING AT Mon May 28 02:59:58 2012