**** BEGIN LOGGING AT Wed Aug 22 03:00:00 2012 Aug 22 03:09:33 can I open a dialog when pressing the menu button? Aug 22 03:21:40 madprops: should be able to. Override the onMenuPress method I beileve Aug 22 03:22:16 I got it to work with the onKeyDown method Aug 22 03:25:00 does anybody know how to draw a rounded rect with only two corners rounded? Aug 22 03:26:30 Is there any way to stop a MyLocationOverlay from requesting any more location updates, but still have it draw the blue circle indicator from it's first location fix? Aug 22 03:34:33 hello, I am going to implement an app which starts a login activity first. After login, it will go to activity B, then do normal action maybe going to activity C. For every activity, there is a logout button. How should I manage the activity if the logout button is pressed, then it redirect the user to login page and kill all other activities? Aug 22 03:34:45 sorry for my poor English Aug 22 03:43:58 edwinkcw: You need to use an Intent flag to clear the back-stack. Aug 22 03:44:06 It's FLAG_CLEAR_TOP, I think. Aug 22 03:44:33 umm….but the login screen is finished after login Aug 22 03:45:01 it will launch a new login activity I think and cannot clear top Aug 22 03:45:38 http://developer.android.com/reference/android/content/Intent.html#setFlags(int) Aug 22 03:45:44 Okay, then I have no idea what you're talking about. Aug 22 03:46:51 My answer is still correct. Aug 22 03:47:07 When they click logout, you start a new Intent to re-direct to login activity, with the CLEAR_TOP flag. Aug 22 03:51:10 umm.. Aug 22 03:51:15 let me see Aug 22 03:52:45 Chronax: the problem is that, my login activity is gone after login. If I use this flag, it cannot clear the top of the login activity. Instead, I think it will create a new activity Aug 22 03:52:59 Jesus Christ. Aug 22 03:53:00 I give up. Aug 22 03:53:39 Chronax: do I have sth wrong about this concept? Aug 22 03:54:29 the flow is, A(finished)->B->C, if I launch A again in C, it will be B->C->A Aug 22 03:54:45 You're comically missing the entire point. Aug 22 03:55:00 I can use clear_top if A still exists Aug 22 03:55:00 I suggest you go and watch some basic introductory Android development tutorials on The New Boston. Aug 22 03:55:02 Yes, you do. You should check out some of the Android tutorials on Aug 22 03:55:16 The New Boston. Aug 22 03:55:29 http://www.youtube.com/playlist?list=PL023BC9408BAFEC0C Aug 22 03:56:20 Chronax: ok, may I know which part is wrong? Aug 22 03:57:14 Yes, your entire concept of Android development and Activities seems wrong. Aug 22 03:57:31 huh? Aug 22 03:58:00 You keep saying wrong but can you point it out? Aug 22 04:00:26 edwinkcw: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTI Aug 22 04:00:36 friggin' copy+paste Aug 22 04:00:40 http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP Aug 22 04:01:07 ryanm: I know this flag, but how can this flag apply to my case? Aug 22 04:01:42 I always think the back-stack becomes B->C->A rather than A only in the stack. Aug 22 04:01:48 I don't understand the question. It sounds like exactly what you just asked for Aug 22 04:02:00 ok.. let me clarify Aug 22 04:02:09 edwinkcw: you clearly haven't read that description if you think that Aug 22 04:02:32 go ahead Aug 22 04:02:43 now, I have a sequence of activity. A->B->C ..A B C are activities. Aug 22 04:02:54 A is login screen , after login, the activity will finish Aug 22 04:03:18 anyone can point me to a good drill down list tutorial/example? :D Aug 22 04:03:19 then you guys say I should use clear top when logout in B / C to start A. right? Aug 22 04:03:36 oh, I see. you're finishing the activity... give me one sec Aug 22 04:03:37 but the stack will become B->A Aug 22 04:03:58 yep, I think I emphasize I finish A many times... Aug 22 04:05:49 root GT-l9070 S advance, now the phone is rebooting every minute, did i screw up? Aug 22 04:06:18 hemanth: #android-root Aug 22 04:07:00 ryanm, phew ok Aug 22 04:08:53 edwinkcw: I think a better question is why you're finishing the login activity Aug 22 04:10:00 umm…If I don't kill A, the stack is A->B->C. If I was in B, and press back, it would go back to A Aug 22 04:10:15 I don't think it is a good behavior. Aug 22 04:10:29 just trying to get a better idea of what you want Aug 22 04:10:50 so pressing back from B should not take you back to login, it should close the app, right? Aug 22 04:10:53 I want to keep the session until the user explicitly press logout Aug 22 04:10:59 yep Aug 22 04:11:22 http://developer.android.com/guide/topics/manifest/activity-element.html#nohist Aug 22 04:12:47 ryanm: I think it is same as I finish A by myself? Aug 22 04:12:54 basically, that'll make sure the activity doesn't get added to the back stack, which is part of what you want Aug 22 04:13:32 but what if the user pressed logout in B/C? Aug 22 04:13:44 getting to that :-) Aug 22 04:14:09 B/C still exist and launch a new A again. Sounds not solve the problem yet. Aug 22 04:14:25 http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TASK Aug 22 04:14:44 that should solve the rest of your problem Aug 22 04:15:24 ok, let me try it. Aug 22 04:15:26 thanks Aug 22 04:15:37 but it only support api 11 :( Aug 22 04:17:50 FLAG_ACTIVITY_NEW_TASK perhaps? Aug 22 04:18:02 I've never actually tried this before, so I'm guessing a bit Aug 22 04:19:33 not quite understand what FLAG_ACTIVITY_NEW_TASK does Aug 22 04:31:45 hmm, my eggs say Aug 08 and 8/18. what to believe ? Aug 22 05:04:37 hi Aug 22 05:05:25 When you have a free app and an non free app, do you just make a whole new project to keep them separate? Aug 22 05:11:17 hello Aug 22 05:11:51 hi Aug 22 05:12:10 I think everyone is sleeping. My question didnt get answered LOL Aug 22 05:12:15 idkau: do you know about smack api for instance messages? Aug 22 05:12:32 no I dont Aug 22 05:12:39 okay thx Aug 22 05:12:45 no prob Aug 22 05:13:35 hello Aug 22 05:13:44 hi Aug 22 05:14:18 well I installed the jdk 7 and the google sdk, so now do I install eclipse ? Aug 22 05:14:43 yea Aug 22 05:15:17 I install eclipse first Aug 22 05:15:41 and these versions are confusing me, I have a phone with 2.3.3 and the emu is very slow if I want to develop for version 4.1 Aug 22 05:16:09 it is slower :) Aug 22 05:16:13 only a lil though Aug 22 05:16:29 I keep an emu running all the time Aug 22 05:16:48 yeah I'm running it, but it takes like an hour to start lol Aug 22 05:16:55 whoa Aug 22 05:17:04 It takes my comp maybe 30 secs. Aug 22 05:17:13 Are you on a slow computer? Aug 22 05:17:17 the cube live wallpaper runs around 1 fps or less Aug 22 05:17:17 I'm proud.. .I taught my wife basics of desinging html pages in 1hr Aug 22 05:17:27 coming from no history of programming etc at all Aug 22 05:17:34 NICE Aug 22 05:17:44 my chick took forever to learn HTML Aug 22 05:17:47 0.5 fps Aug 22 05:17:49 haha Aug 22 05:18:47 any of you have published apps? Aug 22 05:18:59 my box is a laptop with dual core 1.3 Ghz AMD64 4 GB ram, it runs GTA4 smooth at low res , so its pretty fast Aug 22 05:19:13 shouldnt take long then Aug 22 05:19:38 smooze install haxm extensions and set it up properly and it will run nearly realtime Aug 22 05:19:50 I installed the 64 bit jdk/jre and then the 64 bit google android sdk Aug 22 05:20:25 thanks ron_from Aug 22 05:20:35 there is hope afterall Aug 22 05:20:44 that must be a windows thing? Aug 22 05:20:54 windows mac Aug 22 05:20:54 you on linux ? Aug 22 05:20:57 hm i suddenly became unable to connect the internet from the android emulator Aug 22 05:20:58 I am Aug 22 05:21:02 this is the second time it happens to me Aug 22 05:21:06 I'm on windows 7 premium that came with the laptop Aug 22 05:21:10 anyone else ever had the same? Aug 22 05:21:16 well this box is another I'm chatting on tho Aug 22 05:21:27 connection on the computer works fine, just cant connect anywhere from the emulator Aug 22 05:21:32 idkau I thought linux had a diff way to do haxm Aug 22 05:21:59 I dont know. I do know that my emu always start right up like a real phone. hehe Aug 22 05:22:28 My logcat skips frames though. So dunno. Aug 22 05:23:12 "Emulator without GPU emulation detected." Aug 22 05:24:55 oh no I don't have a Intel CPU on that box :( Aug 22 05:25:05 haxm requires a Intel cpu Aug 22 05:25:27 it supports AMD cpu on linux Aug 22 05:25:31 ohhhhh. Mines a 6X AMD Aug 22 05:25:36 oh sweet Aug 22 05:25:53 as long as the chip has AMD-x or whatever their VT tech is Aug 22 05:27:44 AMD-V, SVM Aug 22 05:28:34 are amd machines decent these days? Aug 22 05:29:12 I would like to think so. Aug 22 05:29:27 I need to build a build server Aug 22 05:29:32 linux Aug 22 05:29:40 want something with some decent horsepower and a good price Aug 22 05:30:31 Ya it will work. All depends on how many concurrent users you will have Aug 22 05:30:43 nice I hit play on my mac keyboard, and I get "super freak by rick james" Aug 22 05:30:50 idkau myself, and building android Aug 22 05:30:54 just me Aug 22 05:32:08 Oh then ya its perfect. Aug 22 05:32:27 whats a modern amd processor Aug 22 05:32:35 good for that, but certainly not server class Aug 22 05:32:36 phenom Aug 22 05:33:16 like a phenom 2 x4? Aug 22 05:33:22 yeap Aug 22 05:33:33 wow those fuckers are cheap Aug 22 05:33:48 havent build a machine in ages... whats a good mobo these days? Asus? Aug 22 05:34:00 I like gigabyte boards Aug 22 05:34:20 I have a gigabyte board with a Phenom 1100T X6 Aug 22 05:34:28 yeah thats what I was just looking at Aug 22 05:34:35 takes anything I throw at it Aug 22 05:34:38 that thing fly? Aug 22 05:34:53 Its overclocked to 4.1Ghz hehe Aug 22 05:35:05 yea it moves along Aug 22 05:35:54 so I guess the main OS to develop on for most android developers is linux ? Aug 22 05:35:56 wait 4017 mhz I was wrong lol Aug 22 05:36:02 I develop on mac Aug 22 05:36:09 I dont know. I would say windows is used most Aug 22 05:36:14 http://valid.canardpc.com/show_oc.php?id=1710315 Aug 22 05:36:24 look at that. that is what I run Aug 22 05:36:41 because in google I'm getting mostly linux instructions instead of windows Aug 22 05:37:02 hmmmmm maybe! Or maybe windows users dont need help Aug 22 05:37:29 I <3 Linux. :) So its what I use daily Aug 22 05:37:55 When I built this machine I used windows. Aug 22 05:38:08 meh as soon as linux makes the big move to wayland/weston, I'm all over linux Aug 22 05:38:48 sweet Aug 22 05:39:09 I've used it for shit like compiling and server stuff for like at LEAST 10 years Aug 22 05:39:16 probably closer to 15 Aug 22 05:39:25 but for workstation, I still can not stand x Aug 22 05:39:34 and all the windowmanagers for the most part rub me the wrong way Aug 22 05:39:42 Damn so use it at home. Really? I love it. Maybe in the 90s X was lame Aug 22 05:39:51 hahah Aug 22 05:39:58 x has just gotten worse and more bloated over the years Aug 22 05:40:16 trust me when wayland makes its way mainstream (official ubuntu etc) Aug 22 05:40:21 you Aug 22 05:40:26 you'll realize what you've been missing Aug 22 05:40:36 Yea true. Its way more stable now though. Aug 22 05:41:14 composition in x is very prone to tearng and lag etc... and those hav eall but been eliminated in weston Aug 22 05:41:44 Yea it does Aug 22 05:42:13 Lag happens more on my Fedora box than my Ubuntu box Aug 22 05:43:22 I think its funny that gnome 3 got such negative publicity they are seriously stepping back and evaluating their plans Aug 22 05:43:49 good to see someone keeping up with the linux WMs Aug 22 05:44:11 They should. I use Gnome 3 in fallback mode because I cant stand it Aug 22 05:44:24 sounds like thats what most people do Aug 22 05:44:30 I dont really like older gnome either tho Aug 22 05:44:43 honestly I like that xfcwm or whatever Aug 22 05:44:46 xfce? Aug 22 05:44:50 super lightweight Aug 22 05:44:57 xfce yes Aug 22 05:45:14 or fluxbox Aug 22 05:45:34 I used xfce until I learned about fallback mode Aug 22 05:45:36 bah I dont want to break down and buy a bunch of components to build a desktop Aug 22 05:45:42 but I guess I gotta Aug 22 05:45:51 I was running fluxbox on openbsd Aug 22 05:46:01 I cant stand openstep clones Aug 22 05:46:02 Its fun to buy new stuff! Aug 22 05:46:21 idkau I concur, but usually its car/truck parts, or remodelling stuff for my house Aug 22 05:46:32 I get MOST of my electronics free =) Aug 22 05:46:41 luckyyyyyyyy Aug 22 05:52:18 fuck@ Aug 22 05:52:35 I used to have this music player that was badass, it could be reskinned Aug 22 05:52:35 ron_frown: what did you fuck up now Aug 22 05:52:43 I cannot for the life of me remember the name of it Aug 22 05:52:49 xmms? Aug 22 05:53:06 and it was the side project of a guy who wrote another big app for android Aug 22 05:53:10 but I dont remember the name of that either Aug 22 05:53:45 vlc? Aug 22 05:53:56 android god damn it android Aug 22 05:54:10 it had one of those newfangled "web 2.0" names Aug 22 05:54:15 vlc is on android Aug 22 05:54:28 that ain ti Aug 22 05:54:31 I like winamp cause it has shoutcast built in Aug 22 05:55:05 I wasnt looking for it, to use it =) Aug 22 05:55:13 I wanted to investigate how it did x Aug 22 05:55:22 and hopefully give me ideas for my ap Aug 22 05:55:30 JakeWharton you around? Aug 22 05:55:43 i am indeed Aug 22 05:55:45 xmps ? Aug 22 05:55:49 nah Aug 22 05:55:53 it was a catchy name Aug 22 05:56:14 xbmc? Aug 22 05:56:18 Jake! Thanks for ABS! I am using it. ;) Aug 22 05:56:32 idkau: you are welcome. glad it is useful to you Aug 22 05:56:47 jake a LONG mf time ago we chatted about it, but I'll be damned if I could find it in my gmail transcripts Aug 22 05:57:17 about the skinning, seems like they were able to just add a intent filter, then find apps that had that filter, and pull in the resources Aug 22 05:57:29 but i dont remember the details =( Aug 22 05:57:35 Amarok, Rythmbox, Clementine, SongBird , Banshee Aug 22 05:58:44 http://en.wikipedia.org/wiki/List_of_Linux_audio_software Aug 22 06:00:21 JakeWharton also what was that message queue app you wrote an article about for ^2 Aug 22 06:00:35 the event bus? Aug 22 06:00:38 yessir Aug 22 06:00:43 otto Aug 22 06:00:48 my brain is a big ass mess tonight apparently Aug 22 06:00:50 cant remember shit Aug 22 06:00:51 http://square.github.com/otto/ Aug 22 06:00:55 danke Aug 22 06:01:35 jake you land your s5 yet, or dont need it now that you are in the city Aug 22 06:01:53 don't need it, bought a bike and a bus pass Aug 22 06:01:58 haha Aug 22 06:02:00 booooo Aug 22 06:02:07 awesome :) Aug 22 06:02:23 thats one reason I couldnt live up there... my truck is... big Aug 22 06:02:40 not lifted / little weener big Aug 22 06:03:00 ron_frown: you use it to tow your boat right ? Aug 22 06:03:29 haha I guess... towed boat from person I bought it form, to my dads house cause trailer needs work before I can haul it home Aug 22 06:03:39 havent got the boat on the water yet, and already thinking of buying another Aug 22 06:03:39 haha Aug 22 06:04:34 JakeWharton: get any good pics recently / Aug 22 06:04:35 ? Aug 22 06:05:05 if i call Debug.startMethodTracing in a thread, will a call to Debug.stopMethodTracing() in another thread stop the method tracing in the first thread? Aug 22 06:05:52 https://lh6.googleusercontent.com/-eWW9YTI2UXc/T6DM-GCBi6I/AAAAAAAAAp0/N62_LEkLG6k/s787/IMG_20120430_172453.jpg Aug 22 06:05:57 no fun to drive in small city Aug 22 06:06:24 ron_frown: heh, yeah fuck that Aug 22 06:06:52 to be fair I do use it for my home remodelling... hauling lumber and doors and shit Aug 22 06:08:48 ubermusic was it Aug 22 06:08:53 launcherpro dude made it Aug 22 06:09:47 is the activity class like a controller? or is it the wrong way to think about it? Aug 22 06:10:23 ehh it could be Aug 22 06:10:34 though I dont know if I'd call it a real mvc Aug 22 06:10:53 just trying to understand the android environment, pretty new to it Aug 22 06:12:56 activitys can reference/control several views Aug 22 06:13:17 and you use intents to spawn new activities or fire off broadcast notifications, notification manager notifications etc Aug 22 06:13:25 i see Aug 22 06:13:50 i think it is more MVP than MVC Aug 22 06:14:26 the activity or fragment is the Presenter Aug 22 06:20:04 has the n7 been a commercial success? anyone know how many were sold ? Aug 22 06:20:22 they sold out a few times Aug 22 06:20:27 but that MAY mean nothing Aug 22 06:20:55 hmm, google play update Aug 22 06:21:00 yeah, you could probably say the NQ sold out :) Aug 22 06:21:17 haha Aug 22 06:21:53 oh, 8 million this year at current rate Aug 22 06:22:44 yeah if it just had a cell signal too Aug 22 06:22:52 its a very nice tablet Aug 22 06:23:03 it is indeed Aug 22 06:23:07 i saw a toshiba 10" for 300 Aug 22 06:23:08 pair it with your phone Aug 22 06:23:22 samsung 10.1 tab2 is nice Aug 22 06:23:23 Is it worth buying if I have a galaxy 10.1? Aug 22 06:23:27 i think the surface arm version is supposed to be 300 too Aug 22 06:23:34 I think honestly 7" is a more practical format Aug 22 06:23:38 I still want the asus prime infinity Aug 22 06:23:39 I am worried about reading books with a smaller screen size Aug 22 06:23:41 idkau: I'd say absolutely, but then I far prefer 7" Aug 22 06:23:50 7" is a great size. my old ipad feels grossly oversized now. Aug 22 06:23:57 idkau: i'd take a 12" actually for reading :) Aug 22 06:24:03 7" is *far* better for reading text - maybe not for things like textbooks Aug 22 06:24:09 diagrams etc. Aug 22 06:24:19 I should probably look at one in person. I only read textbooks on it for school. Aug 22 06:24:21 its very similar to the size of the kindle, which is also good for reading on. Aug 22 06:24:28 yeah, i tend to read a lot of art/design/technical stuff, pdf works best Aug 22 06:25:18 or no transformer infinity is what it was Aug 22 06:25:19 i've been reading books on the nexus 7, it's perfect Aug 22 06:25:32 are they fiction or tech books? Aug 22 06:25:36 well guys... end of this week, beginning of next week, porting jellybean to our next chunk of custom hardware =) Aug 22 06:25:37 both. Aug 22 06:25:39 should be interesting Aug 22 06:25:40 interesting that google only projected 3m units of n7 for 2012 Aug 22 06:25:43 same with me Aug 22 06:25:58 And its no problem reading code examples? Aug 22 06:26:01 g00s: also reported that the 16GB has sold a lot better than they thought Aug 22 06:26:03 nope Aug 22 06:26:09 sweet Aug 22 06:26:39 that is, they thought most people would go for the cheapest model on principle - but I guess it's cheap enough that it's worth getting the extra storage, for most people Aug 22 06:27:05 interestig Aug 22 06:27:17 cheap sells Aug 22 06:27:48 they must have lost money on that thing Aug 22 06:29:00 anyone done anything with speech recogition here? Aug 22 06:29:27 motorola xoom is 200 right now on daily steals Aug 22 06:29:42 dude Aug 22 06:29:47 i have a few of those at the office Aug 22 06:29:51 piles of shit I tell you Aug 22 06:29:54 lol Aug 22 06:29:56 speaktoit assistant was the best I've seen on android Aug 22 06:30:03 I like samsung products Aug 22 06:30:04 they must stick a 1lb steel plate on the inside of that bastard Aug 22 06:30:10 ahhaah Aug 22 06:30:35 I am looking at the xoom and wondering how it could possibly be as heavy as it is, even if it was a lead block Aug 22 06:30:49 maybe there is gold inside of it :) Aug 22 06:30:50 Its "tougher" haha Aug 22 06:31:04 fucking NICE Aug 22 06:31:26 I love when I look into doing x, create a sample project, name it and it fails because theres a project already named that in my workspace Aug 22 06:31:35 because I investigated this very thing like a year ago Aug 22 06:33:12 heh, a guy i went to HS with is #4 popular on ted Aug 22 06:33:23 thats so cool, go simon :) Aug 22 06:33:46 call me crazy, ted doesnt do it for me anymore Aug 22 06:33:54 seems like it turned into something it wasnt designed for Aug 22 06:34:14 i'll never be able to afford to attend one Aug 22 06:34:31 these things often becomes circlejerks Aug 22 06:34:41 there's always tedx Aug 22 06:35:10 I think there have been at least 2 or 3 tedxs in HK in the past year or so Aug 22 06:37:06 Hi there Aug 22 06:37:43 If I want to execute an action every 3 seconds, does a sleep in my service is enough or should I use a handler ? Aug 22 06:38:05 I'd say a handler Aug 22 06:38:26 sounds more beautiful Aug 22 06:38:39 Thanks. Aug 22 06:42:45 I'd recommend against using sleeps in 90% case they are used Aug 22 06:45:40 ron_frown: i know you're against sleep altogether Aug 22 06:46:08 I can sleep when I'm dead Aug 22 06:55:51 Is your app ever really done? :P Aug 22 06:59:25 idkau: no Aug 22 06:59:41 idkau: no, in my case, all projects I join is in development :) Aug 22 06:59:59 even if i didn't add a single feature i would be spending a lot of time just making it look purdy on all these form factors Aug 22 07:02:49 I/theming (24415): Custom theme set to: true Aug 22 07:02:51 beautiful Aug 22 07:02:55 and easy as pie Aug 22 07:10:01 hm, this book "Decompiling Android" looks interesting ... Aug 22 07:11:56 g00s you should hit up JesusFreke when hes around Aug 22 07:12:07 he maintains one of the big android decompilers Aug 22 07:12:09 afaik Aug 22 07:12:23 yea Aug 22 07:16:15 DIdnt think so. haha I can think of tons of things to change already. ;( Aug 22 07:33:19 After upgrading Jelly, boot logo only on S3 Aug 22 07:35:20 Try #android or #android-root Aug 22 07:36:18 ClicK-i if the jelly rom was not updating the bootloader Aug 22 07:36:23 it sits at the boot logo for a LONG time Aug 22 07:39:57 god damn it... whos the pimp Aug 22 07:40:00 haha Aug 22 07:40:10 got my skinning knocked out in like 35min Aug 22 07:40:59 create a skin apk, and my app can be completely re-layed out, wire up or choose not to wire up different bits of functionality Aug 22 07:42:16 Sounds useful :p Aug 22 07:42:41 you'll see what it is later, and understand why its important =) Aug 22 07:50:39 could someone please tell me what exactly does the physical back button do? it appears to call the onDestroy method in some circumstances and only onPause in others =/ Aug 22 07:51:48 balls2thewall: it moves up the activity stack Aug 22 07:51:52 It calls finish(); Aug 22 07:52:06 Which makes what Leeds said happen Aug 22 07:53:20 could you translate that to layman Aug 22 07:53:59 It destroys the activity Aug 22 07:54:04 it makes your activity go tits up Aug 22 07:54:18 activity go bye-bye Aug 22 07:54:20 unless, of course, you're handling it yourself, in which case all bets are off. Aug 22 07:54:26 SimonVT why does it skip the onDestroy method Aug 22 07:54:43 balls2thewall: have you memorised the Activity lifecycle graph? Aug 22 07:55:05 It shouldn't skip onDestroy Aug 22 07:55:52 it does =/, on 2.3.3 the back button always calls onDestroy, in 4.0.3 its a lot more fickle about it Aug 22 07:56:30 Are you hitting the home button by mistake when it skips onDestroy? Aug 22 07:56:54 onDestroy isn't guaranteed to be called... onPause is? Aug 22 07:57:18 It should be guaranteed when you call finish Aug 22 07:57:27 It might not be called when the process is reclaimed Aug 22 07:57:43 is that documentated somewhere? Aug 22 07:58:00 ...documented. I need sleep, apparently Aug 22 07:58:16 It's documentated in the docs :p Aug 22 07:58:32 balls2thewall: does onStop get called? Aug 22 07:59:32 not in a position to check it right now =/ Aug 22 07:59:42 hm, actually re-reading that it looks like you might be right, unless the application is getting killed Aug 22 07:59:55 balls2thewall: random question: is it an HTC device? Aug 22 08:00:27 samsung s2 Aug 22 08:01:16 im using Vuforia and its creating a lot of problems for the newer devices Aug 22 08:01:59 i hit the back button, the onDestroy doesnt get called, i start it up, Vuforia fails and app gets killed for sure, i start it again and its fine Aug 22 08:02:10 so literally i can start it 50% of the time Aug 22 08:07:16 if you define custom sounds, where would you put them in the res folder? simply res/sounds, res/sounds-de, res/sounds-en? Aug 22 08:08:02 There's no sounds folder Aug 22 08:08:08 There's raw Aug 22 08:12:53 sonOfRa: and raw is not devided like res Aug 22 08:13:18 put the url to it in res/values-xx Aug 22 08:13:23 i think it should be. -raw -cooked -welldone -medium -mediumrare Aug 22 08:13:46 hoangtran: Eh, are you thinking of assets? Aug 22 08:14:28 there isn't an url to it, i would like to put the sound files in there directly and play them via app Aug 22 08:14:37 res/raw/mysound.ogg seems reasonable Aug 22 08:14:38 errr... yes Aug 22 08:15:19 ops, mistake, asset, not raw. Simon, so what do you do when it's in raw? Aug 22 08:15:31 R.raw.resource Aug 22 08:16:38 thanks Aug 22 08:17:07 ahh, in res, so it's possible to put in raw-xx, right? Simon Aug 22 08:17:12 Yeah Aug 22 08:17:28 yeah, my bad :D Aug 22 08:30:26 what exactly is setCancellable(true/false) in an AlertDialog? I can't seem to notice any difference between the two. The dialogs are still cancellable via dialog.cancel, no matter what the setting there. Aug 22 08:30:49 i believe it's to do with the back button Aug 22 08:30:59 oh, ill try that Aug 22 08:31:20 Not often the user calls dialog.cancel() by themselves Aug 22 08:35:46 What's the prupose of the ic_launcher-web.png in the project root? Aug 22 08:36:14 Is it 512x512px? Aug 22 08:36:39 SimonVT: yep Aug 22 08:36:54 Then it's for the dev console Aug 22 08:37:13 SimonVT: What's the dev console? Aug 22 08:37:31 http://developer.android.com/distribute/googleplay/publish/index.html Aug 22 08:38:35 SimonVT: So it'll just be needed if you upload your app to the play store? Aug 22 08:38:39 Yes Aug 22 08:38:49 Thanks, we won't do that :-) Aug 22 08:39:29 is eclipse indigo out of date? Aug 22 08:40:04 or to rephrase: is it worth upgrading from indigo to juno Aug 22 08:41:26 So, would you rather use a 2 button dialog without an option to cancel, or use a 3 button with cancel, but cancellable false, OR 3 button, cancellable true? Aug 22 08:41:30 stork: very popular question, in the end you'll move up anyway :) Aug 22 08:42:57 2 button cancelable = true Aug 22 08:45:38 thought so, thanks Aug 22 08:48:51 i know this is silly but i really want java 7 support for android Aug 22 08:49:17 java 8 will be more important Aug 22 08:49:23 * lut4rp pokes repo sync to finish quicker... Aug 22 08:49:31 7 seemed kinda lame Aug 22 08:50:26 i kinda wonder what google's plan is for adopting that; even if they have a plan. of course we have no idea. if 3rd party libs start using these newer features, it will suck Aug 22 08:50:41 (regular libs i use for other java stuff, which happen to work on android) Aug 22 08:50:54 7 is kinda lame Aug 22 08:51:00 but i still like some of the features Aug 22 08:51:14 autocloseable resources are a blessing Aug 22 08:55:48 do most android phones have light sensors ? Aug 22 08:56:01 i guess to calibrate the screen brightness automatically ? Aug 22 08:56:45 yeah Aug 22 08:58:36 thx Aug 22 09:16:58 can I look for SMS's coming in from a specific sender? Aug 22 09:18:32 oh god i just installed eclipse juno Aug 22 09:18:34 it's so pretty Aug 22 09:18:44 :) Aug 22 09:22:39 is there a way to block orientation change for the entire application? or do i have to add it to each activity individually? Aug 22 09:23:07 atm there is no time to implement both view types until the specified release date, so i would like to block orientation changes an implement it later Aug 22 09:26:46 unless you've got 1000+ activities in your manifest, I guess it would be faster just to add configChange attr to each of them than find another way Aug 22 09:29:02 Hey all... When I create an ImageButton with src="@android:drawable/btn_minus" it gets extra spacing on the left... How do I get rid of it? Aug 22 09:34:33 DOH! Just looked at the Android source code... The padding is actually part of the .png image ?!? Aug 22 09:34:41 Extra weird... Aug 22 09:35:38 whose png is that then Aug 22 09:36:53 Android/platform/frameworks/base/core/res/res/drawable-???/btn_minus_???.png Aug 22 09:37:23 I'd hate to have to make new icons for + and -... Aug 22 09:37:31 But seems... I'll have to. Aug 22 09:38:06 Guys, how do I set the name (text displayed on) a tab in tabwidget? Aug 22 09:38:50 Lachezar: you might be able to fix it with a negative padding. Aug 22 09:38:56 Iffy but hey Aug 22 09:44:18 hi! How to change color of ListView top and bottom "shadow" not overscroll color? This "shadow" visible on top and bottom of list view row when list don't fit on screen. Aug 22 09:51:18 android:cacheColorHint is what i need Aug 22 09:51:48 HDroid: That won't work well, as I'd have to make a negative padding different for different dpi (seems the padding is not the same in different DPIs). Aug 22 09:52:21 HDroid: So I'd have to create a new XML with values specific for the DPI :-/ Aug 22 09:52:55 Eh if you have images for multiple dpi it should scale, right? Aug 22 09:52:58 And even if you don't... Aug 22 09:53:08 Unless your images aren't scaled proportionally. Aug 22 10:00:21 hmm, how to find out which phones have a sensirion sht21 Aug 22 10:06:39 HDroid: Let me see if the padding is the same ratio. Aug 22 10:13:48 HDroid: Negative padding does not seem to work :( Aug 22 10:13:57 on an image? Aug 22 10:13:57 no Aug 22 10:14:01 try negative margin Aug 22 10:14:31 Snuffel: ImageButton Aug 22 10:14:50 Snuffel: negative margin makes elements overlap. Aug 22 10:15:04 Doh... I know: a CROP Image might do the trick Aug 22 10:15:11 Hmmmmm ImageButton doesn't have a drawablePadding attribute. Aug 22 10:15:18 Lachezar: you'll have to redo the 9 patch Aug 22 10:15:38 g00s: It's NOT a 9-patch... Just a series of .PNG for different states. Aug 22 10:27:37 * Lachezar is having a Drawable-Not-Working-Rage attack. Aug 22 10:30:57 this is my DBHelper class http://pastebin.com/4tiqEgkq , and this is where I' it, Aug 22 10:31:03 *facepalm* Aug 22 10:32:02 *and this is where I'm calling it, http://pastebin.com/1DkFbKUe , I get this exception http://pastebin.com/ddjkjwVi Aug 22 10:32:15 it's referring to the first create table statement that I have in the DBhelper class Aug 22 10:33:33 yeah, you have 8 %s and 7 parameters :P Aug 22 10:33:58 noo I counted like 10 times! Aug 22 10:34:12 ah, I am only counting inside the parens, didn't give the table name! Aug 22 10:34:43 this..is a whole other app than the one I talked about yesterday though, lol..not much hope for this one though; using phonegap Aug 22 10:34:47 also you might need ';' at the end of the statement Aug 22 10:35:16 g00s is fast :) Aug 22 10:38:47 I already have that semicolon Aug 22 10:38:56 cause, I did get an SQL error Aug 22 10:39:05 but I think it was cause I requested "explain table" Aug 22 10:39:10 I don't think sqlite3 has explain? Aug 22 10:41:13 btw, if you are using a db helper like this, its probably a good idea to make it a singleton Aug 22 10:41:33 hmm, it seems i have to set username and password using setHttpAuthUsernamePassword if there's an htaccess in place on the URL i try to load with loadURL(), correct? Aug 22 10:43:02 sicp: make a static .getInstance(Context ctx) method. then , get the application context from the context passed in. then instantiate the jelper if necessary using app context, or return the already instantiated one Aug 22 10:53:20 what I'm looking to do is call/create the database in my oncreate in the main activity and then insert into it with JS later on Aug 22 11:19:33 Anyone tried to access Twitter REST API using an HTTP request based on providing oauth_* params as query parameters? Aug 22 11:27:09 test Aug 22 11:34:44 Is someone awake? Aug 22 11:35:23 Foo the record: I failed to remove the padding on the btn_plus and btn_minus without copying the files into my project. Instead I replaced those with ic_media_ff and ic_media_rew. Aug 22 11:37:23 can you get preferenceactivity working with actionbarsherlock? Aug 22 12:02:41 i wonder if it's possible to make a webview load an URL with an image behind it such that it fills the view.. Aug 22 12:18:37 so I get how to covert a byte to base64, but how do I get a string to be a byte? Aug 22 12:19:38 eclips is complaining about this: (Base64.encode(string_here.getBytes(), Base64.DEFAULT) Aug 22 12:19:46 ) Aug 22 12:19:49 mbrevda: first, pick an encoding Aug 22 12:20:00 where/how? Aug 22 12:20:19 how - by knwoing which encoding you need Aug 22 12:20:30 the answer is frequently utf8 Aug 22 12:20:35 works for me Aug 22 12:20:39 where do I set it? Aug 22 12:20:59 getBytes("UTF-8") Aug 22 12:21:14 as discussed in the documentation for that method Aug 22 12:21:16 ah Aug 22 12:21:19 is the nexus 7 wifi hardware open source so dev could be done for packet injection? Aug 22 12:22:07 en1gma: wrong channel for that kind of question... though i'm not sure there's a right one Aug 22 12:22:27 this has to do with android-dev dont it? Aug 22 12:22:31 And they're not likely not open source Aug 22 12:22:46 Anyone tried to access Twitter REST API using an HTTP request based on providing oauth_* params as query parameters instead of using the Authorization HTTP header? Aug 22 12:22:47 The topic tells you what this channel is about Aug 22 12:23:04 packet injection is an application Aug 22 12:23:22 kismet, wififofum, etc.. Aug 22 12:23:36 it sounded like you want to modify firmware/drivers Aug 22 12:24:09 well yea kind of that to. maybe i am in wrong channel. hmm Aug 22 12:24:33 feel free to ask any app dev questions... but that's all we do =] Aug 22 12:24:38 guess i will have to do some diggng on net Aug 22 12:25:01 ok thanks Aug 22 12:25:06 BadDesign: have you looked at signpost or any other OAuth libraries? Aug 22 12:28:32 wongk: good point.. I'll try to look on other libs source code as I've built my own library for OAuth but for some reason when I try to get a Request Token from Twitter API I get error "Failed to validate oauth signature and token" altough I verified countless times the code and debugged it.. Aug 22 12:29:26 that doesn't even make sense, as request token is used to make a request... there is no signature/token required to get one Aug 22 12:30:57 in the OAuth flow you need to make a request to Twitter by using the oauth_* parameters to get the Request Token by using either GET and POST on https://dev.twitter.com/docs/api/1/post/oauth/request_token ; for all steps see https://dev.twitter.com/docs/auth/implementing-sign-twitter Aug 22 12:31:09 *or Aug 22 12:31:37 I use a GET request and send all those oauth_* parameters in the query string Aug 22 12:32:25 wongk: the oauth_signature is one of the required parameters from the 7 one's Aug 22 12:33:02 i guess each "application" that registers with twitter gets an ID and key, is that what it wants? Aug 22 12:34:56 nope, the consumer (application) gets a consumer_key and consumer_key; The oauth_* parameters are generated by me according to OAuth protocol specification Aug 22 12:35:06 their value Aug 22 12:35:41 yeah i never really got into the details of the implementation, i've always used a 3rd party library for that Aug 22 12:41:59 Does someone have a method to set an app in kiosk mode in android 4.0? Aug 22 12:42:28 without roo? Aug 22 12:42:32 root* Aug 22 12:42:47 does that mean full screen? Aug 22 12:43:33 or does that imply that the user can't leave the app Aug 22 12:47:19 fullscreen Aug 22 12:47:54 since its the biggest problem in android 4.0 Aug 22 12:48:13 the freaking bar doesnt hide Aug 22 12:48:16 =/ Aug 22 12:49:25 droid-seeker, I don't get you. Aug 22 12:49:31 Which bar doesn't hide? Aug 22 12:51:23 lut4rp: Hi Aug 22 12:52:12 it's deeply annoying. Aug 22 12:52:19 lut4rp: In android tablets 4.0 the navigation bar doesn't hide if I use the flag SYSTEM_UI_FLAG_LOW_PROFILE Aug 22 12:52:50 three more LEDs at the base of the screen, three capacitive sensing buttons, and it could get all the way out Aug 22 12:53:13 Oh. Tablets. Aug 22 12:53:38 I don't know of a way, but are you sure you can't do that? I have a Galaxy Nexus and the video player goes *all* full screen. No button LEDs either. Aug 22 12:54:51 and the video player is an AOSP app? Aug 22 12:55:02 meaning open source Aug 22 12:55:06 You can hide it on smaller devices Aug 22 12:55:11 It's Gallery. Aug 22 12:55:13 But any touch shows it again Aug 22 12:55:13 Oh. Aug 22 12:55:16 Yes. Aug 22 12:55:22 On large devices, you can't Aug 22 12:55:28 Damn Aug 22 12:55:33 Hmm. Aug 22 12:55:47 Unless you build your own rom, or find an exploit of some sort Aug 22 12:56:14 Did google fixed this behavior in android 4.1? Aug 22 12:56:34 What do you mean? Aug 22 12:56:40 so, i've never played a game on my tablet... the bar still shows when you're playing? Aug 22 12:56:57 wongk: The bar will show on any device, tablet or not Aug 22 12:57:05 Unless it's a game where you don't have to touch the screen Aug 22 12:57:16 games are full screen on my phone Aug 22 12:57:45 wongk, which game? Aug 22 12:58:00 I don't remember any game that hides the buttons bar. Aug 22 12:58:02 We're talking the bar holding the soft buttons Aug 22 12:58:10 oh, i don't have that Aug 22 12:58:15 is there any simpler solution to getting an edittext content than this?! Aug 22 12:58:20 EditText username = (EditText) findViewById(R.id.register_edittext_user); Aug 22 12:58:20 Editable userEditable = username.getText(); Aug 22 12:58:21 String userString = userEditable.toString(); Aug 22 12:58:45 SimonVT: Is this a specific android 4.0 behavior or android 4.1 also doesn't allow the hiding of system bar? Aug 22 12:58:46 sonOfRa, you could've just done String userString = userEditable.getText().toString(); Aug 22 12:59:02 lut4rp, that is the same code, just shorter Aug 22 12:59:07 sonOfRa, err, sorry. I meant username.getText().toString(); Aug 22 12:59:08 droid-seeker: Any version with the button bar Aug 22 12:59:15 sonOfRa, Yes, it is :) That's the way to do it. Aug 22 12:59:15 aye Aug 22 13:11:49 How do I change the color of the tab names in a tabwidget? Aug 22 13:11:57 I tried applying a style but it doesn't seem to do anything Aug 22 13:40:57 so how the feck am i gonna get a preferencefragment working with actionbarsherlock :/ Aug 22 13:41:48 PreferenceFragment isn't in the ACL Aug 22 13:41:57 therein lies the problem Aug 22 13:42:03 so you can't use it Aug 22 13:42:46 I know that you can use the MediaPlayer in a service, but can you view video as well as keep the video running in the background when switching to another activity? Aug 22 13:43:05 but i need it D: Aug 22 13:43:19 Basically, what I'm trying to do is play a video and allow people to go to other apps without the video pausing or stopping. Aug 22 13:43:51 hey guys, can someone tell me why an activity gets destroyed onbackpress, rather than just pausing? Aug 22 13:44:11 and why does the same activity gets paused on home pressed? Aug 22 13:44:23 stork: then you'll have to implement it for api 11+ and provide a different impl for lesser APi levelsa Aug 22 13:44:53 implementing it for api 11+ is the problem i'm struggling with, since PreferenceFragment isn't a SherlockFragment Aug 22 13:45:08 stiggpwnz: because that's how android works, back finishes the activity Aug 22 13:45:32 stork: ahh, yes Aug 22 13:46:00 i'm not really sure what you can do about that Aug 22 13:46:19 stiggpwnz: you can always override onBackPress and not call super to get around that, but because that's not what the user is expecting back to do I would only recommend it if that's absolutely what you need to do. Aug 22 13:46:32 yeah, don't do that Aug 22 13:47:01 ^ Aug 22 13:47:03 don't do that :p Aug 22 13:47:50 yes, don't. just because it's possible doesn't mean it's right. Aug 22 13:47:53 [09:42:03] so you can't use it Aug 22 13:47:54 wrong Aug 22 13:48:05 you can use it, but you have to do it smartly Aug 22 13:49:17 wongk, jrgarcia, thanks Aug 22 13:49:53 canadiancow: oh? Aug 22 13:49:53 oh wait i just read the rest of what you said wongk :) Aug 22 13:50:03 oh Aug 22 13:50:04 I just want to reiterate that you shouldn't do it for the fourth time. :p It's just a possibility. Aug 22 13:50:08 so yes, you can use it Aug 22 13:50:11 but you have to do it smartly :) Aug 22 13:50:12 oh? Aug 22 13:50:17 oh! Aug 22 13:50:26 twss Aug 22 13:50:29 You should only override onBackPress if you need to implement some sort of "are you sure?" dialog Aug 22 13:50:39 or if your back flow would NOT involve removing your activity from the stack Aug 22 13:50:42 wonder how long one could keep a conversation going just by using different inflections of 'oh' Aug 22 13:50:43 this is generally an edge case Aug 22 13:50:55 s/removing your activity/finishing your activity/ Aug 22 13:51:09 'are you sure' behaviour i find really annoying most of the time Aug 22 13:51:18 but again, this is almost never a legitimate use case. If you think you want to override the back button, think hard about what you're doing. Aug 22 13:51:40 Yes, one thing to consider is that if you don't provide a way to exit your app, the activity will only finish when the OS has to free it for memory purposes. Aug 22 13:52:08 which is a good thing Aug 22 13:52:19 canadiancow: more information re:preferencefragment plz Aug 22 13:52:40 wongk already told you Aug 22 13:53:00 also, can someone help me with memory leaks, I have 5-6 instances of my activity in memory analiser, and all of them point to the main thread, so my main thread. how does my main thread causing a leak? Aug 22 13:53:26 i said i couldn't figure out how to implement it with api11+ :< Aug 22 13:53:39 stork: I have a question.. You only want to use PreferenceFragment on api11+ .. api11+ has an actionbar.. Why do you need ABS? Aug 22 13:53:59 i was hoping to use prefsfragment on api11+ and prefsactivity elsewhere Aug 22 13:54:10 so go do that! Aug 22 13:54:15 Make an activity for 11+, and one for <11 Aug 22 13:54:21 Start the right one Aug 22 13:54:32 that's what i'm struggling with :p Aug 22 13:54:37 .. Aug 22 13:55:01 preferencefragment isn't a sherlockfragment so i can't use it with the supportFragmentManager Aug 22 13:55:18 But.. Aug 22 13:55:20 You're on 11+ Aug 22 13:55:23 11+ has fragments Aug 22 13:55:43 And you don't usually manage that yourself Aug 22 13:56:12 right, but using the non-support fragment manager doesn't play nice with the supportfragmentmanager.. should i *only* be using supportfragmentmanager when You're making a seperate activity for 11+ Aug 22 13:56:46 You don't need to use support fragmentmanager.. there is no support fragmentmanager Aug 22 13:57:20 PreferenceActivity is a framework class, it's not supplied by the support library.. Hence there is no support library methods Aug 22 13:57:27 I was hoping to not make a separate activity and drop the prefs fragment into the current activity i'm using, so it's more in line with the rest of the ui Aug 22 13:58:48 "According to the OPP, a driver sending a text while driving at highway speed travels the length of a football field without looking at the road." Aug 22 13:58:51 yea, cause when i send a text Aug 22 13:58:56 Rendering from an android app I'm working on: https://bel.fi/alankila/app-im-working-on.png Aug 22 13:59:00 i look down, write the whole message, hit send, wait for it to send, then look up Aug 22 13:59:29 takes around minute per image though. phone is not fast Aug 22 13:59:45 actually at this quality only 15 seconds. But still. Aug 22 14:00:28 canadiancow: http://wiki.answers.com/Q/How_long_in_seconds_will_take_a_car_traveling_at_60_mph_to_travel_the_length_of_a_football_field Aug 22 14:00:40 glance down, type a couple letters, look back up. Aug 22 14:00:52 have it in my dock at eye level Aug 22 14:00:53 hit a letter Aug 22 14:00:55 make sure traffics good Aug 22 14:00:57 hit a letter Aug 22 14:00:59 make sure traffics good Aug 22 14:01:00 :P Aug 22 14:01:02 you're still not really paying attention Aug 22 14:01:09 the DoT made an excellent game to really drive this point home Aug 22 14:01:24 stork: imo you shouldn't do that Aug 22 14:01:25 hi ppla Aug 22 14:01:28 http://www.nytimes.com/interactive/2009/07/19/technology/20090719-driving-game.html Aug 22 14:01:32 But if you do, just make your own fragment Aug 22 14:01:38 SimonVT: why not? Aug 22 14:01:40 is possible detect if an app is recording audio or video? Aug 22 14:01:52 (whitout root) Aug 22 14:01:56 my mate used to solve rubiks cubes while driving, true story Aug 22 14:03:37 sha0coder: audio, I don't think so. Video, apps should only be able to record when the screen is on and it's displaying a preview window. Aug 22 14:04:02 ok great Aug 22 14:04:08 but audio .. Aug 22 14:04:45 is possible dect current broadcasts? Aug 22 14:05:21 stork: http://developer.android.com/design/patterns/settings.html this is what settings should look like Aug 22 14:06:09 I have no idea what you just asked. Aug 22 14:06:50 but no, you don't actually have a way to know if an application is recording audio, to the best of my knowledge. Aug 22 14:07:03 if you're concerned, don't install apps which request permissions to record audio. Aug 22 14:07:31 fair enough SimonVT, cheers, will keep it in mind Aug 22 14:08:31 maybe I'll just do the activity then Aug 22 14:08:50 lov true Aug 22 14:09:04 record audio + internet = bad Aug 22 14:09:05 yep Aug 22 14:09:16 but free apps request lot of permissions ... Aug 22 14:09:20 and not all is malware Aug 22 14:11:28 my app doesn't have many settings :< Aug 22 14:11:34 I have a Chinese 97D MID that I cannot access through adb. After downloading some Chinese drivers, I can now see the device listed in Device Manager as "Android Phone -> Android Composite ADB Interface". Aug 22 14:12:24 I cannot see it in adb while it is booted at all, even with USB debugging enabled. Aug 22 14:13:21 next time buy a compatible device? Aug 22 14:13:31 also, windows blah Aug 22 14:13:48 also, have you tried fiddling with the USB IDs? can you do that on Windows? Aug 22 14:14:09 When I boot into fastboot, it shows up in adb as "97D recovery", but it does not let me run "adb shell". Aug 22 14:14:31 I'm assuming that I CAN fiddle usb drivers, but I don't know what to fiddle them to. Aug 22 14:14:54 fastboot won't have adbl so that's not surprising Aug 22 14:14:54 Is the access that fastboot gives me too limiting? Aug 22 14:15:00 *adbd Aug 22 14:15:21 I don't know why adb isn't working for you, especially if it's showing up as an adb composite device in your device manager. Aug 22 14:15:32 adb kill-server; adb devices, see if it suddenly works Aug 22 14:15:34 * lov shrugs Aug 22 14:15:44 This is what happens when you get cheap chinese crap Aug 22 14:17:40 Idea from a forum... Is pushing a "/system/bin/sh" to the device a good idea? Aug 22 14:18:00 o_O Aug 22 14:18:04 getting into #android-root territory now... Aug 22 14:18:20 if you don't know what you're doing, no, it's probably not. Aug 22 14:18:27 please go to #android-root ._. Aug 22 14:19:26 Jonathan_Eyre, you have to root the phone, for remounting /system/ with rw Aug 22 14:20:29 But I don't have to root the phone to access it through adb... Aug 22 14:20:36 adb should work without rooting Aug 22 14:21:01 But when I try to run adb shell while fastboot is running, I get the sh missing error. Aug 22 14:22:08 Jonathan_Eyre: you wouldn't have to if it was a tested compatible device - but it isn't, it's a cheap incompatible Chinese device Aug 22 14:23:03 again, fastboot and adb are mutually exclusive - you run one or the other at once... Aug 22 14:23:08 if an app records audio, locks other apps to record, Aug 22 14:23:13 maybe this can be a detection way Aug 22 14:23:13 Do I need su privileges to push to a root-owned folder? Aug 22 14:23:29 ah, now that's a question only a Windows user could ask... Aug 22 14:24:01 wtb switch statements for strings :x Aug 22 14:24:30 It's an adb question, not a linux question. Aug 22 14:24:59 I don't know how much control adb has over device permissions. Aug 22 14:25:21 adb runs on Linux, it doesn't have its own permission system... anyway, enough Aug 22 14:25:28 I can ls as well as dir. Aug 22 14:25:36 lol Aug 22 14:25:40 sha0coder: I have no idea why the audio recorder couldn't/wouldn't multiplex, so I doubt you can use that as a detection mechanism. Aug 22 14:25:53 stork: m2 Aug 22 14:34:21 lov, with root, how can be detected in a esasy way? ( without ptrace() ) Aug 22 14:34:41 Hi all, I'm trying to do some memory profiling on my code to check for leaks. Specifically leaks in the native heap Aug 22 14:35:03 procrank is showing no leak, DDMS's native heap tab shows a huge leak, and DDMS's sysinfo -> memory usage shows no leak Aug 22 14:35:14 dumpsys meminfo also shows a leak Aug 22 14:35:19 so... Aug 22 14:35:24 which tool is reliable on android Aug 22 14:35:25 ~there's a hole in my bucket Aug 22 14:37:14 If I'm working with tabs, is there any nice way to add views to a tab in code without having each tab be a different activity or should I use xml? Aug 22 14:39:20 lov, i noticed any app can access to full logcat Aug 22 14:39:29 maybe is logged the recording action? Aug 22 14:39:34 Has anyone here implemented twitter functionalities (post / update status) in their android apps? Aug 22 14:40:35 has anyone tried twitter4j on android Aug 22 14:40:36 ? Aug 22 14:48:33 anyone else have Galaxy S3 rebooting constantly when connected to the IDE (Every time I start an app) Aug 22 14:50:26 sha0coder: that's probably implementation dependent. You MUST NOT depend on that. Aug 22 14:50:34 true :/ Aug 22 14:50:36 sha0coder: also, applications MAY query logcat but they require the READ_LOGS permission Aug 22 14:50:44 sha0coder: Here is my suggestion Aug 22 14:50:50 aa true Aug 22 14:50:56 download the android source, and look at the source for the audio library Aug 22 14:51:03 look at how this is actually implemented Aug 22 14:51:08 it will be a lot faster than flailing and guessing Aug 22 14:51:21 hum Aug 22 14:51:26 automatic sandbox Aug 22 14:51:33 or static analysis Aug 22 14:51:43 i will do that Aug 22 14:51:44 * wongk flails about Aug 22 14:51:50 pardon me, im just developing Aug 22 14:51:55 thnx Aug 22 14:57:51 which android memory analysis tool is the most reliable Aug 22 14:58:04 I'm getting conflicting reports from procrank, DDMS, and dumpsys meminfo Aug 22 14:58:13 lov that's an interesting game Aug 22 14:58:37 but i also wouldnt send a text when im driving through gates every 5 sedconds Aug 22 14:58:41 :P Aug 22 14:58:56 you're not hardcore Aug 22 14:59:30 i text while im driving 100 mph through rush hour traffic on my motorcycle Aug 22 14:59:47 so does nobody here check the memory usage of their apps or what Aug 22 14:59:47 lol Aug 22 15:00:04 i dont do 100mph often Aug 22 15:00:12 i had to pass some cunt recently though Aug 22 15:00:15 and got up around there Aug 22 15:00:20 there's a good chance none of the above is true, since i don't own a motorcycle Aug 22 15:00:20 sure as hell wasnt texting though Aug 22 15:00:40 sounds like you steal bikes Aug 22 15:00:50 ! Aug 22 15:01:21 InanTop: all your resources are belong to us Aug 22 15:01:22 texting is hard while riding motorcycle, gloves are cumbersome Aug 22 15:01:40 wongk: that seems to be the case with DDMS' native heap tab Aug 22 15:01:48 but procrank / sysinfo-memory usage say no leak Aug 22 15:01:55 dumpsys meminfo also says leak Aug 22 15:01:58 ^_^ Aug 22 15:02:03 do I have a memory leak or not Aug 22 15:02:04 goddamn Aug 22 15:02:14 does Android use /proc Aug 22 15:02:30 canadiancow: the point is that if you're looking at a cellphone when a sudden reaction is required, you could crash. Aug 22 15:02:35 wongk: android is Linux, Linux has used /proc for a very long time Aug 22 15:02:35 I'm not sure, this is my first android project Aug 22 15:02:44 so i shouldnt use google maps nav eithre? Aug 22 15:02:49 Leeds: sure, but some thing are done differently Aug 22 15:03:01 the most distracting thing i do in a car is carry a passenger Aug 22 15:03:13 but that's still legal and encouraged Aug 22 15:03:18 hehe Aug 22 15:03:21 you shouldn't be physically interacting with google maps Aug 22 15:03:27 even if the passenger is a toddler :) Aug 22 15:03:30 it's ok to glance at it Aug 22 15:03:32 which tool would you guys recommend for memory analysis Aug 22 15:03:38 anyway, this is getting off topic Aug 22 15:03:39 oh so it's not "looking at a cellphone", it's "touching a cellphone" ? Aug 22 15:03:44 or worse, two toddlers Aug 22 15:04:41 InanTop: you could always try "cat /proc/`pidof yourapp`/status" Aug 22 15:05:02 wongk: I'll give that a shot now Aug 22 15:05:04 thanks Aug 22 15:05:22 guys, im using this but for some reason its causing a nullpointerexception Aug 22 15:05:26 http://www.fpaste.org/8yK9/ Aug 22 15:05:44 the problem is caused by the second line Aug 22 15:05:55 isnt that the correct way to get the string Aug 22 15:05:56 ? Aug 22 15:06:02 why is it 50% of NPE problems are associated with findViewById in here :P Aug 22 15:06:07 because the first line is working ok Aug 22 15:06:11 because people are noobs Aug 22 15:06:17 s/people/android developers/ Aug 22 15:06:21 Can anyone recommend a tiny sense rom for the evo 3d? Just need to update prl Aug 22 15:06:22 wongk: within that ouptut, which information is reflective of actual memory usage? VmLib and VmSize seem like good candidates but I don't know what some of these other things are Aug 22 15:06:53 NotJimCarrey: read the bloody channel topic Aug 22 15:06:53 wongk, canadiancow: unfortunately not everybody is good as you are Aug 22 15:06:56 VmPeak andVmSize Aug 22 15:07:14 wongk, so is my way to get the string wrong? Aug 22 15:07:20 s/good as you are/capable of reading the docs/ Aug 22 15:07:26 wongk: thanks, I'll take a look Aug 22 15:07:28 taljurf: your View is null, you don't have a view with that ID Aug 22 15:07:39 On my phone. Hard to see the topic Aug 22 15:07:53 Heading there now Aug 22 15:08:04 NotJimCarrey: #android-root Aug 22 15:08:09 NotJimCarrey: not our problem, you're in the wrong channel Aug 22 15:08:47 taljurf: or you do have a view with that ID, and you didn't call setContentView Aug 22 15:09:19 though judging by the 'v.', you're using a fragment and you did inflate Aug 22 15:09:26 wongk: yes Aug 22 15:09:34 wongk: looks like the second one Aug 22 15:09:49 i mean the setcontentview Aug 22 15:10:00 that's for activities Aug 22 15:10:16 if you're in onCreateView, that's not a concern Aug 22 15:10:56 wongk: yes im using onCreateView Aug 22 15:10:59 1min Aug 22 15:12:04 wongk: http://www.fpaste.org/QZAL/ Aug 22 15:12:45 this compiles? Aug 22 15:12:52 wongk: lines 44-45 Aug 22 15:12:54 oh, n/m Aug 22 15:12:59 wongk: cat /proc//status is showing me about the same level of leak as dumpsys meminfo, but completely different numbers Aug 22 15:13:09 does dumpsys meminfo use /proc for its reporting Aug 22 15:13:14 taljurf: the "problem" is at line 40 Aug 22 15:13:28 what do you notice therer Aug 22 15:13:37 I'm trying to determine if this is corroboration or merely presenting hte same info in two ways Aug 22 15:14:06 wongk: i usually use it that way with no problems :/ Aug 22 15:14:09 InanTop: i'm actually not familiar with any of the tools, but /proc is controlled by the kernel Aug 22 15:14:28 taljurf: look at lines 40 and 23 Aug 22 15:14:55 wongk: thanks, it's at least one more tool in my repertoire. I'll take this data to someone higher up the food chain Aug 22 15:21:11 wongk: could get the problem, it has a parent , should it be able to recieve it correctly? Aug 22 15:21:32 hmm ... Canvas is bad at working with images. Aug 22 15:22:00 taljurf: based on your question i'm not sure you understand the problem correctly, what do you think the problem is? Aug 22 15:22:36 There's no method that would accept a Matrix-based transformation while simultaneously permitting only subset of the source image from being projected ... Aug 22 15:22:55 in fact I'm not quite sure how this matrix stuff works yet. I guess I'll have to write a test program to see. Aug 22 15:23:14 wongk: ok , i think it is between the onClick not being able to identify the inflated layout? Aug 22 15:23:40 wongk: because of a mistake "View v" at line 40 Aug 22 15:23:45 wongk: isnt it? Aug 22 15:23:52 taljurf: at line 23 you have a View instance named "v", at line 40, you have a second View instance named "v" Aug 22 15:23:58 this is called shadowing Aug 22 15:24:24 you want the first instance at line 44, but instead you're using the 2nd instance Aug 22 15:25:43 in this case it is probably better to have members that reference your controls and set those members in onCreateView Aug 22 15:25:53 then you can reference those members in your click handler Aug 22 15:26:45 wongk: gr8, i knew that "View v" messed it up , but i was also confused Aug 22 15:26:54 wongk: thanks ovious now :) Aug 22 15:26:59 obvious* Aug 22 15:31:34 this canvas.drawBitmap(Bitmap, Matrix, Paint) method confuses me. Why can't I specify where at canvas does the transformed image appear? It looks like I really have to use OpenGL if I need to do operations with images like pinch them a bit (draw them narrower at other edge than at the other edge) Aug 22 15:32:06 I already have the opengl stuff working but I worry about how compatible it is Aug 22 15:32:52 I could do texture mapping by hand if I had a little help like version of drawBitmap that allows specifying not only the Matrix but also location Aug 22 15:33:05 oh wait the Matrix has translation of course Aug 22 15:34:23 ah, the operation I want is pre/postScale(sx, sy, px, py) where p is the pivot point Aug 22 15:35:34 hi room Aug 22 15:35:53 now I need to solve how to slice the source image up into small pieces to do manual texture mapping with :-p Aug 22 15:36:25 (I do all this because wallpapers are not supposed to use opengl. It can be made to work, but I fear that is a hack) Aug 22 15:37:50 so this problem just became feasible from theoretical. Of course, it's a lot of manual work to do opengl's work without opengl, but not too onerous in this specific case. Aug 22 15:37:59 i want to select on a gridview multiple images and upload them on a server. how would you solve it and why? all in one AsyncTask or start one AsyncTask for each image which might lead to memory leaks.. Aug 22 15:42:16 so I have a custom layout that i'm having two problems with Aug 22 15:42:34 first, this custom layout has 3 child fragments. How do I ensure the z-ordering of them? Aug 22 15:42:59 the idea is to have a main fragment, with two menu fragments that can slide in from the left or right Aug 22 15:43:08 so I need to be able to modify the z-ordering accordingly Aug 22 15:45:50 z order is determined by order in which they are drawn Aug 22 15:46:19 So the last view you call layout(..) on is on top Aug 22 15:48:49 SimonVT: so if I have a handler for when the user clicks the menu button, in that handler, i just need to call layout on my fragments appropriately? Aug 22 15:49:10 You usually call layout during onLayout Aug 22 15:49:18 SimonVT: that's what I'm doing right now Aug 22 15:49:32 I'm rearranging the order based on what you just wrote Aug 22 15:49:42 but going forward, how can I change the order dynamically? Aug 22 15:50:00 however, it may be more appropriate to set the visibility to GONE on the appropriate one Aug 22 15:52:20 That's up to you to figure out Aug 22 15:52:32 wongk: i remembered now that i cannot reference at onCreateView because i wanna get the text at the moment of onClick Aug 22 15:53:11 wongk: thats why i did it inside onClick in the first place Aug 22 15:53:24 Why not just keep a reference to the view Aug 22 15:53:25 your understanding is incomplete Aug 22 15:54:03 the View itself will not change between onCreateView and your on click listener Aug 22 15:54:12 just the properties on the view Aug 22 15:55:30 wongk: i know!! Aug 22 15:55:46 wongk: but the thing i care about here is the properties Aug 22 15:56:02 and so you get them in the onclick listner Aug 22 15:58:42 The only way to kill any other app is to run "su -c busybox pkill other app" through Runtime.exec, and this requires a rooted device. Is this right? Aug 22 15:58:58 assuming that busybox is installed. Aug 22 15:59:00 and no Aug 22 15:59:18 There are frameworks calls you can use to terminate processes, but they require permissions to do so Aug 22 15:59:50 But such frameworks protect certain services against killing Aug 22 16:01:15 lov: I assume we are talking abou Process.killProcess Aug 22 16:02:10 task killers require root Aug 22 16:02:15 that's the simple answer Aug 22 16:02:48 droid-seeker: if you're willing to use hidden apis, and you ahve the priviledges, you can use am.am.forceStopPackage Aug 22 16:02:53 you only have permisson to kill process spawned by apps signed with the same key Aug 22 16:02:56 *am.forceStopPackage Aug 22 16:03:09 if my understanding is correct Aug 22 16:04:19 you'll need the android.Manifest.permission.FORCE_STOP_PACKAGES permission Aug 22 16:04:20 Hm Aug 22 16:05:04 Lets give a try ;) Aug 22 16:05:10 actually, I think that that one requires system signature, so you probably can't do that anyway Aug 22 16:05:13 * lov shrugs Aug 22 16:05:21 just use kill, you don't need busybox, you just need root. Aug 22 16:05:50 so only system apps can request that permission, then? Aug 22 16:05:57 for my own future reference Aug 22 16:06:40 that does appear to be the casew Aug 22 16:07:30 Well, I can't require the user to root the device Aug 22 16:07:46 I give up =( Aug 22 16:15:46 why does my ListFragment registers its dataobserver to my adapter, but doesn't unregister it when it goes off the screen? Aug 22 16:16:28 and it always registers new observer, so they just stack up in my adapter Aug 22 16:16:49 causing it to grow huge Aug 22 16:17:06 oh, I'm using a compatability library Aug 22 16:17:11 is it a bug? Aug 22 16:22:15 Pretty sure it's your listview registering it, not listfragment Aug 22 16:28:07 SimonVT, but I'm not calling it anywhere, I just found a memory leak, went and figured out that when I return from backstack my adapter gets a new observer Aug 22 16:28:18 but it never gets rid of any, so it grows huge Aug 22 16:30:33 SimonVT, how does my listview registering it? It happens on ListFragment's lifecycle Aug 22 16:30:51 Look it up, it's open source Aug 22 16:31:53 It needs to register an observer so it can be notified when you call notifyDataSetChanged.. It's probably done when you attach the adapter Aug 22 16:34:52 SimonVT, I attach an adapter only once, but it registers everytime I return from backstack. And yeah, right, gonna go check the source, thanks Aug 22 16:39:51 I'm sure you attach the adapter every time onCreateView is called Aug 22 16:43:00 SimonVT: you said the View that I call .layout on *last* is drawn on top right? Aug 22 16:43:09 I think I'm seeing the opposite behaviour Aug 22 16:43:47 actually not even that Aug 22 16:44:00 one layout is being drawn on top regardless of the order Aug 22 16:44:03 * HorizonXP scratches his head Aug 22 16:46:40 Right Aug 22 16:47:34 Hm, guess not Aug 22 16:47:42 The one you added last is drawn on top then Aug 22 16:48:01 Ah, right Aug 22 16:48:02 2 sec Aug 22 16:48:46 Look up getChildDrawingOrder Aug 22 16:48:50 You need to override that Aug 22 16:49:46 SimonVT: ah interesting, thanks Aug 22 16:50:18 so my overridden onLayout doesn't actually determine the drawing order then? Aug 22 16:50:22 that function does? Aug 22 16:50:32 yeah Aug 22 16:50:55 ok, i'll try that Aug 22 16:55:30 Is there a way to check if my SystemUi has been hidden or not? Aug 22 16:58:51 SimonVT: i think that was it :) Aug 22 16:58:56 not 100% sure yet Aug 22 17:00:04 so the correct view is being drawn on top, but I'm not able to interact with it Aug 22 17:00:14 maybe one of the others is getting drawn on top invisibly? Aug 22 17:00:17 hmm.... Aug 22 17:01:20 I'm guessing it doesn't respect the drawing order when dispatching touch events.. Maybe one of your other views are consuming the event Aug 22 17:01:38 yeah maybe Aug 22 17:01:47 let me through some touch handlers in to see Aug 22 17:07:28 SimonVT: yup, that's exactly it Aug 22 17:07:47 need to find an equivalent function to the one you pointed out, that i can override Aug 22 17:08:12 Haven't heard of one Aug 22 17:09:02 Maybe it'd be easier just to remove/add the views in the right order whenever you need to change it :p Aug 22 17:10:13 SimonVT: i'm thinking the same thing Aug 22 17:10:25 I'll only ever have 2 views on screen at the same time Aug 22 17:10:50 08-22 13:10:15.461: E/DeviceCapabilityManagerImpl(10285): OperatorName=AT&T@, Operator=302490, Product=yakju, Model=Galaxy Nexus not supported Aug 22 17:10:52 that's interesting Aug 22 17:10:57 since 302490 is not AT&T Aug 22 17:12:07 Test Aug 22 17:12:09 Oh goodie. Aug 22 17:12:16 Hi guys. Aug 22 17:12:55 I was wondering if anyone knows how to Odin restore an Android Nexus Aug 22 17:15:02 Mekan: Sounds like you're in the wrong channel Aug 22 17:15:25 Mekan: https://developers.google.com/android/nexus/images Aug 22 17:15:47 Ah. Sorry if I am. Aug 22 17:16:14 And yeah, it's a nexus device.. Just need fastboot Aug 22 17:16:18 And I've the images and going through a small guide I found for Odin 1.3.0 , but one can never be too sure if they're doing it properly Aug 22 17:16:27 Well my nexus got stuck in a boot loop. Aug 22 17:16:49 if you're using Odin on any Nexus-line device, you're doing it wrong. Aug 22 17:16:51 So I tried Wug's Nexus Root Toolkit Aug 22 17:16:52 evancharlton: no sprint builds :( Aug 22 17:17:05 sprint builds :( Aug 22 17:17:10 =\ Aug 22 17:17:20 Samsung Nexus is a sprint build? Aug 22 17:17:37 Cause right now I have an exmpty Nexus device. Aug 22 17:17:44 Mekan: Sprint has the nexus s and galaxy nexus yes Aug 22 17:18:00 Damn. So even if I do an Odin restore it won't do anything? Aug 22 17:18:14 wat Aug 22 17:18:15 dont use odin Aug 22 17:18:21 odin + nexus = wat Aug 22 17:18:23 no odin... just fastboot Aug 22 17:18:24 Download the system image from where evancharlton linked, follow the instructions Aug 22 17:18:29 Alright. Aug 22 17:19:16 I don't know which my nexus is. I imagine it'd be yakju? Aug 22 17:19:57 or takju if you want wallet Aug 22 17:20:11 it's not a VZW device, right? Aug 22 17:20:20 Vwz? Aug 22 17:20:25 verizon Aug 22 17:20:30 Ah. No. Aug 22 17:20:43 Bought from Telus in Canada. Aug 22 17:20:58 ok it's a maguro Aug 22 17:21:04 you can flash yakju or takju Aug 22 17:21:08 personally i'd go with takju Aug 22 17:21:22 if you need wallet Aug 22 17:21:26 Ah. Anything special about google Wallet? Aug 22 17:21:29 and more awesome updates Aug 22 17:21:37 like? Aug 22 17:21:38 takju gets shit first Aug 22 17:21:51 Takju it is. Aug 22 17:22:06 i put takju on my dad's the other day Aug 22 17:22:27 If i download 4.0.4 I'm still able to update to 4.1.1? Aug 22 17:22:34 why would you do that Aug 22 17:22:38 just download the latest Aug 22 17:22:50 Because I don't know what I'm quite doing? :p Aug 22 17:23:27 I've never meddled around with any kind of smartphone. I've done psps and nds' but nothing quite like this. Aug 22 17:23:33 Shame you don't have a nexus s, then you could get gingerbread Aug 22 17:23:39 +1 Aug 22 17:23:41 lol Aug 22 17:24:19 Maybe I'll get one when I have more money. :p I was gonna bring my phone in to Telus, but they said I'd have to wait 3 weeks. That's unacceptable. Aug 22 17:24:31 Mekan: if you send your gnex to me, i'll be happy to upgrade it ;) Aug 22 17:24:42 Oh yea? :p Aug 22 17:24:55 i probably won't send it back, though Aug 22 17:25:08 Lol. Why's that? Aug 22 17:25:13 be cause i want it Aug 22 17:25:15 Because free phone Aug 22 17:25:39 Which is why I'd never send anyone I don't know anything. Aug 22 17:25:46 IT's just silly. Aug 22 17:25:55 at least im honest? Aug 22 17:26:06 hey, does anyone have a samsung 10.1 tablet here? I have trouble connecting it to my mac Aug 22 17:26:18 Hahahaha. You get points for that, wongk Aug 22 17:26:20 you lost me at mac ;) Aug 22 17:26:24 Hi, is it possible to create this ui ( http://i.imgur.com/d1w9k.png ) with native ui elements, or would it be best just to use a webview? Aug 22 17:26:40 yes, it's possible Aug 22 17:26:46 but the fact that you're asking means i doubt you know how Aug 22 17:26:54 indeed :) Aug 22 17:27:02 I'm quite new to the android side of things Aug 22 17:27:04 it's never best to use webview Aug 22 17:27:12 repeat that to yourself Aug 22 17:27:24 done Aug 22 17:27:26 Lol. **** BEGIN LOGGING AT Wed Aug 22 17:34:23 2012 Aug 22 17:39:05 weeeeeee Aug 22 17:39:18 that was fun Aug 22 17:43:40 sucks to be someone with a question that hasn't identified :P Aug 22 17:44:19 I am identified and no one is helping with mine ;) Aug 22 17:44:46 the answer is 42. Aug 22 17:44:53 your question was answered Aug 22 17:45:16 wongk: maybe i missed it in the net splits? Aug 22 17:45:38 it's possible to use natie views, and it's never best to use webview Aug 22 17:45:58 Ah right I saw that, sorry. Aug 22 17:46:10 Which native view do you think it would be best to read up on? Aug 22 17:46:34 you'll need several, it would be best to go through some tutorials and examples Aug 22 17:46:40 d.android.com Aug 22 17:48:45 wongk: ok, thanks Aug 22 17:49:40 wahts a reasonable price in the US for a cell plan Aug 22 17:49:49 if i want a good amount of data Aug 22 17:49:51 unlimited texting Aug 22 17:49:54 voice is less important Aug 22 17:50:04 checkout t-mobile prepaid monthly plans Aug 22 17:50:25 verizon is the best service, but the phones are whack (no updates) Aug 22 17:50:34 i dont want verizon Aug 22 17:50:53 at&t probably has better service than t-mobile, but no bring your own phone plans aaik Aug 22 17:51:17 looks like t-mo i can get one for 60/month Aug 22 17:51:23 unlim data, unlim text, 500 minutes Aug 22 17:51:42 if you can live w/ 100 talk minutes, you can get one for $30 Aug 22 17:51:57 100, or 100 + unlim eve/weekends Aug 22 17:52:03 former Aug 22 17:52:04 100 total might be tough Aug 22 17:52:06 ugh Aug 22 17:52:12 i don't know if you can buy additional minutes Aug 22 17:52:18 if you find out, let me know :P Aug 22 17:52:38 but $60 is pretty good Aug 22 17:52:59 wongk: in my example would a custom view be required? Aug 22 17:53:17 no Aug 22 17:53:20 prozn: don't think so Aug 22 17:53:39 though it was many scrollback buffers ago :P Aug 22 17:54:00 indeed haha, i don't even have the url anymore! Aug 22 17:56:35 found it: http://i.imgur.com/d1w9k.png Aug 22 17:56:52 I just can't seem to work out which would be needed Aug 22 17:57:22 you'll have to do some styling if you want all the same backgrounds and borders Aug 22 17:57:23 frankly, it'd probably be best to make this with fragments Aug 22 17:57:34 That's a 50/25/25 split there Aug 22 17:57:51 fragments would be good just because you have the same base for each, with the same base sub-layout Aug 22 17:58:11 you'll also want different layouts for different devices Aug 22 17:58:14 * lov shrugs Aug 22 17:59:21 I'm seeing a number of nested RelativeLayouts there Aug 22 17:59:46 thanks both, I shall have a read! Aug 22 17:59:58 I am not going to rip off the design, it is more a learning exercise Aug 22 18:02:12 prozn: you havent exactly started simple Aug 22 18:04:01 wongk: yeah not really. It is how I learn generally, pick something to aim for - and learn along the way. Aug 22 18:04:23 I get bored doing the basic stuff so I guess I like to read around the subject instead. Aug 22 18:05:02 MithrilTuxedo: just seen your message, thanks! Aug 22 18:08:01 no Mekan, i will not engage in those activities through a pm Aug 22 18:08:11 i like to keep my sexual remarks out in the open for everyone to see Aug 22 18:08:15 Hi, is this channel about developing the Android operating system or apps on it ? Aug 22 18:08:40 apps Aug 22 18:09:17 great. I am a j2me programmer, but want to switch over to Android. Aug 22 18:09:21 wongk have you seen http://www.straighttalksim.com/ Aug 22 18:09:55 canadiancow: yes, and simple mobile Aug 22 18:10:03 from the reviews, they're garbage Aug 22 18:10:06 45/month for unlim everything... oh Aug 22 18:10:08 If I want to sell and android app. Are there costs involved for a certificate ? Aug 22 18:10:19 if you want to sell through google play Aug 22 18:10:19 if you use "too much" data, they're unlimited data plan gets turned off Aug 22 18:10:20 it's $25 Aug 22 18:10:24 hah Aug 22 18:10:41 the TOS specify it's for web browing and email Aug 22 18:11:08 yea ok t-mo it is Aug 22 18:11:12 Is it $25 dollar for sining my apps ? Aug 22 18:11:20 no it's free to sign your apps Aug 22 18:11:24 25 for a dev account Aug 22 18:11:27 it's $25 for an account that lets you distribute through google play Aug 22 18:11:49 But I don't have to pay to sign it if I sell it myself ? Aug 22 18:12:22 signing is a matter of generating a key store Aug 22 18:12:25 correct Aug 22 18:12:41 It doesn't cost anything to sign it.. It costs a one-time fee of $25 to publish on play store Aug 22 18:12:55 if you don't publish on play store, it doesn't cost $25 Aug 22 18:13:06 kewl Aug 22 18:13:22 krad, even Aug 22 18:13:59 So my self-singed app will work on all devices ? Aug 22 18:14:19 no need for the user to install any certificate for my apps or anything like that ? Aug 22 18:14:19 any compatible devices, yes Aug 22 18:14:23 correct Aug 22 18:14:27 kewl. Aug 22 18:14:56 Which cheapy but good Android device would you suggest for general testing etc ? Aug 22 18:15:04 Some of these Android phones are really expensive. Aug 22 18:15:17 Unknown0BC, apps only need to be signed by google for access to device internals, and they don't sign apps for other people Aug 22 18:15:42 I want full access. Aug 22 18:15:45 phone or tablet? Aug 22 18:15:52 phone ? Aug 22 18:15:54 Unknown0BC, what do you mean, full access? root? Aug 22 18:15:56 Unknown0BC: are you writing a virus? Aug 22 18:16:15 Unknown0BC: pick up a Galaxy nexus Aug 22 18:16:21 or pick up a Nexus 7 for tablets Aug 22 18:16:22 Like I want full control over the device. Aug 22 18:16:28 i think you're just confusing the matter by mentioning Google signing things Aug 22 18:16:29 You can root most devices Aug 22 18:16:38 Unknown0BC, like you want to be able to load kernel modules and stuff? Aug 22 18:16:40 I don't want prompts to send an sms or for network or file access. Aug 22 18:16:47 ... Aug 22 18:17:03 Unknown0BC, that works with the standard access all apps have Aug 22 18:17:06 I'm not sure what you mean by prompts. Aug 22 18:17:09 (if they want it) Aug 22 18:17:21 Regardless Aug 22 18:17:23 http://wiki.cyanogenmod.com/index.php?title=Main_Page Aug 22 18:17:29 rooting instructions for most devices there Aug 22 18:17:34 google search for other ones Aug 22 18:17:39 I'd recommend a Nexus device for development Aug 22 18:17:45 TheJH, great./ Aug 22 18:17:49 Nexus. Aug 22 18:17:52 Galaxy Nexus is like $350 or something now out of contract Aug 22 18:18:00 mmm Aug 22 18:18:04 w/o a contract, it doesn't get much cheaper then the genx Aug 22 18:18:07 3 fiddy Aug 22 18:18:22 If you want something cheaper than that, you're going to get a phone that's not going to be very powerful at all compared to today's devices Aug 22 18:18:26 lov, that is still quite a bit of money... Aug 22 18:18:28 which will affect your development times Aug 22 18:18:33 If you want to spend $0 use the emulator Aug 22 18:18:53 If you're willing to put up with relatively slow, buy a nexus 1 from ebay or something Aug 22 18:19:12 nice name lov Aug 22 18:19:15 ;) Aug 22 18:19:18 thanks? Aug 22 18:19:19 :) Aug 22 18:19:30 anyway, [Good,Cheap,Fast], pick one. Aug 22 18:19:37 er Aug 22 18:19:38 pick two Aug 22 18:20:20 no, you only get one Aug 22 18:20:23 don't be greedy Aug 22 18:20:29 hehe Aug 22 18:21:03 I am going to have to damage my bank account. Aug 22 18:21:37 Unknown0BC: just use the emulator to start with Aug 22 18:21:39 see how you get on Aug 22 18:21:57 pronz, yeah. Aug 22 18:22:11 I use netbeans under linux for j2me. Aug 22 18:22:13 back Aug 22 18:22:19 How will that do with Android ? Aug 22 18:22:53 there is a VM for the android system Aug 22 18:22:55 http://developer.android.com/sdk/installing/index.html Aug 22 18:23:38 This # is better than google. Aug 22 18:23:48 :D Aug 22 18:23:53 ;) Aug 22 18:24:07 it will be a long night if you want us to re-type the tutorial to you :) Aug 22 18:24:26 relax. Aug 22 18:24:31 I will be easy on you. Aug 22 18:24:40 and thanks Aug 22 18:24:41 well that won't be any fun Aug 22 18:25:19 eclipse if the officially supported IDE of android, a lot of people also use IDEA, you won't find many using netbeans Aug 22 18:25:41 damn. Aug 22 18:25:49 I am so use to Netbeans. Aug 22 18:26:01 you'll have to rely on google, then Aug 22 18:26:07 I see it van be done with netbeans, but perhaps I should try out eclipse... Aug 22 18:26:16 can* Aug 22 18:26:58 Ah what do you know I already installed eclipse. Aug 22 18:27:02 :) Aug 22 18:27:43 Ok poeple vote please. Eclipse or Netbeans ? Aug 22 18:27:53 google cant do that one. Aug 22 18:27:58 heh Aug 22 18:28:41 Ok what must I install next ? to get Android dev going on eclipse ? Aug 22 18:29:03 Unknown0BC: this is all documented on d.android.com Aug 22 18:29:07 please visit that and start reading Aug 22 18:29:33 evancharlton, kewl. thanks. Aug 22 18:30:30 Unknown0BC: go to http://developer.android.com/sdk/index.html and read Aug 22 18:30:33 read, read, read. Aug 22 18:30:41 *sigh* Aug 22 18:30:44 When you're set up with the tools, go here: http://developer.android.com/training/index.html Aug 22 18:30:47 read read read. Aug 22 18:30:53 *sigh* Aug 22 18:30:56 We're not going to spoon feed you. Aug 22 18:31:02 :( Aug 22 18:31:10 thats no lov. Aug 22 18:31:17 heheh Aug 22 18:31:58 eclipse or netbeans ? Aug 22 18:32:01 Eclipse. Aug 22 18:32:06 any of you do it with netbeans ? Aug 22 18:32:20 some people do. Aug 22 18:33:02 lov, do you know if they suffer ? Aug 22 18:33:04 greatly. Aug 22 18:33:29 ah google helps. Aug 22 18:33:37 I'm suffering right now listening to you Aug 22 18:33:49 you don't like punishment ? Aug 22 18:33:53 good. Aug 22 18:35:01 ok eclipse wins. Aug 22 18:35:08 *sigh* Aug 22 18:35:41 I get so tired of switching between languages and environments. Coffee is the only solution. Aug 22 18:36:09 So I have eclipse installed, now I must read what to do next. Aug 22 18:36:29 thanks for all the links. Aug 22 18:36:39 :) and input. Aug 22 18:36:53 Humanity is great. ( when they don't rob or kill you ) Aug 22 18:42:08 i have a ViewGroup that has 3 child fragments: how can I set 2 of them to View.GONE and 1 to View.VISIBLE? Aug 22 18:42:22 currently I have the setVisibility function being called in onLayout Aug 22 18:42:33 but I just need to set the visibilities once Aug 22 18:42:39 afterwards, they're handled by other functions Aug 22 18:43:56 so, in onCreate? Aug 22 18:44:27 that would make sense :) Aug 22 18:44:28 i think you can even set that in xml Aug 22 18:44:41 when i set it in the XML, it didn't seem to obey it Aug 22 18:44:44 but I can try again Aug 22 18:45:09 wongk: is there a document that outlines the order of functions that are called/ Aug 22 18:45:19 i.e. when and where onCreate, onLayout, onMeasure, etc. are called? Aug 22 18:45:41 the Activity documentation Aug 22 18:45:56 This is so cool. I got spoonfed. Aug 22 18:46:03 In return I want to spoon feed. Aug 22 18:46:08 wongk: ah nice, thanks :) Aug 22 18:47:01 I love linux. Aug 22 18:47:21 and I think I am going to fall in love with Android. Aug 22 18:48:50 if i start a new activity with an intent, what exactly happens? onPause->onStop(Old activity) -> onCreate->onStart->onResume(new activity)? Aug 22 18:49:09 yes Aug 22 18:49:11 basically Aug 22 18:49:12 yea Aug 22 18:49:28 odd Aug 22 18:49:34 why odd? haha Aug 22 18:49:41 im closing an autobahn websocken onStop and reopening it on onResume Aug 22 18:49:54 when switching to the next activity, it is only closed, and not reopened Aug 22 18:50:05 if i tilt my screen after that however, the cycle works, it is resumed Aug 22 18:50:12 if i tilt it back to normal mode, it is closed again Aug 22 18:50:32 as if onResume ist called before onStop on the old activity Aug 22 18:50:56 that is probably the case, actually Aug 22 18:51:05 an ctivity isn't stopped until it is covered completely Aug 22 18:51:21 android can't know that until the 2nd activity is visible Aug 22 18:51:31 hm Aug 22 18:52:40 the problem is, i really need to close the socket on onStop, in order to close it when the app is closed Aug 22 18:52:52 do it in onPause Aug 22 18:53:08 ill try that and report back Aug 22 18:53:32 sonOfRa: if you have a persistent socket Aug 22 18:53:41 sonOfRa: you probably want to put it in a service, not an activity Aug 22 18:53:58 well, it is part of a singleton, which handles the interaction with the server Aug 22 18:54:11 it is not running in the activity or UI thread itself Aug 22 18:58:45 for Google Cloud Messaging: if I extends GCMBaseIntentService do I still need to worry about wake locks? Aug 22 18:59:16 because on the "get started" page they suggest you do that and they don't mention extending GCMBroadcastReceiver yourself and wakelocks but in the example they do mention it Aug 22 19:02:25 is an activity destroyed if not open anymore? or is it only stopped so it can be resumed at a later point? Aug 22 19:03:55 It might be destroyed Aug 22 19:03:59 its paused Aug 22 19:04:06 and yes killed if low o nresources Aug 22 19:05:05 i was never 100% clear on this... android only kills processes and not activities, or does it destroy individual activities too? Aug 22 19:05:41 it appears to do so Aug 22 19:05:43 just tried Aug 22 19:05:48 connection was killed on destroy Aug 22 19:06:07 and before the new activity was started Aug 22 19:06:48 before we determined onStop was called after onResume in your new activity Aug 22 19:06:58 now you're saying onDestroy is called before Aug 22 19:07:09 uhm, sorry, i meant after Aug 22 19:07:24 it is destroyed after the test method checks whether the connection needs to be reopened Aug 22 19:08:04 it's unusual that it would be destroyed immediately Aug 22 19:08:47 hang on, maybe due to me pressing back Aug 22 19:08:53 then it will probably be destroyed Aug 22 19:08:57 yes Aug 22 19:09:15 oh well Aug 22 19:09:18 i guess it stays open Aug 22 19:09:23 until the server closes it Aug 22 19:22:32 android:visibility="gone" should work, right? Aug 22 19:22:51 it's still drawing them :-/ Aug 22 19:23:51 on a View, not on a fragment Aug 22 19:23:58 i didn't think about that earlier Aug 22 19:24:05 ah Aug 22 19:24:14 I'll just do it programatically then Aug 22 19:24:20 in ViewGroup.onCreate() ? Aug 22 19:25:00 hmm.. that didn't work either. i don't think onCreate is getting called. Aug 22 19:25:00 after setContentView, you should be able to get the top-level View for each fragment Aug 22 19:40:45 i wonder if i should open source Checkout Tracker... i don't make crap on it Aug 22 19:58:22 dammit Aug 22 19:58:25 why is this so hard Aug 22 20:00:30 how can i make logcat give me the FULL stacktrace and not just stop at some point and say ...14more or similar? Aug 22 20:02:06 you dont need moar Aug 22 20:02:22 does activity_whatever.xml know //comments? /* */ as well? Aug 22 20:02:30 ? Aug 22 20:02:35 it's xml, no Aug 22 20:03:02 so when I set visibility on a fragment, does that reset its drawing order? Aug 22 20:03:05 but maybe activity_whatever is special Aug 22 20:03:27 so will do the trick? Aug 22 20:04:40 why dont you try it Aug 22 20:04:58 canadiancow, i do need them all actually Aug 22 20:05:13 sonOfRa, why Aug 22 20:06:45 why would btnMenu in this code return null when I change the order of fragments in the XML file? http://pastebin.com/HSGgZtpA Aug 22 20:08:33 wongk, doesn't seem to work for that file though Aug 22 20:09:51 http://stackoverflow.com/questions/3484643/how-to-comments-in-layout-xml Aug 22 20:12:54 is it possible to show/hide a fragment? Aug 22 20:13:25 alright, thanks wongk Aug 22 20:17:58 ugh Aug 22 20:18:16 so I think my idea of creating a subclassed ViewGroup to wrap 3 fragments is all for nought Aug 22 20:18:33 totally NOT working out for me. Aug 22 20:18:57 Can someone point me to an example of how a tablet/phone app should start up and choose which activities with particular fragments make sense based on the device? Aug 22 20:18:59 would've been so nice to use since it compartmentalizes everything. Aug 22 20:19:23 I undertstand how you can choose lots of layouts based on device size via the various qualified entires in res directory Aug 22 20:19:35 i use one activity for the launch activity Aug 22 20:19:35 But what I am not clear on is how my top level activities bind these together and do "the right thing" Aug 22 20:19:39 which may house one or more fragments Aug 22 20:19:44 KirinDave: http://developer.android.com/guide/components/fragments.html Aug 22 20:19:52 wongk: I have it open, it's not clear to me. Aug 22 20:19:55 i wrote a good example app but unfortunately it's closed source Aug 22 20:19:59 Like, when someone hits "settings" on the tablet I want a fragment to slide in Aug 22 20:19:59 see the example at the bottom? Aug 22 20:20:16 When I hit it on the phone I want to launch a SettingsActivity Aug 22 20:20:47 you want to replace on of your current fragments with a setting fragment? Aug 22 20:21:20 wongk: Well actually I want to add the fragment and animate it in. Aug 22 20:21:25 wongk: It's normally invisible. Aug 22 20:21:39 i can't help you with that pattern Aug 22 20:22:03 wongk: Ahh, but I see I missed a line in the example Aug 22 20:22:12 "mDualPane = detailsFrame != null && detailsFrame.getVisibility() == View.VISIBLE" Aug 22 20:22:31 Tha's how the example detects which layout is live. Aug 22 20:22:41 Not as awesome as I was hoping but Okay. Ty. Aug 22 20:28:13 my service is getting its onDestroy method called and i have no idea why, any tips? Aug 22 20:28:19 stack trace is no help Aug 22 20:32:30 is your service getting stopped? Aug 22 20:32:38 is the last item unbinding from your service? Aug 22 20:32:43 is there some element of the lifecycle you're missing? Aug 22 20:35:12 nothing appears to be requesting the service stop itself, but something is getting unbound Aug 22 20:35:20 i thought unbinding didn't stop the service? Aug 22 20:35:58 the last unbinding stops the service Aug 22 20:38:38 stork: if you haven't actually called startService, the service only lives as long as there are things bound to it. Aug 22 20:39:35 i do call startservice before calling bind when my activity starts Aug 22 20:39:53 ah Aug 22 20:39:58 do you call stopService? Aug 22 20:40:10 i do not Aug 22 20:40:15 Hmm! Aug 22 20:40:16 nor do i call stopSelf() from within the service Aug 22 20:40:45 or actually.... Aug 22 20:41:17 perhaps I'm an idiot. I might be calling stopSelf() while the service is still bound, and then unbinding later on Aug 22 20:41:43 that'd probably solve that mystery Aug 22 20:48:24 hi guys. i want to use the method setListShown(boolean x) inside my ListFragment, but i can't because i'm using a custom content view. Do you guys know good alternatives, that will allow me to hide and show my list? Aug 22 20:54:44 Finally. Aug 22 20:55:03 Fixed my phone, btw. Aug 22 20:55:15 can anyone tell me what exactly GCMBaseIntentService takes care of and what not? does it take a wakelock for your onMessage()? does it do exponential backoff? Aug 22 20:55:24 Took a bit, but IT's better than ever and with google's gmail sync stuff, I never lost anything but pictures Aug 22 20:59:06 _ __ _ __ _ __ _ __ Aug 22 20:59:06 (_|_ '. (_|_ '. (_|_ '. (_|_ '. Aug 22 20:59:06 '-' '-' '-' '-' Aug 22 20:59:06 _ _.-. _ _.-. _ _.-. _ _.-. Aug 22 20:59:06 (_|__.' (_|__.' (_|__.' (_|__.' Aug 22 20:59:15 * canadiancow hides Aug 22 20:59:19 omg! Aug 22 20:59:20 or rather, runs away Aug 22 20:59:21 o_O Aug 22 20:59:22 zombie tracks! Aug 22 20:59:26 .... Aug 22 20:59:37 canadiancow: I think your foot's broken Aug 22 20:59:49 ryanm: that's why I said zombie Aug 22 20:59:53 both of them, actually Aug 22 20:59:55 foot's crooked Aug 22 20:59:58 C0deMaver1ck: fair enough Aug 22 21:00:07 like, really crooked Aug 22 21:00:08 so, I want to buy a user account on a server Aug 22 21:01:28 is it how things go usually? you buy a user account with some quota to put your stuff on? shared hosting? Aug 22 21:01:37 or am I just rambling? Aug 22 21:02:46 ..... huh? Aug 22 21:03:05 You either buy webhosting, or you lease an entire server or something Aug 22 21:03:16 true, I want the former I guess then Aug 22 21:03:16 lov: or you get a shell account Aug 22 21:03:26 ryanm: depends on what you're doing. Aug 22 21:03:33 lov: of course Aug 22 21:03:39 or that, like I used to do in the past, buying bouncers to use for a "cloak" on dalnet Aug 22 21:03:51 and to stay connected all the time Aug 22 21:04:05 * ryanm just runs Irssi on a virtual server Aug 22 21:04:32 I have one of those, but I want this one so I can use it as a proxy and because I want to test my app on that server Aug 22 21:04:46 so I do want to be able to SSH there and..do things Aug 22 21:04:49 even if unprivileged Aug 22 21:05:00 godaddy? Aug 22 21:05:15 sounds like you need either a shell account or a virtual private server Aug 22 21:05:16 Sicp: http://www.dreamhost.com/r.cgi?1358775 Aug 22 21:05:19 nodaddy Aug 22 21:05:44 godaddy offers dedicated servers for the most part and "solutions" Aug 22 21:05:50 I just want something mesely Aug 22 21:05:52 +a Aug 22 21:05:57 17:05:27 < lov> Sicp: http://www.dreamhost.com/r.cgi?1358775 Aug 22 21:06:01 yea I'm there Aug 22 21:06:02 they're cheap as hell, though Aug 22 21:06:27 quittin time Aug 22 21:06:49 bump. i want to use the method setListShown(boolean x) inside my ListFragment, but i can't because i'm using a custom content view. Do you guys know good alternatives, that will allow me to hide and show my list? Aug 22 21:07:10 ugh, I really need to pitch this app to these companies Aug 22 21:07:41 they give you their "homegrown web panel" for a high level of control over the server, do you think they'd buy into something just like that web panel only for the mobile? Aug 22 21:08:05 they'd take the app, configure it to be able to accept only the customer's accounts, and give them the app along with the server Aug 22 21:08:08 I am having difficulty connection my android device version 2.3.3 to consume resouces from a https://api resource. The exact same calls are working for android devices 4.1 +. Do we know if apache has a restriction on accessing ssl apis.. from pre 4.0 android devices? Aug 22 21:08:35 abyss42: there might be an issue that was outstanding in 2.3.3 but fixed in 4.0 Aug 22 21:08:43 Sicp: I don't really understand what you're saying. Aug 22 21:09:04 lov, Do you know what exactly is the issue Aug 22 21:09:22 look at the site you gave me, they're saying (just like any other company that offers this service) that they'd give you a web panel (as usual) so you can administer/configure what you've bought Aug 22 21:10:10 it only sounds logical and seems like the next step for these companies to integrate themselves with the mobile, to give you an app (which can be an extension of the web panel) so you can administer/configure the server space you've bought only through the mobile Aug 22 21:10:38 abyss42: you're being kind of vague so I am too Aug 22 21:10:41 a bunch of them have mobile websites Aug 22 21:10:52 Sicp: oh, ok. Aug 22 21:11:06 Sicp: the answer is "It depends" Aug 22 21:11:20 the mobile app is going to be a value add, but it's going to be kind of expensive depending on the amount that it'll do Aug 22 21:11:23 I'm talking about an app that would have only the server accounts that you have bought, inside it would give you the same modules/tools as it offers on the web panel (which most have developed themselves) Aug 22 21:11:33 it will be for free (the app itself) Aug 22 21:11:34 if you want it to support everything you can do on the page, it's going to be kind of expensive if you want it to be more than a wrapper around a webview Aug 22 21:11:39 the price of the overall package will rize Aug 22 21:11:41 rize?! Aug 22 21:11:43 rise* Aug 22 21:11:55 which means that the business has to weigh the cost of the app against any new business they'd get or business that they'd retain providing it Aug 22 21:12:13 I'd honestly consider it a "I guess that's kind of neat" thing that would only sway me a little bit. Aug 22 21:12:22 but the company has this app, it would only be distributing it again and again but with different accounts inside Aug 22 21:12:39 Sicp: go for it. live the dream. Aug 22 21:12:52 by jove...I will Aug 22 21:12:56 no. Aug 22 21:13:07 I need to buy wht they have and study this.."panel" of theirs Aug 22 21:14:04 lov, we have a verisign SSL cert in our server , and apparatenly accessing those apis from android devices using httpclient works. but for android devices lower than version 4, when using the httpclient to make those same calls we are getting a SSLPeerUnverifiedException Aug 22 21:14:06 my app was for Unix/Linux servers at first, I just got Cygwin and SSH'ed to my windows machine, I got some pretty cool stuff even, Cygwin facilitates some use of UNIX commands Aug 22 21:14:22 going to go offtopic now Aug 22 21:14:41 ..there's no android-offtopic? Aug 22 21:15:05 abyss42: http://stackoverflow.com/questions/2308774/httpget-with-https-sslpeerunverifiedexception Aug 22 21:15:08 help? Aug 22 21:15:21 Personally, we use an HttpsUrlConnection Aug 22 21:16:46 so basically java.net.URL url = new java.net.URL("https://something.com/"); HttpUrlConnection conn = (HttpUrlConnection)url.openConnection(); if(conn instanceof HttpsUrlConnection) { .... } Aug 22 21:16:53 haven't had any issues with that. Aug 22 21:16:58 hi all. i'm experiencing the assumingly heavily discussed "media server eats up all my battery" issue. i'd like to know if i can contribute in fixing this issue in some way. Aug 22 21:17:14 the_isz: source.android.com, get to work. Aug 22 21:17:22 alternately, #cyanogenmod or #cyanogenmod-dev Aug 22 21:17:54 lov: ok, thank you. is this a cyanogenmod only issue? Aug 22 21:18:02 lov, I am already doing that but its not helping. Aug 22 21:22:33 hello, I need to create an executable with the NDK that requires some .so's I already have (prebuilt). I can't figure out how to use the LOCAL_PREBUILTS thing, could anybody please help me? Aug 22 21:25:57 the_isz: I have no fucking clue. Aug 22 21:26:25 I honestly don't know what this issue is that you're talking about. Aug 22 21:26:41 if you're using a CM rom, I'm assuming that it's probably endemic to that, and I'd recommend going to #cyanogenmod-dev Aug 22 21:27:10 lov: already did. i just assumed you knew more since you immediately referred me to that channel :) Aug 22 21:27:16 I'm having a hard time trying to stop a service I create Aug 22 21:27:50 ok :) Aug 22 21:27:52 onDestroy gets called but it continues in the background Aug 22 21:28:00 porten: "it continues" meaning a thread? Aug 22 21:28:08 if so then yes, that's correct. Aug 22 21:28:20 You'll want to clean up your threads etc in onDestroy Aug 22 21:28:34 Yea ok, so I've got a timer task that just displays an I'm alive once a second, so i should probably clean that up Aug 22 21:42:17 hi Aug 22 21:42:30 How can I print a new line on TextView?? Aug 22 21:43:51 bump again. i want to use the method setListShown(boolean x) inside my ListFragment, but i can't because i'm using a custom content view. Do you guys know good alternatives, that will allow me to hide and show my list? Aug 22 21:45:05 How can I print a new line on TextView? Aug 22 21:48:04 lompa: \n Aug 22 21:48:18 mrmaffen: ListFragment is just a convenience class. Aug 22 21:49:25 lov: it display \n xD Aug 22 21:50:53 lov: I have a TextView, and then, textView.setText("asasas\nasasas"); Aug 22 21:51:00 and it sisplay "asasas\nasasas" Aug 22 21:51:55 Ok Aug 22 21:52:05 I don't know what f*ck happens! Aug 22 21:55:19 System.getProperty("line.separator"); Aug 22 22:08:53 String, I set up the icon in application in the manifest, when I transfer the apk to my phone the icon shows for a while, then it changes to the default android green icon, why is this? Aug 22 22:08:58 lov: what exactly do you wanna say with that? i still don't see how i could use setListShown(boolean x) with my custom content view Aug 22 22:10:41 mrmaffen he means listfragment (and listactivity) are merely wrappers to make things 'easier' Aug 22 22:10:50 aka dumber Aug 22 22:15:55 lov, we have a verisign SSL cert in our server , and apparatenly accessing those apis from android devices using httpclient works. but for android devices lower than version 4, when using the httpclient to make those same calls we are getting a SSLPeerUnverifiedException Aug 22 22:16:27 xorgate: so i will have to implement my own listfragment to get setListShown(boolean) supported ? Aug 22 22:18:16 mrmaffen what are you trying to achieve? Aug 22 22:19:56 what's the typical Android dev platform? Win7+Eclipse? Ubuntu+Eclipse? What's pretty effective for all that Java these days? Aug 22 22:20:24 they will have you believe it's eclipse but honestly eclipse sucks Aug 22 22:20:27 xorgate: i'm replacing a fragment with another fragment. the new listfragment is being filtered. so when i replace the fragments, i see a short flicker, because the filter wasn't applied to the list yet. so i want to hide the list while the filter is still being applied Aug 22 22:21:11 mrmaffen obvious q: can you not filter before it's shown? Aug 22 22:22:17 what a bother this nickserv is Aug 22 22:22:19 that is what i want to achieve Aug 22 22:22:41 but therefore i need to be able to hide my list when it's being created Aug 22 22:22:48 like, create new fragment, filter, replace old with new Aug 22 22:22:50 and i've successfully done that with setListShown Aug 22 22:23:12 hmm i actually never thought about that :D Aug 22 22:23:32 woudl mean a lot of work though Aug 22 22:23:56 it would be way easier to just hide the fragment. but if that's not possible, i need to replace the fragments after the filtering i guess Aug 22 22:23:58 i doubt it Aug 22 22:24:26 i would suspect you create your fragment while telling it what to display Aug 22 22:24:28 Codhisattva: my company runs exclusively MBP+Eclipse. Aug 22 22:25:44 ah i remember why i couldn't do that ... i'm working with a loader to display the content in my listfragment asynchronously Aug 22 22:26:19 so i'm creating the fragment ... the fragment's waiting for the loaded to populate the list .. then the filter is applied Aug 22 22:26:23 loader* Aug 22 22:27:15 now that i think about it ... i guess the main cause for the flicker is the waiting time before the loader populates the list Aug 22 22:27:26 the filter shouldn't take that much time Aug 22 22:28:28 where are the keystores saved in linux? Aug 22 22:29:33 the debug keystore is in ~/.android Aug 22 22:32:53 Android gurus! Hola! I have a weird problem. I have a legit ssl ceritificate in my server which the iOS team can successfully hit and make api calls. Android devices can do the same but only devices 4.1+. I am using httpclient to make the calls. For android devices version lower than 4, when i try to make the call to the https://api url.. i get a SSLPeerUnverifiedException: No peer certificate error. Has anyone experience this issue Aug 22 22:32:53 . Any help would be greatly appreaciated. Aug 22 22:33:22 we get weird SSL errors frequently in k-9 mail Aug 22 22:33:33 SSL on android seems to be a bit... problematic Aug 22 22:33:42 unfortunately, that's all i can say Aug 22 22:34:01 hi. I have a problem with DB and TextView. I get string of DB and then i set it on TextView, but TextView shows "\n". If I set textView.setText("asas\nbfbfbf"); then, I works. Why? Aug 22 22:35:07 sounds like you're literally storing \n in the database Aug 22 22:35:09 lompa: have you verified the string in the debugger, that it doesn't contain \\n for example Aug 22 22:35:25 Le fu :D Aug 22 22:37:13 wongk-home, Thanks. But I find it hard to believe that no one has encountered this particular issue. Aug 22 22:37:18 no, it just shows \n Aug 22 22:37:46 abyss42: i just mentioned that i have encountered this issue Aug 22 22:38:17 wongk-home, oh. apologies. I misunderstood. Do you remember how you fixed it? Aug 22 22:38:23 we didn't Aug 22 22:38:33 it still exists Aug 22 22:38:33 On server. it return \\n. but on android, it storage \n Aug 22 22:39:19 lompa: where do you see the \n to verify this? in the debugger? Aug 22 22:39:34 Log.w(); Aug 22 22:40:06 do we know for certain that Log.w isn't 'handling' the escape sequence Aug 22 22:40:13 i expect that it would Aug 22 22:40:22 your string contains a \ and an n Aug 22 22:40:27 not a '\n' Aug 22 22:40:49 ah... Aug 22 22:40:59 and... how can I resolve this? Aug 22 22:41:25 by putting there an \n instead of two characters Aug 22 22:41:29 :o Aug 22 22:41:38 i'm missing something here Aug 22 22:41:52 if it comes from the server as '\n' and isn't modified, that would be unlikely Aug 22 22:42:09 count the characters Aug 22 22:42:12 i'm suspecting '\\''n' Aug 22 22:42:37 then that would be a '\' and a 'n', no? Aug 22 22:43:51 string + '\n'; Aug 22 22:48:02 I'm trying to setup jenkins on my android app, I'm not sure why my installation android/tools/ant missing pre_setup.xml? Aug 22 22:48:26 is it common? it doesn't have test_rules.xml and other xmls. Except build.xml Aug 22 22:51:34 http://www.osnews.com/story/26296/Samsung_effectively_kills_Tizen_Bada Aug 22 22:52:36 big surprise there Aug 22 22:52:43 what a terrible idea that was Aug 22 22:53:37 "Next up: the TouchWiz team" Aug 22 22:53:38 hah Aug 22 22:54:27 g00s, Tizen it says just delayed Aug 22 22:55:01 maheshk: yes; but windows of opportunities and inflection points are passing Aug 22 22:55:12 no pun intended :) Aug 22 22:55:19 you're kidding. They passed long time ago Aug 22 22:55:36 nah, i don't think so Aug 22 22:55:36 trying to win android now with a story that "hey, I got a _truly_ free operating system" or something isn't going to fly Aug 22 22:56:07 a story like "it's much _better_ than android because [actual stuff users or developers want and need]" is another matter Aug 22 22:57:18 god knows android sucks, but these vague fringe competitors that mostly even haven't reached 1.0 yet probably suck even more. Aug 22 22:57:40 tizen a true webOS as per samsung, if fails on mobile it will endup ib samsung tv Aug 22 22:58:18 Hey, what listener do I have to implement in order to track screen's rotation? Aug 22 22:58:23 though the webos got a fairly nice reception in principle, except it was reportedly slow, buggy, and had no applications. Aug 22 22:59:19 and then there is the firefox thing, uh boot 2 geck or whatever Aug 22 23:00:12 I'm going to guess it is slow, buggy, and has no applications, without seeing it Aug 22 23:00:18 nylon100: http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration) Aug 22 23:00:22 but I have heard there are system images to install on some phones today Aug 22 23:00:47 at least it sounds like these guys deliver something, instead of starting rewrites each time they reach about version 0.6 and the long road to polishing it into not-shit should start Aug 22 23:01:26 on a quad core 4gb ram machine.. I guess boot2gecko and tizen will fly.. even webos Aug 22 23:04:00 Anyway, can any one please check their installed android folder and see if they find tools/ant/pre_setup.xml? Aug 22 23:04:59 maheshk: i do not Aug 22 23:05:04 build.xml only Aug 22 23:05:18 alankila: did you see there were a few android -based cameras now ? Aug 22 23:05:32 maybe that would be cool for the project you worked on Aug 22 23:05:44 not surprised, really -- android works for embedding. Aug 22 23:05:45 wongk-home, thanks! Aug 22 23:06:14 well I've been thinking about making a remote android camera application... contact it over wi-fi, stream video, or something. Not sure what exactly. Aug 22 23:06:19 no idea who would buy it or why Aug 22 23:07:06 i think Chainfire did something like that Aug 22 23:07:16 yeah I heard... Aug 22 23:08:13 phone could act as a kind of surveillance device. The camera could be designed to detect movement and record, and audio could be captured similarly Aug 22 23:08:32 that would allow largely standalone operation, perhaps it would be interesting Aug 22 23:08:56 i would be more inclined to use a ms surface tablet though; the camera manufacturers control sw should work with it out of the box Aug 22 23:09:03 x86 version that is Aug 22 23:09:18 the logs could be reviewd straight from the phone itself, or accessed remotely from a little program I would write. Aug 22 23:10:06 anyway I'd probably call it Remote Viewer or something to annoy people who believe in remote viewing Aug 22 23:10:44 would suck battery in a few hours of course. Need to be awake constantly. That sucks. Aug 22 23:11:05 Remote Viewer With Power Cord would work though Aug 22 23:11:41 Remember to put "power cord not included" in the fine print Aug 22 23:11:52 all the 1-star ratings! Aug 22 23:11:58 "This program did not come with a power cord" Aug 22 23:12:38 :( Aug 22 23:13:16 My favorite reviews are to the effect of 1 star: I didn't read the instructions and I don't understand the program Aug 22 23:13:40 also the various: 1 star, this GPS app doesn't work indoors! Aug 22 23:13:48 (you don't say) Aug 22 23:14:23 wongk-home: I done it! :D Aug 22 23:14:27 You need radio-wave exorcism: I compel you to reach the phone through the power of software! Aug 22 23:15:02 The problem was that \n isn't a char. Aug 22 23:15:39 I think I'll probably release my first android application on market in a few days. Aug 22 23:16:14 I just released mine yesterday for the first time. Aug 22 23:17:40 I'll see if it makes or loses money. All the 1-star ratings and returns. Aug 22 23:18:13 AH mine is free. Aug 22 23:18:43 I'd like to get some extra income. Tipping toe in the water, see how it goes. Aug 22 23:19:18 I like the free with option to pay to remove ads route. Aug 22 23:19:57 it's probably safer in terms of no returns, and most android users do not have r.admob.com blocked or something Aug 22 23:20:30 sadly this application will be live wallpaper so I think the ad route is out Aug 22 23:21:01 or at least I'd like to punch the person who works out how to place an ad on the home screen Aug 22 23:21:04 How long did that take? Aug 22 23:21:41 well I'm repurposing some old code of mine I wrote long time ago already into android context. I've worked on it about a week, on and off, during slower times of a consulting gig I have currently Aug 22 23:22:55 the wallpaper is computed by an algorithm which I ported to C and am running it in the background occasionally to produce the wallpaper. Aug 22 23:23:02 Nice. I guess the key to wallpapers would be making one that people will look up and pay for. LIke when the EURO cup happened, I downloaded a live wallpaper. Aug 22 23:23:40 sure. I don't expect big audience for something so geeky as mine. Aug 22 23:23:57 LOL Aug 22 23:24:13 The algorithm is pretty cool-looking though: https://bel.fi/alankila/app-im-working-on.png Aug 22 23:24:37 whoa that is pretty cool Aug 22 23:24:40 this is not exactly what users will see, but it's the raw material it works with Aug 22 23:25:10 Im guessing that the purple is what moves? Aug 22 23:25:31 nah... it's a still. It takes too long to animate on phone hardware, especially when calculated by cpu Aug 22 23:25:39 ohhhhh Aug 22 23:25:43 I tried to do it on gpu also but the gpu doesn't compute as precisely as desktop pc does Aug 22 23:25:48 Its playing tricks on me hehe Aug 22 23:25:50 so I couldn't get it to work very well Aug 22 23:26:20 ah. I am a newb when it comes to graphice. Aug 22 23:26:20 modern desktop gpus can compute crap like this around 20 frames per second Aug 22 23:26:33 phones cant? Aug 22 23:26:56 not even close. Maybe factor of 100 slower, and since this is not even using GPU, put in another 10 or 100 hit from that Aug 22 23:27:15 oh wow Aug 22 23:27:39 I would have liked to use GPU because it would have been near-realtime but there's the problem that the UI stops entirely while this algorithm runs and second-long pauses are both noticeable and unwelcome. Aug 22 23:28:01 perhaps if I had managed to time them when screen is off, or something. But that is all conditional on the phone's GPU being reliable performer and producing accurate computation results Aug 22 23:28:26 Hey err'body. I'm just testing my ABS app on a Kindle Fire, and it immediately throws a NoClassDefFoundError on the first activity, presumably because it inherits from a SherlockActivity. It works on every other device I've tested, though. Is there something weird about ABS on Kindle Fire? Anything I should try? Aug 22 23:28:29 it seems to me that on galaxy s2's Mali GPU the floating point precision doesn't match even single precision. It's somehow lower than that. Aug 22 23:28:30 interesting Aug 22 23:28:45 thats greek to me hehe Aug 22 23:28:57 I envy iOS people because they can rely on hardware being pretty much the same, or only have to test on couple of physical devices Aug 22 23:29:24 chronax what OS version is kindle? Aug 22 23:29:40 ya that is one good thing about iOS Aug 22 23:30:13 perhaps I port this crap to iOS next. ;-) worth testing, maybe. Aug 22 23:30:17 hello, why having this class (look line 80) http://pastebin.ca/2197378 it's throwing this error? http://pastebin.ca/2197377 Aug 22 23:31:12 idkau: Looks like 6.2.1? Aug 22 23:31:33 eh? Aug 22 23:31:41 Kindle Fire Aug 22 23:31:52 System Version: 6.2.1 Aug 22 23:32:00 Your content must have a ListView whose id attribute is 'android.R.id.list' Aug 22 23:32:18 Immediately barfs on loading any Action Bar Sherlock activity, but it works on every other Android device. Anybody have any input?" Aug 22 23:32:24 balr0g: that error couldn't be any more verbose Aug 22 23:32:46 s/verbose/informative/ Aug 22 23:33:04 it could certainly be more verbose :P Aug 22 23:33:09 lol Aug 22 23:33:14 Chronax - do you have a stacktrace? Aug 22 23:33:42 ok, in my onLayout, the order that I call View.layout determines z-ordering right? Aug 22 23:33:43 ahhh kindle runs 2.3 ginger Aug 22 23:33:51 i.e. the last View I call it on, gets drawn on top? Aug 22 23:34:01 HorizonXP: Didn't we go through this earlier? Aug 22 23:34:04 There is no stacktrace, it just immediately throws a NoClassDefFoundError on the first activity displayed out of the manifest. Aug 22 23:34:07 SimonVT: we did Aug 22 23:34:09 wongk-home, sorry, but i have my activity_detalles_partida view, im newbie, dont understand why is asking for a view whose id is list? where to put it? Aug 22 23:34:12 but i was using fragments before Aug 22 23:34:24 balr0g: why in the world are you trying to setContentView in a list item click listener Aug 22 23:34:26 and now i've reverted back to Views because that didn't work out Aug 22 23:34:31 Your viewgroup doesn't know it's a fragment Aug 22 23:34:36 right Aug 22 23:34:48 Only the fragments view is added.. No different from using regular views Aug 22 23:34:53 balr0g: you are in over your head, you need to start with some simple tutorials/examples: d.android.com Aug 22 23:35:13 SimonVT: but it is. a fragment doesn't carry the visibility property Aug 22 23:35:21 so I can't set it to VISIBLE or GONE Aug 22 23:35:28 Eh Aug 22 23:35:30 What? Aug 22 23:35:35 wongk-home, sorry, i get the error with what you told me, i rather need to set an Intent to load the new view... Aug 22 23:36:16 Chronax, does it work on other 2.3 devices? Aug 22 23:36:29 SimonVT: http://developer.android.com/reference/android/support/v4/app/Fragment.html <- there is not setVisibility function Aug 22 23:36:38 so even when I cast it as a View object Aug 22 23:36:39 a fragment is just a shell with a lifecycle around a ViewGroup Aug 22 23:36:41 HorizonXP: You set visibility on the view Aug 22 23:36:44 .. Aug 22 23:36:45 I can call setVisibility, but it does nothing Aug 22 23:36:53 The fragment PROVIDES a view.. the fragment isn't a view Aug 22 23:37:08 The view the fragment PROVIDES is what's added Aug 22 23:37:11 A View is a View Aug 22 23:37:18 Doesn't matter if it's supplied from a fragment Aug 22 23:38:17 so my ViewGroup doesn't see the fragment at all? Aug 22 23:38:21 No Aug 22 23:38:27 it's just magically replaced by whatever the fragment contains? Aug 22 23:38:34 i.e. RelativeLayout, LinearLayout, etc. Aug 22 23:38:36 idkau: Yep, works great. Aug 22 23:38:47 Hey, how do i disable a gesture overlay temporarily? Aug 22 23:38:47 Yes, that's handled on inflation Aug 22 23:38:50 Tested all the way back to GingerBread. No maps in this app, either - so I know that's not the issue. Aug 22 23:38:55 Ok thats weird then. Aug 22 23:38:56 that does make sense.... Aug 22 23:39:29 Are you using the newest ABS release 4.1? Aug 22 23:39:37 Look at the source of e.g. FragmentActivity Aug 22 23:39:43 Search for "fragment" Aug 22 23:39:46 With the "'s Aug 22 23:40:03 and the newest support library which is v10 Aug 22 23:40:08 That's where they get the view from the fragment and adds it to the parent viewgroup Aug 22 23:40:29 idkau: Yes, I am. Aug 22 23:40:45 Then I am no help haha Aug 22 23:40:48 Chronax: "There is no stacktrace, it just immediately throws a NoClassDefFoundError" <- doesn't make sense Aug 22 23:40:48 :( Aug 22 23:41:04 try doing a project clean first Aug 22 23:41:22 The NoClassDefFoundError would be the stacktrace Aug 22 23:42:09 Okay, here's the stack trace: http://pastie.org/4571219 Aug 22 23:42:47 oh man it almost freakin works Aug 22 23:42:54 thanks SimonVT :) Aug 22 23:43:00 Okay, so it can't find MainActivity Aug 22 23:43:08 Are you using proguard or something? Aug 22 23:43:48 Hey somebody knows how to only make a gesture overlay active during certain conditions? Aug 22 23:43:51 Works on every device except the Kindle Fire. :( Some notes: I actually do have some maps buried in this app, but they're set to required=false in the manifest. Also, I'm targeting 4.1 Google APIS, but my minsdkVersion and targetSdkVersion are both 8. I think I have ABS set to use the Google APIs 4.1 also. Aug 22 23:43:56 But it all works on Gingerbread devices perfectly. Aug 22 23:43:59 No, not using Proguard. Aug 22 23:44:45 kindle fire is missing some android APIs Aug 22 23:45:13 What kind of activity is mainactivity? Aug 22 23:46:34 It inherits from SherlockActivity. Aug 22 23:46:41 That's the only difference between this version of my app, and the previous. Aug 22 23:46:54 Also, this APK is just signed against my debug.keystore. Any problem with that? Aug 22 23:47:30 The same apk works on all devices by kindle fire? Aug 22 23:47:39 but* Aug 22 23:47:41 I assume you meant but? Aug 22 23:47:43 Yeah, it does. Aug 22 23:47:49 I've tested on 20+ devices today. Aug 22 23:48:01 Chronax, what version of ABS? Aug 22 23:48:06 4.1 Aug 22 23:48:30 shot in the dark, but what happens if you have your splashactivity launch something other than MainActivity? Aug 22 23:48:34 does it crash in the same way? Aug 22 23:48:59 Not a bad idea, I guess. Aug 22 23:49:05 Also, I misspoke: MainActivity inherits from SherlockFragmentActivity. Aug 22 23:50:05 Does the compatibility library not work on Kindle Fire or something? Aug 22 23:50:09 Fragments? Aug 22 23:50:14 No, my last app was using them too. Aug 22 23:53:28 Chronax, it should work fine on the Fire. Aug 22 23:53:58 Huh, npike: I tried your suggestion and had it launch into a different Activity. Aug 22 23:54:09 A very simple one that inherits from SherlockActivity, and it worked. Aug 22 23:54:11 :( Aug 22 23:54:13 That's a bummer. Aug 22 23:54:22 Are you sure it's the exact same apk you're testing with? Aug 22 23:54:30 Thats great... so you know its something in MainActivity.... not related to ABS Aug 22 23:54:40 If a FragmentActivity isn't found, it could sound like you're not exporting the support lib Aug 22 23:55:04 But that doesn't explain why it would work on other devices Aug 22 23:55:13 Hrm. Aug 22 23:55:15 Well. Aug 22 23:55:17 is the second activity using SherlockActivity or SherlockFragmentActivity? Aug 22 23:56:06 Here's something to consider: My main project doesn't have a reference to the compatibility library. Instead, I just have a reference inside the ABS project, and it works fine. Aug 22 23:57:03 what version of ADT was the APK built with? and do you have android-support jar in the libs folder of your app AND in the libs folder of ABS? (if not, try it) Aug 22 23:58:04 npike: Just tried that. No dice. Aug 22 23:58:13 Using ADT 20. Aug 22 23:58:45 hmm, I am out of ideas sorry. At least we have narrowed it down somewhat. Aug 22 23:59:09 Hah, thanks for your help. Aug 23 00:01:51 Chronax - post on stackoverflow? Ill give you a vote up Aug 23 00:02:30 Just a quick question: If the ABS project has a reference to the latest support library, my main project shouldn't also require one, right? Aug 23 00:03:29 yes, I believe that is correct. Aug 23 00:07:31 I use the abs project and then add the support library to my project after Aug 23 00:15:35 Is there an example of an actionbar that also uses FEATURE_PROGRESS? Aug 23 00:25:59 Can I use FEATURE_CUSTOM_TITLE and FEATURE_PROGRESS at the same time?? Aug 23 00:27:18 Ideally, for a webview, I would want a title bar that changes text based on the web title, AND has a loading progress indicator for the backgroud, AND I would want a refresh button, AND I would want a stop button. Aug 23 00:27:46 So far, I have the Title of the app changing on the website title, and I have the progress indicator working. Aug 23 00:28:17 But I would like a reload button somewhere, and I have the webview at fullscreen... Aug 23 00:28:47 By the way, in case anybody is interested, I figured out what the Kindle Fire issue is. I'm using this Google Maps support lib: https://github.com/petedoyle/android-support-v4-googlemaps Aug 23 00:28:53 Which is breaking everything. :( Aug 23 00:29:42 So unless I put the reload button in a custom title, I have to target pre-honeycomb SDK for an old-fashioned menu. Aug 23 00:29:47 ah.. yeah makes sense Chronax Aug 23 00:30:06 I'm cheating and stuffing a MapView inside of a Fragment, which works great everywhere. But... the Kindle Fire breaks. :( Aug 23 00:30:34 Which I expected, of course. I was going to programatically replace it with a WebView map, as I've done in the past. Aug 23 00:30:43 Chronax: Nobody has those anyway. Aug 23 00:31:04 Hah, Jonathan_Eyre: We had 1868 downloads on the Kindle Fire in July. Aug 23 00:31:13 Unfortunately that's too high for me to ditch it altogether. ;) Aug 23 00:31:17 Do you need a Google account to run the support lib? Aug 23 00:31:44 >.< Aug 23 00:31:52 See what class FragmentActivity extends, Chronax ? Aug 23 00:32:41 SimonVT: Your question makes no sense? Aug 23 00:33:02 public class FragmentActivity extends MapActivity { Aug 23 00:33:15 No, it doesn't extend MapActivity. Aug 23 00:33:31 I used a static exchanger and plugged it into a LinearLayout. Aug 23 00:33:55 I don't have a MapActivity anywhere in my project, and yet I have a fully-interactive map inside a Fragment in a SherlockActivity. Aug 23 00:34:31 In the library you just posted, FragmentActivity extends MapActivity Aug 23 00:34:54 Ahh... that's what you mean. Aug 23 00:35:05 Well, I guess that makes sense, then. ;) Aug 23 00:37:00 <`teh1> hey i have a device that somehow is 360dp wide instead of 320, anyone know whats up with that and the best way to accommodate? Aug 23 00:37:19 Thanks for the assistance earlier. Aug 23 00:40:42 how do I override a child View's width? in onMeasure? Aug 23 00:40:59 from the parent Aug 23 00:41:08 i realize I could subclass the child View to accomplish that Aug 23 00:42:16 `teh1 - uhh if your design is not functioning with 360dp, you better rethink everythign Aug 23 00:42:25 because there is a HUGE difference in diff lcd panels Aug 23 00:45:53 `teh1: is the device _supposed_ to be 320dp? Aug 23 00:49:04 <`teh1> ryanm: NFI. ive never seen a phone that wasnt 320 Aug 23 00:49:24 oO Aug 23 00:50:35 `teh1: galaxy nexus Aug 23 00:50:54 (it's 360dp) Aug 23 00:51:09 fun fact: not all devices are the same size :-) Aug 23 00:51:15 (320dp is 2".. not every phone is 2" wide) Aug 23 00:53:28 if I have a 1dpi phone it's 320" Aug 23 00:53:34 #protips Aug 23 00:54:16 JakeWharton gets it Aug 23 00:54:24 JakeWharton: I forgot you were as stubborn as I am ;) Aug 23 00:54:31 JakeWharton: and I thought the Note was big :-) Aug 23 00:54:54 3 mentions in a row, where's my oversized teddy bear prize Aug 23 00:55:02 test Aug 23 00:55:06 ah... I can type.. Aug 23 00:55:11 damn nickserv.. Aug 23 00:55:24 anyone have any idea when google play services API is supposed to come out? Aug 23 00:55:38 JakeWharton: you can have 3 internets Aug 23 00:56:56 JakeWharton: here you go: http://www.googlestore.com/content/images/large/10-93132.jpg Aug 23 00:57:06 that's not a teddy bear Aug 23 00:57:10 <`teh1> DAFUQ Aug 23 00:57:13 <`teh1> piece of shit android Aug 23 00:57:15 <`teh1> not being consistent Aug 23 00:57:16 ryanm: i have one of those! Aug 23 00:57:16 it's better than a teddy bear Aug 23 00:57:17 <`teh1> HATE HATE HATE Aug 23 00:57:32 `teh1: the enter key, use it less. Aug 23 00:57:40 JakeWharton: I have one very similar to it Aug 23 00:57:47 <`teh1> JakeWharton: the enter key, use it more. Aug 23 00:57:55 <`teh1> enter key == comma Aug 23 00:58:00 That.. thing.. is fugly Aug 23 00:58:19 yeah the non-eco version is cuter, but I couldn't find a picture of it Aug 23 00:58:43 http://www.squishable.com/p/squish_android_15/ Aug 23 00:59:01 <`teh1> if only there was a way in XML to specify a layout based on a fixed size or something Aug 23 00:59:10 It looks sad Aug 23 00:59:10 <`teh1> ill just have to center everything. lamely enough. Aug 23 00:59:30 `teh1: so that it gets cut off on some devices and doesn't fill the screen on others? What could go wrong? Aug 23 00:59:35 `teh1: you mean like layout_width="@dimen/mah_cool_hardcoded_width" Aug 23 00:59:44 This is a pretty stupid question, but I need a layout that fills the entire width of the screen, and is 24dp tall. Aug 23 01:00:05 <`teh1> i'd actually like it to just scale the density independent pixels t othe actual width, so i'd have a fixed width to develop on :P Aug 23 01:00:17 Jonathan_Eyre: that is a stupid question. it looks more like a statement. Aug 23 01:00:19 <`teh1> so that it would display the same on a 320 as a 360 Aug 23 01:00:53 Inside of the layout, I need a Title, a progressbar that goes ALMOST to the right of the screen, and then I need a refresh icon and a stop icon at the far right. Aug 23 01:01:08 JesusFreke: HOLD ON, lol Aug 23 01:01:17 how can I best get a .apk that has been uploaded to the store (my account)? Aug 23 01:01:19 * JesusFreke grabs his desk Aug 23 01:01:31 So how do I get the progressbar to fill everything except for the icons and text at each side? Aug 23 01:01:47 <`teh1> layout_weight i think Aug 23 01:02:13 Well, I thought so, but wouldn't that give a certain percentage of the layout to the refresh button? Aug 23 01:02:14 Jonathan_Eyre: and...all of this needs to be 24dp tall? Is this a layout for ants? :-) (kidding aside, yes, look at layout_weight) Aug 23 01:02:51 <`teh1> Jonathan_Eyre: i think it depends on what you give the weiht Aug 23 01:03:08 I want the refresh button to be far right, not in the last 10% of the screen. Aug 23 01:03:57 I would do it with relative_layout for the buttons and title, but I'm not certain how to do the progress bar Aug 23 01:04:35 <`teh1> map it out in an image or something Aug 23 01:04:58 This is all because Android doesn't allow a custom title bar and the FEATURE_PROGRESS at the same time. Aug 23 01:31:12 * t0mless tips canadiancow Aug 23 01:33:41 t0mless how much Aug 23 01:34:11 All the way over Aug 23 01:34:45 :o Aug 23 01:39:50 \o/ Aug 23 01:40:01 hey, would you guys recommend using a textureview or surfaceview for a drawing-type app Aug 23 01:40:18 i'm leaning towards textureview for its hardware acceleration Aug 23 01:40:30 but i can't find many docs on how to use it Aug 23 01:40:51 textureview wasn't added until ics Aug 23 01:40:56 yeah i know Aug 23 01:41:35 * Jug6ernaut has never even heard of textureview Aug 23 01:41:36 i'm fine with that, as i'll primarily be supporing tablets running ics+ Aug 23 01:41:48 Jug6ernaut: it seems to be pretty obscure at this point Aug 23 01:41:55 I have no experience with either, just thought I'd mention it :p Aug 23 01:42:06 ive used a surfaceview b4 Aug 23 01:42:17 just openglin Aug 23 01:48:51 Google Play shows ALL of my apps having a huge install spike yesterday, hmm Aug 23 01:48:55 This looks wrong Aug 23 01:49:07 Either they were undercounting or it is an error...I wonder if others see this Aug 23 01:49:55 Unless I actually did have 150,000 installs yesterday... Aug 23 01:50:43 I wouldn't mind having 150,000 installs Aug 23 01:54:20 if I have a ViewGroup with child Views, where should I modify their widths? ViewGroup.onMeasure or onLayout? Aug 23 01:57:42 hi Aug 23 01:57:55 got a new phone & tablet today Aug 23 01:58:10 so now you want to dev? Aug 23 01:58:21 nah:P Aug 23 01:58:41 maybe tomorrow Aug 23 01:58:42 then you probably want #android Aug 23 01:58:57 http://i.imgur.com/bo3po.jpg Aug 23 01:59:18 http://i.imgur.com/cj1Sv.jpg Aug 23 01:59:55 ... Aug 23 02:00:01 Is that running android 2.3? Aug 23 02:01:34 yeah Aug 23 02:01:38 need to update it Aug 23 02:03:42 and heres the phone Aug 23 02:03:42 http://i.imgur.com/OHaKe.jpg Aug 23 02:03:53 http://i.imgur.com/qk7CG.jpg Aug 23 02:03:58 http://i.imgur.com/jbRVi.jpg Aug 23 02:04:30 This channel isn't for spamming pictures of devices Aug 23 02:04:42 im just showing off Aug 23 02:04:51 no spam intended Aug 23 02:06:41 hm, think i figured it out Aug 23 02:06:52 Well, take it elsewhere Aug 23 02:07:03 textureview seems to act mostly like surface view, except i don't have to subclass it Aug 23 02:08:32 rather, just have to implement onSurfaceTextureAvailable() and do my drawing there Aug 23 02:11:45 ok, so setting the .layout width & height didn't quite achieve what i wanted... Aug 23 02:17:38 what launcher would you use for 2.3 ? Aug 23 02:17:39 stock? Aug 23 02:24:36 launcher? Aug 23 02:26:41 Showing off pics of a phone from luxuryes.com that he cropped LOL Aug 23 02:32:56 The fact that the tablet has 2.3 is already an indicator that it's just useless Aug 23 02:33:42 Ologn: my active installs went up for some reason, but not by much Aug 23 02:34:08 hehehhehe yeap. Aug 23 02:39:26 The dev console isn't always accurate.. So once in a while they make some adjustments to how it's calculated Aug 23 02:40:07 Can cause large jumps in total/active installs Aug 23 02:40:16 Both up and down Aug 23 02:40:30 I am guessing that I wont see downloads for awhile since my app has only been published for a day? Aug 23 02:40:53 It doesn't mean you suddenly got 10 times the normal amount of installs in a day.. Just corrections to the displayed number Aug 23 02:41:21 well I hope they're more accurate with paid apps Aug 23 02:41:31 or are you talking only about active installs Aug 23 02:41:39 Both total and active Aug 23 02:41:55 Both paid and free Aug 23 02:42:09 That sounds pretty sketchys Aug 23 02:44:26 It's just the dev console Aug 23 02:44:45 Your merchant account is accurate Aug 23 02:45:51 If you want any kind of useful statistics, you should probably use google analytics or something anyway Aug 23 02:47:16 i didnt like gAnal Aug 23 02:47:19 it was ass Aug 23 02:47:35 Yeah, that always bothers me Aug 23 02:47:38 Typing in the url Aug 23 02:47:47 no i mean Aug 23 02:47:48 the service Aug 23 02:47:53 i found it wasnt very good Aug 23 02:47:57 and then they changed the whole sdk Aug 23 02:48:00 oh, right :p Aug 23 02:48:05 and it was too much effort to reimplement it Aug 23 02:48:08 so i just ripped it all out Aug 23 02:48:52 SimonVT I'm just saying that if they can't accurately count the installs, how am I sure they're paying me for all of the purchases? Aug 23 02:59:45 I'm sure they're not scamming money from developers.. that'd be kinda bad for business **** ENDING LOGGING AT Thu Aug 23 02:59:59 2012