**** BEGIN LOGGING AT Sat Jan 05 02:59:59 2013 Jan 05 03:19:50 what is a good object to represent time? Jan 05 03:20:01 A clock? Jan 05 03:20:06 An hourglass? Jan 05 03:20:07 I just need h:m i.e 21:20 Jan 05 03:20:50 DateTime Jan 05 03:22:05 well, that is Joda. sorry. Jan 05 03:22:23 String Jan 05 03:23:06 RustyShackleford: more info needed Jan 05 03:23:28 long? GregorianCalendar ? Jan 05 03:23:30 well I want to be able to compare two different times Jan 05 03:23:45 as well as the difference between them in minutes Jan 05 03:24:19 will they be on different dates? span midnight? Jan 05 03:24:34 if no, long secondsSinceMidnight Jan 05 03:24:38 if yes, Date Jan 05 03:24:39 the same day Jan 05 03:25:00 i get my data in this form "20130104 21:30" Jan 05 03:25:18 long minutesSinceMidnight then Jan 05 03:25:37 of what class? Jan 05 03:25:57 none, just a long Jan 05 03:26:04 oh I see Jan 05 03:27:08 canadiancow: random act of kindness :) Jan 05 03:27:17 i placed the ban earlier Jan 05 03:27:18 Date.getTime() Jan 05 03:27:20 kept joining/quitting Jan 05 03:27:38 i hid join/parts months ago, never looked back Jan 05 03:28:12 ron_frown: oi ! Jan 05 03:28:24 howdy Jan 05 03:28:26 RustyShackleford: here Jan 05 03:28:30 ergh Jan 05 03:28:43 here's a static way: System.currentTimeMillis(); Jan 05 03:29:14 how do you control music with a wired headset Jan 05 03:29:21 single press the button to play/pause Jan 05 03:29:24 double to skip the song Jan 05 03:29:25 can you go back? Jan 05 03:29:30 RustyShackleford: so anyhow; if you get time in that format, you will probably parse it with SimpleDateFormat Jan 05 03:29:42 SDF is overkill Jan 05 03:30:03 or one of the android utilities , there are a bunch Jan 05 03:30:09 I wanted to create a fake-call app that springs into action by way of the user holding down the volume-down key for two seconds. Is that possible? Jan 05 03:30:18 long minSinceMidnight = Integer.parseInt(in.substring(9, 2)) * 60 * Integer.parseInt(in.substring(12, 2)); Jan 05 03:30:33 second * should be a + Jan 05 03:30:55 multiply all the things? Jan 05 03:31:00 o/ Jan 05 03:31:01 I think I like minutesSinceMidnight the best Jan 05 03:31:05 it's simple Jan 05 03:31:07 \o Jan 05 03:31:44 Anyone? Jan 05 03:32:18 TacticalJoke: no Jan 05 03:32:27 Doh. Jan 05 03:32:42 How about just pressing the volume-down key at all (e.g., when the screen is locked)? Jan 05 03:32:56 also no Jan 05 03:33:00 Damn. Jan 05 03:33:04 some of that would depend on hardware anyway Jan 05 03:33:11 diff input configuration on diff devices Jan 05 03:33:17 I guess I want a fake-call app that doesn't require using the screen. Jan 05 03:33:24 So that it can be invoked when the phone is in a pocket. Jan 05 03:33:29 how about a timer Jan 05 03:33:43 I think I remember seeing a LiveView plugin for that Jan 05 03:33:43 Yeah, that's possible, that requires consideration in advance. Jan 05 03:33:45 set it before you start your date, if its going well Jan 05 03:33:50 lol ron Jan 05 03:34:04 but then you'd be fiddling with your watch, which is just silly Jan 05 03:34:06 I'm thinking of people trying to avoid being attacked and such, having to invoke it at a moment's notice. Jan 05 03:34:07 even if they were to set it for 5 minutes prior it'd probably eliminate suspicion Jan 05 03:34:18 Interesting, AmandaC. Jan 05 03:34:20 And funny. Jan 05 03:34:37 anyway, sleep ~teleports back to moon base alpha~ Jan 05 03:34:38 True, ron_frown, though I hate the preparation needed for that. Jan 05 03:34:56 Isn't it possible to tap into, like, the power button? Jan 05 03:34:59 I thought I read that on the web. Jan 05 03:35:09 lockscreen widget + app with DISABLE_KEYGUARD permission Jan 05 03:35:14 hardware is specific to phone Jan 05 03:35:27 what jake said though you'd still need to turn on phone Jan 05 03:35:39 So the screen would have to be switched on and unlocked? Jan 05 03:35:44 I could make that happen easily with any of those buttons Jan 05 03:35:46 not unlocked Jan 05 03:35:51 but might as well be Jan 05 03:35:52 it'd also have to be Android 4.2+ Jan 05 03:35:56 Doh. Jan 05 03:36:06 I could make it happen on a very specfic bit of hardware Jan 05 03:36:13 You know, I wonder what existing fake-call apps do regarding real calls coming in during the fake call. Jan 05 03:36:21 ron_frown: On Gingerbread? Jan 05 03:36:25 def Jan 05 03:36:30 callception Jan 05 03:36:34 BUT Jan 05 03:36:34 lol Jan 05 03:36:40 thats custom rom Jan 05 03:36:44 Oh, I see. Jan 05 03:36:55 I wonder whether fake-call apps can disable real calls or something. Jan 05 03:37:01 Or maybe they just turn down the ringtone. Jan 05 03:37:06 thats what I'd do Jan 05 03:37:10 very simple, effective Jan 05 03:37:13 Perhaps that happens if the phone is next to the ear anyway. Jan 05 03:38:06 hey jake since youre here Jan 05 03:38:14 anyway to set up personal lock screen Jan 05 03:38:18 without rooting device? Jan 05 03:38:33 an example would be pattern lock with different pictures Jan 05 03:38:46 TacticalJoke: theres an app for that already out there Jan 05 03:38:52 you can do "fake" lock screens that are just apps and disable the real one Jan 05 03:38:57 but it's not really secure Jan 05 03:39:07 meh, looking for a real lock screen Jan 05 03:39:09 but user made Jan 05 03:39:46 Had a more secure pattern lock idea but no APIs have shown that capability Jan 05 03:40:09 An app for what? Jan 05 03:41:03 fake calls Jan 05 03:41:07 Oh, yeah. Jan 05 03:41:18 I just wanted one that could be invoked by means of using a hardware button. Jan 05 03:41:37 On on my old Qwerty phone, I could make the phone ring by holding the volume-down key for a few secs. Jan 05 03:41:51 It's so handy for getting away from unwanted chats. Jan 05 03:43:01 simulating the call is no big deal Jan 05 03:43:04 its the triggering it Jan 05 03:43:06 Yes Jan 05 03:43:06 . Jan 05 03:43:12 its easy to wake a phone up and pretend lke a call Jan 05 03:44:10 By the way, is what I said about right: Do Android phones not ring if you hold them up to your ear and someone calls you? Jan 05 03:44:18 try it Jan 05 03:44:25 And, if so, does the phone ever get confused in pockets? Jan 05 03:44:36 Oh, I have my thingy turned off right now. It's almost 4am. Jan 05 03:44:50 try it when you have it turned on Jan 05 03:45:02 You guys should know. :p Jan 05 03:45:14 TacticalJoke: phones have a fabric detector Jan 05 03:45:29 they can't detect polyester and certain types of kevlar though Jan 05 03:45:43 they have fabric detectors? Jan 05 03:45:43 wtf? Jan 05 03:45:58 Hmm. Jan 05 03:45:59 did you know they took the word gullible out of the dictionary? Jan 05 03:46:04 My reaction is KaiKai2's reaction. Jan 05 03:46:24 pfn its NOT IN THE DICTIONARY? Jan 05 03:46:25 WTF?!!?!? Jan 05 03:46:39 I always thought it was a word when i called my sister that =[ Jan 05 03:46:43 look it up and see Jan 05 03:46:47 rofl Jan 05 03:46:49 dont need to Jan 05 03:46:54 n1 though funkbox Jan 05 03:47:04 got me with the polyester and kevlar Jan 05 03:47:51 so for the custom lock app, someone said disable main lock and write an app that detects phone screen on and off Jan 05 03:48:10 and disable home button and use app as a launcher Jan 05 03:48:14 I googled it instantly and got suspicious when Google Suggest didn't show anything. Jan 05 03:48:20 Or whatever it's called nowadays. Jan 05 03:48:22 sounds like a brutal hack, whats your take on this JakeWharton? Jan 05 03:48:45 that's what i said above, wasn't it? Jan 05 03:48:49 that's what i meant, anyway Jan 05 03:49:28 mhm Jan 05 03:49:32 what would be a security flaw? Jan 05 03:49:38 hah, Google is redirecting Windows Phone users away from Google Maps. Jan 05 03:49:56 could only think of debugging hacks Jan 05 03:51:06 g00s: maps never worked on Windows Phone, read the facts Jan 05 03:51:20 KaiKai2: that I could kill the app with adb and have full access to your phone Jan 05 03:51:38 yea adb/debugging related Jan 05 03:51:46 g00s: also has nothing to do with Android nor Android dev Jan 05 03:52:40 JakeWharton: happy new year to you too (and fuck off already) Jan 05 03:52:52 * funkbox grabs some popcorn Jan 05 03:53:24 JakeWharton: adb hack would only work if adb was enabled in the first place though right? Jan 05 03:53:51 KaiKai2: yes. but your app also could crash or Android could kill it, etc. Jan 05 03:54:42 KaiKai2: what you're suggesting is fundamentally a bad idea Jan 05 03:55:37 mhmm i guess Jan 05 03:59:50 My app is populating listviews using SQLite queries. I noticed that on rotate, everything is destroyed and so the database must be requeried Jan 05 04:01:15 uh, i thought LoaderManager retained the resultset across config changes Jan 05 04:01:15 would it make sense to create a Parcelable object to hold columns of a database? Then instead of an CursorAdapter, I could just use a custom ArrayAdapter Jan 05 04:01:29 RustyShackleford: no, use a Loader like g00s said Jan 05 04:01:47 there's even a special one for Cursors Jan 05 04:02:18 i was under the impression that a CursorLoader was used with a ContentProvider Jan 05 04:04:07 hey jake Jan 05 04:04:11 http://hackaday.com/2013/01/04/is-entropy-slowing-down-your-android-device/ Jan 05 04:04:16 interesting stuff Jan 05 04:04:22 I was reading the bug report this morning Jan 05 04:04:33 i am sceptical Jan 05 04:04:34 comment #22 paragraph 3 Jan 05 04:04:35 nailed it Jan 05 04:04:53 * Jug6ernaut calls placebo Jan 05 04:05:12 JakeWharton: got a link to the bug report? Jan 05 04:05:22 I can find it, one sec Jan 05 04:05:25 Napalm: https://code.google.com/p/android/issues/detail?id=42265#c8 Jan 05 04:05:29 err #c22 Jan 05 04:05:33 cheers Jan 05 04:05:43 comments arnt numbered :| Jan 05 04:05:43 https://code.google.com/p/android/issues/detail?id=42265 Jan 05 04:05:43 it might be a bug in the kernel Jan 05 04:05:45 og wait Jan 05 04:06:00 is there sny way to make the contents of a table infinitely scrollable? I have a header row and would like the other rows to be scrollable, and upon scrolling the new rows will be manufactured possibly through an adapter? Jan 05 04:06:32 somebody looked at this, call to preemt_disable() might be the culprit Jan 05 04:06:43 xertoz: load more results when getItem() is called in the adpater is called for getCount() - 3 Jan 05 04:07:36 yeah but I can't find any way to make the table partially scrollable for an adapter to be fitted Jan 05 04:08:10 the way I understand it I have to set the scrollable rows as children to e.g. a scrollview but wouldn't that break the column witdths? Jan 05 04:08:19 JakeWharton: just curious, how many android devs do you guys have ? Jan 05 04:08:29 9 or 11 I think Jan 05 04:08:52 two switch back and forth between server and Android Jan 05 04:09:03 ah. how big of a codebase ? Jan 05 04:09:26 no clue Jan 05 04:09:28 it appears if I want my listview to be searchable, I will need a content provider Jan 05 04:09:31 is this true? Jan 05 04:10:03 no, filter the adapter yourself Jan 05 04:10:44 also, I'm not seeing how to use a loader here. How do you specify a table name? Jan 05 04:13:21 funkbox: 50k lines in the main repo not counting generated code Jan 05 04:13:25 seems low Jan 05 04:13:36 yeah i thought you guys would have way more Jan 05 04:13:47 any CI ? Jan 05 04:13:52 CI everything Jan 05 04:14:06 i'm trying to figure out the best way forward as we grow Jan 05 04:16:10 do the minimal thing necessary and add automation as needed :) Jan 05 04:16:48 jenkins running on all our repos with thousands of unit tests. we have an internal tool which prevents merges to master of branches that have failing tests. every green jenkins build posts an APK to an internal website so everyone can dogfood the dev versions of apps daily Jan 05 04:17:38 sounds like a good setup Jan 05 04:18:23 also, cloc says 160k lines of code in the main android repo (but there's about 10 external maven projects we pull in) Jan 05 04:18:43 external as in internal but existing outside of the main repo Jan 05 04:18:51 ah Jan 05 04:19:22 i wanted to setup something like that but it's a lot of initial cost Jan 05 04:20:10 i'll wait until the interns come in :) Jan 05 04:44:45 can anyone with FireFox tell me if maps.google.com works ? Jan 05 04:44:50 (mobile FireFox) Jan 05 04:49:59 g00s: seems to Jan 05 04:50:13 thanks Leeds Jan 05 04:50:25 hmm, pinch-to-zoom doesn't Jan 05 04:50:37 but it displays, it's located me correctly, it scrolls... Jan 05 04:53:57 wait JakeWharton, theres only 11 android devs? wtf? Jan 05 04:54:08 how many for server and google doy ou know in totla/ Jan 05 04:55:43 I'm trying to add my app to the play store. i already uploaded my 2 images but when i hit save it told me that you have to upload 2 screen shots. I tried reuploading my images but i get an error "The server could not process your image. Please try again later." Jan 05 04:56:47 KaiKai2: there's like 60 for server Jan 05 04:56:50 i don't know Jan 05 04:57:13 if i change my package identifier, the app is treated as an entirely new app right ? Jan 05 04:57:19 devslash: yes Jan 05 04:57:23 ok Jan 05 05:03:51 A button that I set invisible can't register input anymore? Jan 05 05:04:30 invisible still contributes space to the layout Jan 05 05:04:38 gone essentially removes it Jan 05 05:04:53 just finished writing a ListAdapter to my ListView http://nrby.eu/c/163 - it populates all children to the list fine, but only the first cell of each row created is visible. any ideas as to why? the ListView is child to a TableLayout Jan 05 05:05:13 JakeWharton: is there a way to see the full link to my app in the play store from the console ? i just published it and it doesn't appear yet in searches Jan 05 05:05:35 go to an existing app and change the package yourself in the ULR Jan 05 05:05:37 URL* Jan 05 05:05:49 ahh ok Jan 05 05:05:53 thanks Jan 05 05:06:11 well, I want a video that is skipped if you click anywhere on screen, so i just made a button and with fill_parent and android:visibility="invisible" but it doesn't work unless I remove the invisible part Jan 05 05:06:43 hmm it says not found Jan 05 05:07:14 the url is https://play.google.com/store/apps/details?id=com.myname.myappname Jan 05 05:07:28 where of course, I'm substituting byname and myappname Jan 05 05:07:29 I guess I'll have to include an onTouchListener Jan 05 05:08:01 devslash: it's not instant Jan 05 05:08:20 how long does it normally take ? Jan 05 05:08:30 JakeWharton, wanna grab a beer? Jan 05 05:08:42 can anyone spare a second to help me out with touch events? I'm trying to pass a touch event from a child to a parent, which is easy enough, but the hard part is that i want to pass it back. Jan 05 05:08:51 canadiancow: can't tonight, tomorrow though? Jan 05 05:08:57 sure Jan 05 05:09:55 I'm looking at the topic, I'm not a dev, but I have an idea for an app that I really would like someone to listen to. So knowing a possible kick, here I go. I got 5 bottles of booze on a shelf. I take a pic and get results of a drink I can make with that. That is all. Sorry to disturb. Jan 05 05:10:37 yes, you can. read up on qualcomm vuforia and make a huge database of booze labels. Jan 05 05:12:10 so uh, the scenario is that i have a viewpager with an imageview in it, the imageview allows for pinch zoom and paging. at the bounds of a zoomed in image, i want to give the touch event to the viewpager so the user can swipe to the next image. that's the easy part Jan 05 05:12:37 the hard part is that if the user decides to reverse the swipe, the touch event should go back to the child Jan 05 05:13:02 because if it doesn't, the viewpager will just go the opposite direction without paging the image. Jan 05 05:13:44 hi all... presenting to you my Android app in this video http://www.youtube.com/watch?v=MkpQPCLuiH8 . i know there are bugs, but i just want comments on the idea as a whole. if you feel that a module must be added.. tell me then Jan 05 05:13:56 I've google searched for days and I'm happy to be pushed to an appropriate doc if anyone knows what i should read to solve this Jan 05 05:16:24 frustro: seems like a computer vision problem Jan 05 05:16:35 see if OpenCV has what you need Jan 05 05:16:47 g00s, he's not a dev Jan 05 05:16:51 oh Jan 05 05:16:53 :P Jan 05 05:17:06 sounds liek something glass would be useful for Jan 05 05:17:10 Oh no. I'm still on the arduino mega adk :) Jan 05 05:17:25 look at a shelf of alcohol, and it tells you the fastest way to get drunk Jan 05 05:18:19 the most palatable way to get drunk. Jan 05 05:18:26 sure Jan 05 05:18:49 Just a concept I would like to see some day. I'm out. Happy new year! Jan 05 05:18:52 anyone in the SF area wanna help me move my living room around so i can use my new kinect? Jan 05 05:18:58 i'll give you beer Jan 05 05:19:08 * frustro is brewing beer right now Jan 05 05:20:46 canadiancow, search "zoom for kinect" bye. Jan 05 05:24:04 I love you! Jan 05 05:24:05 that is a kinda cool idea; there are things that do the same with food (what do i have -> what can i make with this) Jan 05 05:24:34 canadian: you're also an android-dev? Jan 05 05:24:37 for google* Jan 05 05:25:30 google takes forever for your apps to get fully published to the app store Jan 05 05:25:49 devslash: should be pretty quick Jan 05 05:26:05 i published it about 15 minutes ago Jan 05 05:26:33 they have to scan your apk for viruses :) Jan 05 05:27:01 its a small apk… 50k Jan 05 05:27:13 the size doesn't really matter Jan 05 05:27:25 KaiKai2, yeah Jan 05 05:27:29 does your gf/wife always say that ? Jan 05 05:27:30 JakeWharton, of course you'd say that... Jan 05 05:27:44 devslash, its like 90 minutes Jan 05 05:27:46 or something like that Jan 05 05:27:52 :p ok Jan 05 05:28:02 they have to propagate it to like >9000 servers Jan 05 05:28:19 eel with a 50k pak, it should take no more tha n1 minute Jan 05 05:28:23 damn Jan 05 05:28:40 well with a 50k apk, that ought to take no more that a minute or 2 Jan 05 05:29:19 consider that you're not the only person uploading something Jan 05 05:29:25 or is he! Jan 05 05:29:28 i guess... Jan 05 05:29:50 i doubt that google gets thousands of submissions per minute... Jan 05 05:29:57 especially on a friday night Jan 05 05:30:26 maybe you should join Google and make it faster then Jan 05 05:32:00 i wish... Jan 05 05:35:51 I have a video view that is set to fill_parent, yet I have this weird grey bar at the bottom, can someone tell me how to get rid of that? https://dl.dropbox.com/u/31690810/uni/Multimedia/2013-01-05%2006.33.56.png Jan 05 05:39:48 I came in here a few days ago wondering why my images were getting resized (which made them not render, since they were getting resized beyond the maximum of 2048x2048) - turns out it's because I had them in res/drawable, instead of res/drawable-nodpi. Which in hindsight makes sense, but took a while to figure out. Jan 05 05:40:50 I don't know how that makes sense, but I had a problem with randomly resized images as well a while ago Jan 05 05:41:59 canadiancow: jakewharton: so how do the android devs manage themselves to make sure your work is all compatible? weekly meetings or what? Jan 05 05:42:08 huh? Jan 05 05:42:12 and JakeWharton doesnt work at google Jan 05 05:42:15 compatible with what Jan 05 05:44:09 canadiancow, did anyone ever claim that he does work at google? Jan 05 05:44:11 100% genuine, organic, Google-free JakeWharton Jan 05 05:44:14 tell your friends Jan 05 05:44:29 yes, KaiKai2 asked JakeWharton how google manages shit Jan 05 05:44:47 :P Jan 05 05:45:09 huh? Jan 05 05:45:17 LOL im confused now =[ Jan 05 05:45:44 i couldve swore someone said jake worked with google Jan 05 05:46:04 won ADC got a huge gift for winning and was given a job from google Jan 05 05:46:13 that was Jeff Sharkey Jan 05 05:46:45 oh LOL kk then Jan 05 05:46:54 details, details Jan 05 05:47:09 canadiancow could you answer the question then? hehe just wanted to have some ideas how the big boys did it Jan 05 05:47:31 and i asked "compatible with what" Jan 05 05:47:36 like i dont understand what you're asking at all Jan 05 05:47:47 ahh sorry Jan 05 05:47:58 like do you guys have weekly meetings to know what everyone has to do? Jan 05 05:48:13 what features you guys want out, or just everyone does what they want? Jan 05 05:48:39 any strict deadlines? \ Jan 05 05:49:11 there are a lot of groups... Jan 05 05:49:16 i have a weekly meeting for my app Jan 05 05:49:21 oh, didn't see that he mentioned his name and that he was talking about google devs specifically Jan 05 05:49:39 deadlines depend Jan 05 05:49:50 if nexus 4 is shipping on date x, stuff has to be done before then Jan 05 05:49:58 if app x is launching sometime in january, not so muhc Jan 05 05:50:52 ahh, so is there like a group leader Jan 05 05:51:08 who sets these dates and how are these ideas/apps brainstormed? Jan 05 05:51:28 large companies generally have software designers in place Jan 05 05:51:49 unlike most open source projects Jan 05 05:52:17 which makes them clunky pieces of ... Jan 05 05:53:24 android devs here? Jan 05 05:53:44 I have a VideoView set to fill_parent but I get this grey bar at the bottom: https://dl.dropbox.com/u/31690810/uni/Multimedia/2013-01-05%2006.33.56.png Jan 05 05:54:04 alright well thanks canadiancow :) very helpful Jan 05 05:54:22 whops... wrong channel, problem related though Jan 05 05:55:09 are you on a tablet? Jan 05 05:55:16 Galaxy S 2 Jan 05 05:56:00 post xml? Jan 05 05:57:20 I have a VideoView set to fill_parent but I get this grey bar at the bottom: https://dl.dropbox.com/u/31690810/uni/Multimedia/2013-01-05%2006.33.56.png Jan 05 05:57:29 copy paste didn't work... Jan 05 05:57:29 http://hastebin.com/qatukapime.xml Jan 05 06:13:10 your textview Jan 05 06:13:13 sorrt for late Jan 05 06:13:36 im going to go to sleep but just fix that textview and it should be good Jan 05 06:13:40 test if thats the issue by deleting Jan 05 06:15:44 so, iphone has cykret which installs dpkg and apt-get or whatever Jan 05 06:15:47 is there a similar thing for android? Jan 05 06:17:59 don't think so kanzure Jan 05 06:18:53 there's TONS of third-party app stores Jan 05 06:19:34 Is there no way to capture a swipe action in an appwidget? Jan 05 06:19:45 also the Play Store isn't very restrictive so most apps are allowed there Jan 05 06:20:20 *From what I understand, you can only handle basic events like clicks, but I feel like some app widgets ive used do use swiping (I'm talking < 4.0) Jan 05 06:21:10 if you mean for scrolling there is an unofficial scrollable widget API for Android 2.x, that ADW Launcher, Launcher Pro, Go Launcher and WidgetLocker all support but no official launcher does Jan 05 06:21:11 A Jan 05 06:21:44 Also manufacturer skins implemented scrolling, and Motorola implements swipe itself but I'm not sure if they did that on 2.x. Jan 05 06:22:34 The Moto version might be usable by third party apps, but only the Motorola Launcher supports it. Jan 05 06:23:34 ahh thanks im looking for standard stuff Jan 05 06:23:38 i thought so Jan 05 06:23:59 so frustrating you can use a scrollview in an appwidget uggh Jan 05 06:24:03 *can't Jan 05 06:24:25 even for newer app widget to make simple scrolling textview you have to wrap in in the listview and do that all jazz Jan 05 06:27:30 what's a site that offers free ssl certa Jan 05 06:33:22 they are junk Jan 05 06:34:00 but StartSSSL offers them Jan 05 06:34:11 StartSSL Jan 05 06:34:21 ok s/free/reasonably priced/ Jan 05 06:34:21 :P Jan 05 06:41:28 I am getting in image from web server that is PNG, but server is passing content type as JPG. BitmapFactory.decodeFile gives blank screen for decoding. is there any way to have it not rely on mime type from the server? Jan 05 07:17:07 use a byte[] Jan 05 07:18:09 Thanks, I'll look at that Jan 05 07:25:45 Can I pay for Google Play Reg licence with PayPal? Jan 05 07:27:24 no Jan 05 07:27:34 well i dont know Jan 05 07:27:37 can you? Jan 05 07:27:50 Not that I can see Jan 05 07:28:00 How about a virtual credit card? Jan 05 07:28:30 try it Jan 05 07:28:36 heya Jan 05 07:28:40 Anywhere I can get a vcc? Jan 05 07:29:09 so i have an application running fine in an emulator which is designed for android 2.3.3; however, it doesnt seem to work on my galaxy nexus on 4.2.1 Jan 05 07:31:12 oh come on Jan 05 07:31:41 uh oh Jan 05 07:31:57 Lexi, you are going to get it Jan 05 07:32:43 wat Jan 05 07:34:20 I can't find anywhere to get a VCC.. Any ideas? Jan 05 07:34:36 VCC? Jan 05 07:34:48 Virtual Credit Card Jan 05 07:34:54 For Google Checkout Jan 05 07:35:58 Why does Google not accept PayPal.. This is stupid! Jan 05 07:36:02 ... Jan 05 07:36:12 they use google wallet Jan 05 07:36:19 cause ya know Jan 05 07:36:21 So? Jan 05 07:36:24 it's google Jan 05 07:36:42 I don't trust Google with my credit card.. Jan 05 07:36:48 ... Jan 05 07:36:50 ok Jan 05 07:37:04 if you are in the US then stores like Target or Walgreens have prepaid/reloadable credit cards . Jan 05 07:37:15 I'm in Australia Jan 05 07:39:13 Divinite: you just want buy an app with a CC … i would not worry about google Jan 05 07:39:52 otoh, i understand if you dont trust Google to be some sort of payment gateway (walet) Jan 05 07:39:53 because paypal has heinous security track record Jan 05 07:40:42 if you trust people in stores, you can trust google Jan 05 07:41:06 cant trust people in stores either :D Jan 05 07:41:27 these days nobody touches my card; i swipe it myself. Jan 05 07:41:31 i'm pretty sure a cab driver stole my credit card number once Jan 05 07:41:53 g00s: I'm applying to become a developer Jan 05 07:42:11 yeah i really prefer to not let them touch it Jan 05 07:42:16 or if they do, its not out of my sight Jan 05 07:43:00 Divinite: so then i would not worry about it Jan 05 07:43:12 and i'm pretty paranoid Jan 05 07:43:51 Hmm Jan 05 07:44:00 Problem: The money is on Paypal Jan 05 07:44:28 my god Jan 05 07:44:38 i'll pay it for you if we can just stop this pointless conversation Jan 05 07:44:43 well no not really Jan 05 07:44:46 but seriously Jan 05 07:44:48 just pay it already Jan 05 07:44:58 I don't have a card Jan 05 07:45:00 With me Jan 05 07:45:15 ok Jan 05 07:45:19 That won't have surcharges :( Jan 05 07:45:20 so... wait an hour Jan 05 07:45:34 you were willing to buy a virtual card Jan 05 07:45:40 Yep Jan 05 07:45:49 so... Jan 05 07:52:28 can you put arbitrary parcelables into an intent without the keys they use to write their dat aconflicting ? Jan 05 07:53:46 oh parcels use ordering not keys Jan 05 07:56:04 canadiancow: startssl is reasonably priced (free) Jan 05 07:56:12 k too late Jan 05 08:21:40 http://gizmodo.com/5973073/an-iphone-lovers-confession-i-switched-to-the-nexus-4-completely Jan 05 08:23:56 hellp Jan 05 08:24:00 hello* Jan 05 08:24:10 but i guess help would be appropriate too. Jan 05 08:24:14 im getting an error at line 9, "element type "linear layout" must be followed by either attribute specifications "<" or "/>" http://codepad.org/IsHxdwAb Jan 05 08:24:47 using eclipse Jan 05 08:27:31 pholey: the answer is in your question Jan 05 08:27:42 i needed a > Jan 05 08:27:45 line 6 Jan 05 08:27:59 you could have just said that however Jan 05 08:28:19 thanks anyways :), i am working on 36 hours of no sleep Jan 05 08:32:38 parcelable, can an abstract base class implement it and be added to a parcel ? Jan 05 08:33:01 guess ill find out. Jan 05 08:36:13 ok zipc i have another one for you. what i posted above was my "splash" xml file, so to use it i am using "setContentView(R.layout.splash);" however, i get the error "splash cannot be resolved or is not a field" it is super frustrating... Jan 05 08:47:17 pholey did you try cleaning your project after you made changes to the splash xml file? Jan 05 08:48:15 i did lasserix i know thats the cause of it; but i am a little unsure as what cleaning does, i was told it was to "reload" your files in a sense.. do you know how to un do it? Jan 05 08:49:58 eclipse has to link all the files, when you make changes in xml those are not effected in your code files, hence you have to clean the old linkups Jan 05 08:50:14 so what do i do lasserix? Jan 05 08:50:17 ? Jan 05 08:50:31 how do i "re link" them? Jan 05 08:50:36 cleaning Jan 05 08:50:43 clean again? Jan 05 08:50:45 yeah Jan 05 08:50:49 eclipse is like that Jan 05 08:50:59 so cleaning broke it, now i have to clean to fix it? Jan 05 08:51:18 lasserix Jan 05 08:51:20 goto the splash xml and see if there is some mal formed code Jan 05 08:51:49 usually indicated by the file in the package exlporer having a red indicator dot on it Jan 05 08:52:05 sometimes not with the xml for some reason tho Jan 05 08:52:39 given your 36 coding binge i am guessing you missed some basic syntax or something in the splash Jan 05 08:52:49 yeah i did that lasserix i fixed it Jan 05 08:52:56 i was missing a ">" Jan 05 08:53:03 lol Jan 05 08:53:07 but it is still broken? Jan 05 08:53:09 yes Jan 05 08:53:33 restart eclipse Jan 05 08:53:45 lasserix here it is http://codepad.org/DeVr8Trf Jan 05 08:53:48 ok will do Jan 05 08:55:28 umm you may want to rename the drawable splash to like splash_drawable Jan 05 08:55:40 just becasuse you could have a problem in your drawable xml Jan 05 08:55:58 but the error you posted doesn't differentiate whether its the layout or also the drawable named splash Jan 05 08:56:01 no need restarting worked lasserix... god way to go eclipse Jan 05 08:56:08 hehehe Jan 05 08:56:12 yeah Jan 05 08:56:15 i wasted like 3 hours on this shiz Jan 05 08:56:21 basically everytime you change xml Jan 05 08:56:25 and need to alter code Jan 05 08:56:28 first clean it Jan 05 08:56:35 then restart Jan 05 08:56:37 if there are no actual errors, restart Jan 05 08:56:44 cool thanks man Jan 05 08:56:47 i appriciate it Jan 05 08:56:52 it's kind of one of those ryhthms you get having to deal with it enough Jan 05 08:57:05 np Jan 05 08:57:10 goodluck get some sleep! Jan 05 08:57:20 ahah i think i will. thanks again. Jan 05 08:59:47 its back.. dun dun dun... Jan 05 09:02:12 lasserix it worked for a second then broke again :/ Jan 05 09:02:50 umm problem is eclipse is known to be wayward about cleaning, then again there could be some other cause your code to malfunction Jan 05 09:03:31 like i said make sure your splash drawable xml file is well formed Jan 05 09:03:35 lasserix im sure its not my code.. i wish it was... Jan 05 09:04:02 lasserix i posted my xml file above didn't i? Jan 05 09:04:08 yeah Jan 05 09:04:10 that was the layout Jan 05 09:04:17 in it you have something also called splash Jan 05 09:04:22 which points to a drawable xml file Jan 05 09:04:33 which is different from the layout, however you named it the same thing Jan 05 09:04:36 no points to a png Jan 05 09:04:42 well Jan 05 09:04:45 sorry idiocy Jan 05 09:05:08 should i change the name ? Jan 05 09:05:08 and splash drawable exists? Jan 05 09:05:13 yes Jan 05 09:05:17 okay Jan 05 09:05:38 should i try and rename it? Jan 05 09:05:43 then the other thing i would do , again from expireince, is make a new layout file called splash_v2 or whatever Jan 05 09:05:51 don't copy the file Jan 05 09:05:53 but copy the contents Jan 05 09:06:04 then point the code set contentview to the new layout file Jan 05 09:06:19 kind of like replacing a shoddy cable with a new cable Jan 05 09:06:39 ok Jan 05 09:11:12 still doesn't work. man im going to try switching to the ADT Jan 05 09:16:20 \o/ it works Jan 05 09:17:09 all of it people recomend swtiching to intelliji ide Jan 05 09:17:12 fyi Jan 05 09:17:34 i created a new class basically. and some box popped up but i was too tired to read it, something about content; disabled; i checked some boxes, and it worked Jan 05 09:18:05 and i will look into that lasserix is it adt compatible? Jan 05 09:18:12 Is there any way to draw all the Windows of my app to a Bitmap? Jan 05 09:18:12 i believe so Jan 05 09:18:17 I'm happy with reflection and internal APIs Jan 05 09:18:34 ok will look into it. thanks! Jan 05 09:18:35 I can't find anything on PhoneWindow or PhoneWindowManager that looks promising Jan 05 09:19:24 linux support... \o/ Jan 05 10:07:24 argh Jan 05 10:07:30 this application works fine on 2.3 but not on 4.x Jan 05 10:29:24 Now able to update the UI of the Dialog Fragment which has a ListView with CheckedTextView and a CheckAll checkbox Jan 05 10:55:22 notifyDataSetChanged fails to update the ListView. http://stackoverflow.com/questions/14137760/notifydatasetchanged-fails-to-update-listview Jan 05 11:02:10 Hey guys, I need help with the google maps api v2 for android. I added some marker and text for an infowindow, but when I move the map (which will be forced by the marker when I tap them), the infowindows will be closed. Does someone know how I can disable this? Jan 05 11:03:19 The sample of the new api dosn't have this issue. I checked the code, but I cannot find any line which disables this. Jan 05 11:10:11 seed: can u share ur code Jan 05 11:10:12 ? Jan 05 11:10:44 I can show you some parts of it harshamv Jan 05 11:13:51 hm.. I think I detected the issue.. I thought it was an issue of google maps, but it is my code ;( Jan 05 11:14:35 Everytime the map is moving the event "OnCameraChange" is fired and forces a reload of the marker.. That's the reason why it is getting closed. Jan 05 11:15:02 My fault, sorry guys. ^^ Jan 05 11:15:09 But thanks for helping. :) Jan 05 11:40:50 if I put two fingers very close together and touch the screen it will trigger only one ACTION_(POINTER)_DOWN, but when I separate my fingers and release them I get two ACTION_(POINTER)_UP Jan 05 11:44:34 and if I wait a little after I separated my fingers I will get another ACTION_POINTER_DOWN Jan 05 11:44:40 I hate touch events :S Jan 05 11:45:45 it also works the other way round Jan 05 11:46:47 and I can also trigger 3 ACTION_UP with just two ACTION_DOWN o_O Jan 05 12:33:41 hello, is there any component that fills the remaining space? Jan 05 12:33:59 [[text view] [filler] [text view]] Jan 05 12:34:10 has anybody used 'SimpleXML' before? Jan 05 12:34:18 locks: you can use a generic View Jan 05 12:34:39 or possibly use a layout which doesn't require it Jan 05 12:36:00 zhangxaochen: it sounds familiar Jan 05 12:36:57 i tried it in a java project, it works fine, but when adding it in android project, got E/AndroidRuntime(19755): Caused by: java.lang.NoClassDefFoundError: org.simpleframework.xml.core.Persister Jan 05 12:47:12 solved.. ignore me Jan 05 12:53:32 where is my generated xml files stored on android ? Jan 05 12:56:36 Has anyone else noticed that google analytics doesn't report on rooted android phones? Jan 05 13:13:52 zhangxaochen: are you root? or running as your app? Jan 05 13:14:28 yes i've already root Jan 05 13:14:30 Leeds☞ Jan 05 13:49:31 hello, if i launch an activity from another activity using an intent, how can i get the parent activity form the child activity? Jan 05 13:50:54 What do you want to do with the activity instance? Jan 05 13:51:16 finish it Jan 05 13:51:33 Huh? Why not just depend on the actual lifecycle? Jan 05 13:51:52 i want to exit the application if you click exit Jan 05 13:51:58 instead of going all the way back Jan 05 13:52:41 You could just launch the home screen Jan 05 13:52:48 http://stackoverflow.com/questions/3226495/android-exit-application-code Jan 05 13:52:58 which is the much cleaner way Jan 05 13:53:10 ,but that just send my application on background Jan 05 13:53:12 Because if you relaunch the activity afterwards, you're back where you closed it Jan 05 13:53:13 i don't want that Jan 05 13:53:25 What you don't want is messing with the activity lifecycle Jan 05 13:53:55 If the application in background takes up too much memory, the OS will take care of that by itself Jan 05 13:54:54 i'd still prefer to kill it for battery saving issues Jan 05 13:54:55 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 Jan 05 13:54:57 no Jan 05 13:55:01 Read that post Jan 05 13:55:39 thanks Jan 05 13:55:43 The activity lifecycle is something you should never interfere with UNLESS there is some vital features which depend on it, which there probably aren't Jan 05 13:57:29 i'll just override intent Jan 05 13:57:38 which will allow me to have a listener on it Jan 05 14:00:43 You should really rethink that. The lifecycle is also a usability feature Jan 05 14:00:58 If you go to the homescreen from an app, say, to check your email Jan 05 14:01:13 you don't want to navigate all the way through the other application again when it is resumed Jan 05 14:01:18 you want to be where you left off Jan 05 14:02:03 thing is i do want to navigate all the way through Jan 05 14:02:32 since this thing is fetching live data Jan 05 14:02:38 i don't want to be stuck with old data Jan 05 14:02:44 and having to 'refresh' Jan 05 14:02:50 when icould just do the whole thing again Jan 05 14:03:09 Then you should probably rethink how you fetch your data. With something asynchronous running in the background Jan 05 14:03:19 instead of doing it in one certain activity Jan 05 14:03:38 new instance -> choose information i'm interested in fetching Jan 05 14:03:44 maybe an intent service would help? Jan 05 14:03:44 new instance -> refresh Jan 05 14:03:51 same number of steps Jan 05 14:04:06 but if i can choose information which i;m interested in, i have more accesibility Jan 05 14:04:06 So it's just 2 activities for now Jan 05 14:04:14 well multiple activities Jan 05 14:04:16 2 levels max Jan 05 14:04:37 What exactly are you planning on doing? Jan 05 14:04:38 i dont know the situation but you may want to take a look at this http://developer.android.com/reference/android/app/IntentService.html Jan 05 14:04:46 sonOfRa, personal use Jan 05 14:05:09 Even if it is personal use, sticking to guidelines is probably not the worst of ideas Jan 05 14:05:20 sonOfRa, tracking gps location of various devices Jan 05 14:09:12 So, what I imagine right now is one activity to select a device, and another one to view the position? Jan 05 14:09:22 (and maybe other information about the device) Jan 05 14:09:54 something like that Jan 05 14:10:03 more like a device category Jan 05 14:10:12 and on the second one multiple devices informaiton Jan 05 14:11:57 And you get that information from a remote server, like a HTTP request or something of the like? Jan 05 14:12:15 Then I would be storing WHICH data you are currently viewing (maybe a unique ID) in the second activity Jan 05 14:12:32 and in onResume, you load the data. That way, if you resume the activity, it is automatically refreshed Jan 05 14:12:50 sonOfRa, you are right Jan 05 14:12:58 that would be ok Jan 05 14:13:14 but maybe some people, such as myself, own crap low end devices Jan 05 14:13:25 and genuinely want to close applications Jan 05 14:14:19 Well, if you are on a low end device, the activity will be closed anyways if something else needs RAM Jan 05 14:15:17 there is no need to ever hard-close any app, except if it crashed or somehow got in a bad state where it can't escape from itself Jan 05 14:15:48 sonOfRa is right but if your intent of doing it you can always use the finish() method Jan 05 14:16:14 that will close an activity Jan 05 14:16:24 Of course, you CAN Jan 05 14:16:26 Bropane, well, my problem is that i can't get the parent activity Jan 05 14:16:27 but you shouldn't Jan 05 14:16:30 it is bad practice Jan 05 14:16:31 yep Jan 05 14:16:41 you can even call System.exit(0) to kill the whole process Jan 05 14:16:49 but that's usualy not the best idea Jan 05 14:18:03 just for the record, i have a button in my status bar Jan 05 14:18:06 that kills apps Jan 05 14:18:09 i love it Jan 05 14:18:14 lol Jan 05 14:18:24 because apps just dont know when to quit Jan 05 14:18:27 and i want them to Jan 05 14:18:51 i like my system to only use 30 mb of ram Jan 05 14:19:11 Do any of you guys have experience working with expandableListViews? Jan 05 14:19:15 In Android fantasy land, task killers and "exit" buttons are unecessary but in the real work they aer in a few cases Jan 05 14:19:24 *world Jan 05 14:19:32 But not for what loin is using them. Jan 05 14:19:52 I use the task killer during development in order to try out different inputs for my applications Jan 05 14:20:22 So how do I use a button on screen to change the header (url) of webview? Jan 05 14:20:26 its not a task killer per se Jan 05 14:20:34 its just a button that kills the current application Jan 05 14:21:29 Som ROMs have a setting under the development tab in settings that allows you to long press the back button and kill applications Jan 05 14:21:38 some* Jan 05 14:22:05 that's always good :) Jan 05 14:22:48 so you only use 30MB of your ram and are wasting the rest of it? Jan 05 14:22:57 have any of you guys messed with nfc? Jan 05 14:23:12 like a onClick [ header('',webView1); or something Jan 05 14:23:43 BtbN, nothing better than wasted ram :) Jan 05 14:23:59 its like having a trophy wife Jan 05 14:24:13 yes, fucking stupid it is. sorry. Jan 05 14:24:54 killing (or exiting if it has an exit button) aps i useful in case of a misbehaving app (uses CPU while idle when it should not, misbehaving requiring a full process restart to put the app in a working state again) Jan 05 14:25:08 or does anyone know where I can ask? Jan 05 14:25:39 @HavocAngel stackoverflow.com Jan 05 14:25:59 thanks love Jan 05 14:26:06 np Jan 05 14:28:11 @HavocAngel I would try using the loadUrl() method on your View. This should help http://developer.android.com/reference/android/webkit/WebView.html#loadUrl%28java.lang.String%29 Jan 05 14:29:45 where do I place that? Jan 05 14:31:03 can I put it in the onClick event for the button or do I have to create a method for it in the java? Jan 05 14:31:34 I would say try it out! Jan 05 14:31:38 ^_^ Jan 05 14:31:40 probably in onClick Jan 05 14:32:03 I would put it in the OnClick event. Jan 05 14:35:54 anybody else having problem uploading new apk? I have been getting "An unexpected error occurred. Please try again later." since yesterday Jan 05 14:37:54 android:onClick="loadUrl("http://google.com/")" causes an error Jan 05 14:38:06 oh Jan 05 14:38:24 in android:onClick="" you define the method that is called when the button is clicked Jan 05 14:38:31 okay Jan 05 14:38:36 That means, a method in your activity Jan 05 14:39:16 android:onClick="clickBtn" => public void onClick(View v) {//code here} Jan 05 14:39:19 that worked Jan 05 14:39:33 public void clickBtn(View v) you mean Jan 05 14:40:00 i used onClick Jan 05 14:40:09 should I use clickBtn? Jan 05 14:40:18 If that's the name you gave android:onClick Jan 05 14:40:21 it doesn't matter, just has to be unique in each activity Jan 05 14:40:29 oh wait Jan 05 14:40:31 lol Jan 05 14:40:40 https://developer.android.com/reference/android/view/View.html#attr_android:onClick Jan 05 14:41:27 cool, next I need to figure out how to do this popup. every time I click THAT button, it errors out Jan 05 14:41:52 like an About Jan 05 14:42:17 but I can get to that later Jan 05 14:42:46 would have thought it would be fairly easy to implement a popup dialog though Jan 05 14:42:51 hmm Jan 05 14:42:54 it is Jan 05 14:43:47 http://developer.android.com/reference/android/app/AlertDialog.html Jan 05 14:44:41 when I use the devoloper's guide for Dialogs, I get an error for getActivity() Jan 05 14:44:50 is your manifest set to access the internet? Jan 05 14:44:59 yes Jan 05 14:46:06 does getActivity require something inside the parentheses? Jan 05 14:46:26 It's just a method of Fragment Jan 05 14:46:43 Hello, I am writing client server aplication in java, I should support android and pc, problem that I have is I use Image from awt to store some images which are sent over all clients. How should I abstract Image so it works fine on both android and pc? Or how could I do the mapping form Image to android bitmap or something similar? Thanks! Jan 05 14:46:45 And in the case of Dialogs, DialogFragment inherits it Jan 05 14:51:59 how about changing minimum api level? Jan 05 14:52:09 I had it set to 8 but it needs to be 11? Jan 05 14:52:23 it does? Jan 05 14:52:50 Call requires API level 11 (current min is 8): new android.app.DialogFragment Jan 05 14:53:03 The support lib works back to api4 Jan 05 14:56:35 hey Havoc you there? Jan 05 14:56:59 yep Jan 05 14:58:04 ok i got the Web View to load the URL its pretty simple. This is what my MainActivity looks like. Jan 05 14:58:06 package com.example.webviewtest; Jan 05 14:58:06 import android.app.Activity; Jan 05 14:58:07 import android.os.Bundle; Jan 05 14:58:07 import android.view.Menu; Jan 05 14:58:07 import android.view.View; Jan 05 14:58:40 ... Jan 05 14:58:45 :) Jan 05 14:58:48 pastebin.com Jan 05 14:59:15 ok, im noob here so yeah lol Jan 05 14:59:35 i'm even more noob :D Jan 05 14:59:39 but not at irc Jan 05 15:01:50 here you easier to read http://pastebin.com/AzFPSHtZ Jan 05 15:03:10 heres my xml layout that i used http://pastebin.com/fzSVtVFh Jan 05 15:03:47 thanks bropane Jan 05 15:03:50 np Jan 05 15:04:58 heres a good tutorial if you want more features http://www.androidaspect.com/2012/09/android-webview-tutorial.html Jan 05 15:07:59 anybody else having problem uploading new apk? I have been getting "An unexpected error occurred. Please try again later." since yesterday Jan 05 15:08:37 found the next step too; handling links inside webview ^_^ Jan 05 15:08:43 i'm on a roll@ Jan 05 15:08:50 nice Jan 05 15:09:20 next... theming buttons ^_^ Jan 05 15:12:34 When trying to start an intent with ACTION_SEND, it doesn't seem to find any apps, what have I done wrong? D= Jan 05 15:13:43 Hello, beginner here, my play test app needs to remember some words permanantly that are defined by user, is there a good resource to look up for storing data or anything like that? :-) Jan 05 15:13:57 Or does android remember variables Jan 05 15:15:19 @Kieronboz Yes there is SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html Jan 05 15:15:33 Ah great thanks Bropane :-) ill take a look Jan 05 15:16:10 Np, it's great. I'm using it on a project I'm working on now to remember saved emails and passwords. Jan 05 15:17:04 hmm, you saying that- do you think it might not be as suitable to what I want, im just learning so im making a sort of Goal Planner? Jan 05 15:17:44 http://developer.android.com/guide/topics/data/data-storage.html Jan 05 15:18:01 so the data im trying to remember would be a title, a date, boolean, stuff like that, printed back out in a nice way after filling in a form Jan 05 15:18:24 thanks SimonVT, ill take a look Jan 05 15:18:32 Ah the sharedpreference is listed here too Jan 05 15:19:53 I don't see what Im doing wrong. I've looked over http://developer.android.com/training/basics/intents/sending.html and tried practically exactly the same thing but I get no apps for ACTION_SEND. Jan 05 15:20:00 Oh, maybe not so much then. In that case I would go with an SQLite database. You could also use an XML file with a parser but its kinda hard and you said you were a beginner. At least it was for me. Jan 05 15:20:29 I am very much a beginner but ill give it a go anyway, cheers :-) Jan 05 15:20:48 If this helps... http://pastebin.com/az48aBpm Jan 05 15:27:03 @Blobby So you trying to start a browser on the page craftland.org? Jan 05 15:27:53 Im trying to share the link via other applications Jan 05 15:28:51 I have Gmail, Facebook, standard apps etc installed Jan 05 15:29:37 ok I'll look into this Jan 05 15:30:10 ACTION_VIEW works fine Jan 05 15:30:23 And happily returns browsers to view. Jan 05 15:35:38 i want to create chat app using facebook api, but i cant find native app codes, can someone help me??? Jan 05 15:36:26 hello guys any idea with this ? http://stackoverflow.com/questions/14172333/listview-android-and-quantity-at-each-row Jan 05 15:38:20 i cant seem to find relevant information Jan 05 15:40:17 Like http://code.google.com/p/facebook-java-api/ Jan 05 15:40:18 ? Jan 05 15:43:59 basically i want to create an app that shows all facebook page fans Jan 05 15:44:11 online on a chat Jan 05 15:44:20 with their pictures Jan 05 15:44:48 but they can log in using facebook id and like the page once they done that they can chat with each other Jan 05 15:44:52 does this make sense??? Jan 05 15:45:55 Im new. Just did a google search, is all. Jan 05 15:46:37 ok Jan 05 15:46:38 did you get it working Blobby? Jan 05 15:47:43 Nope Jan 05 15:47:59 I dont see why ACTION_VIEW works fine Jan 05 15:48:11 k im getting close I think. I'll post it on pastebin when im done. Jan 05 15:48:26 Thanks Jan 05 15:49:15 Blobby: is anything printed in the logcat that is useful? Jan 05 15:49:28 nope Jan 05 15:49:53 What's the easiest way of swiping between Fragments on 2.2? Jan 05 15:50:03 I mean "of allowing users to swipe between Fragments". Jan 05 15:50:30 can someone help me with this project Jan 05 15:50:35 it is open source project Jan 05 15:50:45 Just messages about memory changes Jan 05 15:50:54 i need a team Jan 05 15:51:02 carlos456: read the topic Jan 05 15:51:17 which topic? Jan 05 15:51:27 carlos456: the channel topic: /topic Jan 05 15:51:49 for what? Jan 05 15:52:06 "Please no advertising or job solicitation." Jan 05 15:52:13 my god Jan 05 15:52:13 Son of a ninja... Jan 05 15:53:01 who is son of ninja? Jan 05 15:53:44 *Facepalm* Jan 05 15:54:27 Anyone? Jan 05 15:54:29 i want to know who is son of ninja Jan 05 15:55:54 Tactical, isn't there a template for that? Jan 05 15:56:30 Yeah, but it requires 3.0+. Jan 05 15:56:41 so I need to send the text from editText to the webView and it says to use this http://pastebin.com/cmWuP8JM but I don't know where to put it. Jan 05 15:57:08 Ah. Jan 05 15:59:27 basically "search box" --> http://url.com/index.php?search="search box" Jan 05 16:02:27 So your taking input, and forming a url? Jan 05 16:02:59 yes Jan 05 16:03:23 if I could do this in php, it'd be so much faster lol Jan 05 16:03:39 oh god php Jan 05 16:03:57 Hi, how do you translate screen coord to world coord? running a glsurfaceview Jan 05 16:04:23 you don'tlike php funk? Jan 05 16:04:31 I've tried googling it for a couple of hours, but it seems the only solution I've found involves a matrix-wrapper around the gl-object o_O that seems a bit weird Jan 05 16:04:43 http://pastebin.com/zyqR4txw <-- also, can I group these together somehow or do I need to make a million of them? Jan 05 16:04:49 Noone in their right mind likes php :O Jan 05 16:05:15 I guess I'm not in my right mind :P. Jan 05 16:05:23 php is fun Jan 05 16:05:48 There's just so many things about php that are just... no Jan 05 16:05:53 Isnt that as simple as http://pastebin.com/tmMu4HwZ ? Jan 05 16:06:41 I can see that. It's not as strongly typed as other languages so things can get "funny". Jan 05 16:06:49 HavocAngel: i don't Jan 05 16:07:18 hm. Blobby, query being what? Jan 05 16:07:19 well without php th einternet wouldn't be where it is, but it's not a great language Jan 05 16:07:30 (it's asking me for query to be a string) Jan 05 16:07:30 anyone knows if this is usable (exists on alot of devices) or not? http://www.khronos.org/registry/gles/extensions/OES/OES_matrix_get.txt Jan 05 16:07:42 A string of whats inside editText Jan 05 16:07:55 funkbox: yeah, we'd have no facebook. :P Jan 05 16:08:04 AmandaC: true Jan 05 16:08:27 Would no facebook really make the world worse off? Jan 05 16:08:39 the way facebook came about was a dude writin' some code. php as enabled a lot of people to write sites very quickly. heck, even i started off with php Jan 05 16:09:16 findViewById(R.id.my_edit_text) ? Jan 05 16:09:59 I remember a time when php intimidated me. I feel ashamed to admit that. Jan 05 16:10:09 php as enabled a lot of people to write sites very quickly. Jan 05 16:10:11 And very badly Jan 05 16:10:29 String query = editText.getText().toString(); Jan 05 16:11:08 But yeah Jan 05 16:11:23 Pretty much. Just going off the training pages here. Jan 05 16:11:35 The fact that '==' is non-transitive is just totally awkward Jan 05 16:15:20 hi, my thread freeze for no reason :/ Jan 05 16:16:28 once, it was written 'cpu may be pegged' Jan 05 16:20:08 raz86 you dont get an exception higher up? either you run extremely long running code on your main thread or you simply missed an exception higher up in the logs Jan 05 16:20:38 Bropane - Figured out my issue Jan 05 16:20:41 Thanks anyway Jan 05 16:21:07 thanks for the help guys ^_^ Jan 05 16:21:30 extremely long running code is possible... how to wake up ? Jan 05 16:23:03 Can i see the code. I was just about to quit lol. Jan 05 16:23:27 Hmm Jan 05 16:23:28 Nope Jan 05 16:23:30 I can't get that damn chooser to appear. Jan 05 16:23:33 I broke something again Jan 05 16:23:37 xD Jan 05 16:23:42 damn Jan 05 16:23:45 lol Jan 05 16:24:14 If i set the type to text/plain it shows me the apps Jan 05 16:24:16 Its a start Jan 05 16:24:47 that's wierd. When I did that it just opened my text messager on my emulator. Jan 05 16:25:26 even when im trying to send a jpeg it still wants to open the text messager Jan 05 16:25:56 Where could I find thread error? (except for DDMS..) Jan 05 16:27:11 http://pastebin.com/RaWuWkgR what's wrong here? Jan 05 16:27:12 This is evil. Jan 05 16:28:59 Why not just open it using a browser? Jan 05 16:29:23 did you try google Blobby? Jan 05 16:29:23 the webview is inside the app Jan 05 16:29:34 Oh. Jan 05 16:29:36 I did indeed Jan 05 16:29:57 The files are INSIDE the computer Jan 05 16:33:52 Hello Jan 05 16:36:51 Got more apps up Jan 05 16:37:03 Hmm Jan 05 16:37:08 God damn facebook... Jan 05 16:37:29 Itll do Jan 05 16:37:34 I can share the HTML of it. Jan 05 16:37:54 sure Jan 05 16:38:36 my code is trolling me. Text messager says it's the god of pictures :P Jan 05 16:38:44 http://pastebin.com/F4ktEQW7 Jan 05 16:45:15 Blobby I can't get that chooser to appear. I'm throwing in the towel. Jan 05 16:45:30 You cant even get the chooser to appear? Jan 05 16:45:32 o-O Jan 05 16:45:36 nope Jan 05 16:45:46 this is what im using Jan 05 16:46:08 startActivity(Intent.createChooser(intent, "Open With:")); Jan 05 16:46:30 all the other intents are set up properly i think Jan 05 16:47:02 im setting the type to image but my damn text messager keeps opening Jan 05 16:47:16 maybe ill try running it on my actual phone that has more apps Jan 05 16:47:42 Umm Jan 05 16:48:00 Im just using Jan 05 16:48:01 this.startActivityForResult(Intent.createChooser(intent, "Share Craftland via"), PICK_SHARE_APP); Jan 05 16:48:27 Unless you only have 1 app to use it with? Jan 05 16:48:35 Tried plain/text ? Jan 05 16:48:56 I end up getting Drive, Evernote, Gmail, Skype and AndFTP for it Jan 05 16:48:57 i think that might be it. When i did plain text it still just opened test messager Jan 05 16:49:16 thats all stuff that arent installed on mr emulator Jan 05 16:49:32 Im using a real device Jan 05 16:49:50 Mabye its your emulated device? Jan 05 16:50:29 I think i just dont have enough app on here to catch the intent. I'll try it on my actual device. Just need to change some code. Jan 05 16:52:51 yeah my code wasn't bad i just didn't have enough apps lol Jan 05 16:54:11 Nice Jan 05 16:54:31 does the touch event run on the same thread as the glsurfaceview rendering? Jan 05 16:55:09 svearike: probably Jan 05 16:55:58 so it would be "safe" to use the gl context from within the touch event? Jan 05 16:56:05 no Jan 05 16:56:12 don't do that Jan 05 16:56:27 not to render stuff, anyway Jan 05 16:56:40 using the gl context as in retrieving the matrices without fear of them being altered in the middle of the process Jan 05 16:57:12 otherwise I'm not sure how I would get the screen coord -> world coord Jan 05 16:58:18 When starting an activity with an intent of ACTION_*****, how would I go about stopping it? Jan 05 16:58:30 Blobby: you don't Jan 05 16:58:59 If I switch app while the chooser is up, it kinda...hibernates/ Jan 05 16:59:15 The android system is designed to kill activities when it needs memory Jan 05 16:59:29 I dont need extra memory. Jan 05 16:59:55 I mean Jan 05 17:00:08 Its there in the Recent apps menu, but when tapped, does nothing. Jan 05 17:01:02 are you talking about the activity where the intent origanted? Jan 05 17:01:08 Oh Jan 05 17:01:27 originated* Jan 05 17:01:28 Would I be looking at something like this.finishActivity(PICK_SHARE_APP); Jan 05 17:04:35 Other apps just close it Jan 05 17:04:38 I dont see how Jan 05 17:05:14 blobby what are you trying to do? Jan 05 17:05:32 When switching apps with the chooser up, it'll break Jan 05 17:05:44 I want a way to close the chooser when the app stops Jan 05 17:06:51 chooser? Jan 05 17:07:20 this.startActivityForResult(Intent.createChooser(intent, "Share Craftland via"), PICK_SHARE_APP); Jan 05 17:07:31 the menu that appears when you put out an intent that different applications can take Jan 05 17:10:02 Trying this.finishActivity(PICK_SHARE_APP) just makes the entire thing crash Jan 05 17:12:00 why not fix the problem that makes your app crash when the chooser is up Jan 05 17:12:12 rather than trying to workaround the problem by closing the chooser Jan 05 17:12:21 That implies that I know what the problem is. Jan 05 17:12:24 What do people use an activity's onDestroy method for? Since an app can be killed by the system and onDestroy won't be called, it feels kind of a strange method. Jan 05 17:12:36 that seems like the #1 priority Jan 05 17:12:41 finding out what the problem is Jan 05 17:13:25 the exact same thing is working just fine in one of my apps Jan 05 17:13:31 so it's not normal behavior Jan 05 17:13:47 Thats weird Jan 05 17:13:52 Now its not crashing Jan 05 17:13:56 Thats....odd. Jan 05 17:14:19 well, when it used to crash, what was the stacktrace? Jan 05 17:14:24 and the exception thrown? Jan 05 17:14:31 It didnt throw any Jan 05 17:14:37 It just refused to open again Jan 05 17:14:43 Logcat didnt have anything useful Jan 05 17:14:55 'refused to open again', like it would stay in the other app? Jan 05 17:14:59 present a blank screen? Jan 05 17:15:17 When I tapped it in the Recent Apps menu, nothing would happen Jan 05 17:15:26 It'd just stay in the Recent Apps menu Jan 05 17:16:01 that's weird, never seen that happen Jan 05 17:16:29 Seems to have resolved itself now. I'll see if it plays up later on. Jan 05 17:16:46 it does close the chooser dialog when I switch Jan 05 17:16:52 Yeah Jan 05 17:16:57 Before it just stuck Jan 05 17:22:54 how can i print a stacktrace when i'm not in an exception? Jan 05 17:23:59 xorgate, something like Thread.getCurrentThread.getStackTrace or something like that Jan 05 17:30:19 cythrawll cheers Jan 05 17:31:32 abhinavmehta, I'd recommend Eclipse (or IntelliJ IDEA) to start, since there's a lot of generated stuff with Android. You can do all of this on your own, but I think at first it'll make things easier. Jan 05 17:32:14 mdkess: onDestroy is called... Jan 05 17:32:31 The final call you receive before your activity is destroyed. This can happen either because the activity is finishing (someone called finish() on it, or because the system is temporarily destroying this instance of the activity to save space. You can distinguish between these two scenarios with the isFinishing() method. Jan 05 17:32:38 mdkess: hmm….I was hoping to keep the same strategy to start, later once I get acquaint with sdk I'll switch to regular editor. Jan 05 17:33:09 Can't recommend that with Android development, unless you get yourself full autocompletion and javadoc hints Jan 05 17:33:32 mdkess: there are some good tutorials for iOS development on iTunes by Stanford etc…nothing such I found for android Jan 05 17:33:55 abhinavmehta: have you even looked at the training and tutorials on d.android.com? Jan 05 17:33:56 http://developer.android.com/training/index.html Jan 05 17:34:16 abhinavmehta, that's because we're underground and still cool. I'd recommend Google's site, and just looking through examples. Jan 05 17:34:48 Leeds: sorry..somehow missed earlier, hmm that have some wealth of info. thank you :) Jan 05 17:35:15 sonOfRa: you pointed something really I was looking at..thanks :) Jan 05 17:35:47 Trinsta, the part that confused me was "There are situations where the system will simply kill the activity's hosting process without calling this method (or any others) in it, so it should not be used to do things that are intended to remain around after the process goes away." Jan 05 17:36:14 where is that from? Jan 05 17:36:23 Trinsta, http://developer.android.com/reference/android/app/Activity.html#onDestroy() Jan 05 17:36:34 end of second paragraph Jan 05 17:36:40 it's kind of a weird way to word it Jan 05 17:36:56 Or really, entire second paragraph Jan 05 17:37:03 but they mean you shouldn't use this method to synchronize with persistent storage, since it's not guaranteed to be called Jan 05 17:37:14 what it simply means is Jan 05 17:37:25 for saving info you should always save in onPause Jan 05 17:37:43 no, that's also not guaranteed to be called Jan 05 17:37:53 the '(or any others)' part Jan 05 17:38:00 i mean onStop Jan 05 17:38:05 same deal Jan 05 17:38:17 how so? Jan 05 17:38:35 onStop is called when you finish() or system decides to free memory Jan 05 17:38:42 there are situations where android will just kill the process, without calling _anything_ Jan 05 17:38:53 unless the system decides to close teh application while its in teh forfront Jan 05 17:38:53 not onDestroy, not onPause, not onStop Jan 05 17:39:14 so you're saying the system will kill the process while its runnig? Jan 05 17:39:20 the only times that would happenw ould be forceclose Jan 05 17:39:23 or non ui respose Jan 05 17:39:27 yep, that can happen in low-memory situations Jan 05 17:39:40 also called bad designing haha Jan 05 17:40:23 well, not really, you just shouldn't depend on this to make stuff persistent Jan 05 17:40:30 so the only way it doesnt work the way its supposed to is when you designed it to not Jan 05 17:40:32 no logically it doesnt make sense Jan 05 17:40:48 you should either sync on a timer and then as well onPause Jan 05 17:40:51 its like trying to save word file before BSOD on pc Jan 05 17:41:01 during* Jan 05 17:41:06 Trinsta: word auto-saves for exactly this reason Jan 05 17:41:19 changed to during* Jan 05 17:41:24 ie, the backup saving mechanism Jan 05 17:41:31 yes but its timed Jan 05 17:41:33 thats why it works Jan 05 17:41:39 it doesnt detect BSOD before it happens Jan 05 17:41:50 and save it 1 millisecond or during BSOD Jan 05 17:42:05 sure, but what does that have to do with anything? Jan 05 17:42:26 in Android onStop is called before system decides to kill or you decide to kill Jan 05 17:42:28 the only thing I meant is you should not depend on any of the callbacks being called Jan 05 17:42:31 unless theres a memory leak Jan 05 17:42:35 or your application already uses too much memory Jan 05 17:42:39 it shouldn't crash Jan 05 17:43:02 Trinsta, so going back to my original question - is there any use for onDestroy since you can't guarantee it'll be called? Jan 05 17:43:05 no, there could be another application eating the memory Jan 05 17:43:20 most things can't be "dependable" but in this case the only reason why this function would be slightly "undependable" would be when you as a programmer created a memory leak Jan 05 17:43:21 I mean, they seem to suggest killing background threads, but is there more? Jan 05 17:43:29 causing yours to crash, there could be a driver of other part of android that crashes Jan 05 17:43:29 your application is on the forefront... Jan 05 17:43:39 the android system would kill that application and not the forefront application Jan 05 17:44:08 if its driver error that's not androids fault haha Jan 05 17:44:30 Trinsta: that's not the point, just like it's not word's 'fault' if the system BSOD's Jan 05 17:44:46 it's still a good idea to do some best effort to save the user Jan 05 17:45:01 that's just good design Jan 05 17:45:04 Maurits_: if your application is on the forefront and you pressed home/back your application would call onPause or onStop Jan 05 17:45:12 thus it would be saved. Jan 05 17:45:19 no, again, read the message Jan 05 17:45:37 Umm Jan 05 17:45:38 "There are situations Jan 05 17:45:38 where the system will simply kill the activity's hosting process Jan 05 17:45:39 if it was killed while in the forefront then thats caused from memory leak or memory cap Jan 05 17:45:41 without calling this method (or any others)" Jan 05 17:45:43 Well this is wrong and terrifying Jan 05 17:45:48 Eclipse is throwing errors at me Jan 05 17:45:53 note the '(or any others)' part Jan 05 17:45:57 Mainly about my manifest file Jan 05 17:46:09 [2013-01-05 17:45:53 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for C:\Android\Craftland\AndroidManifest.xml: The markup in the document preceding the root element must be well-formed. Jan 05 17:46:11 maurits_ when has your application ever died while in the forefront? Jan 05 17:46:19 So basically - your app can get killed atany time is what they're saying. Jan 05 17:46:24 blobby: try to clean project Jan 05 17:46:33 particularly if you're a foreground process - you *won't* get arbitrarily killed unless the system is under extreme resource pressure Jan 05 17:46:45 Clean? Jan 05 17:46:46 mdkess: of course, but its still majorly dependable Jan 05 17:46:50 exactly, normally it won't happen, but it's not guaranteed Jan 05 17:46:57 Leeds: this. Jan 05 17:46:59 on any multitasking system your process could get killed by the OS at any time Jan 05 17:47:08 'unless it's under extreme resource pressure' Jan 05 17:47:23 which would mean memory leak or a crash caused by your application Jan 05 17:47:28 in normal operation, that won't happen Jan 05 17:47:28 no, it wouldn't Jan 05 17:47:31 Well, sure, but I mean, under reasonable circumstances, it'll go through a proper lifecycle transition. But that sentence in the onDestroy docs confused me. Jan 05 17:47:33 if there is extreme resource pressure they would kill other applications first Jan 05 17:47:48 and hopefully that application is "resource pressure" Jan 05 17:47:55 no, because it can't always clear it up in time Jan 05 17:48:04 And internel error occured during: 'Compute launch button tooltip' Jan 05 17:48:07 have you tested your theory before? Jan 05 17:48:10 Oh god, whats going on D= Jan 05 17:48:13 Trinsta: yes Jan 05 17:48:30 blobby: try restarting eclipse, back up project, and reimport Jan 05 17:48:33 clean again and try again Jan 05 17:48:38 if not upload it to pastebin Jan 05 17:48:45 androidmanifest.xml Jan 05 17:48:46 Clean? Jan 05 17:48:50 what can happen is the system needs the memory right away, and doesn't have time to call all the lifecycle callbacks to let the app know it needs the memory Jan 05 17:48:51 Mauritis: how did you test it Jan 05 17:48:53 always clean Jan 05 17:48:55 and just kill it right away Jan 05 17:49:03 how did you test it Jan 05 17:49:13 Trinsta: just running my app on a resource constrained device Jan 05 17:49:22 exactly. Jan 05 17:49:28 'lo everone Jan 05 17:49:33 test failed. you ran your app on a resource constrained device Jan 05 17:49:34 *everyone Jan 05 17:49:44 your app caused a memory cap Jan 05 17:49:53 Does anyone know if there is a way to load a page from you local computer via ADB? Jan 05 17:49:55 essentially your app wouldve never worked for that particular device Jan 05 17:50:21 it does not support that device, unless that "resource cap" was caused by a memory leak Jan 05 17:50:32 Trinsta: no, I essentially caused it to crash to stress test the allocations Jan 05 17:50:43 Trinsta: by running lots of background services Jan 05 17:51:01 Trinsta: that were eating the memory Jan 05 17:51:04 you caused it to crash.... Jan 05 17:51:09 do you not understand what im saying? Jan 05 17:51:22 onStop will be called unless YOUR application is the problem Jan 05 17:51:35 Trinsta: no, it won't, read the docs on how this works Jan 05 17:51:42 link it to me Jan 05 17:51:54 i've linked a doc already, i didn't read anywhere wwhat you're implying Jan 05 17:52:03 and my own personal tests have given me my results Jan 05 17:52:48 blobby: on eclipse, press project > clean Jan 05 17:52:52 again, the onDestroy stuff specifically mentions this, and doesn't say 'oh but then it's your fault anyway, so it's okay' Jan 05 17:53:06 i highly doubt you did any tests Jan 05 17:53:16 the onDestroy said its not reliable Jan 05 17:53:22 which is true. Jan 05 17:53:34 '(or any others)' Jan 05 17:53:42 only in the case where your application is the fault in a sense of memory leak or memory cap Jan 05 17:53:53 but I don't have time for this, if you want to provide a bad experience to your users, whatever Jan 05 17:54:25 sigh.. Jan 05 17:54:27 Nope Jan 05 17:54:29 it wont call any other methods. Jan 05 17:54:31 Its all going to hell Jan 05 17:54:57 And for some reason R.class has dissapeared Jan 05 17:55:00 meaning onStop rofl. but if you understood what i said in the beginning you would understand that my argument still holds Jan 05 17:55:08 blobby: upload the xml Jan 05 17:56:19 http://pastebin.com/umjs0Eux Jan 05 17:57:05 are the ">" and "=" actually in teh manifest? Jan 05 17:57:17 nvmd Jan 05 17:57:41 so original works? Jan 05 17:57:53 It was working fine before Jan 05 17:58:07 Than suddenly R stopped updating, and errors were in my face everywhere Jan 05 17:58:07 Hi there. Does anybody know about good books (with practical examples as we go, like making many small apps) or video courses (can be online) for developing in Android, from basic/intermediate to master? Thanks Jan 05 17:58:09 don't add the extra and tags Jan 05 17:58:16 pastebin your exact androidmanifest.xml Jan 05 17:58:19 dont add anything to it Jan 05 17:58:23 That was it. Jan 05 17:58:28 I havent touched it. Jan 05 17:58:31 .... Jan 05 17:58:43 you added "====" and ">>>>>" Jan 05 17:58:55 I haven't, trust me. Jan 05 17:59:14 check your pastebin rofl Jan 05 17:59:23 Well I didnt add them. Jan 05 17:59:28 line one you have <<<<<<<<<< original Jan 05 17:59:35 line 47 you have ======= Jan 05 17:59:58 No trust, cause thats exactly what I see Jan 05 18:00:25 i see it too Blobby Jan 05 18:00:50 i understand you might be talking about what you added Jan 05 18:00:54 Thats like saying because a book exist, it means its registered author wrote it. Jan 05 18:01:00 but i need the EXACT AndroidManifest.xml you have right now Jan 05 18:01:07 Blobby: i can't help you then Jan 05 18:01:23 I cant help either if your gonna be an arse about it. Jan 05 18:01:29 im not trying to be an ass about it Jan 05 18:01:35 im simply asking for the exact androidmanifest.xml Jan 05 18:01:37 i'm trying to help you Jan 05 18:01:50 you're telling me you dont see <<<<<<<<<< original and =========== and <<<<<<<<< added Jan 05 18:01:53 And I sent it. Jan 05 18:02:20 okay, then delete <<<<<<<< original and ===== and <<<<<< added Jan 05 18:02:28 delete the bottom half Jan 05 18:02:32 without the manifest and application tag Jan 05 18:02:51 put the activity tag that was within the application tag with the rest of the activity tags Jan 05 18:04:33 @GreenTuxer check out thenewboston on youtube. Tons of tutorials on lots of stuff of which android is one of the most intensive. Jan 05 18:04:38 Has anyone noticed, in the ViewPagerIndicator library, the TitlePagerIndicator has a space between the footer title and the footer indicator on larger screens? Jan 05 18:04:55 Thank you. Jan 05 18:05:35 BLobby: if that really worked, i'd recommend you to go read an android book Jan 05 18:05:44 hello guys any idea with this ? http://stackoverflow.com/questions/14172333/listview-android-and-quantity-at-each-row Jan 05 18:05:55 don't copy and paste other peoples code if you don't know how android works Jan 05 18:06:09 Considering I didnt touch the bloody manifest in the first place Jan 05 18:06:26 Bropane, Thanks for the answer. I've seen those (thenewboston/mybringback), but I think they are kind of loose and not practical, more concept proof like. I would like something more organized. Jan 05 18:06:50 GreenTuxer: i'd recommend Beginning Android series Jan 05 18:07:01 GreenTuxer: Beginning Android Games by Mario if you want to get into games Jan 05 18:07:20 theyre exellent books that teach you almost everything you need to know and get you started with android pretty easily Jan 05 18:07:31 I'll look at that :) thanks :) Jan 05 18:08:11 I'm doing a shopping list app, but I'm having some difficulties on some basic stuff, although the app itself is working, that's what made me look into the basics, to understand all better. Jan 05 18:08:25 Np bro, it's one of my favorite youtube channels Jan 05 18:08:58 is it possible for an android app to get the max heap size? (~16mb in one instance) Jan 05 18:10:44 blobby: http://developer.android.com/training/index.html Jan 05 18:11:41 clever: not sure but you can check with this, long heapSize = Runtime.getRuntime().maxMemory(); Jan 05 18:11:47 @clever It say here that it varies from device to device http://stackoverflow.com/questions/5350465/android-heap-size-on-different-phones-and-os-versions Jan 05 18:12:17 Trinsta: *tries* Jan 05 18:12:33 Bropane: yeah, my idea is to disable an optional feature if you dont have enough Jan 05 18:12:40 rather then just crash hard every time the user tries Jan 05 18:12:47 is it possible to expose port 80 to the internet from a computer that shares internet connection from an android phone through android's tethering? Jan 05 18:13:54 V / LouMain ( 485): max memory size: 16777216 Jan 05 18:13:58 Trinsta: works perfectly :) Jan 05 18:14:05 Niyakun: depends, port from router or port from computer Jan 05 18:14:10 computer as in computer firewall Jan 05 18:14:27 well not depends cause you can do it with both Jan 05 18:14:39 clever: np Jan 05 18:15:26 has anyone had a hard time with androidbilling? and would they like serversided communication integrated? Jan 05 18:15:54 so its GoogleServer > Device > Developer Server > Device Jan 05 18:16:09 ugh Jan 05 18:16:21 Jan 05 18:16:39 with load_Tags it causes to crash Jan 05 18:16:50 load_Tags reloads the WebView Jan 05 18:18:48 Trinsta: the android phone gives me 192.168.43.2 as the ip to the computer. it is NATed, so i am unable to access webserver running on port 80 from the internet Jan 05 18:19:08 Niyakun: what are you trying to accomplish though Jan 05 18:19:15 theres two different ports for computers Jan 05 18:19:22 internet/router port vs computer firewall port Jan 05 18:19:48 Trinsta: i access internet on my laptop through the phone. i want to run a webserver that can be accessed from the internet Jan 05 18:20:07 you have to have the server on an internet-facing IP or configure your router to do port forwarding Jan 05 18:20:19 im afraid if youre trying to run a webserver with your android phone Jan 05 18:20:21 thats impossible Jan 05 18:20:25 i dont have an extra router Jan 05 18:20:40 the android phone acts as the router Jan 05 18:20:43 i had the same idea before, android phones's ip changes Jan 05 18:20:44 it's definitely not impossible, but it's unlikely to operate the way you want w/ any common home network setup Jan 05 18:20:58 Trinsta: thats easily solved with static dhcp Jan 05 18:21:02 Trinsta: or manual config Jan 05 18:21:13 and you won't be able to run it on port 80 Jan 05 18:21:21 dragorn: yeah, that part would require root Jan 05 18:21:28 the apache webserver runs on my laptop Jan 05 18:21:46 this isn't really an android thing, this is "how networking works" thing. Jan 05 18:21:47 clever: hmm??? for phones you can make it static? Jan 05 18:21:53 ^ this Jan 05 18:21:54 i want it to serve pages (making the android phone act as a router) Jan 05 18:22:12 Trinsta: its an option within the dhcp server Jan 05 18:22:13 Niyakun: you're mixing terms a lot. I don't think router means what you think it means. Jan 05 18:22:17 Trinsta: normaly the router Jan 05 18:22:33 Niyakun: Router: A device that forwards data packets to parts of a computer network. Jan 05 18:22:36 a webserver is not a router. A router is used to translate packets between networks. Jan 05 18:22:36 dragorn: the android phone i am using acts as a NAT gateway actually Jan 05 18:22:41 Trinsta: the router picks an un-used ip when the phone asks for one, but the router can be configured to give the same one Jan 05 18:23:07 celever: i think me and niyakun had different ideas then Jan 05 18:23:24 what i wanted to do was to make the android device serve as a dedicated server for a website Jan 05 18:23:40 my computer doesnt have a public ip but my phone has Jan 05 18:23:48 from what i read on stackoverflow people said it was impossible because the wan ip cahnges Jan 05 18:23:51 Niyakun: yeah, thru the cell network Jan 05 18:23:57 niyakun: from what i read that ip changes Jan 05 18:24:03 Trinsta: not imposible, just a pain in the ass Jan 05 18:24:19 the server will go down every time the ip changes, until you update the dns setup Jan 05 18:24:20 probably not, but yea i agree, too much work haha Jan 05 18:24:24 yes trinsta it changes but i want to be able to show something to my friend, a php page but i am out of luck lol Jan 05 18:24:42 why would you need to show your friend a php page on your phone Jan 05 18:24:48 by hosting it on your phone Jan 05 18:24:58 just find a free site hoster online and upload it Jan 05 18:25:04 well i want to show it served by my computer Jan 05 18:25:08 yes, the wan IP changes. It doesn't mean it's not possible to run a webserver. It may mean it's not possible to do what you want to do, definitely w/out having a proxy service to redirect it. Jan 05 18:25:33 Niyakun: the webserver is running on your laptop, tethered thru the phone, and you want to host from that? Jan 05 18:25:35 dragorn: yup, ehh was cause i had a child fantasy about megaman LOl. Jan 05 18:25:36 Generally you really don't want to run a webserver on a wan link since it will keep the cell modem awake and nuke the battery in probably a matter of hours Jan 05 18:25:46 wanted to create that private net space where people could access and shit like that Jan 05 18:26:07 but then... dropbox was invented Jan 05 18:27:20 well brb, peace guys Jan 05 18:29:07 later dude Jan 05 18:30:00 I / dalvikvm ( 411): Could not find method com.angeldsis.lou.SessionUser.getActionBar, referenced from method com.angeldsis.lou.SessionUser.initApi14 Jan 05 18:30:10 can this cause any harm if i never called initApi14() ? Jan 05 18:32:17 I'm trying to do some 3d-picking in android on an ortho-projection. I've been following this guide http://magicscrollsofcode.blogspot.se/2010/10/3d-picking-in-android.html and it works fine for the x-axis, however the y axis is somewhat screwed up. Anyone know of a apparent mistake I might have done to cause that? the yaxis is in the wrong scale and offset it seems Jan 05 18:41:09 oh, found the problem. Jan 05 18:46:26 Hey, does anyone have any idea how I can do this: http://stackoverflow.com/questions/14162706/display-actionbar-serarch-results-in-a-spinner Jan 05 19:10:21 Woah, it's quiet in here. Jan 05 19:10:33 It must still be christmas. Jan 05 19:11:17 Everyone is asleep Jan 05 19:11:40 typical coder doesn't wake up until at least noon :P Jan 05 19:12:17 real coders don't go to sleep at all Jan 05 19:12:35 lol Jan 05 19:12:55 real coders don't sleep, they compile Jan 05 19:13:05 * pragma- defrags Jan 05 19:15:31 Anyone here use the expandableListView? Jan 05 19:15:48 any idea why my windows computers would be able to access my Samba share, but not my linux ones? Jan 05 19:16:16 Ankhwatcher: because you're in the wrong channel Jan 05 19:16:31 pragma-: I know, I know Jan 05 19:16:44 but sometimes there are linux heads in here who know these things Jan 05 19:17:00 beards are better than heads Jan 05 19:17:42 i wish i had a linux beard Jan 05 19:18:27 my other beard is also a penguin Jan 05 19:19:03 well I asked my question in #ubuntu, now we'll just have to see if anyone responds Jan 05 19:19:30 * AmandaC snickers quietly to herself Jan 05 19:20:08 AmandaC: ? Jan 05 19:20:38 Ankhwatcher: a gay friend recently enlightned me on a meaning of "beard" that fits humourusly into your conversation Jan 05 19:21:15 oh god, i need to urbandictionary this. What did I get myself into? Jan 05 19:21:51 gay terminology:-beard- a female hanger-on who makes a gay male appear straight Jan 05 19:21:52 wow Jan 05 19:22:07 also see fag-hag Jan 05 19:22:54 well I'm off to see Reacher, ttyl Jan 05 19:35:53 hello guys Jan 05 19:35:55 if i implement Jan 05 19:35:59 get itemID Jan 05 19:36:07 then how can i deal with titles Jan 05 19:36:09 ? Jan 05 19:36:15 i mean headers Jan 05 19:37:30 https://github.com/emilsjolander/StickyListHeaders ? Jan 05 19:37:37 also, don't abuse the enter key so much, please. Jan 05 19:41:34 i didnt mean exactly this Jan 05 19:42:49 to get just random headers in the thing, it's the same as a second view type, I think Jan 05 19:43:24 better to use the stickyheaders lib, since you'll have to implement the sectioned list adapter yourself as well Jan 05 19:43:49 What I linked acts like the contacts app, showing the header ( letter in the contacts app ) in the top when you scroll down through it Jan 05 19:44:58 yeah, it's actually one of the most requested things from clients Jan 05 19:45:06 I get Jan 05 19:58:03 hm i have sectionadapter already though Jan 05 19:58:11 is it possible to get possition from id ? Jan 05 20:37:00 struggling 3 days with lisview heh Jan 05 20:49:28 What's the best way to detect swipe gestures in an app? i.e. a swipe to the right/left/up/down with my finger. Jan 05 20:49:30 Thank you. Jan 05 20:51:25 hi all, is there a way to pause AsyncPlayer Jan 05 20:51:43 so i can stream mp3 with play, pause and stop Jan 05 20:51:47 they have method stop Jan 05 20:51:53 but not pause Jan 05 20:58:49 hello there Jan 05 21:00:31 would a java android app with usb host api handle a 4MB/s usb bulk stream flawlessly Jan 05 21:01:42 bluwhale: Look into the Gesture example included in the Android SDK Jan 05 21:02:35 Hi Jan 05 21:03:05 i got a while(running) into my thread, but if I switch true/false/true, it doesn't resume Jan 05 21:03:06 I'm stuck with ListView, I would like to get an item an change its background Jan 05 21:03:15 background color* Jan 05 21:04:17 it is not possible right? Jan 05 21:04:42 that would mean to get the view and google seems to only support to get string Jan 05 21:04:53 jamesst20: sure it is Jan 05 21:05:03 jamesst20: when do you want to change the color? Jan 05 21:05:16 Anthaas: Thank you, will check it out. Jan 05 21:05:21 Maurits_: Well on startup i'm listing files and directory must be in color Jan 05 21:05:28 raz86: why would it? when while evalulates to a false, it continues the program on from there. Jan 05 21:05:41 Maurits_: so I've got my adapter objec and my listview Jan 05 21:05:47 raz86: as in, the instructions after the while block Jan 05 21:05:58 jamesst20: right, but do you want to change it after the items have been loaded? or in the adapter? Jan 05 21:05:58 ^ Jan 05 21:06:10 Is there any way to utilize speech recognition offline? From my research, I found something called CMUsphinx, but is there a better way? Jan 05 21:06:16 AmandaC: are you one of those people who hate multiple lines? Jan 05 21:06:24 Maurits_: whatever as long as I can still change the color in preference :P Jan 05 21:06:32 Trinsta: little bit, yes Jan 05 21:06:44 You must hate me then :( Jan 05 21:06:49 jamesst20: well, in the getView() method of your adapter, simply after you inflate the view Jan 05 21:06:51 can't help it, old AIM habbit Jan 05 21:07:08 jamesst20: set the background color Jan 05 21:07:21 is there any reason why you dislike it though? or just a pet peeve? Jan 05 21:07:38 jamesst20: if you change the color in preferences then you can simply reload the listview and have it set the new color Jan 05 21:07:43 Maurits_: this is how I list files and add them : http://pastie.org/5628043 Jan 05 21:07:45 as long as they are AT LEAST, single, self contained thoughts, it's fine. It's when people go "hi \n can you like\nhelp me with this\n I don't understand\n why \n da ting\n is blue." Jan 05 21:07:55 Maurits_: unsure how I could implement what you mean :S Jan 05 21:08:12 and it wastes screen realestate, IMHO. :P Jan 05 21:08:27 jamesst20: right, you'll need to swap out ArrayAdapter with your own Adapter implementation Jan 05 21:08:37 * AmandaC only has 600 pixels on the Y axis, would rather not have half that used by someone doing the above Jan 05 21:08:37 jamesst20: as ArrayAdapter won't allow you to do this Jan 05 21:08:45 ahh, kk. anyways, I want to start writing an android blog, I have my own server and domain. Any tuts out there for it? never done this before Jan 05 21:08:52 Maurits_: Should I use another adapter then? Jan 05 21:08:53 * AmandaC shrugs Jan 05 21:09:24 jamesst20: I don't think there is any built-in adapter that provides this functionality, so you'll have to write your own Jan 05 21:10:00 Maurits_: I see so what do you suggest, extends ArrayAdapter and override what? Jan 05 21:10:19 well, it's better to just implement the adapter interfaces Jan 05 21:10:27 what you want to do is not terribly complex Jan 05 21:10:32 *interface Jan 05 21:11:01 so implements ArrayAdapter :P Jan 05 21:11:19 and where should I put my missing stuff? Jan 05 21:11:23 no, but extending ArrayAdapter will work, so do that :p Jan 05 21:11:28 http://www.ezzylearning.com/tutorial.aspx?tid=1763429 Jan 05 21:11:31 AmandaC: you right (sorry), actually, it freezes after processing (begged cpu, maybe) Jan 05 21:11:34 have a look at that Jan 05 21:12:36 thanks taking a look right now :)< Jan 05 21:12:46 jamesst20: in general, an adapter simply is a way to convert your data into View items that the ListView can display Jan 05 21:13:03 yeah but we should be able to get that view instance Jan 05 21:13:14 unless it is destroyed? Jan 05 21:13:27 why? you don't need to change the colors afterwards right? Jan 05 21:14:03 I mean, it's fine to reload the listview if the colors change, as long as it doesn't happen a lot Jan 05 21:14:09 as it won't be very fast Jan 05 21:14:49 Maurits_: what does actually getView() do? It sounds to me to get the view Jan 05 21:15:36 jamesst20: getView is where you create/fill in the view for a data item at a given position Jan 05 21:15:49 jamesst20: ie, the listview will call this with a given position Jan 05 21:16:21 Maurits_: then it's from there that I need my File instance and to check if it is wheter a file or a dir right? Jan 05 21:16:23 you grab a row from your data source, create the view, fill in the data (in this case the filename/dirname and background color) Jan 05 21:16:31 and return the view with filled in data Jan 05 21:16:50 yeah Jan 05 21:16:59 How am I supose to get the data from there? Jan 05 21:17:20 pass it to the constructor of your custom adapter when creating it Jan 05 21:17:20 jamesst20 i have similar problems heh Jan 05 21:17:39 jamesst20: ie, new MyFancyCustomAdapter(dirs, files) Jan 05 21:17:50 Parhs: My guess is to extends of the adapter, make a constructor with our data and from there get the index Jan 05 21:17:54 store it so you can get to it afterwards Jan 05 21:18:13 yeah in the constructor Jan 05 21:18:16 got it sir :) Jan 05 21:18:20 thanks your verry much Jan 05 21:18:24 will try to do that :D Jan 05 21:18:31 if you have multiple instances then it might not help though Jan 05 21:18:34 brb in a sec with results Jan 05 21:18:40 Parhs: doesn't matter Jan 05 21:18:58 Parhs: or give an ArrayList or HashMap in the constructor Jan 05 21:19:00 are you going to have a single Adapter? Jan 05 21:19:12 i mean single instance of adapter Jan 05 21:19:12 I renamed my package identifier. when i run my app i get an error 01-05 13:18:05.754: E/AndroidRuntime(6396): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.johndoe.dataleft/com.johndoe.dataleft.DataLeftActivity}: java.lang.ClassNotFoundException: Didn't find class "com.johndoe.dataleft.DataLeftActivity" on path: /data/app/com.johndoe.dataleft-2.apk Jan 05 21:19:26 Parhs: it doesn't matter how many instance there are as long as you dont make it static Jan 05 21:19:54 your first instance can have different values then your second or 100th Jan 05 21:20:38 yes but in case you want to store a relation with position and data there is prob Jan 05 21:21:03 can anyone help me Jan 05 21:22:11 Parhs: unsure what you're trying to do :p Jan 05 21:22:24 devslash: you better ask then ask to ask :) Jan 05 21:22:29 i did Jan 05 21:22:32 I renamed my package identifier. when i run my app i get an error 01-05 13:18:05.754: E/AndroidRuntime(6396): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.johndoe.dataleft/com.johndoe.dataleft.DataLeftActivity}: java.lang.ClassNotFoundException: Didn't find class "com.johndoe.dataleft.DataLeftActivity" on path: /data/app/com.johndoe.dataleft-2.apk Jan 05 21:22:51 devslash: permissions in manifest? Jan 05 21:22:58 is your activity declared Jan 05 21:22:59 what about em Jan 05 21:23:14 yes Jan 05 21:23:15 jamesst20 http://stackoverflow.com/questions/14172333/listview-android-and-quantity-at-each-row Jan 05 21:23:17 or what have you renamed to what? Jan 05 21:23:26 i have a line android:name="com.johndoe.dataleft.DataLeftActivity" Jan 05 21:23:39 Parhs: then make an HashMap ;) Jan 05 21:23:52 devslash: what have you renamed to what? Jan 05 21:23:58 devslash: what is the package definition at the top of DataLeftActivity.java? Jan 05 21:24:12 i renamed the package from com.dataleft.john to com.johndoe.dataleft Jan 05 21:24:23 com.johndoe.dataleft Jan 05 21:24:47 devslash: the error says that it doesn't find : com.johndoe.dataleft.DataLeftActivity Jan 05 21:24:59 i know .im not sure why Jan 05 21:25:03 devslash: i think the like Jan 05 21:25:43 i changed the manifest to refer to only the activity Jan 05 21:25:48 it still crashes Jan 05 21:26:02 same error, or different one? Jan 05 21:26:05 same Jan 05 21:26:10 devslash: does in your manifest : package is good? Jan 05 21:26:17 huh Jan 05 21:26:20 package= ? Jan 05 21:26:48 it can be a relative package name of a fully-qualified package name Jan 05 21:26:55 yes Jan 05 21:26:56 what it is NOT, is only the class name Jan 05 21:27:06 in the manifest it shows com.johndoe.dataleft Jan 05 21:27:15 devslash: can you post the AndroidManifest.xml on a pastebin? Jan 05 21:28:08 http://pastebin.com/qQXYP0ts Jan 05 21:28:27 please prefix that with a dot Jan 05 21:28:30 the android:name Jan 05 21:28:51 ok Jan 05 21:28:53 i did Jan 05 21:29:07 still crashes Jan 05 21:29:17 devslash: what directory is DataLeftActivity.java in? Jan 05 21:29:50 src/com/johndoe/dataleft/DataLeftActivity.java Jan 05 21:30:19 cant think of anything else :S, have you tried doing a clean rebuild? Jan 05 21:30:29 how do i do that Jan 05 21:30:37 from the command line, just 'ant clean' Jan 05 21:31:02 I'm using eclipse Jan 05 21:31:06 i did project->clean Jan 05 21:31:15 when i run it it still crashes Jan 05 21:31:33 i'm out of ideas then Jan 05 21:31:45 damn Jan 05 21:33:12 devslash uninstall apk on your phone? Jan 05 21:33:13 any one else have any idea Jan 05 21:33:35 but doesn't it get overwritten when you run eclipse Jan 05 21:33:58 not if you change the package name Jan 05 21:34:25 i removed it. it still crashes Jan 05 21:34:50 no any logs ? Jan 05 21:35:00 which logs Jan 05 21:35:08 ddms or java Jan 05 21:35:13 logcat has errors Jan 05 21:35:16 runtime errors Jan 05 21:35:24 which one Jan 05 21:35:59 try to start a very simple activity Jan 05 21:36:13 01-05 13:34:09.739: E/AndroidRuntime(7679): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.johndoe.dataleft/com.johndoe.dataleft.DataLeftActivity}: java.lang.ClassNotFoundException: Didn't find class "com.johndoe.dataleft/.DataLeftActivity" on path: /data/app/com.johndoe.dataleft-1.apk Jan 05 21:36:54 run on emulator? Jan 05 21:37:12 its not a device issue. it can't find the main activity Jan 05 21:37:43 devslash: do you have a com.johndoe.dataleft.DataLeftActivity object? Jan 05 21:37:56 where would that be at Jan 05 21:38:09 do you mean the DataLeftActivity class ? Jan 05 21:38:18 err, yes Jan 05 21:38:31 yea Jan 05 21:38:40 check it's got the package com.johndoe.dataleft; ? Jan 05 21:38:43 in your manifest, add a dot before the classname Jan 05 21:38:50 src/com/johndoe/dataleft Jan 05 21:38:53 yea it does Jan 05 21:39:43 restart eclipse? lol Jan 05 21:40:02 I'm going to build a new project Jan 05 21:40:14 ok, gl Jan 05 21:40:34 thanks Jan 05 21:41:31 me, i got a strange behavior with my thread which freeze :/ Jan 05 21:50:36 ok i got it working now Jan 05 21:56:05 can or should i use the same keystore file for different apps or should each one have its own keystore ? Jan 05 21:57:16 devslash: for me the decision is usually based on whether I want to be able to separate the keys later on Jan 05 21:57:25 what do you mean ? Jan 05 21:57:36 devslash: ie, if I'm building something for a client that may want to bring the app over to another developer in the future Jan 05 21:57:56 if I sign that with my key then there's a problem later on Jan 05 21:58:22 devslash: i would keep them separate too; in case you want to sell it to somebody for example Jan 05 21:58:34 you can move keys between keystores I think Jan 05 21:58:50 but I usually don't bother and just create a whole new keystore for every client Jan 05 21:58:54 ok... Jan 05 21:59:00 If I want an app with two ListViews, and I want to swipe between them, is that hard to do? Jan 05 21:59:05 On two different 'screens'. Jan 05 21:59:25 TacticalJoke: not really, no Jan 05 21:59:34 TacticalJoke: a tabbed view will likely do that for you Jan 05 21:59:56 TacticalJoke: not really, have a look at fragmentpageradapter Jan 05 22:00:01 Okay. But what if I don't want tabs? Jan 05 22:00:13 TacticalJoke: it's in the support lib Jan 05 22:00:13 devslash, both is possible Jan 05 22:00:14 then you shuold rethink your UI design Jan 05 22:00:19 but you can do it without the tabs on it Jan 05 22:00:24 just, please don't. Jan 05 22:00:28 not all devices can swipe. Jan 05 22:00:32 Well, I want two lists. Jan 05 22:00:37 Tasks and Notes. Jan 05 22:00:43 They're similar, but separate. Jan 05 22:00:49 and you want no indication about which is active? Jan 05 22:00:50 TacticalJoke: tabs in this case means the labels in the actionbar Jan 05 22:00:51 Swiping between them seems nice. Jan 05 22:00:55 not a separate tab bar Jan 05 22:00:58 Well, I'll have a label at the top. Jan 05 22:01:00 sure, swiping between them is nice Jan 05 22:01:10 but you should ALSO have the tabs for which is active, which you can go to Jan 05 22:01:11 Maurits_: But do both labels have to be on screen? Jan 05 22:01:19 which you may as well let people click. Jan 05 22:01:30 TacticalJoke: well, no, but it's recommended Jan 05 22:01:58 Maybe an ActionSherlock thingy will work. Hmm. Jan 05 22:02:31 all the stuff you need is in the support lib Jan 05 22:02:33 Okay, maybe having both visible is a good idea. Jan 05 22:02:45 don't know about ABS integration Jan 05 22:02:48 Okay. Jan 05 22:02:56 but wouldn't be surprised if it offers it by default Jan 05 22:03:58 Is the best way of getting tabs using ActionBarSherlock? Jan 05 22:04:01 Or is there something even simpler? Jan 05 22:04:12 Like, if I wanted just tabs without swiping. Jan 05 22:04:51 ABS is recommended, and it seems to integrate with viewpagers Jan 05 22:06:24 Okay, I guess that tabs are a good idea here. Jan 05 22:06:49 TacticalJoke: https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/TabNavigation.java Jan 05 22:06:56 seems to be rather easy Jan 05 22:07:18 you just tell the pager to focus a specific tab when selected Jan 05 22:07:20 Cool. Thansk. Jan 05 22:07:24 Thanks* Jan 05 22:07:45 In the example code here, why can we register the 'stoplistener' and 'startlistener' before we even initialize them? http://blog.idleworx.com/2011/06/build-simple-android-app-2-button.html Jan 05 22:08:57 bluwhale: because they're not initialized in the order that the code appears in Jan 05 22:09:18 bluwhale: but the way this example is structured is extremely bad form Jan 05 22:10:08 bluwhale: but onCreate runs after instance creation, which is when startListener and stopListener are created Jan 05 22:12:08 Ah ok, thanks Maurits_ Jan 05 22:12:16 Is that the bad form you are referring to? Jan 05 22:12:50 bluwhale: yeah, there's really no reason to initialize them this way, and it makes it semi-unclear when the code actually runs Jan 05 22:13:20 I'm a little confused about how to use ABS in Eclipse. Jan 05 22:13:32 bluwhale: as opposed to simply creating them in onCreate Jan 05 22:13:34 Do I select 'Android Project from Existing Code'? Jan 05 22:14:28 Maurits_: Gotcha. I usually declare variables outisde of onCreate, initialize them inside, and then do whatever I want outside of onCreate. Is that correct form? Jan 05 22:14:31 I asked this before a couple of weeks ago, but forgot how to do it. I'm trying to compile an app using Eclipse/ADT-21/Verbose mode… How do I see the complete verbose log? Is it logged to some file? Jan 05 22:21:02 how do i make the selection in my listview change color? when i use android:listSelector="#33B5E5" the items change color when i click them, but i want them only to change color when i longclick them to select them Jan 05 22:22:48 Chilley: I believe that the checked state that you're talking about Jan 05 22:23:57 May be this will help? http://android-codes-examples.blogspot.co.uk/2011/03/customized-listview-items-selection.html Jan 05 22:24:01 allright ill do one more try with this selector Jan 05 22:24:07 bluwhale: yeah, that's fine, you only need to keep something around as an instance variable if you need to refer to it later Jan 05 22:24:26 Maurits_: Of course. Thank you. Jan 05 22:24:29 bluwhale: which isn't the case in the example with these two handlers Jan 05 22:24:59 Maurits_: Exactly. Although, is it alright to carry out the onClick function inside the onCreate method? Jan 05 22:25:10 I know it works, but I don't know if that is good form. Jan 05 22:27:12 i have this line in my selector: but it doesnt work Jan 05 22:29:06 bluwhale: yeah, that's also fine; you're not carrying out the onclick function in onCreate, though Jan 05 22:29:16 just setting the handler for it Jan 05 22:29:31 Right, thanks Maurits_ Jan 05 22:31:30 bluwhale: another interesting trick you can do is that you can actually refer to some types of local variables from the inner class Jan 05 22:32:18 Maurits_: Hmm, think you can elaborate a tiny bit more? Jan 05 22:32:21 bluwhale: ie, http://en.wikipedia.org/wiki/Closure_(computer_science)#Local_classes_.28Java.29 Jan 05 22:32:41 bluwhale: well, say you want to access some local property from onClick Jan 05 22:33:34 you can do that like in the wikipedia example, where they access a variable called URL in the outer class from the inner class Jan 05 22:34:54 Ah ok! Cool. Jan 05 22:41:12 in my thread run() while(true){ process1(); process2();} when process1 is finished thread freeze and process2 doesn't finish :/ Jan 05 22:41:44 Where is 'R.layout.tab_navigation'? Jan 05 22:41:47 My thing can't find that. Jan 05 22:44:55 Uhh. Can anyone tell me why this simple code that uses ActionBarSherlock isn't working? http://pastebin.com/MrxSgeSn Jan 05 22:46:36 It's throwing a runtime exception. Jan 05 22:47:31 TacticalJoke: would be nice to have the message of the runtimeexception Jan 05 22:49:16 need help with drag&drop api of android 4, there is anyone with d&d experience? Jan 05 22:49:33 Oh, it say "Action Bar Tab must have a Callback". Jan 05 22:50:10 Hello, how do I install icons in the form of zip files? Jan 05 22:50:31 Why does it need a callback? Jan 05 22:50:35 So that it doesn't get GCed? Jan 05 22:51:32 TacticalJoke: because the callback determines what happens when it's clicked Jan 05 22:51:40 without it, the thing serves no function Jan 05 22:51:42 Okay, it works now. Jan 05 22:51:43 Okay. Jan 05 22:53:35 on onTouch i put view invisible, on onDrop i put view visile. the problem is: if i put view out of area, i lost view forever. how can put visible view if user put out? Jan 05 23:00:50 xan_IT: handle ACTION_DRAG_ENDED, and make the view visible again Jan 05 23:01:06 xan_IT: ACTION_DRAG_ENDED is called regardless of whether the drop succeeded or not Jan 05 23:01:12 seams doesent works Jan 05 23:01:18 i can link you code? Jan 05 23:01:34 well, the example on http://developer.android.com/guide/topics/ui/drag-drop.html does exactly this Jan 05 23:06:31 Maurits_ sorry but where example help me? Jan 05 23:07:53 xan_IT: figure out the example Jan 05 23:08:04 read through the docs and you'll most likely figure it out Jan 05 23:08:27 the example never put invisible the object Jan 05 23:08:35 or not? Jan 05 23:08:53 the reason why you don't know is because you didn't read through the example :) Jan 05 23:08:58 http://pastebin.com/uQY7kq28 Jan 05 23:10:48 pls help Jan 05 23:11:26 where do i put icons from a zip file on my sdcard for nova launcher to use? Jan 05 23:12:25 xan_IT: i don't know how to get food on a spoon sorry =[ Jan 05 23:13:05 MwG_: that's not really a dev question. Jan 05 23:13:34 ah i thought since it somewhat had to do with an app it belonged here, sorry Jan 05 23:13:57 try #android Jan 05 23:19:28 what property does an listitem in a listview get when i click it? now when i click an item they change color but i only want it to change color on a longclick selection Jan 05 23:20:31 You have to set it at runtime, that means you have to use the onCreate event in your activity or fragment Jan 05 23:20:52 is it in the focused state? Jan 05 23:20:58 onLongClick Jan 05 23:21:26 focused means that the control has the focus (obviously) that is usually only relevant for non touchscreen devices :) Jan 05 23:21:45 i have longclick selection working, but my problem is that the items change background color when i just singleclick them even though they dont get selected Jan 05 23:22:13 i dont want the listitems to change color when i tap them Jan 05 23:22:22 only when they are actually selected with a longclick Jan 05 23:22:41 the visuals are wrong Jan 05 23:22:51 oh i see Jan 05 23:23:18 any game developers here? Jan 05 23:24:58 #android-games Jan 05 23:28:39 What's the easiest way to add to the list of an ActionBarSherlock that uses NAVIGATION_MODE_LIST? Jan 05 23:35:26 Anyone? Jan 05 23:35:28 I can't find this on Google. Jan 05 23:39:28 omg i got it, i had to call clearFocus() on the arrayadapter Jan 06 00:03:18 i have found the problem, but i dont know if is my problem or android bug Jan 06 00:04:41 on drag i disable elements that the element selected cant drop, i want to enable all after, but ACTION_DRAG_ENDED are call only for element enabled Jan 06 00:05:54 ex: i have 8 view, on drag i disable view 1 and 3, in this case ACTION_DRAG_ENDED are called only for 245678 Jan 06 00:06:16 so i cant enable disabled items Jan 06 00:07:35 xan_IT: instead of disabling 1 and 3 Jan 06 00:07:47 simply return 'false' from their event handler to reject the drop Jan 06 00:08:15 this way you'll get the same effect but still receive drag events Jan 06 00:09:48 i disable view on drag not drop, explain: during press on screen i disable all view that cant drop with selected view Jan 06 00:10:45 again, you can simply reject a drop by returning 'false' Jan 06 00:10:50 you don't have to disable Jan 06 00:11:52 ok, and user how can undestand which view can drop and which cant? Jan 06 00:12:42 you could shade them with a specific color Jan 06 00:12:46 instead of disabling them Jan 06 00:12:55 ok Jan 06 00:13:59 the problem are same for selected item that i make invisible Jan 06 00:14:57 I wouldn't make them invisible anyway, that seems like a bad user experience Jan 06 00:15:06 why not simply give it 25% opacity Jan 06 00:15:23 or 50% or whatever Jan 06 00:16:15 or wait, that's not what you mean Jan 06 00:17:28 on press on item to drag, i put view invisible Jan 06 00:19:23 AdapterView how can i cast this ? Jan 06 00:19:30 to something usable Jan 06 00:20:58 xan_IT: yes, so what's the problem? Jan 06 00:21:35 oh, wait, I understand Jan 06 00:21:46 ehm, let me think about how to best fix that Jan 06 00:21:53 at the end if i put view out, ACTION_DRAG_ENDED doesent start for invisible Jan 06 00:25:24 i have 8 object that can swap toghether using drag and drop but not all for all, actually on press on 1 of them i put pressed invisible and i scan other and put disabled some, at the end if user make good swap i make swap and make all visible and enabled. if user make bad swap (on disabled o out) i need to make similar without swap Jan 06 00:25:39 i cant explain better Jan 06 00:29:00 xan_IT: what happens if you don't make it invisible? Jan 06 00:29:08 xan_IT: just to test Jan 06 00:29:47 xan_IT: I think the drag shadow might already take care of making it invisible, although I'm not sure Jan 06 00:30:11 already done. at GUI seams to clone object, 1 in original position and 1 under the finger Jan 06 00:30:20 right Jan 06 00:30:44 how are you making it invisible? Jan 06 00:31:51 http://pastebin.com/tqgTX0cB Jan 06 00:34:56 xan_IT: not exactly sure how to do this, but you could try simply setting the opacity of the view to 0 Jan 06 00:35:03 ie, make it transparent instead of invisible Jan 06 00:35:20 that way it'd still receive touch events, but would also be invisible Jan 06 00:36:22 ie, do view.setAlpha(0.0) instead of setVisibility(View.INVISIBLE) Jan 06 00:37:00 i tried second way, on ACTION_DRAG_ENDED i use class var to put 8 view visible and enabled but i recieve a strange error Jan 06 00:38:04 for (int i = 0; i < 8; i++) cardLayout.getChildAt(i).setEnabled(true); Jan 06 00:40:31 Maurits_ http://pastebin.com/1YatFDh1 Jan 06 00:41:27 wait Jan 06 00:41:58 in way (for over all view i can enable element but not make visible) Jan 06 00:46:27 Maurits_ i have found a solution Thanks for your patience Jan 06 00:47:20 I'm using an ActionBarSherlock with a tabbed view. Jan 06 00:47:22 I'm a noob. Jan 06 00:47:34 I want two tabs for my app: Tasks and Notes. Jan 06 00:47:37 It's a task-list thingy. Jan 06 00:47:44 Do I need to create two Fragments? Jan 06 00:47:56 And can I declare these Fragments in an XML file? Jan 06 00:48:09 Also, do I have to have an Activity? Or are the two Fragments sufficient? Jan 06 00:50:33 I will give five Internets to whoever answers those questions. Jan 06 00:53:43 TacticalJoke: Activity hosts Fragments, so you'll need that one Jan 06 00:54:40 You also need one fragment per tab, so two of them Jan 06 00:55:09 you should declare the view layout of both fragments in an .xml, but not the fragments themselves (so no tag in your xml) Jan 06 00:56:03 Okay. Jan 06 00:56:30 you should look at some sample app Jan 06 00:56:32 and just copypaste it Jan 06 00:57:38 yeah, have a look at http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html Jan 06 00:57:54 the only difference between that and what you're doing is that the pages have identical layouts there Jan 06 00:58:03 whereas you have two pages with different layouts Jan 06 00:58:40 Oh, but I'm using ActionBarSherlock. Jan 06 00:58:59 yeah, lets worry about that in a moment :) Jan 06 00:59:12 lol Jan 06 00:59:22 it shouldn't matter whether you have an actionbar or not to get this to work Jan 06 01:01:38 #android-games, stay for a while Jan 06 01:05:03 I can't find a good example of using an ActionBar with Fragments. :/ Jan 06 01:05:55 actionbar is completely independent of fragments Jan 06 01:05:59 they have nothing to do with each other Jan 06 01:06:20 I know, but I want a simple of example of a tabbed ActionBar. Jan 06 01:06:28 TacticalJoke: the only thing the actionbar does in this case is have a few buttons that cause the viewpager to jump to a specific page Jan 06 01:06:47 Maurits: if you don't mind can i ask candiancow about our previous dispute? Jan 06 01:06:56 those buttons are on the actionbar, but they could just as well be in the layout Jan 06 01:07:01 sure Jan 06 01:07:04 mauritis: he develops for android so I just wanted to clear the air and make sure who was right for future projects Jan 06 01:07:16 feel free to add in your opinions :) Jan 06 01:07:20 Can someone explain fragments? Jan 06 01:07:26 Ive never used them Jan 06 01:07:43 The example I was linked to seems not really related to what I'm doing. Jan 06 01:08:15 Here's my code: http://pastebin.com/7G7y2vrh Jan 06 01:08:18 This just shows the tabs. Jan 06 01:08:32 TacticalJoke: sure it is, you have to see the tabs as something completely separate that will be added later Jan 06 01:08:32 But I have no idea of how to go from that to actually having the two lists. Jan 06 01:08:54 TacticalJoke: ie, you have the fragment pager where you can switch pages by swiping Jan 06 01:09:09 and then you have a few tab buttons that will focus a specific page Jan 06 01:09:19 the entire thing will work without the tab buttons as well Jan 06 01:09:27 Oh, I might not do swiping now. Jan 06 01:09:44 The tabs should suffice. Jan 06 01:09:56 why not? it's kind of the standard way to do this kind of thing in android Jan 06 01:10:09 canadiancow: so Maurits and I were talking about how onDestroy works, in my perspective onStop exits and onDestroy is called when the process is killed. However, both of them may not be called only when the application in question crashes/memoryleak/memorycap. If another application uses too much memory or the system's ram is getting expensive the system would opt to finish other apps first. so the only reason why onStop or onDestroy would not b Jan 06 01:10:09 horizontal swiping + tabs Jan 06 01:10:26 onstop is called when user exits with home or back* Jan 06 01:10:36 onPause for home Jan 06 01:10:41 Horizontal swiping makes things much more complicated. Jan 06 01:10:42 I think. Jan 06 01:10:44 KaiKai: cut off your post after 'onStop or onDestroy' Jan 06 01:10:55 *it cut off your paste Jan 06 01:11:32 canadiancow: so Maurits and I were talking about how onDestroy works, in my perspective onStop is called when user exits and onDestroy Jan 06 01:11:38 is called when the process is killed. However, both of them may not be called only when the application in question crashes/memoryleak/memorycap. Jan 06 01:11:45 If another application uses too much memory or the system's ram is getting expensive the system would opt to finish other apps first. so the only reason why onStop or onDestroy would not be called would be a fatal device error or memory leak/memorycap Jan 06 01:11:49 in retrospect, my point also wasn't really about the specific semantics of memory management in android Jan 06 01:12:10 but more about doing everything to save data regardless of what happens to the OS or the system Jan 06 01:12:11 KaiKai, i believe that even changed Jan 06 01:12:16 isnt onstop guaranteed in like 3.0+? Jan 06 01:12:31 not sure, but thats how i looked at the lifecycle since 1.6 Jan 06 01:12:39 and its worked so far for everything Jan 06 01:12:56 not according to the docs, but there's also kernel panics and such to contend with Jan 06 01:12:56 Maurits: that was my point, you should always save in onPause or onStop and not depend on onDestroy Jan 06 01:13:09 ^ this. Docs are confusing on the subject Jan 06 01:13:35 the beginning onDestroy() and the bottom onDestroy() summary sort of contradict each other Jan 06 01:14:05 KaiKai: also, it makes little sense that the system would always guarantee that onStop/onPause are called Jan 06 01:14:08 but not onDestroy Jan 06 01:14:21 I can't think of a technical circumstance where that'd be the case Jan 06 01:14:27 Maurits: i'm talking about it in a user perspective Jan 06 01:14:45 the user would press home > onPause | user presses back > onStop/onPause Jan 06 01:14:57 what I mean is, assume the system can always find time to call onPause as you hypothesize Jan 06 01:15:10 why wouldn't it then call onDestroy as well? Jan 06 01:15:13 the system wont call onPause if application is killed i believe Jan 06 01:15:19 Pwease help. :[ How do I get from these basic tabs ( http://pastebin.com/7G7y2vrh ) to actually having two lists, one for each tab? Jan 06 01:15:23 The documentation is so awful. Jan 06 01:15:44 Tactical, I see you asking so much on here, do you even try anything yourself? :/ Jan 06 01:15:49 what i was saying was onDestroy would only not be called if the application is the cause of the memoryleak/memorycap Jan 06 01:16:04 Yes, Anthaas. Jan 06 01:16:12 I've been googling for like three hours. Jan 06 01:16:27 http://ihackmyi.com/files/upload/b/1727-spoon-fed.jpg Jan 06 01:16:57 It would take me weeks to answer some of these questions. Jan 06 01:17:01 Instead of seconds if I ask here. Jan 06 01:17:21 Are you biting off more than you can chew then? Jan 06 01:17:29 Yes, but that's how you learn things quickly. Jan 06 01:17:29 i.e. are you trying somethign that is too far beyond your current knowledge? Jan 06 01:17:34 Yes Jan 06 01:17:35 . Jan 06 01:17:41 Perhaps not a wise idea? Jan 06 01:17:44 But, by getting answers here, I figure it out. Jan 06 01:17:48 KaiKai: I'm not actually sure whether it can transition from Foreground -> onDestroy Jan 06 01:17:48 Oh, that's a really quick way of learning. Jan 06 01:17:51 TacticalJoke: would you flip out if I said you missed a space? ;P Jan 06 01:17:53 I learned C#/.NET in this manner. Jan 06 01:18:05 Maurits: thats what im saying, it can't if its killed from foreground Jan 06 01:18:08 Where, KaiKai? Jan 06 01:18:15 KaiKai: the lifecycle diagram seems to imply that it'll first need to go to onStop before it can enter onDestroy Jan 06 01:18:27 Can somebody please explain Fragments to me? Jan 06 01:18:28 but it does seem a bit weird Jan 06 01:18:34 quote from one irc member: "did you know gullible isn't in the dictionary?" Jan 06 01:19:04 Someone, please point me in the right direction. Jan 06 01:19:14 KaiKai: it's not, not in my pocket dictionary, anyway Jan 06 01:19:24 I know how to create tabs with an ActionBarSherlock, but I don't know how to show two separate ListViews, one for each tab. Jan 06 01:19:43 KaiKai: you could test this by calling finish() on the activity Jan 06 01:19:51 and seeing whether it goes to onStop before onDestroy Jan 06 01:20:03 Maurits: onStop is called before onDestroy when finish() is called in the application Jan 06 01:20:21 Anyone? Jan 06 01:20:46 Maurits: first comment, onDestroy is called after onStop and only when the application calls finish() or the application decides to kill Jan 06 01:20:48 system* Jan 06 01:21:05 TacticalJoke: you need to create two Fragment subclasses Jan 06 01:21:13 * AmandaC plays memory roullet Jan 06 01:21:41 TacticalJoke: but honestly, don't you think it might be a better idea to just start with a basic tutorial? Jan 06 01:21:49 instead of jumping into fragments Jan 06 01:21:49 Well, I can't find a tutorial for this. Jan 06 01:21:59 which to my belief would imply that onDestroy is only called when user decides to exit from application and when system kills for memory for another application Jan 06 01:22:33 the only reason why onDestroy wouldn't be called is through crash, UI freeze, memory cap, memory leak Jan 06 01:22:44 Well, I found this tutorial, but it's incomplete: http://arvid-g.de/12/android-4-actionbar-with-tabs-example Jan 06 01:22:49 AmandaC: memory roullet? Jan 06 01:23:07 KaiKai: but, as I mentioned, it'd make no sense that if the system _can_ call onDestroy (ie, it has time to call onStop before it) Jan 06 01:23:12 KaiKai: why wouldn't it then? Jan 06 01:23:19 Maurits_: What can I do? Jan 06 01:23:39 TacticalJoke: build up the app in steps Jan 06 01:23:51 first only have the tabs change the color of the background or something Jan 06 01:23:56 then add the Fragments Jan 06 01:24:00 KaiKai: write "Blah" to a random seek() in /dev/mem Jan 06 01:24:00 onStop is only called on back button press or home button press. Also it is part of finish() Jan 06 01:24:22 I'm up to the "add the Fragments" part. Jan 06 01:24:32 i think the diagram depicts it wrong :rollseyes: Jan 06 01:24:36 KaiKai: you spent quite a bit of time arguing that it was also always called on low memory Jan 06 01:24:45 KaiKai: ie, low memory activity cleanup Jan 06 01:24:51 hmm? Jan 06 01:24:53 that's what this was about right? Jan 06 01:24:54 nope Jan 06 01:24:56 dont count on onDestroy Jan 06 01:25:02 what i was saying is Jan 06 01:25:03 KaiKai: what is then always called? Jan 06 01:25:06 So I have to create, like, TasksFragment and NotesFragment? Jan 06 01:25:13 TacticalJoke: yes Jan 06 01:25:19 onDestroy is reliable as long as your application does not have memoryleak, memorycap, or uifreeze Jan 06 01:25:32 or the kernel doesn't crash Jan 06 01:25:34 TacticalJoke: wheres your onPause, onDestroy, etc super methods?!?!? Jan 06 01:25:38 or the system doesn't run out of battery Jan 06 01:25:40 etc Jan 06 01:25:45 right, so reliable as in mostly unless its a device error Jan 06 01:26:02 to my belief when the device runs out of battery it calls onDestroy for every app in the stack Jan 06 01:26:09 thats why you see that progress bar before it closes Jan 06 01:26:14 KaiKai: just as a sidenote, even though it's a system or device error, you should still try to save your data Jan 06 01:26:29 I find the Word autosave analogy perfectly reasonable Jan 06 01:26:31 see that doesn't make any sense Jan 06 01:26:41 well hmm Jan 06 01:26:49 even though you didn't cause the error, you should still try to rescue the user Jan 06 01:26:52 what your saying is that the best effect would be an auto-save every 5 minutes? Jan 06 01:26:59 or your own interval Jan 06 01:27:03 yeah, or sync edits to disk immediately Jan 06 01:27:04 KaiKai: I'm not there yet. Jan 06 01:27:09 as well as onPause/onStop Jan 06 01:27:11 All this does is show two tabs. Jan 06 01:27:13 yea i'd agree with that then Jan 06 01:27:38 we probably just were on the wrong page haha and i got ahead of myself and started talking about onDestroy Jan 06 01:28:02 KaiKai: although it also depends on how expensive the save operation is, of course Jan 06 01:28:09 When someone has a second, could you explain fragments? I've never used them before (or never thought I was in a situation where I've needed to) Jan 06 01:28:14 TacticalJoke: nonsense, always create onPause and onDestroy first! triggering ocd: Jan 06 01:28:27 it could be that it's simply not feasible to do it every minute Jan 06 01:28:39 Why are you mocking my OCD? Jan 06 01:28:45 cause I have OCD as well Jan 06 01:28:58 i'm not mocking it, simply having fun with your symptoms because I shared the same Jan 06 01:29:08 but you're right, I got a bit sidetracked by the entire memory lifecycle thing Jan 06 01:29:17 boolean mOCD = true; Jan 06 01:29:23 the cases in which it's not called are probably minimal anyway Jan 06 01:29:38 but I do agree on your concept for saving Jan 06 01:30:13 it provides a better user experience and I guess I simply was too focused on the fact that the error was not caused by my application Jan 06 01:30:34 should hold more responsibilites towards the end-user. extra +5 ratings i guess haha :) Jan 06 01:30:56 Uhh, I just realised that I need an "Add Task/Note" button at the top. Jan 06 01:31:06 Can I have that with the tabbed ActionBar? Jan 06 01:31:49 sure, might get a bit crowded on older phones Jan 06 01:31:59 OTOH, you only have two tab labels Jan 06 01:33:13 Hmm, maybe the Add button should be underneath, in fact. Jan 06 01:33:18 Is the SAXParser classes that come with the SDK the best for parsing RSS around? Jan 06 01:33:25 Since it's related to the child, not to the parent. Jan 06 01:33:30 But that takes loads of room. Urgh. Jan 06 01:33:33 I did a little research which showed that SAXParsing was the most efficient Jan 06 01:34:56 anyone knows if it possible to setup GestureOverlayView to handle 2+ fingers at the time? so you can, say draw two lines at the same time Jan 06 01:35:03 Yes Jan 06 01:35:08 Anthaas: well, it kind of depends, SAX parsing is always more memory efficient Jan 06 01:35:10 Someone was in here talking about doing it the toher day Jan 06 01:35:30 Maurits_: My understanding was that it was quicker, more significantly so when more lines are to be parsed. Jan 06 01:35:32 Anthaas: but only more CPU efficient if you don't care about a large section of the document Jan 06 01:35:45 I would go with the SAXParser in that application. Your not dependent persay on need the whole document in memory. Jan 06 01:35:49 Maurits_: Or if there are only few fields? Jan 06 01:36:13 Anthaas: well no, the main difference is that a DOM parser will create an in-memory tree of the entire document Jan 06 01:36:17 "That application". What applicaiton? I am talking about general use. I'm not making an app atm. Jan 06 01:36:27 where SAX will just fire off parse events, so you don't have to store everything in memory Jan 06 01:36:40 Really? :) well I found GESTURES_STROKE_TYPE_MULTIPLE but that seems to indicate that I can draw two separate lines aftereach other, not at the same time¨ Jan 06 01:36:46 and if you only care about a subset of the document you can ignore most of the events Jan 06 01:36:56 AMaurits_: Ahh, I like SAX for that very reason. I find often that RSS feeds are full on superfluous crap. Jan 06 01:37:01 of* Jan 06 01:37:25 I meant application as in the utility of something. If you were going to apply a parser to that concept. Jan 06 01:37:31 but a DOM parser is usually way more convenient to work with Jan 06 01:37:50 Oh? Jan 06 01:37:59 I cant think of a reason I would want an in-memory tree Jan 06 01:38:25 well, I don't know whether SAX includes XPath matching etc Jan 06 01:38:37 but having to do all the event bookkeeping yourself is a major pain Jan 06 01:39:01 So, if I have two tabs, Tasks and Notes, where could I put the "Add Task" and "Add Note" buttons? Jan 06 01:39:08 The way I normally work with RSS feeds, for example, if pulling someones twitter feed, is to create a RSSHandler, an RSSItem (which would be representative of each tweet), and a class to display it all in. Parse through, pull out what I want, add to an RSSItem, add that to an array list, then at the end, go through it all and add them to my UI Jan 06 01:39:10 Also with a SAXParser you can be using or viewing the data before it is done parsing. Jan 06 01:39:22 but if you can just say parser.addHandler("p.someclass", new ParseHandler() { ... code here ... }); Jan 06 01:39:27 then it's nice Jan 06 01:40:53 oh yeah, SAX doesn't do that Jan 06 01:40:54 #android-games | for game developers :) Jan 06 01:40:58 huge pain Jan 06 01:41:52 have any of the guys ever used JSON? Jan 06 01:42:31 yeah, about a minute ago Jan 06 01:43:13 Nice, I love it. I used it for the first time a not too long ago. Great API imo. Jan 06 01:44:47 Anyone have any experience with encryption within android? Jan 06 01:45:36 encryption as in encrypting strings/bufferedoutputs Jan 06 01:45:52 I would still like to know about Fragments if someone could please explain them? Jan 06 01:46:02 both assymetric or symetric would be fine Jan 06 01:46:05 Ive never had to, or thought I should have, used Fragments before Jan 06 01:47:36 anthaas: i've never used them either but this might be of some help. developer.android.com/guide/components/fragments.html Jan 06 01:48:14 I don't know much about them. All I know is that they're like activities running with an activity. They have they're own life cycle within the activity. If the main activity closes then all fragments running in them also closes. Also alot of earlier phones don't support that api. Jan 06 01:49:13 Hmm Jan 06 01:49:17 That could be a problem... Jan 06 01:49:18 Anthaas: fragments are pieces of interface combined with logic Jan 06 01:49:27 Anthaas: that you can reuse Jan 06 01:49:41 Why can't I override onCreateOptionsMenu() when I'm using an ActionBarSherlock? Jan 06 01:49:47 Google suggests that I should be able to. Jan 06 01:49:50 Anthaas: ie, if you have a 'sidebar' and a 'content' fragment Jan 06 01:49:50 TacticalJoke: So essentially, a re-createable activity within an activity? Jan 06 01:50:01 Like the facebook app does? Jan 06 01:50:10 Anthaas: you can, on phones, have them fullscreen in their own activity Jan 06 01:50:13 You press the button in the top right and the side slides across Jan 06 01:50:13 Maurits: so basically its taking advantage of multiple applications right? Jan 06 01:50:21 Anthaas: and on tablets have them side by side Jan 06 01:50:23 I'm confused by that question. Jan 06 01:50:25 instead of single activities Jan 06 01:50:25 in one activity Jan 06 01:50:31 I'm just trying to figure out how to add buttons to an ActionBar. Jan 06 01:50:38 And the documentation seems absent. Jan 06 01:50:50 it's not that bad Jan 06 01:51:01 look at ABS samples Jan 06 01:51:06 What API level did ActionBar become available btw? Jan 06 01:51:10 Im planning an app in my head haha Jan 06 01:51:24 on honeycomb Jan 06 01:51:40 Cool, cheers Jan 06 01:51:40 Anthaas: API11 Jan 06 01:51:43 but with actionbarsherlock you can have AB support all the way back to 1.6 Jan 06 01:52:02 or even earlier, don't know Jan 06 01:52:19 most people seem to do 2.2+ Jan 06 01:52:47 Okay, the example shows onCreateOptionsMenu being overridden. Jan 06 01:52:53 And yet the compiler won't let me override that. Jan 06 01:52:54 What the. Jan 06 01:53:01 Hmm, is it bad that I don't like the idea of accommodating for people that won't update their stuff... Jan 06 01:53:13 It suggests that there's nothing to override. Jan 06 01:53:15 Dont get me wrong, Jan 06 01:53:32 I don't mind it to a certain extent, but people still running versions older than Gingerbread... Jan 06 01:54:11 Anthaas: well, dropping support for everything older than API 11 has the consequence of not supporting more than one in two android phones on the market today Jan 06 01:54:17 Maurits_, ABS works with 2.1+ Jan 06 01:54:21 Anthaas: Not at all I feel you bro. http://developer.android.com/about/dashboards/index.html Jan 06 01:54:28 canadiancow: ah, ok Jan 06 01:54:28 I realise this, which is why generally, I aim for 2.3.3 Jan 06 01:54:45 i see very little reason not to support 2.2+ in most things Jan 06 01:54:53 i havent encountered much that would make me want to drop support for 2.2 Jan 06 01:54:59 i only dropped 2.1 support when the new map stuff came out Jan 06 01:55:04 Look at that link it will only confirm your actions. :) Jan 06 01:55:20 one scheme i thought out was Jan 06 01:55:22 2.2 is kind of a pain sometimes Jan 06 01:55:28 the preference stuff is a bit annoying Jan 06 01:55:32 make an app for -2.2 so they boost your downloads Jan 06 01:55:39 and thus help you with the 2.2+ crowd :) Jan 06 01:55:54 ie, SettingsFragment vs SettingsActivity or whatever they were called Jan 06 01:56:33 you can use PreferenceActivity in 4.2 Jan 06 01:56:39 Never mind; I fixed that. Jan 06 01:56:45 and there are trivial ways around issues like that Jan 06 01:56:51 and PreferenceFragment is a 3.0 thing Jan 06 01:56:57 so you'd have to drop gingerbread as well Jan 06 01:57:26 oh, yeah, between 2.2 and 2.3 there's not much of a reason Jan 06 01:58:28 I don't remember exactly, but I think I just supported both PreferenceActivity and PreferenceFragment, and chose which to start based on API level Jan 06 01:58:34 which worked well enough Jan 06 01:59:50 ive never really needed to do that Jan 06 01:59:59 you generally want preferences to be in a new activity Jan 06 02:00:11 and if you only have one screen in 2.3, do you need two preference screens in 3.0+? Jan 06 02:00:16 and if not, then all you need is a preferenceactivity Jan 06 02:00:37 canadiancow: iirc what I wanted to do is load the settings view in the content pane on tablets Jan 06 02:00:46 and as a separate screen on phones Jan 06 02:00:58 yeah, ive seen people request that Jan 06 02:01:00 i personally dont like it Jan 06 02:01:04 :P Jan 06 02:02:38 are there any (standard/reliable/good? :-) libraries to transmit/receive small streams of audio-based data between two phones? Intended use is to exchange a small amount of data between two devices that are physically close to each other Jan 06 02:03:11 (also, any other widely available equivalent ways to do this? NFC doesn't seem to be widely available) Jan 06 02:03:16 You should be able to find a decent RTP library online somewhere. Jan 06 02:03:36 Oh, you mean specifically when pressing two phones together? Jan 06 02:03:46 correct. one phone basically beeps at the other Jan 06 02:03:57 I wouldnt know, sorry. Jan 06 02:04:43 I wonder if there's some equivalent that uses the camera/screen instead; maybe qrcodes might just about be adequate Jan 06 02:05:47 and the bump'ing idea and sync via the cloud seems to be covered in patent trolls Jan 06 02:06:57 that might work. Another thing that would be shotty but might work is to see if you could get signal strength data from paired bluetooth devices. If they had an extrememly high signal strength then they might by touching each other. Jan 06 02:08:37 right, that's a thought. It would be awesome if it didn't need any cloud access at all to make the sharing work. I need to exchange basically a coupla public keys, so maybe a K or 2 of data each way Jan 06 02:11:02 I think the qrcode approach + cloud could work too. It's a bit fiddly to take pictures compared to bumping or beeping maybe, but that might be the path of least resistance Jan 06 02:13:13 that seems like they way to go short of nfc Jan 06 02:13:50 yeah, I have a feeling you're right. the audio/dsp stuff gets a bit fiddly too; and might be a bit too weird Jan 06 02:15:17 hmm, why does the audio get fiddly? Jan 06 02:15:46 I'll need to get permissions to enable the microphone, and worried about noise in cafe's etc Jan 06 02:16:29 at least with qrcodes, there are enough libraries that I don't have to invent an audio protocol to go along with raw dsp processing and so forth... Jan 06 02:16:36 Bropane: i tried that before Jan 06 02:16:39 i don't think it would work Jan 06 02:17:07 KaiKai: what did you try, if I can ask; and learn from your experienc? Jan 06 02:17:15 my test was with a wireless router though, was getting 90% right next to it and sometimes 100% 20 feet away Jan 06 02:17:17 it was really weird Jan 06 02:17:24 KaiKai: Yeah I figured as much just like a shot in the dark Jan 06 02:17:45 good idea though, was trying to measure distance from router with signal though haha Jan 06 02:17:47 oh -- trying to estimate proximty to a router using wifi signal strength? Jan 06 02:17:53 yup Jan 06 02:18:00 nice. clever idea Jan 06 02:19:08 went to the point where I was trying to calculate the distance by putting weather into account as well as ping Jan 06 02:19:56 i think it might be possible if you can figure out when the packets were sent by the router and when they were received by your phone Jan 06 02:21:45 sounds like a fun project, though I don't have enough context into the problem :-) at any rate; the one random thing I've learnt (as an ancient ham) is that antennas are pesky, temperemental things. Jan 06 02:22:25 it's too bad there aren't too many 'wifi' glasses; i've always thought the wavelength at 2.x GHz is small enough it could be visualized usefully Jan 06 02:22:29 what is that Jan 06 02:29:48 kbs are you talking about like a augmented reality app that visualizes wifi strength? Jan 06 02:30:30 Bropane: just blue-sky babbling really. I was thinking of something like a pair of glasses that I could wear and see reflections of all the 2GHz signals nearby Jan 06 02:31:23 and see what the heck my microwave is really doing :-) Jan 06 02:31:25 Not gonna lie man that would be pretty cool. Jan 06 02:31:59 kbs: kickstarter worthy Jan 06 02:33:18 wrong channel pragma Jan 06 02:33:19 :) Jan 06 02:33:37 yeah, wouldn't that be cool? :-) Guell i'll have to wait for some budding EE genius to figure it out Jan 06 02:39:30 Yea, it would be pretty sweet to have something like that. I would look into but eh, already have a couple projects. Jan 06 02:41:48 Anyone have an idea on the best way to handle this situation: have a dialog that shows up at the bottom of the screen to select a color to change a text color. Whenever a new color is clicked, there is a preview under the dialog that gets changed. Problem is with smaller screen devices/lower dpi devices the dialog color selection can take up enough screen space to cover the preview. Was Jan 06 02:41:48 thinking of setting alpha to zero for .5 s or so then returning to fully opacity on the dialog over an interval of .25s or so. Jan 06 02:45:32 * kbs wonders if the dialog itself could function as a preview, though that probably meas you have to implement the whole colorpicker Jan 06 02:46:23 anyways.. time i stopped talking do some work too :) Jan 06 02:47:43 Work? The only reason anybody is on this channel is so they can talk under the guise of actually working :P Jan 06 02:48:02 hoy. I resemble that description! Jan 06 02:48:06 * kbs waves Jan 06 02:48:12 later bro Jan 06 02:48:40 kbs: i use a sliding drawer for all the customization options, each dialog has its own layout, the preview is underneath for that reason and that i'm trying to cover the four app widget heights (1/4 1/2 3/4 full screen) Jan 06 02:48:43 thanks tho Jan 06 02:50:42 I tried to shrink the grid containing the colors to 0 and then growing it with an animation but i get a jitter effect because of the dialog i am guessing so i figured alpha would be easiest way **** ENDING LOGGING AT Sun Jan 06 02:59:59 2013