**** BEGIN LOGGING AT Tue Jun 19 02:59:59 2012 Jun 19 03:00:30 mdkess: point of a framelayout is that all the children overlay each other... you fill the frame with the image, then draw the textview on top, with the gravity set to pull the text to the bottom-right of its layout Jun 19 03:03:11 Ah, so here is the trouble... I set an android:style of NoTitleBar in my manifest. This made all my menus decide to go on strike. Is there a way to get rid of the title bar, and still have the menu button open a menu? Jun 19 03:04:12 "What do we want? TITLE BARS! When do we want it? WHENEVER OUR DEVELOPER PUTS EM BACK!" Jun 19 03:04:44 Jonathan_Eyre: if you do that on ICS you will get no menu Jun 19 03:04:51 boo, menu button Jun 19 03:04:58 boo you sir Jun 19 03:05:01 drpenguin: Thanks... But, not constructive. Jun 19 03:05:22 JakeWharton: What do you mean on ICS? Jun 19 03:05:40 Jonathan_Eyre: sorry, couldnt resist Jun 19 03:05:50 if you do that and run on ICS you will get no menu Jun 19 03:07:28 Is there a way to maximize the fullscreen as much as possible, and still have a menu? Jun 19 03:07:54 I'd appreciate not have the title bar take up so much room. Jun 19 03:13:04 good morning :) Jun 19 03:24:44 anyone here with a galaxy note? Jun 19 03:26:34 EddieRingle, you can straight away ask your problem. I think many those who dont have note can also help you :) Jun 19 03:29:55 c2tarun: I don't have a problem; a user left a review saying he can't seem to access what would be an actionbar item on his note Jun 19 03:30:21 he's the only occurrence, and since he hasn't decided to email me I can only find someone else who has a note Jun 19 03:30:38 Cant you make a AVM thats the same screen size? Jun 19 03:30:57 AVD* Jun 19 03:31:18 he says the physical menu key doesn't do anything Jun 19 03:31:22 that's all I've got to go on Jun 19 03:32:07 Could just be his phone being silly.. it is a samsung phone Jun 19 03:32:20 heh Jun 19 03:35:14 drpenguin, what do you mean by same screen size? I think you can configure virtual devices size through AVD manager Jun 19 03:41:28 xorgate: you there? Jun 19 03:45:02 Can anyone tell me the best way to set Item click listeners on the listview items? I am having some problems with my current code (It randomize the effects on scrolling the listview) Jun 19 03:45:40 here's my adapter: http://pastie.org/private/8prlqiqoag7jkvzlebaa Jun 19 03:47:17 and this is what I am trying to perform: http://pastie.org/private/hc94spdhpulncnqx37cxya Jun 19 03:47:58 I get this effect: http://www.screenr.com/VwG8 Jun 19 03:50:09 anyone? Jun 19 03:53:32 marksum: let me peek at my code.. Jun 19 03:53:42 crap.. its in a vm, uno momento Jun 19 03:54:27 drpenguin: what? Jun 19 03:54:46 marksum: had to boot a vm so I can see my code to help you..? Jun 19 03:54:55 oh Jun 19 03:55:04 How can I slide an image into pieces in Android? Jun 19 03:55:09 *slice Jun 19 03:55:45 so, what is the parent container, a listview? Jun 19 03:55:52 yep Jun 19 03:56:49 ok, so I dunno if matters for you, but for my list view that is populated by a SimpleCursorAdapter, I use the onListItemClick method to do an action when I poke an item. that seems to be enough for android to figure out if I am scrolling or tapping Jun 19 03:58:09 actually, that is not my problem. My clicks/swipes are registering perfectly and I can see the correct changes that are defined in the listeners. But when I scroll the list, it gets randomized. Please check the video Jun 19 03:58:15 http://www.screenr.com/VwG8 Jun 19 03:58:32 I saw the video, it looked like Android registered your scroll as a tapping of an item? Jun 19 03:58:38 no Jun 19 03:58:41 Its hard to tell, you are just going crazy with the scrolling Jun 19 03:59:41 tbh, I don't think your adapter has *anything* to do with how those items get checked Jun 19 03:59:58 actually, the problem here is, suppose that I set the first item as "completed", then if I scroll crazily, some other item will get the "completed" flag while the previous one will get removed Jun 19 04:00:15 this shouldn't happen if it register the scrolling as tapping Jun 19 04:00:20 I understand the implications Jun 19 04:00:35 I know, i just said thats how it looked to me at first Jun 19 04:00:40 oh Jun 19 04:01:27 views are being reused and you're not clearing the values Jun 19 04:01:36 how to do that? Jun 19 04:02:48 you need to set the checked state in getView Jun 19 04:03:07 to false Jun 19 04:03:42 the "checked" state is nothing but just an image, and I did holder.status.setBackgroundDrawable(null); Jun 19 04:03:56 where holder.status is the imageview Jun 19 04:04:12 so when I swipe the listItem, i am just changing the background of the image Jun 19 04:04:15 you are doing that on every call to getView Jun 19 04:04:17 ? Jun 19 04:04:30 no Jun 19 04:04:37 well that's your problem Jun 19 04:04:46 the top item leaves the screen and then gets reused at the bottom Jun 19 04:04:50 all you do is update the text Jun 19 04:04:54 you never reset the checked state Jun 19 04:07:30 do you mean that I should do the swipe actions on getView method? Jun 19 04:07:43 hi all Jun 19 04:08:10 Yo QubeZ! Jun 19 04:08:14 JakeWharton: do you mean that I should do the swipe actions on getView method? Jun 19 04:08:16 hey drpenguin Jun 19 04:08:24 sup Jun 19 04:08:29 no Jun 19 04:08:34 you need to reset the checked state on every call to getView Jun 19 04:08:37 because the view is being reused Jun 19 04:08:44 just cleaning up code and optimizing / organizing Jun 19 04:08:45 so you need to reset its state Jun 19 04:08:51 feels good to get time to go back and do that Jun 19 04:08:55 heh Jun 19 04:09:01 ok let me try Jun 19 04:09:15 i just put To Do Mapr on GetJar.com also to try and get more exposure Jun 19 04:09:18 we'll see what happens Jun 19 04:09:22 what have you been up to? Jun 19 04:09:53 that sounds a little like putting something in the fridge to warm it up... Jun 19 04:09:59 So many things hahaha.. Started my second year with HP not too long ago.. finished a term for school, and *finally* getting around to rewriting text alarm from the ground up Jun 19 04:10:14 drpenguin: nice Jun 19 04:10:14 Leeds: that works if the fridge isnt plugged in Jun 19 04:10:22 #just_sayin Jun 19 04:11:18 anyone here have every worked in ubuntu or any other linux development? Jun 19 04:11:28 c2tarun: Ubuntu, Arch, Fedora currently Jun 19 04:11:55 drpenguin, great :) is there anything in android like Launchpad for Ubuntu Jun 19 04:12:07 QubeZ: yup, I like that google released that graphics pack that has all the ICS-ee stuff Jun 19 04:12:22 c2tarun: whats launchpad again? I stopped using ubuntu after 10.04 Jun 19 04:12:33 drpenguin: same here, i'll be updating the UI in a few releases Jun 19 04:12:44 right now I want to get some key features in the next 2 builds Jun 19 04:13:00 drpenguin: started porting TDM to iOS also Jun 19 04:13:07 drpenguin, its kind of bug management site. any bugs are reported there, devs fix them, put their patch blah blah.... Jun 19 04:13:52 so, you want the bug tracking site for android? Jun 19 04:13:53 c2tarun: b.android.com - but the actual Android developers don't really use it, they use a private internal one Jun 19 04:14:46 QubeZ: nice! I may have a big project for Android soon too.. hoping my professor approves it for my senior design project Jun 19 04:15:25 g'luck... can't wait to see the result Jun 19 04:15:54 android is nothing like linux's open source development. Commercialization of apps is preventing open source concept. Jun 19 04:16:25 QubeZ: unless you use Enterprise level Hypervisors im afraid you wont ;) Jun 19 04:17:24 i haven't dealt much with our VM guys... but at UHG (united health care/group), I think we might Jun 19 04:18:07 Then maybe you just will! :D Jun 19 04:18:38 wow Jun 19 04:18:39 https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash4/392420_10151669224590260_810258668_n.jpg Jun 19 04:19:03 How can I slice an image into pieces in Android? Jun 19 04:19:15 hi Jun 19 04:19:32 before i ask my question, is anyone around ? Jun 19 04:19:38 NO Jun 19 04:19:39 just ask Jun 19 04:19:49 devslash, yeah lot of guys are around :) Jun 19 04:19:51 napster: Bitmap.createBitmap()? Jun 19 04:20:08 Leeds: Let me see that Jun 19 04:20:16 We are actually all away at the moment.. please leave a message after the ascii beep Jun 19 04:20:44 drpenguin: the tape would have filled up *long* ago Jun 19 04:20:45 eclipse is giving me the warning tag should specify a minimum API level with android:minSdkVersion="?" but in my manifest I have this line: am i doing something wrong ? Jun 19 04:21:08 devslash: yes, you are - XML namespaces need to be given for every attribute Jun 19 04:21:16 devslash: you should always target highest level i.e. 15 or whatever that is righ tnow Jun 19 04:21:36 Jun 19 04:21:42 Leeds: who says we are storing it persistently? ;) Jun 19 04:21:50 ok so i changed targetsdkversion to 15 Jun 19 04:21:58 but its still showing that warning Jun 19 04:22:31 leeds what do you mean namespaces should be given for every attribute Jun 19 04:22:34 drpenguin: good point, well made Jun 19 04:22:51 devslash: well... every attribute... which lives in a namespace... has to specify that namespace Jun 19 04:23:01 how do you do that Jun 19 04:24:07 I'm sorry, your quota of free support questions has expired - please deposit 75c to continue Jun 19 04:24:24 75c? I charge 100/hr for my consulting =) Jun 19 04:24:32 can someone please explain what leeds means Jun 19 04:24:51 xmlns Jun 19 04:24:51 ron_frown: special introductory price, plus it's a really simple question Jun 19 04:24:53 and android: Jun 19 04:24:55 haha Jun 19 04:25:39 devslash: do you know what that android: is doing before minSdkVersion? Jun 19 04:25:56 Leeds: Bitmap.createBitmap() allows me to slice images into squares. Is it possible to slice it to arbitrar Jun 19 04:26:01 y shapes? Jun 19 04:26:06 yea Jun 19 04:26:28 I'm trying to create a jigsaw puzzle actually Leeds :) Jun 19 04:26:53 Leeds: not exactly Jun 19 04:26:57 napster: well, bitmaps have to be rectangular Jun 19 04:27:12 devslash: do you know what the xmlns declaration at the top of your manifest means? Jun 19 04:27:30 yea Jun 19 04:28:06 i would make the bitmaps so they overlap with different edges that connect Jun 19 04:28:17 Leeds: ok, what about slicing them into arbitrary shapes and fill the remaining parts of the rectangle as transparent? Is that possible? Its fine for me to use third party libs as well Jun 19 04:28:37 Leeds: what about it ? Jun 19 04:28:46 devslash: what does it mean? Jun 19 04:28:55 it defines the namespace Jun 19 04:29:00 napster: look at Canvas then - has stuff for clipping to a specific Path Jun 19 04:29:07 devslash: keep going Jun 19 04:29:13 Leeds: great! Let me check :) Jun 19 04:29:38 it defines the android namespace and according to the docs its value is always "http://schemas.android.com/apk/res/android". Jun 19 04:29:48 right, and what does "the android namespace" mean? Jun 19 04:30:10 ron_frown: I'm sorry, you were right, not such a simple question, unless I want to spoil things by just answering it Jun 19 04:30:32 I already did up there ^ Jun 19 04:30:33 haha Jun 19 04:30:54 fuck it Jun 19 04:30:57 i dunno any more in detail Jun 19 04:31:19 namespace is a xml concept Jun 19 04:31:27 devslash: you need to put android: before any XML attribute which belongs in the android namespace - you're just doing minSdkVersion="7" rather than android:minSdkVersion="7" Jun 19 04:31:36 now where's my 75c? Jun 19 04:32:23 ahh ok thanks Jun 19 04:33:58 ctate, interesting, and yeah, fail-fast is better than the alternative Jun 19 04:43:44 strange, no sign of my 75c in my paypal... Jun 19 04:45:15 I was checking for the available sensors in my phone and I got this list http://paste.ubuntu.com/1048571/ Jun 19 04:45:16 can anyone pleas explain the first four sensors? Jun 19 04:49:13 errr, i wonder why this layout isnt showing properly on my phone Jun 19 04:49:28 c2tarun: what device? Jun 19 04:49:37 samsung admire? Jun 19 04:49:40 f2prateek, Samsung Galaxy ACE Jun 19 04:50:09 I have a simple relative layout with two textviews and a bunch of buttons Jun 19 04:50:16 on the emulator it shows just as its supposed to Jun 19 04:50:25 on galaxy s3 the text isnt showing at all Jun 19 04:50:45 eSatsu, can you please share the screenshot on emulator Jun 19 04:50:47 never seen this before Jun 19 04:50:50 eSatsu: xml? Jun 19 04:50:53 xml yeah Jun 19 04:51:28 eSatsu: i meant can i have the xml paste? Jun 19 04:51:37 just a sec Jun 19 04:52:06 c2tarun: i htink you should be able to find it on on the galaxy ace product manual. i gogle a couple of those with the model number and got hits Jun 19 04:52:12 *googled Jun 19 04:52:46 ok, I'll try, I tried google sensors name though, didn't get anything Jun 19 04:53:37 anyone know trick on how to get two phones to find each other via network? Jun 19 04:53:55 http://pastebin.com/1j6wUe04 its a terrible temporary layout anyway, but it still bothers me that its not showing up properly on the phone Jun 19 04:54:57 eSatsu, that is actually a terrible layout :) what are you trying to do by the way? Jun 19 04:55:11 haha Jun 19 04:55:19 its a temporary layout, im focusing more on the functionality right now Jun 19 04:55:33 honestly after knocking out a metric shit ton of layouts, I'm really torn on relative layouts Jun 19 04:55:42 probably more the gui editor than it is the layout Jun 19 04:55:52 it has 6 buttons and a logo text Jun 19 04:55:54 but to refactor names and shit will totally grenade the layout Jun 19 04:55:56 er, 5 Jun 19 04:56:03 eSatsu, I got that :) but that if you'll show us some screen shot from emulator and then tell us what is going wrong, we might understand better. Jun 19 04:57:57 http://dl.dropbox.com/u/36259099/foo/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-19%2013.56.24%EF%BC%89.png Jun 19 04:58:09 it shows the buttons correclty but just empty space where the text is supposed to be Jun 19 04:58:14 on the phone Jun 19 04:58:51 the text is all messed up Jun 19 04:59:00 I just see little squares and triangles and shit Jun 19 04:59:38 ? Jun 19 04:59:43 just messing aroudn Jun 19 04:59:52 clearly japanese Jun 19 05:00:01 ohman, I just started looking at the android-developers mailing list. It's mind boggling Jun 19 05:00:16 there is so much text saying what kinds of questions to ask and how to ask them Jun 19 05:00:19 wabz check out android-platform and android-porting Jun 19 05:00:25 and it fills up with questions like https://groups.google.com/forum/#!msg/android-developers/JzC9MJn7H4E/V7AqtLf7SHMJ Jun 19 05:00:28 I find myself answering more questions than getting answers Jun 19 05:00:29 =( Jun 19 05:00:46 omg Jun 19 05:00:47 wow Jun 19 05:00:53 not sure how these people get past moderation Jun 19 05:00:56 the bad part is google moderate Jun 19 05:00:58 anyway, any clue why the text wouldnt show up_ Jun 19 05:01:20 also can anyone suggest a nice background color hash code to use lol Jun 19 05:01:31 I use #aaaaaaaa Jun 19 05:01:38 ... Jun 19 05:02:15 hm i guess thats not bad Jun 19 05:02:27 or a bit darker to save more battery Jun 19 05:05:13 eSatsu: not sure why it doesn't work on the phone< only thing I can think of that =would coz the issue is using fixex widths and heights Jun 19 05:05:31 oh well, thanks Jun 19 05:07:17 the layout is the least of my concerns right now Jun 19 05:07:33 but its bothering me Jun 19 05:07:54 it works fince on my glaaxy nexus btw Jun 19 05:08:10 odd. Jun 19 05:09:28 its not showing any of the logotext for me Jun 19 05:10:02 the s3 has a huge screen too Jun 19 05:10:12 I heard that Nokia Lumia is giving feature of GPS navigation without any GPRS or internet connection on phone, is it possible? Jun 19 05:10:35 pre downloaded maps + gps, why not Jun 19 05:10:48 you dont need any connection for google maps either as long as the maps are loaded Jun 19 05:10:55 tracking only requires GPS Jun 19 05:11:01 eSatsu, how can I load google maps? Jun 19 05:11:16 eSatsu, an GPS will work without GPRS? Jun 19 05:12:10 yes it will, and for google maps you just need to open it up while using wifi or something and whatever places you browse will stay in memory and wont need to be redownloaded Jun 19 05:12:16 I did that with my super old nokia navigator Jun 19 05:13:08 is there anyway of downloading google maps of a certain area and store it to use some other time? Jun 19 05:13:31 how does the moderate thing work ron_frown? I just assumed the group had some moderators that would eventually approve my message Jun 19 05:13:57 c2tarun not really Jun 19 05:14:33 eSatsu, I one downloaded a map using Mobile atlas creator and saved it in RMaps but I didn't get any navigation there. Jun 19 05:14:59 nokia right? iirc they charge for the actual navigation or something Jun 19 05:15:05 dunno, i havent used a nokia since e71 Jun 19 05:15:26 and with e71 i didnt bother with the built in maps/navi service Jun 19 05:15:59 iirc you could download maps to it but navi costs or something Jun 19 05:16:06 or did ti become free, i cant remember Jun 19 05:16:11 at some point navi wasnt free Jun 19 05:16:37 c2tarun: static maps api might be one way.. but not that nice... Jun 19 05:16:49 they may just run it through a bad word filter Jun 19 05:16:49 haha Jun 19 05:17:09 eSatsu, my one friend has nokia, but he uses it with GPRS, now I know that GPRS is used to download map ad can navigate through GPS. Jun 19 05:17:18 but dont you think as we move forward we need to download the map again and again. Jun 19 05:17:45 uhh no why would you Jun 19 05:18:01 the map is static Jun 19 05:18:05 because Maps download map of very small area. Jun 19 05:18:22 once we go out of that area, we need more data right? Jun 19 05:18:38 yeah Jun 19 05:18:45 anyway i dont know about other softs but Jun 19 05:18:54 with google maps, if im planning on going somewhere and I dont have a dataplan Jun 19 05:19:12 i just load up google maps while using wifi and browse around the whole area where im about to go Jun 19 05:19:33 by google maps you mean default Maps in Android Jun 19 05:19:34 and itll work without any sort of connecton Jun 19 05:19:45 yeah Jun 19 05:20:02 its the same thing essentially, isnt it Jun 19 05:20:33 and do I have to keep app open or I can open it again and again. Jun 19 05:20:52 on my android the map data stays even if i close the app Jun 19 05:20:59 on my old e71 i think it disappeared, but im not sure Jun 19 05:22:02 you never tried on your S3 Jun 19 05:23:39 one weird thing :( I changed my home, but GPS is not able to pick my new location. It is showing path from my old location, how can I clear its memory or soemthing like that? Jun 19 05:25:48 er, by my android i mean S3 Jun 19 05:26:27 how do i get my phone to tell me what the current routing table is? Jun 19 05:38:44 is there a way to have usb mass storage on a device running ics ? Jun 19 05:39:46 devslash: you would need a way to power it Jun 19 05:39:58 what do you mean ? Jun 19 05:40:13 but really I never tested if ics will mount usb mass storage. Jun 19 05:40:26 phones and touchpads dont have powered usb Jun 19 05:40:50 I used a Y cable to power keyboard and mouse on my touchpad and it worked. Jun 19 05:42:00 hm i guess ill start designing a new layout already, too much of headache to work on new functions tonight Jun 19 05:42:06 devslash, XXCoder: i think you two are talking about different things. devslash wants the connected ICS device to show up like a usb mass storage instead of MTP, right? Jun 19 05:42:16 gotta head home early anyway before the typhoon comes Jun 19 05:42:16 oh yeah! Jun 19 05:42:16 exactly Jun 19 05:42:35 sorry dunno why I was thinking mount usb mass storage on android device lol Jun 19 05:42:35 devslash: as far as i know, that is not possible anymore, use MTP Jun 19 05:42:47 well theres a problem with that Jun 19 05:42:59 why isnt it possible anymore? Jun 19 05:43:12 what is a mainstream layout these days anyway, I was considering adding actionbars on top and bottom of the screen, 4 buttons each that are always visible so that the user can navigate easily Jun 19 05:43:32 eSatsu: well usabiloity is only #1 and #2 Jun 19 05:43:40 *usability Jun 19 05:43:41 when I was on GB, I used songbird (the desktop version) to sync some of my music to my sdcard which was connected via usb mass storage. I'm on ICS but I want to try and find a way to still sync it Jun 19 05:44:49 devslash: maybe this helps: http://www.jayceooi.com/2012/03/14/how-to-enable-usb-mass-storage-on-android-4-0-ics-samsung-galaxy-s2/ Jun 19 05:44:54 I must be tired as fuck. I meant usability is always #1 and #2 priority Jun 19 05:45:17 yea i saw that but in step 3 i don't have usb utilities Jun 19 05:45:21 yeah usability is important Jun 19 05:45:52 but layout is only part of the usability Jun 19 05:47:06 yeah I'm still thinking on how to make one setting feature better. right now my lwp has 2 picture settings. it has 5 built ins and "custom" which user can set using seperate setting Jun 19 05:47:13 I think it is bit awkward Jun 19 05:47:14 i hate mtp Jun 19 05:47:26 yeah how the hell can i disconnect mtp safely Jun 19 06:10:08 just found: android.text.BoringLayout.isBoring(BoringLayout.java:260), honestly? Jun 19 06:11:31 * Leeds yawns Jun 19 06:19:21 boring layout eh Jun 19 06:41:16 Anyone knows a good way (if possible a widget) to force stop a certain app? Jun 19 06:41:29 "force stop" Jun 19 06:41:54 now you know what goold ol diane would say about that Jun 19 06:42:14 psychuil: Settings -> Apps -> Choose the app -> Force stop Jun 19 06:42:55 psychuil: if you talk about programatically force stopping an app: does not work anymore after 2.2. even though you could still do it on rooted phones. Jun 19 06:44:38 hello? Jun 19 06:44:57 okay, this was weird. i just wanted to test if i'm registered. Jun 19 06:45:12 sorry. Jun 19 06:45:18 hello everyone! Jun 19 06:45:22 ok this was nicer. Jun 19 06:45:27 Hi Dr. Nick! Jun 19 06:45:47 well, uhm, hello to you too! Jun 19 06:46:16 guys i need help with sth Jun 19 06:46:22 i'm compiling a kernel for huawei u8650 Jun 19 06:46:33 and this is the error i get >> http://pastebin.com/naDFtNU4 Jun 19 06:46:37 this channel is for app development, not OS/platform... Jun 19 06:46:46 * chireadan facepalm Jun 19 06:46:47 #android-root i believe Jun 19 06:46:56 ok, bye then Jun 19 06:47:15 * Leeds waves Jun 19 06:47:26 hello, everyone Jun 19 06:47:27 pboos, i'm trying to automate this, that's abit too many steps :) Jun 19 06:47:56 anyone know how to mount mmcblk0p8 as sdcard with vold? Jun 19 06:48:28 the partition of my sdcard like following: Jun 19 06:48:41 (trunk2)14:46:41 liuyq:lava-dispatcher$ adb shell cat /proc/partitions Jun 19 06:48:42 major minor #blocks name Jun 19 06:48:42 179 0 7830528 mmcblk0 Jun 19 06:48:42 179 1 53248 mmcblk0p1 Jun 19 06:48:42 179 2 991232 mmcblk0p2 Jun 19 06:48:43 179 3 65536 mmcblk0p3 Jun 19 06:48:46 179 4 1 mmcblk0p4 Jun 19 06:48:48 179 5 2097152 mmcblk0p5 Jun 19 06:48:50 179 6 2097152 mmcblk0p6 Jun 19 06:48:52 179 7 2097152 mmcblk0p7 Jun 19 06:48:54 259 0 420864 mmcblk0p8 Jun 19 06:48:56 (trunk2)14:46:54 liuyq:lava-dispatcher$ Jun 19 06:49:30 when I use "dev_mount sdcard /mnt/sdcard 8 /devices/platform/omap/omap_hsmmc.0/mmc_host/mmc0" in /etc/vold.fstab, Jun 19 06:49:40 um Jun 19 06:49:46 use a pastebin next time Jun 19 06:49:53 also, the right channel Jun 19 06:49:58 it will tell me that " Partition '/devices/platform/omap/omap_hsmmc.0/mmc_host/mmc0/mmc0:b368/block/mmcblk0/mmcblk0p8' has a different major than its disk!" Jun 19 06:50:15 also, the right channel Jun 19 06:50:26 JakeWharton, thanks, I will use pastebin next time Jun 19 06:51:05 JakeWharton, Leeds, sorry, which channel should I ask problems like this? Jun 19 06:51:11 i'm trying to debug my usb connect / disconnect code, but it seems that i drop wifi debugging when unplugging the usb. is this an android problem, or is it in my code? Jun 19 06:51:26 possibly #android-root, possibly you should be asking on one of the mailing lists Jun 19 06:52:00 i have usb-debugging enabled, but if i disable it, the wifi adb quits working. Jun 19 06:52:28 when does it tell ou that anyway Jun 19 06:52:30 on building/ Jun 19 06:52:52 if you have fastboot setup properly Jun 19 06:53:00 fastboot oem format or whatever Jun 19 06:53:06 then the fstab *SHOULD* match Jun 19 06:53:11 Leeds, which mailing list should I use to ask problem like this? Jun 19 06:53:40 android-porting Jun 19 06:53:44 or android-platform Jun 19 06:53:50 http://s.android.com/community/index.html Jun 19 06:54:54 Leeds, thanks very much Jun 19 06:56:15 ron_frown: what do you think about the ms surface ? Jun 19 06:56:26 haha Jun 19 06:56:38 I heard ms tried to pull a last minute conference Jun 19 06:56:43 but saw no news about what it was Jun 19 06:57:07 maybe they timed it before i/o ? not sure they would care though Jun 19 06:57:13 seems unlikely Jun 19 06:57:29 I heard somone talk about ms buying out nokia and ultimately failing Jun 19 06:57:30 Leeds: did you see market is supposed to get answered comments ? Jun 19 06:57:36 and I think thats very very likely somethin that could happen Jun 19 06:57:48 nokia is in super deep shit ;) Jun 19 06:57:51 well, :( Jun 19 06:58:05 I odnt get why they adamantly were opposed to android Jun 19 06:58:15 I mean honestly I htink other than adoption, meego was a better platform Jun 19 06:58:23 clutter is tits for gui stuff Jun 19 06:58:31 i don't think they would have succeeded with android either. they would be competing with samsung Jun 19 06:58:33 DENY ANDROID AND FAIL Jun 19 06:58:36 so what Jun 19 06:58:44 motorola is competing and there are still tones of people buying Jun 19 06:58:48 g00s: yup, saw that Jun 19 06:58:48 as it is, i think there will be further consolidation among android oems Jun 19 06:59:16 honestly I am not a fan of windows rt Jun 19 06:59:18 i haven't checked moto's financials, are they doing well ? Jun 19 06:59:32 I'll be an evangelist for their dev tools and sing praises of .net and wpf Jun 19 06:59:50 i think if i got one, it would be the 22nm ivy bridge version Jun 19 06:59:54 but I think ms got so god damn caught up in their race to CATCH back up with everyone Jun 19 07:00:00 they totally made a shitty ass os =) Jun 19 07:00:08 great foundation... shitty shitty ui Jun 19 07:00:10 even if it was less battery, if i can run photoshop on this … or lightroom, i'm very excited Jun 19 07:00:25 yeah, i was reading today that a lot of people are struggling with the new UI Jun 19 07:00:30 c# and wpf is way good! nothing against those two. sometimes i wish android would be in C# :) so much nicer than java. Jun 19 07:00:31 netro, of course Jun 19 07:00:50 wpf is a way way way better way of doing xml based layouts Jun 19 07:00:52 than what android has Jun 19 07:01:02 probably heavier, but I'd take wpf *ANY DAY* Jun 19 07:01:07 ms realized something a while back : if you give a shit about your sw, you have to control the hw too to some degree. i think that is why they are doing this device Jun 19 07:01:17 Hi everyone ! Is TabActivity still supported in new API ( ICS ) ? Jun 19 07:01:18 this has always been apple's philosophy too, of course Jun 19 07:01:33 honestly I dont get whats speial abotu surface Jun 19 07:01:45 I havent seen anything it does that my dads ipad3 or whatever doesnt do Jun 19 07:01:46 for me, its that its a tablet running a real OS Jun 19 07:01:57 well, an OS that runs desktop stuff Jun 19 07:02:02 dont get me wrong I hate ios devices Jun 19 07:02:06 if android got that ubuntu layer that would be very cool Jun 19 07:02:06 but ios is a real os Jun 19 07:02:19 i see ios as a toy Jun 19 07:02:33 the problem is that it's not a desktop device, so running a desktop OS on it is suboptimal Jun 19 07:02:58 I agree with ubuntu running on top of android Jun 19 07:03:16 thats the point Jun 19 07:03:17 haha Jun 19 07:03:19 I would love to get to work and just put my phone in the dock (or just mhl or whatever) and have everything just there Jun 19 07:03:22 windows as been on tablets for ages Jun 19 07:03:39 but the windows with starbutton paradigm was almost single handedly the reason for ms failing the first time around in this market Jun 19 07:03:43 morning Jun 19 07:03:46 Leeds: yeah, that is definitely the philosophy Apple has taken, and i guess google too. Cook dismisses this, because he says tablet people use devices differently than desktop / laptop people. MS is going another direction. i think the distinction is becoming more blurred and arbitrary. so that is why i am excited about this thing Jun 19 07:03:47 metro does jack and shit for me Jun 19 07:04:12 Chainfire: morning :) Jun 19 07:04:15 I've seen some *very* anti-metro commentary about w8 proper Jun 19 07:04:31 1 billion people use windows. there are going to be a lot of complaints Jun 19 07:04:33 as opposed to wp8 (which is called w8) or w8rt (which is mainly going to get called w8) Jun 19 07:04:35 I'll need to see on in my hands, but ms has a very very long history of bulding windows for embeded devices and having it run rediculously slow Jun 19 07:04:49 i read, a lot of times, people could not figure out what the hell to do Jun 19 07:04:51 you guys see he latest win8 theme screenshots? Jun 19 07:05:04 nah, if you want win8 get win8 :D Jun 19 07:05:05 I agree with making things crisper by removing gradients and aero glass and blurs Jun 19 07:05:12 bu now the shit looks exaclty like win 3.1 0 Jun 19 07:05:13 last time ms tried embedded, hardware was slower anyway Jun 19 07:05:24 just saying thats what you get when you have a "real os" Jun 19 07:05:33 an os designed for the desktop, running on embedded hardware Jun 19 07:05:49 Windows was going to own... but with all the RT restrictions, I'm sure it's going to. Jun 19 07:05:52 *not Jun 19 07:06:00 ms will fuck it up Jun 19 07:06:08 I wish that were not the case, but they will Jun 19 07:06:11 they say this minimalist UI will grown on you :) Jun 19 07:06:23 did anyone see a price on the surface? thats kinda important too :) Jun 19 07:06:33 they should have gone with that tablet concept they had a couple years ago Jun 19 07:06:37 that shit would have been revolutionary Jun 19 07:06:43 whats the price Jun 19 07:07:08 800 and 1300 USD Jun 19 07:07:16 HAHAHAHAHAHAHAHAHAH Jun 19 07:07:18 are you fucking serious? Jun 19 07:07:25 thats more than a god damn laptop Jun 19 07:07:33 it is a laptop Jun 19 07:07:36 but I think he made that up? Jun 19 07:07:46 ron_frown ever looked at MacBook prices ;) Jun 19 07:07:50 yes Jun 19 07:07:54 I have several macbook pros Jun 19 07:08:02 there were no prices given Jun 19 07:08:14 I think the ipad is outlandish, and I really beleive the ipad is going to have a better software selection Jun 19 07:08:19 lots of guesses floating around... Jun 19 07:08:27 ms will fuck it up Jun 19 07:08:31 ron_frown MacBooks are ridiculously priced, but somehow you reserve laughing for MS ? :) Jun 19 07:08:46 at least my mbp has a real processor Jun 19 07:09:19 yeah that u payed $2000+ for lol Jun 19 07:09:20 I've tinkered with a bunch of arm hardware, and for what it is, I htink it does a great job Jun 19 07:09:22 ah ok I misread there. The ARM one is going to be between 350 and 500, the Ivy Bridge one is going to be between 800 and 1300 Jun 19 07:09:37 ron_frown> still, those prices are ridiculous Jun 19 07:09:49 I dont see one thing that would lead me to buy this over a regular ass win7 laptop Jun 19 07:09:56 "more than a god damn laptop" Jun 19 07:09:57 a Jun 19 07:10:09 dont buy a win7 laptop then Jun 19 07:10:15 win8 Jun 19 07:10:21 I dont plan on it Jun 19 07:10:22 buy a laptop with linux on it Jun 19 07:10:25 or put it on yourself Jun 19 07:10:39 meh when wayland gets some adoption I probably will go that direction Jun 19 07:10:41 who knows maybe this Windows fiasco will finally bring Linux to the desktop instead Jun 19 07:11:03 for now, I just cant in good conscience go with x11 crapola Jun 19 07:11:12 you see, unlike apple, hardware + software does not = 1 Jun 19 07:11:13 wayland will Jun 19 07:11:17 Chainfire: where did you see the prices ? Jun 19 07:11:28 Chainfire: one of the figures given at the event was that they expect to sell 375 million PCs next year... there should be more than 400 millions Android devices sold next year, at the current rates Jun 19 07:11:41 g00s some Dutch article Jun 19 07:11:46 'Linux' has won, in the form of Android Jun 19 07:12:02 Leeds> I don't generally consider my phone a desktop Jun 19 07:12:16 and honestly the android gui stuff is... so so Jun 19 07:12:28 what's the difference nowadays Jun 19 07:12:35 smartphone vs desktop Jun 19 07:12:37 whats so so about the android gui ron_frown Jun 19 07:12:51 chups> I can use my desktop to do... productive things ? Jun 19 07:12:52 meh, I just think it could be better Jun 19 07:12:58 I like clutter Jun 19 07:13:03 I agree with ron_frown here as well though Jun 19 07:13:04 well you can make it however you want Jun 19 07:13:09 not skia Jun 19 07:13:21 thats the sad thing Jun 19 07:13:35 Chainfire: windows fiasco? Jun 19 07:13:37 theres a milltion different UIs launchers themes, all for your choosing Jun 19 07:13:40 how is that so so Jun 19 07:13:40 clutter you can build some truly amazing stuff... that performs amazingly Jun 19 07:13:40 :p Jun 19 07:13:46 lower level than that shano Jun 19 07:13:48 million* Jun 19 07:13:53 linuxgecko> what some expect Win8 will be Jun 19 07:13:55 oh you mean just stock? Jun 19 07:14:06 I mean underlying drawing stuff Jun 19 07:14:12 hm Jun 19 07:14:32 (g00s I'm not sure on their sources though, they might just have made up those prices, who knows) Jun 19 07:14:32 I like it Jun 19 07:14:35 ICS at least Jun 19 07:14:37 and I am stll bitter that I was stuck on an older version of 2.3 that had lots of bugs in surfaceflnger Jun 19 07:14:38 gingerbread was horrid Jun 19 07:14:41 deadlocking and racing Jun 19 07:15:06 Chainfire: its kinda vaporware until they announce price and availability :) Jun 19 07:15:15 (te surface tablet , that is) Jun 19 07:15:38 same article says the ARM variant will be released at Win8 release, the Ivy Bridge one 3 months later Jun 19 07:15:39 g00s it wont be vaporware, m$ needs it to stay in the market Jun 19 07:15:39 ms told its hw partners it was doing its own tablet hw Jun 19 07:15:48 really when miguel de icaza noted that xamarin ported android to mono based frameworks, I was stoked Jun 19 07:15:59 because c# is public domain api (none of this oracle bs) Jun 19 07:16:08 better thought out Jun 19 07:16:24 well not public domain Jun 19 07:16:27 g00s: you know how Google had a special maps event the week before Apple unveiled their new maps system? and MS just had a special tablet event, a week before Google is expected to announce the nexus tablets? Jun 19 07:16:32 but ecma wahtever Jun 19 07:16:44 ron_frown: you *really* think there are no actionable patents in .net? Jun 19 07:16:49 Leeds: everybody has to one-up the next guy :) Jun 19 07:17:05 Leeds perhaps in specific implementations Jun 19 07:17:13 g00s: Google didn't announce "new maps available today" - MS didn't announce... well, anything, really Jun 19 07:17:22 but I guess thats my point... mono isnt inherently booby trapping themselves Jun 19 07:17:31 anyone going to this I/O thing, btw ? Jun 19 07:17:37 the api/language is ecma Jun 19 07:17:46 Chainfire surely JakeWharton is Jun 19 07:17:52 Chainfire nope :p Jun 19 07:17:53 i am Jun 19 07:17:55 yeah he is, already asked him :) Jun 19 07:18:00 why pay to go, when you can stream Jun 19 07:18:20 Leeds: the big story with the surface, as i see it, is that MS is the first to possibly blend the mobile and desktop OS. how well this will go, will be fun to watch. Jun 19 07:18:23 * g00s grabs popcorn Jun 19 07:18:24 Shano56: SWAG! Jun 19 07:18:54 g00s buys into ms's bs Jun 19 07:18:56 And a trip to SF, the taxman payeth Jun 19 07:18:56 yeah u dont see the audience sittin on their couches watchin them on the internet eatin popcorn! Jun 19 07:19:13 g00s: no, the big story with the surface is that MS is a) trying to be Apple and b) willing to go up against their own OEMs, which might suggest they feel there's a need to push harder than the OEMs are willing to Jun 19 07:19:13 ron_frown: no, i don't. i understand win 8 could be an epic failure Jun 19 07:19:42 what has ms succeeded with hardware wise Jun 19 07:19:44 Leeds, how are they going against their OEMs Jun 19 07:19:45 some could argue xbox Jun 19 07:19:50 ... or it could completely take over the tablet market Jun 19 07:19:54 but I dont really know where that tands with its competitors Jun 19 07:20:02 believe it or not, ms has done the tablet thing before Jun 19 07:20:02 there is something to be said about treating tablets more like PC's than phones Jun 19 07:20:05 Shano56: the surface tablet will compete with whoever else brings out a windows 8 tablet Jun 19 07:20:20 yeah but those are tablets Jun 19 07:20:28 apple and google have their own rules for tablets Jun 19 07:20:34 well not so much google, but yeah Jun 19 07:20:37 Chainfire: yeah, i agree. i can't put lightroom on an iPad (yet?) Jun 19 07:20:46 if you had a choice between a microsoft tablet and a Dell tablet running windows... Jun 19 07:21:03 i would choose ms … just because they would not load it up with crapware Jun 19 07:21:05 g00s: if history is any guage, it will go down nasty. MS has a history of getting things "mostly" right when making a big change, but screwing up enough that peopel only REALLY embrace it in the next version. Jun 19 07:21:14 i would pick anything but the dell haha Jun 19 07:21:29 people think this is the end of microsoft Jun 19 07:21:31 linuxgecko: they could fail epic with this, but they have enough money to get it right eventually Jun 19 07:21:34 but i dont see it Jun 19 07:21:36 by all accounts people actually rate the lumia 900 really relaly well Jun 19 07:21:37 BUT Jun 19 07:21:40 is it actually selling Jun 19 07:21:45 no not at all Jun 19 07:21:46 their just enterign the tablet market, and making similar UIs Jun 19 07:21:46 i would reinstall the OS on whichever i got Jun 19 07:21:54 1 for arm and 1 for x86 Jun 19 07:22:07 they just need to quit trying to build everything everyone else beat em to market wiht a REAL product Jun 19 07:22:09 sure their UI for desktop sucks, but no ones forcing u to use it Jun 19 07:22:13 you know how many people are on xp still Jun 19 07:22:16 yeah, ms has always been "ship now, fix later" kinda guys Jun 19 07:22:17 and go back to innovation Jun 19 07:22:30 as long as any major corp or government outfit switching to OSS and whatnot is still news (and it still is), MS isn't in any danger ... Jun 19 07:22:32 which would make sense in some level i guess Jun 19 07:22:49 the reality is windows7 is the most viable desktop os for a corp Jun 19 07:23:00 osx has crap management Jun 19 07:23:04 most UI changes they have made since Windows 2000 have upset me, as soon as I install windows I spend time stripping it down to look like 2k again Jun 19 07:23:17 robb_www embrace Jun 19 07:23:18 robb_www i prefer xp classic Jun 19 07:23:22 linux is a nightmare for most corps Jun 19 07:23:25 Win7 is a much better UI than Win2K Jun 19 07:23:25 yeah, xp is still dominating, you just can't go wrong with xp Jun 19 07:23:25 kinda like 2000 but not as shitty Jun 19 07:23:34 everything runs nicely on xp Jun 19 07:23:41 the thnk is Jun 19 07:23:44 looking good should come second Jun 19 07:23:48 and office? the "ribbon", dear christ, its as bad as the new chrome / IE / firefox UIs, what the hell is that? give me back my menu! (above the address bar, not below) Jun 19 07:23:48 xp with the themes services off is awesome Jun 19 07:24:02 if it causes performance problems, it should never have been there in the first place Jun 19 07:24:05 windows 7 with classic view looks like shit (i think m$ did it intentionaly) Jun 19 07:24:16 robb_www while that works for people like you and me, people less familiar with a program work better with ribbons ... Jun 19 07:24:19 windows composition shit was pretty crappy as I understand until real recent Jun 19 07:24:37 so the idea of blurin gand transparenting a bunch of stuff was a mistake Jun 19 07:24:50 ron_frown: it's only a nightmare becuase they'd have to retain people's thinking. as far as usability, i've been using a distro that i'd recommend to any corp that would listen,. Jun 19 07:24:52 saw this image once about windows 8, it said (windows 95, crap, windows 98 good, windows me crap, windows xp good, windows vista crap, w7 good and now here comes w8 Jun 19 07:24:54 chain, exactly, so expert users loose their expertise for the benefit of the new users who dont know what the hell they are doing to begin with Jun 19 07:25:21 windows vista wasnt entirely crap, it was the first 64bit OS worth using Jun 19 07:25:23 robb_www> which is 90% of all users Jun 19 07:25:29 chain, burn them with fire Jun 19 07:25:31 linuxgecko - I just mean because I think it requires more knowlegeable people to manage than windows Jun 19 07:25:41 and end users? well linux can be unweildly Jun 19 07:25:47 yeah, but still, w7 > xp > vista Jun 19 07:25:51 that's the point Jun 19 07:25:56 eek, sorry, vista was the first 64bit /windows/ OS worth using^ Jun 19 07:26:32 robb_www i guess you could say it was good in that it was better than 64bit winxp, but it was nowhere near good :p Jun 19 07:26:40 anyway gotta get some sleep so I am ready to roll for reality tomorrow Jun 19 07:26:40 biggest memory hog OS i've ever seen Jun 19 07:26:46 later Jun 19 07:26:48 nyt Jun 19 07:26:52 shano, yer, it was basically just an issue of timing with driver support Jun 19 07:27:34 imho, windows should just give up the smartphone market and concentrate their efforts elsewhere Jun 19 07:27:45 there's nowhere else to go Jun 19 07:27:47 it's like Jun 19 07:27:51 right now theres Jun 19 07:28:05 SALT vs PEPPER and ms wants to jump in and be CUMIN Jun 19 07:28:17 ron_frown: i've been using linux for 12 years now. it's much better than i can recall it ever being, and i've even setup home users that have never touched linux, and they are using it fine, without any real training.. get a corp to lock in the reins, and it would be just fine for all but the "I'm smarter than you" techies, trying to throw a wrench in the machine. Jun 19 07:28:30 they should concentrate on their rnd efforts and go to the next big thing Jun 19 07:28:31 my experience of WP7 was simple, no customisation, lack of features, horrible service integration, lacks some of the most important aspects of windows mobile, so basically a shiny shiny downgrade Jun 19 07:28:48 in m$'s defence...they just want to get in on the market for phones and tablets like the rest of the competitors Jun 19 07:28:49 chups: ms realizes, more people will access the internet soon with phones than any other type of device. there is no way in hell they are giving up on mobile Jun 19 07:28:56 im sure their stockholders are forcing them to Jun 19 07:29:07 however, i see that their phone and tablet lines are shit, so i wont use them Jun 19 07:29:08 simple as that Jun 19 07:29:32 yeah, which is true, but they're too late in the game now, they should extend their vision farther Jun 19 07:29:37 actually that nokia lumina or whatever looked pretty cool, but I wouldn't waist my time with it Jun 19 07:29:47 Shano56: agreed.... i hate it when i hear a friend or 2 got a windows phone. Jun 19 07:29:49 surely, maybe around a decade from now, something will replace smartphones Jun 19 07:29:54 robb_www: in the other hand, no customisation has its benefits alos Jun 19 07:29:56 also* Jun 19 07:29:58 chups, same goes for HP, they shut down half of their R&D labs in bristol, and now they are moaning about having a crap share of the cloud market and how they need people to research job scheduling (the exact work that would have taken place on those sites.. had they not shut them down) Jun 19 07:30:06 and that thing is what they should be focused on imho Jun 19 07:30:18 linuxgecko maybe you need to rethink your friends! jk jk :) Jun 19 07:30:32 Shano56: hehe :) Jun 19 07:30:50 i laugh at my friends who are like "i wanna get the iphone 4s!!!!" Jun 19 07:31:07 user experience is more similar Jun 19 07:31:07 vivirta, true the average user cant screw anything up too badly, unless you have a hotmail account which isnt registered to the same country you live in.. in which case you will need to factory reset the device and sign up for a new account, joy Jun 19 07:32:03 anyone have a tool that will get me the routing table in a human-readable format? I'm trying to figure out if a pushed vpn route is actually getting pushed Jun 19 07:32:03 heh, that's also true Jun 19 07:32:55 i cant understand why its so impossible to change the country of residence on the accounts used in WP7 without scrapping everything, and losing any previous purchases Jun 19 07:33:43 Shano56: why laugh at them? its a nice phone. iOS has a much higher customer satisfaction score than android. Jun 19 07:33:49 lol robb_www, someone must've skipped it during design Jun 19 07:33:49 haha Jun 19 07:33:56 robb_www: because M$ decieded noone would need to do that, so they didn't build a way to do it??:) Jun 19 07:34:32 I think that's basic Microsoft fault, "oops, We just didn't think that use-case" Jun 19 07:34:37 g00s: ignorance is bliss??:) Jun 19 07:34:46 linuxgecko: i doubt it Jun 19 07:34:47 g00s, it's kinda like having wife and knowing that you can have sex with let's say angelina jolie Jun 19 07:34:59 they have had complaints about it for over a year now, its a fairly well-trodden issue Jun 19 07:35:16 that and poor integration with outlook Jun 19 07:35:17 sex with her is probably 100x better than having sex with your wife Jun 19 07:35:24 sounds a LOT like Google to me Jun 19 07:35:27 but it just doesn't feel right Jun 19 07:35:33 you get what i mean? Jun 19 07:35:35 "oops, we didn't think anybody would actually want to use their external SD card" Jun 19 07:35:43 "lets lock it down for no reason whatsoever" Jun 19 07:35:52 g00s: mebbe not, but i've run into too many things i've seen bad with either of the non-android leaders to expect to be happy with either line of devices. Jun 19 07:36:20 linuxgecko: its a personal decision; to each their own :) Jun 19 07:36:21 hmm, i still have issues with my android devices not recognising the own-number stored on the sim, some read it fine, others dont Jun 19 07:36:29 g00s, because people with iphones take their iphone to the apple store Jun 19 07:36:35 and apple fixes any issue Jun 19 07:36:40 android doesnt work like that Jun 19 07:36:43 but people expect it to Jun 19 07:36:49 i'll use and dev for any platform. whichever is the best fit for a project. Jun 19 07:36:59 which explains the "satisfaction" Jun 19 07:37:14 g00s: agreed.. but i can't see myself using one willingly with glee. Jun 19 07:37:17 yeah, kinda like angelina jolie, so much satisfaction Jun 19 07:37:25 but it just doesn't feel right Jun 19 07:37:37 hell, if wp8 has low power BT 4 … which android does not, i would use wp8 just for that Jun 19 07:37:47 (since my project would use that feature) Jun 19 07:38:04 does the same principle work with scarlett johansson? Jun 19 07:38:07 actually, the android handsets often support bt 4 LP, its just that android itself does not Jun 19 07:38:30 google can add that feature today, penetration will be 8% in a year. yey Jun 19 07:38:40 yeah, scarlett can be w8 or bb cuz of she has fake boobs Jun 19 07:38:52 :O dreams crushed Jun 19 07:39:09 yeah, you should see her nip slip when she first got them implanted Jun 19 07:39:11 franken nipples Jun 19 07:39:15 kinda like windows Jun 19 07:39:18 first release is crap Jun 19 07:39:29 hmm im off to bed Jun 19 07:39:30 ergo, scarlett johansson = windows Jun 19 07:39:33 nyt Jun 19 07:39:36 later guys Jun 19 07:39:41 cya Jun 19 07:39:48 eugh i have work in 20 mins Jun 19 07:39:51 has anyone used anything like phonegap / sencha touch / jquery mobile to do low-fidelity interactive UI prototypes ? Jun 19 07:42:15 hm, Dan Ariely's new book looks good Jun 19 07:42:33 bye Jun 19 07:42:41 are all of you here android devs? Jun 19 07:42:46 i mean as a profession? Jun 19 07:42:54 <-- new hobby Jun 19 07:43:04 what's your job? Jun 19 07:43:05 most android devs are hobbyists Jun 19 07:43:12 oh man this sucks Jun 19 07:43:13 :/ Jun 19 07:43:21 cuz i sorta have it as a job Jun 19 07:43:25 i actually have that figure / stat somewhere .... Jun 19 07:43:27 might not be much of a career for me Jun 19 07:43:35 mind if i asked the link? Jun 19 07:43:37 chups> I make a living off of it Jun 19 07:43:39 at the moment research, simulating patient flow in hospitals, but later this year im going into industry, starting out in software engineering Jun 19 07:43:55 hey Chainfire, where do you work? Jun 19 07:44:04 you working in a startup or somethin? Jun 19 07:44:11 self employed Jun 19 07:44:16 i have no idea where my career is going Jun 19 07:44:17 omg Jun 19 07:44:18 otherwise known as Jun 19 07:44:18 :/ Jun 19 07:44:18 chups: you should be able to do well for youself working for a company to do android dev Jun 19 07:44:22 just bumming around selling android apps :P Jun 19 07:44:39 what's your business model by the way? Jun 19 07:44:43 like you go to companies Jun 19 07:44:50 and say "hey you need an android app" Jun 19 07:44:58 "i can make one for this amount" Jun 19 07:45:00 somethin like that? Jun 19 07:45:02 nope Jun 19 07:45:13 companies generally come to me :) Jun 19 07:45:15 chups: just because people work as a hobbyist, doesn't mean you can't make a good living.. just means you don't have corporate handing you all the good ideas and deadlines.. you have to do that yourself :) Jun 19 07:45:20 there appear to be quite a few research / software consultancies with a mobile dev presence in the UK atleast Jun 19 07:45:23 aside from the stuff I sell myself on Play Jun 19 07:45:44 hey g00s, not really sure :/ i might go back to enterprise java since the future there is more secure i think :/ Jun 19 07:46:10 i think doing full stack is really good Jun 19 07:46:19 that's pretty cool Chainfire Jun 19 07:46:20 service + mobile parts Jun 19 07:46:31 and it's been good? Jun 19 07:46:35 where are you btw? Jun 19 07:47:05 yeah g00s, but service that's on top of java is pretty expensive Jun 19 07:47:06 :/ Jun 19 07:47:17 atm, i'm thinking ror vs python Jun 19 07:47:54 linuxgecko, what's your job? Jun 19 07:47:59 oh crap Jun 19 07:48:10 chups: right now I'm between projects. Jun 19 07:48:10 i think i'm having mid-career crisis lol Jun 19 07:48:49 wdym by between projects? Jun 19 07:49:58 chups: I'm one of those self-motivated hobbyists. i've had a few projects get started, but i'm not actively working on anything. Jun 19 07:50:37 oh man, how i wish that were possible in my country :/ Jun 19 07:52:00 is busybox the only way I'm gonna get a readable routing table on my ICS phone? Jun 19 07:52:15 I'm trying to NOT root this one. Jun 19 07:55:37 is there anyway to have usb plug / unplug events not kill wifi adb? Jun 19 08:06:55 chups, where are you based? Jun 19 08:08:18 http://www.idolian.com/ Jun 19 08:08:25 $98 android 4 tablet :) Jun 19 08:08:34 * robb_www click Jun 19 08:08:52 jnewt, assuming its related to the handshake, and you merely want the device to charge, you could mod a USB cable by breaking the data channels Jun 19 08:09:09 philippines :/ Jun 19 08:10:26 robb_www: no, i'm developing a usb application. my app is crashing / hanging on connect / disconnect, but i can't get any logcat b/c it kills adb with it. i have no idea how to debug without any info. Jun 19 08:11:03 jnewt: can't you use an onboard logcat reader like alogcat? Jun 19 08:11:16 wdym by kills adb? Jun 19 08:11:28 like running logcat will kill adb? Jun 19 08:12:57 chups: no, not running logcat. it's like the usb debuggin option is tied to the usb attache / detach events and adb disconnects when you detach, even though it's over wifi. it also isconnects on attach, which makes less sense. Jun 19 08:13:20 and if i turn off usb debugging, wifi debugging doesn't work Jun 19 08:13:38 rock and a hard place. Leeds, i'm going to take a look at that Jun 19 08:14:53 loooooool Jun 19 08:16:25 already late for work :/ Jun 19 08:17:54 that's the spirit! Jun 19 08:17:59 screw work Jun 19 08:19:51 heh, g00s, check this out http://www.ebay.co.uk/itm/JXD-S5110-Game-Console-Android-4-0-512MB-4GB-5-Inch-Tablet-PC-HDMI-Camera-WHITE-/170860775899?pt=UK_VideoGames_VideoGameConsoles_VideoGameConsoles&hash=item27c81889db Jun 19 08:20:13 its almost tempting to get it for emulators Jun 19 08:20:29 hi , where is the location for kernel-modules and which should be present on a SGS2 + ? Jun 19 08:20:41 i think the nexus 7 is supposed to be $150 usd, i'll wait for that :) Jun 19 08:21:13 that will be a very interesting experiemnt Jun 19 08:21:27 if the nexus 7 fails, i think it basically means you can't give away android tablets Jun 19 08:21:36 well, unless you are amazon or something Jun 19 08:22:11 512gb of ram on the spec sheet, hmm Jun 19 08:22:27 something tells me these people on ebay dont know what they are selling Jun 19 08:25:35 i have a ListView with a few progressbars in, anyone have a solution on how to make them load synchronized? Jun 19 08:26:06 synchronized? asin for the progress to increment by the same amount on each? Jun 19 08:26:53 or synchronized asin multi-threaded? Jun 19 08:27:06 at the same time Jun 19 08:27:36 so that the progress on each progressbar has the same value Jun 19 08:28:46 the classes that are informing the value of the progressbar could register with an extra class which manages them all Jun 19 08:29:00 so that way you can check on the current state of each, and pause/resume work as necessary Jun 19 08:29:10 I have some info now. http://pastebin.com/Kjp5XRFK the first Log.d shows 5, then somehow, that last if statement is entered (miracle), and crashes with E/AndroidRuntime(15028) as the first error in aLogcat Jun 19 08:29:12 nice thanks Jun 19 08:29:37 question regarding memory handling: Jun 19 08:29:54 if i have an inner class (an asynctask) that holds a reference to the surrounding activity Jun 19 08:30:23 once the task is finished and the activity is finished too, will the references to both go away? Jun 19 08:31:08 its an inverse progress bar, robb_www Jun 19 08:38:57 ogelami, not sure what that means but good luck with it, have to go now, bye Jun 19 08:45:38 hey Jun 19 08:46:04 i've got an activity which I show as a dialog (it uses the dialog theme) Jun 19 08:46:21 but i want it to not be cancelable Jun 19 08:46:23 how can i do that? Jun 19 08:49:58 i have this: ProgressDialog busyDialog = ProgressDialog.show(ActivityBonierung.this, "Sendersuche", "Bitte warten...", true); Jun 19 08:49:58 while(signalPruef(busyDialog) == false){} ----why is the dialog fenster not showed? Jun 19 08:56:40 someone can tell me why the Processdialog not showed if i use this: ProgressDialog busyDialog = ProgressDialog.show(ActivityBonierung.this, "Sendersuche", "Bitte warten...", true); Jun 19 08:58:47 i think you're halting the UI thread Rintano Jun 19 08:59:22 are you doing the while immediatly after the show? Jun 19 09:00:35 Does anyone know how I can make an activity that's shown as dialog (by using the dialog theme) not cancelable? Jun 19 09:01:11 controlfreak huh Jun 19 09:01:40 :) Jun 19 09:01:45 alowaniak: yes i doi the while after the dialog. and in the while, the funktion if returns true, than there is a dialog.dismiss Jun 19 09:02:36 the dialog should show, than the signalpruef should be launched till it returns true Jun 19 09:03:06 and after this should the function run with the next command Jun 19 09:05:23 Rintano: my guess is that it happens on the ui thread Jun 19 09:06:02 if you want to show a progress dialog Jun 19 09:06:10 then you'll need to do the processing on another thread Jun 19 09:06:18 not after calling to show the progress dialog Jun 19 09:06:43 Snuffel: that @ me?:P Jun 19 09:06:54 just kidding Jun 19 09:08:42 ye it's not that important, but i like it more + i'll probably get weird behavior if it gets dismissed/canceled while not done yet and people start messing around with the other activity Jun 19 09:09:09 i guess you don't happen to know how to do it though? xD Jun 19 09:09:29 users can cancel anything they like Jun 19 09:09:35 unless it's in the background Jun 19 09:10:21 alowaniak: tnx. i need now just to find out how :) Jun 19 09:12:05 well ye they should be able to cancel my whole app if they want, but i don't want them to be able to cancel the dialog and mess around with the activity behind it Jun 19 09:12:34 Rintano: you might want to use/read up on an AsyncTask Jun 19 09:16:17 alowaniak: tnx Jun 19 09:20:38 my game is not selling well... Jun 19 09:21:05 mobilegamelabs: what's the name ? Jun 19 09:21:46 Ivru: Angry Polygon. http://www.MGGGGG.com/ap Jun 19 09:22:07 erf Jun 19 09:22:16 alowaniak: if i have: while(signalPruef(busyDialog) == false){} Jun 19 09:22:16 Jun 19 09:22:16 Jun 19 09:22:16 MyApplication myApp = ((MyApplication)getApplicationContext()); Jun 19 09:22:23 Ivru: please take a look when you have time… thanks :P Jun 19 09:22:37 the myApplication row would just run if the while is true? Jun 19 09:24:21 how do games get their first 1000 downloads? Jun 19 09:24:44 hello. I'm trying to simulate a low power situation. i see there is the option to telnet to the emulator and there are power commands. i don't quite understand how i use this though. is there a system message I can leverage? Jun 19 09:24:50 huh well first of all you usually do ! infront of the expression instead of == false Jun 19 09:25:05 so while(!signalPruef(busyDialog)) Jun 19 09:25:54 alowaniak please don't teach that to people Jun 19 09:26:03 and if the signalPruef(busyDialog) is true, then the NOT of it would be false so the while would not run and thus the myApplication row would run Jun 19 09:27:41 if you mean with the "if the while is true" that the expression signalPruef(busyDialog) == false is true, then no, the myApplication row would not run until that expression is false Jun 19 09:27:47 and why not exactly Chainfire? Jun 19 09:27:59 wuth the fff ? http://www.theverge.com/2012/6/19/3095879/hitachi-nec-ios-consortium-enterprise-software Jun 19 09:28:23 alowaniak: i need that the signalpruef run and run again till is true. that is ok, just i had by intents that the whole funktion was run trough where i called a new intent, before i closed it. so im not sure anymore if i call a function, how would the mother function work. run trough, or just the while is to end Jun 19 09:29:26 tnx. Jun 19 09:29:44 just now i read your second post :) Jun 19 09:30:05 i'm not sure if I understand what you mean with your last post;) Jun 19 09:33:06 exactly the same what u wrote...just my english is very bad :( Jun 19 09:33:12 alowaniak because if you learn a multitude of programming languages, it doesn't mean the same thing, and it's easy to mess up because of it unless you pay close attention. Jun 19 09:33:40 neither form is bad or good, whether you should use one over the other is a matter of what you work on Jun 19 09:33:49 k, true Jun 19 09:39:14 does anyone have a good resource for the telnet commands with the emulator? not sure hw to set the power to a certain level. only charging or not... Jun 19 09:41:59 another question: if i use: myWifiManager.enableNetwork(lastWifiID, true); it would connect to the WIFI with the ID lastWifiID, but the other saved wifi networks would automatically disabled and because this takes long to reconnect. is it possible to change the network state from disablet to saved? Jun 19 09:49:01 is platform version and android sdk version same? Jun 19 09:50:27 jahid: who are u asking? Jun 19 09:50:44 mmm, to the community? Jun 19 09:50:50 people who are here? Jun 19 09:51:19 ok Jun 19 09:52:08 jahid: http://developer.android.com/guide/appendix/api-levels.html Jun 19 09:52:17 Hey, how can I create multiple tablerows in a thread and add them to a TableLayout? Jun 19 09:52:32 bankai_, I have that link already open. but i am confused about sdk level Jun 19 09:52:40 is it same as api level? Jun 19 09:53:19 jahid: where are you reading the term 'SDK level'? Jun 19 09:53:43 MDijkstra, on my manifest----> Jun 19 09:53:47 I tried this: http://pastebin.com/T0SgJtCs but I can't get the rows to the table Jun 19 09:54:08 jahid: that's the API level yes, but you could've looked android:minSdkVersion up Jun 19 09:54:32 ie http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Jun 19 09:54:38 Ankhwatcher: Do ui stuff on the ui thread Jun 19 09:54:57 MDijkstra, yeap, true. thanks a lot Jun 19 09:55:20 SimonVT: please elaborate Jun 19 09:56:11 Ankhwatcher: the UI stuff isn't threadsafe Jun 19 09:56:19 SimonVT: I can't run my code in onCreate, because nothing appears on screen until it's done, also you shouldn't Sleep in the UI thread Jun 19 09:56:23 Ankhwatcher: you can't interact with it from a backgroudn thread Jun 19 09:56:41 oh wait Jun 19 09:56:43 nevermind :p Jun 19 09:56:55 Ankhwatcher: You post back to the ui thread Jun 19 09:56:59 Then do your ui stuff there Jun 19 09:57:12 Also, you're never starting your thread in onCreate Jun 19 09:57:45 doesn't new Thread(mUpdate); start the thread? Jun 19 09:57:52 no, it doesn't Jun 19 09:58:08 oh I see Jun 19 09:58:09 .start() starts the thread Jun 19 09:58:10 ta Jun 19 09:58:36 Ankhwatcher: but even then, it could be possible you're not even allowed to create textviews in a background thread Jun 19 09:58:49 oh hey it works Jun 19 09:59:10 Still, make sure you do your ui stuff on the ui thread Jun 19 09:59:19 or it'll break eventually Jun 19 09:59:23 Ankhwatcher: since you're passing it a Context it could interact with stuff it shouldn't Jun 19 09:59:38 I didn't think you could keep overloading a tablerow and re-adding it Jun 19 10:00:00 *overwriting Jun 19 10:00:22 okay then, what is the best way to improve this? Jun 19 10:00:47 only generate the data in the bg thread Jun 19 10:01:00 build the UI in the runOnUIThread bit Jun 19 10:01:38 okay, can I keep the audio in the background? Jun 19 10:01:45 or should that be in the UI thread too? Jun 19 10:01:56 no, that's fine Jun 19 10:02:40 so do you like my creative multi-media approach to FizzBuzz? Jun 19 10:03:01 I don't really know what it does :) Jun 19 10:03:30 http://c2.com/cgi/wiki?FizzBuzzTest with actual fizzing and buzzing Jun 19 10:05:27 ah Jun 19 10:06:28 seems difficult ;p Jun 19 10:11:11 MDijkstra: what I didn't like about it was that they already had the best solution Jun 19 10:11:46 MDijkstra: tell me if this version fixes the U/Thread issue: http://pastebin.com/VUZZVgPh Jun 19 10:12:43 yeah, should be okay Jun 19 10:12:53 the media player I'll have to check for a mo Jun 19 10:13:02 Great! works well Jun 19 10:17:58 Ankhwatcher: I guess it's also not necessary to manipulate the media player from the background thread Jun 19 10:18:54 those commands should run just fine from the UI thread Jun 19 10:19:05 but dunno, it doesn't state anywhere that you absolutely should refrain from doing this Jun 19 10:19:07 I'd probably move the release to onDestroy Jun 19 10:20:35 but I was using the nested thread to get the timing right, they might crash into each other if I try to run them on the same thread. Jun 19 10:22:28 *boom* Jun 19 10:23:22 mg, another new update for facebook on android.. Jun 19 10:23:28 it's probably again worse than before Jun 19 10:29:12 i've never tried fb for android, and probably never will :D Jun 19 10:31:20 it's the horror.. most unresponsive app i've ever tried.. Jun 19 10:31:25 each iteration it gets worse.. Jun 19 10:31:36 android asks so often whether it should kill it, it;s not funny anymore.. Jun 19 10:31:46 oh my Jun 19 10:32:40 they probably never heard of threads or asynctasks ;D Jun 19 10:33:17 its hard to say. the last twitter app was really janky on my phone Jun 19 10:33:20 i talked with an iOS developer for quite a bit.. It's really nice how on iOS you cannot even make a synchronous web request.. Jun 19 10:33:42 you have to provide callbacks for when the request is finished.. Jun 19 10:33:56 which is pretty awesome :D Jun 19 10:33:59 I suggest you try making a synchronous web request on Android Jun 19 10:34:01 if i start asyncTask, the commands listed after AsyncTask().Execute() are waiting till the async task ends or not? Jun 19 10:34:03 see what happens Jun 19 10:34:08 but i think objective-C has lambdas.. Jun 19 10:34:14 i'm pretty sure that fb engineers are prtty well versed with android; they are probably trying to do too much Jun 19 10:34:25 as for the fb app Jun 19 10:34:29 Chainfire: "see what happens" is bad advice :D Jun 19 10:34:31 it has had a massive speed boost not a month ago Jun 19 10:34:34 a] see what the API docs guarantee Jun 19 10:34:40 tapas> it will crash because it is not allowed Jun 19 10:35:17 Rintano: the method is called execute() i think.. Jun 19 10:35:34 Rintano: and no.. task.execute() will not block until the task is done.. Jun 19 10:35:35 ;D Jun 19 10:35:42 that would be totally pointless Jun 19 10:36:00 pity, because i need to block :) Jun 19 10:36:01 the whole point of AsyncTask is to *not* block :D Jun 19 10:36:10 Rintano: you have several options: Jun 19 10:36:23 You definitely do not need to block Jun 19 10:36:26 use ASyncTasks onPostExecute() to put code which needs to run once the task is finished Jun 19 10:36:32 g00s> I'm not sure you can make such an assumption Jun 19 10:36:41 a few years ago I watched a video from fb's top web developers Jun 19 10:36:51 about how they optimized the site those past few months Jun 19 10:37:05 they were all over themselves about these great things that are completely web 101 to do right Jun 19 10:37:14 Rintano: be aware though that that method is called only if the task wans't cancelled.. Jun 19 10:37:21 Chainfire: you are probably right. but didn't they get some google android talent ? Jun 19 10:37:23 thats not an option, because i have the code already working, it would be a huge work to do into async task. i need just to show a progress bar before a function and end if the function ends Jun 19 10:37:38 ever since then, I refuse to "believe" in fb engineers ;) Jun 19 10:37:44 but the code after this function should wait till the function ended Jun 19 10:37:44 If you're blocking the ui thread, it can't draw a progress bar Jun 19 10:37:47 So yeah Jun 19 10:37:57 g00s> not sure, maybe. Until last year I think it was just one guy building the Fb app Jun 19 10:41:02 Rintano> put the dialog/progress show code in onPreExecute, the code in doInBackground, the code that has to run after (and dismisses dialog?) in onPostExecute ... what is the problem ? Jun 19 10:44:23 Chainfire: that i have a very complicated code which is over 30 activities with some 1000 rows. and i need that progressDialog on several points. To copy all the code into the asyncTask functions would be a work for several days what i dont have :( Jun 19 10:45:51 Good luck ;P Jun 19 10:46:21 is there no possibility to make an asyncTask, which does nothing just show the processDialog, end end this dialog, and i could execute(call) this before a part of code and cancel after? Jun 19 10:47:15 perhaps there is a way to repaint the ui? but even if there would be, you would just get an unresponsive progress dialog Jun 19 10:48:02 Rintano: don't you use functions and stuff like that? Jun 19 10:48:05 If you need a progress dialog, you need to do your processing in a thread Jun 19 10:48:12 It's that simple Jun 19 10:48:19 how hard can it be to call the functions in the onPostExecute instead of in onCreate after task.execute()? Jun 19 10:48:54 Rintano: notice: if you make the asynctask an inner class of the activity you do have access to the enclosing activity reference.. Jun 19 10:49:06 tapas: is difficult to tell without to paste the code, but belive me it is not an option Jun 19 10:49:10 Rintano: so it's pretty much all copy and paste.. (and some thinking) Jun 19 10:49:22 Rintano: ah, ok, so it's city code [southpark talk] Jun 19 10:49:29 :D Jun 19 10:49:33 damn mongolians Jun 19 10:49:39 hrhr Jun 19 10:50:27 if the code is hard to refactor it is bad code from the start i guess.. so suck it up, learn the lessons and do it better in the next project Jun 19 10:50:30 :D Jun 19 10:57:17 the code is bad, but i cant redo beacuse time factor. who programmed the code is gone, and there is not even documentation :( but i need to live with this Jun 19 10:59:39 FizzBuzz for Android is signed and uploaded: http://d-h.st/8CA Jun 19 11:03:26 Hello Jun 19 11:03:59 hi Jun 19 11:05:19 Rintano: do u know how can we set the sound on button press just like when dialpad button press and sound we can hear same way i need Jun 19 11:06:43 hello Jun 19 11:09:26 jagruti_: maybe this helps: http://stackoverflow.com/questions/3369068/android-play-sound-on-button-click-null-pointer-exception Jun 19 11:13:00 hi Jun 19 11:13:48 has anyone noticed particularly bad sales in the last couple of days? Jun 19 11:13:58 is there a problem with Samsung devices and BitmapFactory.decodeFile() ? The docs say it should return null on failure, but i'm getting exceptions Jun 19 11:23:57 I'm interesting for functions that redirects the default output display stream of the screen to an other display device. What classes, functions or docs do i have to look ? Jun 19 11:24:25 redirects/redirect Jun 19 11:26:24 Should I use jdk 6 or 7 to develop android apps? Jun 19 11:28:02 6 Jun 19 11:28:56 hmm i've got an activity with a dialog theme but i don't want the dialog to close when a user presses outside of the dialog box Jun 19 11:29:13 so i made a theme with the dialog theme as parent and set windowCloseOnTouchOutside to false Jun 19 11:29:27 but it's still closing when i press outside of the dialog box Jun 19 11:29:29 why 6 Jun 19 11:30:09 alowaniak: If I do ask, why 6? Jun 19 11:30:31 http://developer.android.com/sdk/requirements.html Jun 19 11:30:42 Other development environments or IDEs JDK 6 (JRE alone is not sufficient) Jun 19 11:31:06 jdk 7 may work, but if i'm not mistaken i read about someone having a problem with jdk7 & android Jun 19 11:33:17 I have the newest eclipse and it comes with jdk 7, i made a simple user interface from the example on the devloper.android site Jun 19 11:33:34 you can just set compiler target to 6 i think? Jun 19 11:33:37 plus things like apktool work even though I have jdk 7 installed Jun 19 11:33:42 and not even sure if that was the problem Jun 19 11:33:57 i think it was something with keygen thingy for signing apps Jun 19 11:34:23 I know, but I jdk 7 has new features too it so i was wondering. I also heaqr people having problems with jdk 7 before Jun 19 11:35:02 my grammer failed in that last sentence... Jun 19 11:35:05 Well, if it breaks, you know why Jun 19 11:35:12 lol Jun 19 11:51:57 is there any unresponsive dialog what can be showed on activity and hide? Jun 19 12:06:56 How can I enable the horizontal scrollbar in WebView so that it is always visible Jun 19 12:07:02 ? Jun 19 12:09:58 i've got a activity with the dialog theme Jun 19 12:10:02 and i want windowCloseOnTouchOutside to set to false Jun 19 12:10:19 but if i make my own style with the dialog theme as parent and add windowCloseOnTouchOutside to false it won't work Jun 19 12:10:41 also, eclipse doesn't recognize windowCloseOnTouchOutside in it's intellisense thingy Jun 19 12:14:01 to which API does gingerbread on kernel 2.6.35.7 refer in SDK ? Jun 19 12:17:14 lautriv: http://developer.android.com/guide/appendix/api-levels.html not sure what the kernel has to do with it, though. Jun 19 12:17:30 Kernel version is not related to api level in any way, as far as I know. Jun 19 12:21:23 according to google Analytics, most of the people just visited for 0 - 10 seconds in my web site... Jun 19 12:31:02 hi Jun 19 12:32:57 sometimes I get log "W/BitmapDrawable( 5813): BitmapDrawable cannot decode" Jun 19 12:33:01 EuroTrash, i mentioned the kernel only to have some reference about the age, there is gingerbread and gingerbread_mr1. Jun 19 12:33:24 how can I catch this Jun 19 12:57:51 mobilegamelabs: oops... either you're getting a lot of hits from sources that don't really have a conversion potential.. or your frontpage doesn't have a clear enough call to action / persuasion :) Jun 19 12:58:45 kselos: if there's no exception... pretty much only "if(bitmap == null) { //something went wrong }" Jun 19 12:58:53 hello Jun 19 12:59:36 Hi Jun 19 13:01:48 hi Jun 19 13:08:03 I'm trying to start off learning how to create android apps for a business idea I have and I was wondering if anyone had some suggestions on how to evaluate which method of app creation to use for android/iOS. I know there are lots of SDK's out there now like Corona etc that allow you develop in an environment Jun 19 13:08:14 where you can code once and publish to various mobile devices Jun 19 13:08:36 however alot of those resources seem to lack many features for example barcode scanning Jun 19 13:09:08 or integration into a backend system which I would need to tie it to the same database that our website would be using Jun 19 13:10:21 bOot: a "write once run anywhere" environment is always going to play to the lowest common denominator. Jun 19 13:11:00 bOot: your best bet for targeting multiple platforms while still sharing code is Mono Jun 19 13:11:04 are there any good systems that people feel allow for ennough feature integration/scaling/database integration Jun 19 13:11:36 b0ot: database integration is almost always a bad idea, you're better off wrapping your db in a REST api. Jun 19 13:12:17 I know Titanium allows for platform-specific modules so you could write your own barcode scanning logic... but that sounds rather iffy to me. Jun 19 13:12:41 I guess there are libraries that can do analysis of 1d and 2d barcodes, third party Jun 19 13:13:25 ZXing for Android, but you're probably going to have to hook that up to your multi-platform framework manually. Jun 19 13:13:26 the 1d case is not evern very difficult I guess Jun 19 13:13:51 Something like phonegap sounds out of the question (phonegap pretty much wraps a webview). Jun 19 13:14:46 EuroTrash: i think both are the reasons :P Jun 19 13:15:03 1d analysis would key on asking user to position the barcode in reading area, after which you do normalization to get good resolution for black/white bars, then width analysis that allows you to do a little bit of perspective normalization, then you can sample it and establish reliable bit pattern I should think Jun 19 13:15:17 Who cares, use a library :D Jun 19 13:15:21 after that it's just a matter of matching the known codings against the bit pattern Jun 19 13:15:54 EuroTrash, why is database integration a bad idea Jun 19 13:19:22 b0ot: apart from bad support for most databases on mobile platforms, it's a pretty bad idea to let an app that's in the wild deal with database logic on that level... how are you going to encrypt data? How are you going to safely store passwords? How are you going to prevent users from messing up and adjusting your logic on a low level if your database is exposed to the outside world? Jun 19 13:19:46 Hey guys, I have a splash screen intent which does background tasks and then redirects to the "home" intent. How do I make it so that when someone presses the back button on the home intent it doesn't do anything? Or just re-opens the "home" intent? At the moment it just re-loads the splash screen intent Jun 19 13:20:19 all good questions EuroTrash which I currently don't know the answer to. I'm really in a beginning research phase Jun 19 13:20:50 Timmaah1201: call finish() in onPause() or some other lifecycle method, I guess. Jun 19 13:20:59 (in the splashscreen) Jun 19 13:22:07 I'm trying to see what options would allow me to have to do the least amount of recoding Jun 19 13:22:38 cool, thanks EuroTrash Jun 19 13:24:04 b0ot: can't say I have a lot of experience using the multiplatform approach... but every time I've considered, my app had a few showstoppers preventing their use. Jun 19 13:28:51 Ugh. It's so stupid how much $$ you end up sending to Cupertino by the time you write an iOS app. Jun 19 13:35:24 if you make somethign public static in one activity then refer to it from other activities, it can become null when the activity is cleaned up yeh? Jun 19 13:35:44 gaz`: no Jun 19 13:35:57 static elements are class allocated, not instance allocated Jun 19 13:36:02 no? if its public static it stays are around? Jun 19 13:36:12 they get allocated and initialized by class loader Jun 19 13:36:26 what does that mean then Jun 19 13:36:45 gaz`: they are part of the "class" object, not "instance of the class" Jun 19 13:36:54 so they stay there Jun 19 13:36:57 dont get cleared Jun 19 13:37:03 ? Jun 19 13:37:28 yes. They are initialized when the class is loaded into VM (that's part of all *static* elements) Jun 19 13:37:58 ok Jun 19 13:38:01 so one last question Jun 19 13:38:09 they *stay* in memory the hwole time app is used? Jun 19 13:38:16 they dont randomly become null?> Jun 19 13:38:25 *whole Jun 19 13:38:34 Are you trying to save loaded data in a static variable? Jun 19 13:38:55 sometimes i have an object that is static that i need yes Jun 19 13:38:58 from an old activity Jun 19 13:39:01 gaz`: the whole time the class is loaded. In case of android, unless you meddle with custom loading, they'll stay as long as the *application* is not killed Jun 19 13:39:02 Okay Jun 19 13:39:14 If your process is reclaimed, it will be null when your app returns Jun 19 13:39:14 ok thanks p_l Jun 19 13:39:22 ah Jun 19 13:39:24 so it can happen Jun 19 13:39:24 gaz`: however, Android is free to *kill* your app any time it wants Jun 19 13:39:29 Not classified as randomly becoming null Jun 19 13:39:56 so whats the best way u have to store these things tosomewhere and gerba them back? Jun 19 13:40:12 gerba=grab Jun 19 13:40:14 sorry just woke up Jun 19 13:40:19 sharedprefs, instancestate, database, file, take your pick Jun 19 13:40:25 ok cheers Jun 19 13:40:28 shame Jun 19 13:48:19 JakeWharton: thanks man, my list is working perfectly now Jun 19 13:49:09 Can you tell me an easy way to implement ActionBar on devices with version <4.0? Jun 19 13:49:11 I want to have a button, that when pressed gives you a series of options, what's the best way of doing this? Needs to look clean to the user Jun 19 13:50:23 Timmaah1201: What kinds of options? Jun 19 13:50:43 so i currently have a spinner populated by a string array Jun 19 13:50:48 then depending on what they select, it opens a new intent Jun 19 13:51:01 i currently have this in the action bar, but it doesnt look clean Jun 19 13:51:30 and isnt intuitive, so trying to make it cleaner Jun 19 13:52:10 Timmaah1201: Perhaps you can post a screenshot/mockup? Jun 19 13:54:20 markus__: http://actionbarsherlock.com/ Jun 19 13:55:41 EuroTrash: I'm also looking for pre 4.0 ActionBar integration. That looks great. Thanks. Jun 19 13:56:53 rking, easy way to make a screenshot from the device? Jun 19 13:57:07 anyone implemented google analytics, do u put in one activity or all? Jun 19 13:58:20 gaz`: hm I made a rather complex implementation in a binding service, so any time the app becomes visible it registers a session and any time the app becomes invisible it unregisters a session. Jun 19 13:58:45 But I don't know of a simple way to prevent multiple sessions from getting registered otherwise. Jun 19 13:58:53 Timmaah1201: I don't know of any that don't require rooting, but if you do have root there are several. Jun 19 13:59:08 Timmaah1201: But you can use an Emulator then do an OS screenshot. Jun 19 13:59:15 since im under immense time constraints i might just put it in the splash Jun 19 13:59:23 found it! hold volume down and power.. ill get that screenshot up in a second Jun 19 13:59:26 the live event i did the app for ahs started liek 2 hrs ago Jun 19 13:59:29 gaz`: that might work, heh Jun 19 13:59:38 hehe Jun 19 13:59:51 Timmaah1201: Hehe, cool. Jun 19 14:00:37 theres tons of mad calls it needs Jun 19 14:00:41 argh Jun 19 14:01:10 I hope the event lasts for a few days or better, weeks / months :) Jun 19 14:01:42 only works in ics Jun 19 14:01:45 so rking: http://imgur.com/tHV1A Jun 19 14:02:11 spinner is in action bar at the moment, i need it so when you press browse categories, it shows 5 options that are in spinner Jun 19 14:02:25 this is so i no longer need to have the spinner in the actionbar, making it more tidy Jun 19 14:03:55 Timmaah1201: So you're trying to find a place for that "Faculty" button? Jun 19 14:04:11 i'm trying to move it into the browse categories button Jun 19 14:04:15 so when they click browse categories Jun 19 14:04:23 a spinner appears from the browse categories button Jun 19 14:04:43 i say spinner.. but a list of items if it makes a difference Jun 19 14:05:33 EuroTrash u have to add thousands of calls for tracking pageviews? and events? Jun 19 14:06:07 Timmaah1201: What are, "Arts", "Business and Law," etc.? Are they not "categories"? Jun 19 14:06:15 If you want to add thousands of pageviews and events, yeah, pretty much. Jun 19 14:06:17 so that screen is showing different faculties Jun 19 14:06:23 that sucks Jun 19 14:06:29 and the user can search trhough faculties, schools, modules like a university Jun 19 14:06:35 the listview shows the relevant items within that level Jun 19 14:06:52 browse levels might be a better phrase for it Jun 19 14:07:04 would it perhaps be easier to just change the style of the spinner to look like a button? if thats possible Jun 19 14:07:41 Timmaah1201: Hrm. Maybe someone else can answer that. I'm an Android n00b for sure. =\ Jun 19 14:07:55 thanks anyhow :) Jun 19 14:08:03 Excuse my ignorance, but in SurfaceFlinger, I notice that "Layer" objects are composited based on their z and "sequence." My question is going to be a little long-winded Jun 19 14:08:16 How does the Layer tie in to canvas/bitmap etc. and what is "sequence"? Jun 19 14:08:23 If I'm working with skia directly, how can I specify z values Jun 19 14:08:53 sequence seems to be a sort of incremental UID for the layers Jun 19 14:09:02 not sure if I'm right about that though Jun 19 14:10:36 let me simplify my question so I'm not an asshole Jun 19 14:10:39 how are z values assigned to layers Jun 19 14:31:20 Hi All. Jun 19 14:32:46 I have a gesture detector for an activity and I want to add an image view but let the touch events go though. Any ideas on how to do that? I tried isclickable=false but that did not work. Jun 19 14:33:13 *go through Jun 19 14:35:05 Anyone with touch events experience? Jun 19 14:36:04 Hi bubbleguuum. Jun 19 14:37:51 Situation : I have a layout with 4 buttons that fill the entire screen, (match parent width, equal gravity height). What I want : When the view is used by activity a show all 4 buttons, when the view is used by activity b, show only 3 buttons with equal heights filling the entire screen Jun 19 14:39:00 Myr: setVisibility(View.GONE) for the button you don't want to show Jun 19 14:39:38 spiffy Jun 19 14:39:56 Didn't see that option, thanks :) Jun 19 14:40:11 Myr: You're welcome. Jun 19 14:40:31 Day 1: 4 installs Day 2: 8 installs Jun 19 14:40:47 EuroTrash, can you give me a couple examples of "show stoppers" Jun 19 14:42:50 Is it safe to use url.openConnection(java.net.Proxy.NO_PROXY) for obtaining a HttpURLConnection? Some of my users can't use the app under 3G, but it works fine with WiFi. When they remove their APN proxy settings, it seems to work just fine. Is forcing no apn proxy going to cause any problems for the users that don't experience any problems right now? Jun 19 14:44:46 Surfaceflinger compositing uses layer Z values, my googling has led me to WindowManager as the potential z-value determining mechanism but I'm having trouble finding the relevant areas in the source Jun 19 14:45:00 CAn someone confirm/deny that WindowManager is what determines layering for objects Jun 19 14:45:24 I think I'm looking at a z-fighting issue related to my use of native skia rendering Jun 19 14:45:40 mobilegamelabs: any sales? Jun 19 14:58:05 if i make a change on UI, new text, title text change etc and imediatly after this command i make a longer process function, than the value on the screen would not updated? Jun 19 14:58:51 well, i assume you are doing your longer process in a thread and not blocking the ui Jun 19 14:58:59 so the ui should update Jun 19 15:11:28 google analyttics is barmy Jun 19 15:11:38 do they really expect us to put calsl into every button click or state change Jun 19 15:11:57 and u what u make a new instance in every activity? Jun 19 15:11:59 makes no sense Jun 19 15:12:14 or u pass the tracker from one activity to another? they said it was simple Jun 19 15:13:10 gaz`: have to implement it still on android Jun 19 15:13:14 on iOS it's a singleton Jun 19 15:13:21 total joke Jun 19 15:14:00 it's a singleton as well on android... Jun 19 15:14:06 its not Jun 19 15:14:24 GoogleAnalyticsTracker tracker; Jun 19 15:14:34 have to pass that instance around i suppose Jun 19 15:14:35 tracker = GoogleAnalyticsTracker.getInstance() Jun 19 15:14:36 gaz`: uh Jun 19 15:14:37 which is way too much effort right now Jun 19 15:14:39 no, you don't Jun 19 15:14:46 oh Jun 19 15:14:49 gaz`: do you expect GA to just magically know what actions you think are important? Jun 19 15:14:55 yes Jun 19 15:14:56 ! Jun 19 15:14:59 that's cute Jun 19 15:15:12 just tell me when ur in a new activity for free thanks Jun 19 15:15:23 ah yes MDijkstra that maskes it easier Jun 19 15:15:38 I mean, you can nearly copy paste GoogleAnalyticsTracker.getInstance().trackEvent(...,...,...); Jun 19 15:15:43 still havr to go delcaring it in every activity Jun 19 15:15:51 that's hardly any effort Jun 19 15:15:58 it is under this pressure Jun 19 15:16:04 the lvie event is under way as we speak Jun 19 15:16:10 and theyre tellign me they need google analytics Jun 19 15:16:12 gaz`: use a base class Jun 19 15:16:16 *live event Jun 19 15:16:24 gaz`: do you know if the queen is using the app? Jun 19 15:16:24 I know I"m repeating myself here, but I'm really having trouble where Z-ordering is decided, everything I"ve seen so far says that "the layout orders children based on add order" but I can't find the relevant code Jun 19 15:16:31 you could do that, or just c/p it into 15 activities Jun 19 15:16:47 Leeds lol not yet Jun 19 15:16:53 yes ill do that Jun 19 15:16:55 InanTop: the first one added is on the "bottom" (it's drawn first) Jun 19 15:17:02 just into the oncreate or onresyme u think MDijkstra? Jun 19 15:17:07 InanTop: if you want to change that, there's a setChildDrawingOrder or something that you can override Jun 19 15:17:12 that's what you need analytics for... Jun 19 15:17:22 for what Jun 19 15:17:38 onCreate, onDestroy for the startNewSession, stopSession respectively Jun 19 15:17:47 evancharlton: I'm actually way deeper in the rabbit hole, I've inherited a bug related to our use of Skia for rendering our custom widgets, I need to know how and where the z order is determined specifically (i.e. in the code) so that I can tick "z-fighting" off as a potential problem Jun 19 15:18:00 guys i m trying to draw a regular polygon(basically a square) with the help of path function but m not able to draw it..!! Jun 19 15:18:01 onResume for the trackEvent Jun 19 15:18:01 evancharlton: should I be looking in the Layout class, View class... dependency graph? I'm so lost Jun 19 15:18:25 i also hace a snapshot of my code can somebody tell me what's the problem with my code and Jun 19 15:18:36 I've got a default button, and a spinner which has the background and theme of the default button. For some reason, when its unexpanded its color is different to the other one, like its always being pressed.. any ideas? Jun 19 15:18:38 also how can i share that snapshot with him/her...!!! Jun 19 15:19:14 linuxdroid: pastebin.com Jun 19 15:19:24 okay wait..!! Jun 19 15:20:48 and u have to pas sin code on every startnewsession in ever oncreate? Jun 19 15:20:49 jesus wept Jun 19 15:21:06 InanTop: View most likely. Jun 19 15:21:45 evancharlton: thanks, that's where the internet trail seems to be leading for me too, I'll read the source there. thanks for your help, excuse my android ignorance Jun 19 15:21:56 InanTop: that's why we're here :) Jun 19 15:23:24 http://pastebin.com/Q2XC5ZTL Jun 19 15:23:32 this is the link of my code... Jun 19 15:23:37 guys for a first person game would you recommend transforming the view matrix or the model matrix? Jun 19 15:23:48 can some one tell me what's wrong with my code..!! Jun 19 15:24:23 i also have an image(snapshot) of what's the view, if someone can tell me how to share that i'll share it..!! Jun 19 15:24:59 bakis: now this I know about... in opengl the model and view matrices are generally the same. If you're targeting fixed-function pipeline you'll need to transform the modelview matrix Jun 19 15:25:26 bakis: if you're targeting the modern stuff, you can differentiate your model and view matrices, the model matrix holds transforms for the specific objects (rotation, scale, translate) etc, and the view matrix is generally your lookAt Jun 19 15:25:45 bakis: for the camera operations, use the view matrix, for placing objects, use the model matrix, for projecting to the screen, use the projection matrix Jun 19 15:26:16 okay. yeah i'm using es 2.0, and i wanna move my character around and look up and down and spin around and move. shoudl i use the view matrix for all of those? or should i use the model matrix? Jun 19 15:26:57 bakis: you'll want to use the view matrix for that, since the camera and the player are essentially the same thing Jun 19 15:27:33 alright. yeah that's what i'm trying to do, except when i move it then the axis of rotation gets all weird and things rotate strangely. Jun 19 15:27:49 bakis: are you running into gimbal lock? or something else? Jun 19 15:27:58 if it's gimbal lock look into quaternions for rotation Jun 19 15:28:22 you might have more luck in the opengl channel Jun 19 15:28:22 no not gimbal lock Jun 19 15:29:00 its just i'm rotating along the z and y axes but when i move away from them now the rotation is all messed up Jun 19 15:29:10 someone found any flaw guys... Jun 19 15:29:30 bakis: probably related to your matrix multiplication and ordering, it's view*model*projection Jun 19 15:29:32 i want it to constantly rotate around the camear, so in onDrawFrame i translate the camera to 000, rotate, then translate back Jun 19 15:30:16 bakis: what I would do is store information about the camera (position, target, up) and regenerate the lookAt matrix each time Jun 19 15:30:26 that way you dont have to translate to the origin or anything fancy Jun 19 15:30:35 and can work in world coordinates Jun 19 15:30:54 Leeds, did u got it man.? Jun 19 15:31:11 but in the "lookAt" It redefines the position of the view matrix so that could cause problems.. Jun 19 15:31:30 I generally reserve the view matrix purely for camera transforms Jun 19 15:31:33 what else do you use it for Jun 19 15:31:46 overwriting it is appropriate if the old info is just he previous camera loca Jun 19 15:31:48 location* Jun 19 15:32:12 i mean i have a method that updates the lookAt at the end of each onDrawFrame which is constant Jun 19 15:33:25 you could apply a rotation matrix to your modelview matrix to get the effect of rotation around the camera Jun 19 15:33:30 (I think) Jun 19 15:33:38 modelview*rotation then projection Jun 19 15:34:00 you're not limited to those 3 matrices Jun 19 15:34:03 yeah i've tried that.. but i have the same problems some times Jun 19 15:34:19 sorry my opengl is a little rusty, I'd try ##OpenGL Jun 19 15:34:26 this android is full without logic... how can a command have no effect because an another command after is called and block the UI? Jun 19 15:35:19 did someone looked the code guys at-least reply wait so that i'll at-least wait.? Jun 19 15:35:31 http://pastebin.com/Q2XC5ZTL Jun 19 15:35:35 this is the link Jun 19 15:35:56 i m not able to draw a regular square using the path function.! Jun 19 15:39:52 * linuxdroid is waiting for someone to reply :/ Jun 19 15:40:19 well Jun 19 15:40:22 can you draw anything? Jun 19 15:40:43 yuizy, ya..!! Jun 19 15:40:58 can you draw a path? Jun 19 15:40:59 i have a snapshot but i don't know how to share that? Jun 19 15:41:14 ya something is drawn but not that i wanted. Jun 19 15:41:26 you can upload the image to imgur.com or similar and post a link Jun 19 15:41:27 pastebin for code Jun 19 15:41:40 okay wait. Jun 19 15:41:57 I don't know anything about your problem though, I'm also an android noob Jun 19 15:42:30 http://imgur.com/tic6z Jun 19 15:42:39 okay this is the link Jun 19 15:42:41 eh Jun 19 15:42:45 we saw the code already Jun 19 15:42:46 but Jun 19 15:42:50 can you draw a simple path? Jun 19 15:42:51 this is what i m getting Jun 19 15:43:01 oh ok Jun 19 15:43:09 ya i am able to draw a simple path also Jun 19 15:43:48 every single programming language in the world uses radians, not degrees Jun 19 15:44:05 oops.. Jun 19 15:44:08 opengl uses degrees in the fixed-pipeline Jun 19 15:44:09 that might be your problem Jun 19 15:44:10 just sayin' Jun 19 15:44:13 ! Jun 19 15:44:16 did not know that Jun 19 15:44:23 so how i m to convert it to degree Jun 19 15:44:25 it's deprecated now anyway Jun 19 15:44:32 degrees *= PI/180 Jun 19 15:44:33 using formulae or any other method is there. Jun 19 15:44:35 linuxdroid: that's basic maths Jun 19 15:44:42 nothing to do with android :/ Jun 19 15:44:48 radians *= 180/PI to go back to degrees Jun 19 15:45:14 PI/180 is a unit conversation, they're equivalent values (PI radians = 180 degrees) so multiplying it by that acts as a conversion from degrees to radians Jun 19 15:45:16 no i mean is there any inbuilt function for degrees Jun 19 15:45:31 cause that much of maths i know guys, common Jun 19 15:45:42 there's no minimum education level for development :P Jun 19 15:45:44 just making sure Jun 19 15:45:57 InanTop, :p Jun 19 15:46:23 so no function fr directly using the degree value? Jun 19 15:47:10 you could write a macro that calls the function but premultiplies your degrees by the conversion factor Jun 19 15:47:14 wait no you couldn't this is java Jun 19 15:48:04 oh no.. Jun 19 15:48:16 by the way thanks guys,.. Jun 19 15:48:18 for that Jun 19 15:48:25 sometimes u just need a push Jun 19 15:48:26 :D Jun 19 15:48:34 yuizy did all the work Jun 19 15:48:37 I'm just eye candy Jun 19 15:48:38 * linuxdroid changing the code, brb Jun 19 15:48:39 but you're welcome Jun 19 15:50:15 having some issues with the remotecontrolclient on ICS. when i edit the metadata to put a new bitmap in there, etc, the lockscreen display goes away only to return once i turn the screen off and on again. any thoughts on how to make it simply update the metadata and display ? Jun 19 15:51:14 im making a Widget.ProgressBar.Inverse, and i want to force its value to start for example on 50% is that possible ifso how? Jun 19 15:51:30 setProgress(50) Jun 19 15:51:35 setProgress(50) does not work Jun 19 15:51:39 i starts at 0 Jun 19 15:51:59 indeterminate is forced to false Jun 19 15:52:16 what? Jun 19 15:52:21 yep Jun 19 15:52:25 setProgress(50) will set the progress to 50% Jun 19 15:52:40 well, the progressbar is a rotating wheel Jun 19 15:52:54 forcing it to 50 did not change anything Jun 19 15:53:02 figured out my problem if anyone cares. if i give up audiofocus then the remote display goes away Jun 19 15:53:08 it seems like it starts at 0 and spins arround Jun 19 15:54:11 I'm not a java programmer by nature, I'm looking at ViewParent.java but it only contains function stubs Jun 19 15:54:18 where would I be able to track down the bodies Jun 19 15:55:31 is it possible to make the progressbar not spinning? Jun 19 15:56:16 ogelami: use a horizontal one Jun 19 15:56:23 oh wait Jun 19 15:56:27 I don't think a determinate circular progress bar is supported Jun 19 15:56:29 is ViewParent an abstract class? Jun 19 15:56:38 should I be looking at individual views for these implemntations? Jun 19 15:56:41 InanTop: does it say public abstract class at the top? Jun 19 15:56:44 well thats not what we need, it doesnt fit Jun 19 15:56:54 InanTop: the drawing code almost certainly happens in View.java Jun 19 15:57:01 evancharlton: no but it does say public interface.... derp Jun 19 15:57:29 my internal seething hatred for java sometimes blinds me to obvious mistakes Jun 19 15:58:16 evancharlton my problem is that i have a few rows that run as a thread and collect data from a server, on each line i have a progressbar and i want them to spin synchroniously Jun 19 15:59:05 hmm my dev console shows: java.lang.VerifyError Jun 19 15:59:15 on Handler handler = new Handler(); Jun 19 15:59:16 whysthat Jun 19 15:59:17 ? Jun 19 15:59:26 did you import the wrong one? Jun 19 15:59:39 dont thinkso Jun 19 15:59:43 check your imports Jun 19 15:59:44 works on every test device ive tried Jun 19 15:59:57 import android.os.Handler; Jun 19 16:00:06 paste your actual error Jun 19 16:00:42 http://pastebin.com/kLT47tw3 Jun 19 16:01:21 http://pastebin.com/a5EthxfQ Jun 19 16:01:22 thats it Jun 19 16:01:25 sorry last one was wrong Jun 19 16:01:48 any idea on how can i take touch input from the and draw on the screen, InanTop yuizy Jun 19 16:02:02 linuxdroid: none at all, sorry Jun 19 16:02:03 345 is Runnable r=new Runnable() { Jun 19 16:02:10 linuxdroid: you should probably find a tutorial Jun 19 16:02:56 i got one but the problem is when i add buttons to it or something else the drawing area shrinks in respect to the original size.. Jun 19 16:03:08 so kinda struck with that.. Jun 19 16:03:22 come again? Jun 19 16:03:23 still if u find one let me knoe Jun 19 16:03:28 i m also trying. Jun 19 16:03:35 we're not going to do the work for you :| Jun 19 16:03:44 xorgate, did u said something to me ? Jun 19 16:03:46 there's lots of them Jun 19 16:04:12 okay yuizy don't get angry man.. :) Jun 19 16:04:20 i did Jun 19 16:04:58 evancharlton see any issue? Jun 19 16:06:20 can anyone help me with updating textview on appwidget? Jun 19 16:07:06 xorgate, i m trying to make a simple drawing app(basic step) to draw lines taking touch input from the user.. Jun 19 16:07:29 and i m doing this on an imageview in xml file Jun 19 16:07:43 and then creating a bitmap and canvas over it Jun 19 16:07:50 and then drawing lines Jun 19 16:08:27 but the size of the bitmap is not covering my entire screen of the emulator(or phone). Jun 19 16:08:45 so any idea or any suggestions xorgate ..? Jun 19 16:09:07 I really have a wierd problem with appwiget, it is not updating textview, but i checked logcat for verifying onUpdate method works, and it works Jun 19 16:09:18 sounds like you should change the layout xml Jun 19 16:10:07 xorgate, so what should i do? Jun 19 16:10:13 remove the buttons and all.? Jun 19 16:10:25 figure out how layouts work Jun 19 16:10:49 okay. Jun 19 16:11:06 * linuxdroid will kill himself today..!! Jun 19 16:11:08 uhhh Jun 19 16:12:02 looks like z-fighting isn't possible in views, array order seems to determine the z value and no two objects can have the same z... however I noticed in surfaceflinger that if two things DO have the same z value then something called "Sequence" is used to determine ordering Jun 19 16:12:24 sequence looks to be an incremental UID that's just intenrally set, but I wonder if anyone actually KNOWS what it is Jun 19 16:12:35 is z-fighting something that can happen in android Jun 19 16:12:41 (non-opengl) Jun 19 16:13:03 xorgate, can i do something like draw in some limited space only in a view.? Jun 19 16:13:14 and the rest space i use for buttons and all.? Jun 19 16:14:25 brb... Jun 19 16:14:49 hmm now i get an outofmemory issue Jun 19 16:14:51 randomly Jun 19 16:14:52 how weird Jun 19 16:14:52 linuxdroid you need to work on the phrasing of your questions Jun 19 16:15:06 if i reduce the size of pngs in kiliobytes will that lower memory usage or not? Jun 19 16:15:23 gaz`: probably, I'm sure bitmaps are cached into RAM Jun 19 16:15:23 gaz most likely the size in pixels is the problem Jun 19 16:15:39 yeh but are they cached in the bits that theyre save din Jun 19 16:15:44 no Jun 19 16:15:47 or all cached as 24 bit etc Jun 19 16:15:49 4 bytes per pixel most likely Jun 19 16:15:52 depending on the mode Jun 19 16:16:07 well this app uses weather images Jun 19 16:16:10 and theyre each 50k Jun 19 16:16:12 tons of them Jun 19 16:16:22 you'll need to load/unload them yourself Jun 19 16:16:23 so downsample them Jun 19 16:16:24 in a smart way Jun 19 16:16:45 evancharlton downsample them? u mean save in lower colours in photoshop or you mean in code? Jun 19 16:16:52 downsample = fewer pixels Jun 19 16:16:59 instead of loading 1000x1000px load one of 100x100 Jun 19 16:17:00 gaz`: I mean in code Jun 19 16:17:13 ah well the xml layout thingy loads them Jun 19 16:17:17 so not much ican do? Jun 19 16:17:24 you can scale the bitmaps once they're loaded Jun 19 16:17:36 however this is not good practice Jun 19 16:17:45 since your assets would be a lot bigger than your actual usage of them Jun 19 16:17:53 so why not make them smaller in photoshop or gimp or what have you Jun 19 16:17:58 yeh Jun 19 16:18:04 that way it's not just a linear downsample, you can tweak them to look good at a lower res Jun 19 16:18:07 so smaller will obviously help, what about lower colours? Jun 19 16:18:14 like if theyre 24 bit i can prob get em to 8 bit Jun 19 16:18:20 as long as android knows to load them in as 8-bit Jun 19 16:18:25 if they're loaded as 32-bit then it won't help Jun 19 16:18:28 not sure how that's determined Jun 19 16:18:29 altho they have transparency so the edges will prob mess up Jun 19 16:18:41 8-bit color doesnt support alpha Jun 19 16:18:47 well it does Jun 19 16:18:53 just not semi transparency right Jun 19 16:19:04 as far as I know 8-bit color = 2R 3G 3B Jun 19 16:19:11 maybe it's 2321 Jun 19 16:19:15 I dont think so though Jun 19 16:19:17 yeh but u can have transparency in an 8 bit image Jun 19 16:19:23 just not levels of it Jun 19 16:19:34 if you say so Jun 19 16:19:39 my experience is with 16-bit + Jun 19 16:19:43 yeh Jun 19 16:19:50 well animgifs can be trasnparent Jun 19 16:19:51 and pngs Jun 19 16:19:56 and animgifs are usually 8 bit Jun 19 16:20:09 so i guessi can reduce the size itself Jun 19 16:20:16 altho i never saw this issue before Jun 19 16:20:18 in this app Jun 19 16:20:33 if you want to know how much memory you're using, just do: number_of_images*bits_per_pixel*width*height Jun 19 16:20:39 if the number isn't that big, you have some other problem Jun 19 16:20:46 i bet it is Jun 19 16:21:07 254x254 x32 Jun 19 16:21:10 ouch theyre 32 bit Jun 19 16:22:01 24 bit is bigger, but then i have optipnged the original files Jun 19 16:22:10 you said "Weather images" Jun 19 16:22:14 you mean like cloud + sun cloud + rain etc Jun 19 16:22:16 ? Jun 19 16:22:17 yeh sun rain etc Jun 19 16:22:21 yes Jun 19 16:22:24 if you wanna be memory efficient Jun 19 16:22:29 you can just store blue sky + cloud + sun + rain Jun 19 16:22:30 and blit them Jun 19 16:22:31 based on the weather Jun 19 16:22:37 theres freakin 41 ofthem Jun 19 16:22:45 lol Jun 19 16:22:52 I didnt think there were that many types of weather Jun 19 16:23:03 hehehe Jun 19 16:23:20 I doubt you have to display all 41 at once Jun 19 16:23:22 you can load them in smartly Jun 19 16:23:28 based on what's actually required Jun 19 16:23:33 no need to cache all 41 Jun 19 16:23:44 yeh i do that Jun 19 16:23:54 laods 5 at a time Jun 19 16:23:54 I really have a wierd problem with appwiget, it is not updating textview, but i checked logcat for verifying onUpdate method works, and it works. So, is there anyone to help me with the issue Jun 19 16:23:57 for today and next 4 days Jun 19 16:24:01 i'm trying to call the Setup Wizard apk/activity via adb, but getting an error, can't figure out my mistake. Jun 19 16:24:06 adb -s 20080411 shell am start -a android.intent.action.MAIN -n com.android.setupwizard/com.android.setupwizard.SetupWizardTestActivity Jun 19 16:24:16 gaz`: 5 images shouldn't fill your memory, that's weird Jun 19 16:24:27 throws me an error: Error: Activity class {com.android.setupwizard/com.android.setupwizard.SetupWizardTestActivity} does not exist. Any idea? Jun 19 16:24:27 well yeh id been playing iwth the app Jun 19 16:24:43 mathiaslin: do you know that it does? Jun 19 16:24:50 i have to cache lots of downloaded images Jun 19 16:24:54 so they dont keep coming down Jun 19 16:25:10 (I meant SetypWizardActivity) Jun 19 16:25:16 mathiaslin:u need to define your activity in the manifest Jun 19 16:25:26 evancharlton: what do you mean? Jun 19 16:25:39 mathiaslin: I mean where did you get that component from? do you know it's right? Jun 19 16:26:12 evancharlton: I pulled the SetupWizard.apk and unzpped it, checked the Manifest. Should be the right one. Jun 19 16:26:55 Sylvonia: it's not my app, it's the standard Android one, the setup wizard that runs when you factory reset your device Jun 19 16:27:27 evancharlton: I alread googled about it, hardly anything to find, but the path I use is the one I found in Google,like in one search result that I found Jun 19 16:28:52 mathiaslin: adb shell dumpsys package com.android.setupwizard Jun 19 16:28:55 what does that tell you? Jun 19 16:29:14 mathiaslin: by the way, what you're trying to do sounds stupid :) Jun 19 16:30:05 <`z> http://i.imgur.com/qeRgq.gif Jun 19 16:30:09 evancharlton: no output when i run that Jun 19 16:30:31 evancharlton: why stupid? Jun 19 16:31:13 mathiaslin: that means com.android.setupwizard isn't the package you want Jun 19 16:31:42 mathiaslin: try adb shell dumpsys package | grep setupwizard Jun 19 16:32:06 evancharlton: sorry, used the wrong device Jun 19 16:32:41 evancharlton: com.android.setupwizard/.SetupWizardActivity is under android.intent.action.MAIN Jun 19 16:33:23 mathiaslin: what about under "disabledComponents"? Jun 19 16:33:44 evancharlton: yep, there it is as well Jun 19 16:34:03 well there's your answer Jun 19 16:34:08 thanks, didn't know dumpsys package, very helpful Jun 19 16:34:09 and there's your answer to why this is stupid :) Jun 19 16:34:24 :) Jun 19 16:35:04 setup wizard (correctly) disables itself upon completion so it can't be run again Jun 19 16:36:22 right, which makes sense; but makes it harder for me to test a certain use-case (testing planned platform bundled app) prior to being bundled. Jun 19 16:36:41 anyway, thanks for the hint Jun 19 16:36:57 mathiaslin: no problem; good luck Jun 19 16:37:11 mathiaslin: if you have a userdebug/eng build, you can just re-enable the component, of course Jun 19 16:37:25 adb shell pm enable com.android.setupwizard/.SetupWizardActivity Jun 19 16:37:32 but uh, thar be dragons I bet Jun 19 16:39:32 don't have Jun 19 16:40:13 new yagi hasnt arrived yet, this makes me sad :( Jun 19 16:40:24 I don't understand the purpose of LayerBase::sequence Jun 19 16:40:37 it gets incremented every time something changes (position, size, whatever) Jun 19 16:40:55 and is used to differentiate elements with the same z-value as if it's guaranteed to be unique Jun 19 16:41:06 if two layers have the same Z and undergo the same number of transformations, they'll have the same sequence too Jun 19 16:41:07 wtf Jun 19 16:41:16 <`z> FOIJSAOFI Jun 19 16:41:17 <`z> AWTFFFFF Jun 19 16:41:19 <`z> D: Jun 19 16:41:25 haha Jun 19 16:41:32 anyone use straight talk? Jun 19 16:42:24 the website looks minimalist, which is actually marvelous Jun 19 16:42:31 we should have that here Jun 19 16:45:39 how can I make a service die to see how an app would behave if android killed it? Jun 19 16:46:21 i tried doing it from settings but either that killed the app too or my app died because the service died...the latter is probably undesirable Jun 19 16:46:53 can't you do it via the shell Jun 19 16:46:57 adb shell Jun 19 16:47:06 i didn't see the service in ps Jun 19 16:48:24 DigitalKiwi: you have to kill your process Jun 19 16:48:33 just kill -9 it Jun 19 16:49:37 eck operation not permitted...need rooted phone? Jun 19 16:51:58 what does: sequence(uint32_t(android_atomic_inc(&sSequence))) do? Jun 19 16:52:02 namely the atomic_inc part Jun 19 16:57:08 nobody knows what "android_atomic_inc()" does? Jun 19 16:57:18 I'm not even sure where to look for its definition Jun 19 16:57:53 http://www.netmite.com/android/mydroid/system/core/libcutils/atomic.c Jun 19 16:57:56 definition Jun 19 16:58:03 way to embarass me Jun 19 16:58:06 thanks though Jun 19 16:58:25 not very useful Jun 19 16:58:33 it's an increment Jun 19 16:58:36 that's all I needed to know Jun 19 16:58:43 i could have told you that :P Jun 19 16:58:45 seems like there's a huge logical hole in LayerBase Jun 19 16:58:56 sSequence is incremented in the constructor to ensure a UID Jun 19 16:59:07 but sequence is set to sSequence, and then used for differentiating layers Jun 19 16:59:16 it also gets incremented every time there's a transform operation Jun 19 16:59:24 so you can have the same sequence in two layers Jun 19 16:59:30 what's the point of the UID then Jun 19 17:03:21 hey guys I'm messing around with services, so I have a class that extends service but whener I put in public void onStartCommand() with @Override, eclipse gives me and error stating that the method must override or implement a supertype method Jun 19 17:03:57 that returns a value Jun 19 17:05:40 is it possible to render camera preview offscreen (as with a SurfaceTexture) in 2.3? Jun 19 17:05:46 wongk, nvm i was reading older documentation Jun 19 17:06:12 onStart() and I didn't realize onStartCommand() was used in a different way Jun 19 17:07:03 Hey guys, I really have a wierd problem with appwiget, it is not updating textview, but i checked logcat for verifying onUpdate method works, and it works. I'm really stuck in here. Jun 19 17:24:02 anyone ever coded app where they can find each other in 3g or something without a central server? Jun 19 17:25:40 in eclipse, if i press up, it replaced the line of code above the cursors.. i think its some mode but i have no idea what it is... anyone know? Jun 19 17:25:57 XXCoder: i don't think that makes sense. maybe you want NFC? Jun 19 17:26:13 can you expand that? Jun 19 17:26:14 but i'm pretty sure you have no control over the cell network Jun 19 17:26:41 NFC is the new near-field communication (proximity network) stuff Jun 19 17:26:46 control isnt what I want. Im looking for method that apps can find each other in network. ie 2 phones running this app find each other Jun 19 17:27:03 I'm trying to have my app start a service but I don't have any success in having the service start up. I have a Log.d message that shows my button is calling "startService(new Intent(this, MyClass.class));", and MyClass extends service, and has onStartCommand overridden. My Log.d message inside onStartCommand is never called! What the hell have I done!? Jun 19 17:27:14 XXCoder: my guess is you would have to talk to the network provider for that kind of thing Jun 19 17:27:25 nm Jun 19 17:27:35 yeah from what i read so far, getting ip address for 3g is very hard Jun 19 17:27:40 that said if it was a good enough concept to promote their network they might work with you, but nfc Jun 19 17:28:09 then thats point im stuck, how to communcate without knowing other's ip address. Jun 19 17:28:34 telepathy Jun 19 17:28:39 trade IPs via bluetooth? Jun 19 17:28:39 lol Jun 19 17:28:40 is that a thing Jun 19 17:28:59 those require near range, InanTop. I need anywhere. Jun 19 17:29:09 XXCoder: my guess is you're approaching the problem wrong Jun 19 17:29:47 like, c2dm or something Jun 19 17:29:53 XXCoder: maybe you could flood the subnet you're on with a specialized handshake packet taht your app also listens for...??? Jun 19 17:29:59 horrible practice though Jun 19 17:30:06 these ideas are all tied for the worst ideas possible Jun 19 17:30:10 you shouldn't need to know another device's IP, because there's no guarantee you can even talk to it Jun 19 17:30:13 haha Jun 19 17:30:25 possibly. what I want is a way for two users to get network connection using phones with my app running in it. Jun 19 17:30:39 reading up on c2dm Jun 19 17:30:54 why no centralized server? Jun 19 17:31:04 InanTop: I dont have a way to setup one. Jun 19 17:31:06 c2dm requires a server Jun 19 17:31:14 I am wanting to store my fragments titles and static reference id in an multidimensional array. Should I use arrays or lists? Jun 19 17:31:38 XXCoder: ec2? Jun 19 17:31:45 or some other cloud provider Jun 19 17:32:33 not bad. not sure what funds that require. reading now Jun 19 17:33:05 for googling purposes what you're trying to do sounds like a mobile version of "ad-hoc" networks Jun 19 17:33:08 maybe someone else has solved this problem for you Jun 19 17:33:17 is it possible to render camera preview offscreen (as with a SurfaceTexture) in 2.3? Jun 19 17:33:25 InanTop: no it doesn't Jun 19 17:33:26 hmm yeah sometimes right words is like google magic. Jun 19 17:36:34 nope dont help. oh well :) Jun 19 17:36:43 I guess central server is required Jun 19 17:37:03 Im thinking other method is send SMS Jun 19 17:37:21 perhaps if you elaborate on what you're actually trying to accomplish Jun 19 17:37:36 instead of vague solutions Jun 19 17:37:58 unfortunately I cant say what Im trying to do overall Jun 19 17:38:16 what I am trying to start with is simply create connection between phones Jun 19 17:38:32 well then a problem that can't be defined can't be solved Jun 19 17:39:51 I don't think you need to know rest, since once connection is made, it can be used to pass any kind of information, like for network game. Jun 19 17:40:34 i.e., you're making a multiplayer game and either you or the person hiring you won't spring for a server, but magically wants anyone on the network to be able to play it anyway Jun 19 17:40:57 nah not multiplayer, just 2 person Jun 19 17:40:59 or a chat program, or whatever Jun 19 17:41:07 Would anyone know why (CheckBox) is required? it seems to be ensuring the class exists.. but how is that required? [code] CheckBox checkBox = (CheckBox) findViewById(R.id.chkAutosave); Jun 19 17:41:26 because findViewById returns some superclass of CheckBox Jun 19 17:41:42 xxcoder: maybe there's a wi fi direct api? Jun 19 17:41:48 you have to cast it to the appropriate level in order to use it as a CheckBox Jun 19 17:41:55 XXCoder: email. spring for ec2 hosting. or just release the server and let people run it themselves Jun 19 17:42:17 oGMo: thats decent idea. thanks Jun 19 17:42:19 releasing the server wouldn't help since you still need topass the server IP Jun 19 17:42:22 InanTop: How does the superclass of CheckBox relate? Jun 19 17:42:35 XXCoder: if you're charging for this, you should be able to afford the tiny hosting cost, assuming you're not using massive bandwidth .. if it's free, give away the server! people like that stuff :P Jun 19 17:42:35 jrockjiggz: findViewById returns a View Jun 19 17:42:45 in java, you need to cast it Jun 19 17:42:46 jrockjiggz: if I have a Person class that can be both Student and Teacher, and I have a function that returns a Person, I need to cast it as a Student or a Teacher to use it as such Jun 19 17:42:57 Persons dont know whether they're Students or Teachers Jun 19 17:43:04 Nothing special about how findViewById works Jun 19 17:43:05 but Students are Persons and so are Teachers Jun 19 17:43:31 yeah, InanTop. its like this, all cats is Mammals, but not all mammals is cats. Jun 19 17:43:39 ok, so is (CheckBox) boolean? Jun 19 17:43:49 O.o Jun 19 17:43:50 is that checking if(CheckBox == true) ? Jun 19 17:43:50 jrockjiggz: CheckBox is a cast Jun 19 17:43:53 It's a cast.. Jun 19 17:43:54 InanTop: you're doing it wrong Jun 19 17:44:14 jrockjiggz: Casting tells the program "treat this object like this object" Jun 19 17:44:19 specialize on Student or Teacher, boom Jun 19 17:44:23 ok, lol thats why Jun 19 17:44:28 or your interface should be common to Person Jun 19 17:44:30 can anyone help me with a Service issue? Relevant code + notes at bottom here: http://pastebin.com/C25RHRci Jun 19 17:44:39 oGMo: I'm not a Java developer, I'm just explaining what a cast is Jun 19 17:44:45 oh Jun 19 17:45:18 ninjai: Is your service registered in your manifest? Jun 19 17:45:30 jrockjiggz: if you're not very familiar with casting I'd recommend reading up on that before y ou continue, it's a big deal in JAva and OO programming in general Jun 19 17:45:31 Knossos, wouldn't I get an error about that? Jun 19 17:45:39 Can't remember Jun 19 17:45:49 Worth checking though. Jun 19 17:46:11 If you are answering with a "wouldn't I get an error" comment, then I can safely assume you haven't :P Jun 19 17:46:14 In which case, make sure you do that Jun 19 17:46:46 InanTop: I appreciate your help, i've been trying to wrap my head around casting for a while now and i kind of get it, I was curious about that syntax, your explination helped! thanks :) Jun 19 17:47:15 jrockjiggz: no problem, it's not very intuitive at first Jun 19 17:47:24 Knossos, I don't think it was, I added "" but same result Jun 19 17:47:33 ok Jun 19 17:48:08 btw, why is CheckBox inside ()? why not: CheckBox findViewById(...) Jun 19 17:48:19 just a matter of syntax Jun 19 17:48:31 ok Jun 19 17:48:34 because java needs the context Jun 19 17:49:02 I need a second brain to look over my reasoning: in LayerBase.cpp there exists a static member called sSequence which is incremented each itme a LayerBase object is constructed, this ensures a UID for each LayerBase.... in the consutrctor, the member variable sequence is set to sSequence, but then it is incremented each time something about the layer changes (i.e. setPosition or setAlpha) are called Jun 19 17:49:08 Knossos, is the "." before the class name required? I don't understand it's meaning. Jun 19 17:49:10 doesn't this introduce a situation in which two LayerBases can have the same sequence? Jun 19 17:49:49 SurfaceFlinger uses sequence to break a tie in the case of two layers having the same z-value Jun 19 17:49:51 InanTop: good luck finding help with that :P Jun 19 17:50:07 wongk: lol I know it's killing me, I've never done Android dev and I haven't touched JAva in years Jun 19 17:50:10 now it's my job to fix this bug Jun 19 17:50:15 I think z-fighting is the root cause Jun 19 17:50:20 and I think I just proved to myself that it's possible Jun 19 17:50:27 I'm hoping someone tells me I'm wrong Jun 19 17:50:51 I posted to the google group but this is a time-sensitive issue Jun 19 17:50:54 sigh Jun 19 17:51:47 InanTop: this java project uses multithreading? Jun 19 17:52:07 XXCoder: I'm not sure, what is your train of thought there? Jun 19 17:52:15 well race condition Jun 19 17:52:20 I inherited the bug fixes I havent actually worked on this project before Jun 19 17:52:27 I'm the new guy at the office so I get the bitch work lol Jun 19 17:52:53 one reads this static var, other reads it too, then other set incs it, then other incs, but from orginial value. Jun 19 17:52:53 I don't think the part of hte program I"m debugging would be multithreaded Jun 19 17:53:01 two now has 2 same value Jun 19 17:53:02 ah I see what you mean Jun 19 17:53:10 even in a single thread that can happen Jun 19 17:53:15 InanTop: since I'm lazy fuck, is that class called by something within Android GUI framework? Jun 19 17:53:33 LayerBase is used by Layer which is used by View which is used by SurfaceFlinger I believe Jun 19 17:53:34 so yes? Jun 19 17:53:36 I dont fucking know anymore Jun 19 17:53:38 gui uses its own thread p_l ? Jun 19 17:53:54 but my point is that even in a single thread you can have two sequences equal to one another Jun 19 17:53:58 If I'm declaring that class2.class is going to be a service, but class2.class is an INNER class to class1.class, in my manifest do I have to do: package.class1.class2? Jun 19 17:54:08 since the unique one is stored in a local member, and the local member can be incremented at run time Jun 19 17:54:17 so if I create A and then B, then do something to A Jun 19 17:54:18 they're both 2 Jun 19 17:54:21 am I right Jun 19 17:54:23 InanTop: make a method to increment it instead of public static, then add "synchronized" attribute to the method Jun 19 17:54:33 It's in the android core Jun 19 17:54:36 I can't touch it Jun 19 17:54:47 ninjai: do not make services or activities inner classes Jun 19 17:54:50 do you think I'm on to something with this reasoning though? Jun 19 17:55:06 I'll pass it up the chain and see if some of the original authorsof this project can help out Jun 19 17:55:20 ehhh Jun 19 17:55:21 ahh wongk thats what I had before lol yeah activity or service cant be inner class Jun 19 17:55:46 * p_l reads the backlog Jun 19 17:56:56 anyone know about the ActionEvent object..? Jun 19 17:57:09 i m having difficulty.? Jun 19 17:57:22 i am increasing a counter with the help of that Jun 19 17:57:22 wongk, but I need an activity class to start the service, which my service class is in. The service class needs access to the activity's data. How should I be implementing this? Jun 19 17:58:06 but i want it to work only when a selected part of the screen is touched(or interacted), Jun 19 17:58:17 move that inner class into its own file Jun 19 17:58:26 then fix it with any data access problems Jun 19 17:58:33 find another way to share the data Jun 19 17:58:43 * wongk meeting Jun 19 17:59:12 but what i m getting is that when ever i press a button then also the counter is increased,(P.S. i m increasing the counter in UP.TIME).? Jun 19 18:01:00 * linuxdroid asking someone there..?? Jun 19 18:02:28 someone know about ACTIONEVENT.? Jun 19 18:02:56 you're not being very specific Jun 19 18:03:15 and there's no such thing as ACTIONEVENT or UP.TIME as far as i know :| Jun 19 18:03:41 i m using an imageview and i am setting ut an OntouchListener to that imageView Jun 19 18:04:28 but when i click on any other button also the Counter(that i m incrementing in the OnTouchListener) gets incremented.!! Jun 19 18:04:37 you could also use ImageView.setOnClickListener() Jun 19 18:04:47 *MotionEvent Jun 19 18:05:02 and MotionEvent.Action_UP Jun 19 18:05:05 so why do you think that is happening? Jun 19 18:05:29 i have no idea about that. Jun 19 18:05:55 then it's quite hard to help you Jun 19 18:06:04 since you haven't given any code Jun 19 18:06:14 maybe because i m using canvas and a bitmap to draw in the imageview Jun 19 18:07:02 are these buttons in your imageview Jun 19 18:07:30 no they are outside. Jun 19 18:08:49 linuxdroid: my guess is you need to check all usages of that variable, as well as tracing what calls any function that uses that variable. Jun 19 18:08:57 bit of work but yeah Jun 19 18:09:26 First, work a bit on this: 1. code sample 2. clear explanation of what is happening 3. clear explanation of what you want to happen Jun 19 18:10:31 SimonVT, okay Jun 19 18:11:02 is there another channel I can go to for lower-level android stuff? Jun 19 18:11:06 related to my layerbase question Jun 19 18:11:20 I understand that this channel is mostly for people USING android not digging around in its innards Jun 19 18:11:27 i'd assume there's a mailing list Jun 19 18:11:41 I posted to the google group but it's awaiting approval Jun 19 18:11:53 IRC is good for quick responses (when you get responses at all) Jun 19 18:12:08 hi all, I'm trying to build aokp out of git to contribute a couple patches to their SystemUI... I understand the code I want to change, but I cannot get full-eng or full-userdebug to build because of "NO KERNEL CONFIG". Stop. any suggestions? I've been trying to get this build started for hours... Jun 19 18:12:44 germann: #android-root Jun 19 18:12:54 k, thanks Jun 19 18:13:47 afaik, in theory, #android is for thta kind of question... #cyanogenmod might have people who know the answers (and some people here as well) Jun 19 18:14:15 p_l: are you talking to me or germann ? Jun 19 18:14:51 germann in this case :) Jun 19 18:14:59 (and wongk, kind of) Jun 19 18:15:24 doesn't seem like a question for #android to me Jun 19 18:15:27 p_l: thanks... #android-root seems silent atm, I'll try #android... coudln't get an answer in #teamkang, but that prob makes sense... Jun 19 18:15:37 http://pastebin.com/6YmPHLgQ Jun 19 18:15:42 here's the link guys. Jun 19 18:16:31 now that counter gets incremented even if i click any of the buttons...!! Jun 19 18:16:40 and i don't want that to happen..!! Jun 19 18:16:44 germann: #android has all technical talk drowned out by general gossip, IIRC Jun 19 18:16:55 XXCoder, and SimonVT am i clear now guys? Jun 19 18:17:06 p_l: I'm not sure if that's a good thing >_> Jun 19 18:17:13 looking Jun 19 18:17:22 okay Jun 19 18:17:31 linuxdroid: I'm not an expert but it looks like those event handlers are registered to the main activity Jun 19 18:17:33 not to a particular view Jun 19 18:17:41 again though I"m a total noob Jun 19 18:17:46 so wait for another opinion Jun 19 18:17:47 noob? Jun 19 18:17:52 newbie Jun 19 18:17:57 me too man Jun 19 18:18:06 germann: I seem to recall that #android was supposed to be "platform" talk while #android-dev was to be "app dev." talk. I might be wrong, though Jun 19 18:18:08 i m also a noob in the sense. Jun 19 18:18:40 but the onTouvhlistener is bieng set onto only imageview Jun 19 18:18:52 InanTop, so it should work only for that right Jun 19 18:19:06 like an onclickListener does. Jun 19 18:19:32 linuxdroid: not sure how event handling works in android, I'm going based on my general knowledge Jun 19 18:19:53 in Qt if I recall correctly the determining factor for which object gets the call is which object overrides the function Jun 19 18:19:54 general knowledge of java.? Jun 19 18:20:01 I dont program in java lol Jun 19 18:20:05 linuxdroid: So your imageview fills the entire size of the activity? Jun 19 18:20:19 no, and that's the second problem. Jun 19 18:20:23 p_l: thanks again... not getting any love anywhere right now, I would assume anybody that has built aosp, cm or aokp would have dealt with this Jun 19 18:20:43 also its contracted. Jun 19 18:20:48 Is the imageview behind the buttons/in front of the buttons? Jun 19 18:20:52 i mean the imageview Jun 19 18:20:59 linuxdroid: i assume any press that leads to a click would also cause a touch Jun 19 18:21:02 hmm yeah Jun 19 18:21:04 imageview is below the buttons Jun 19 18:21:15 Well, there you go Jun 19 18:21:22 my lwp windyflowers adds new flowers even if icon is clicked Jun 19 18:21:38 SimonVT, what.? Jun 19 18:21:47 The event is being delivered to the imageview before the buttons Jun 19 18:21:51 So it's consuming it Jun 19 18:21:59 so yeah unless you somehow invalidite event it will go to imageview below button too Jun 19 18:22:07 wongk, but if you are setting listeners to different than that statement doesn't make sense. Jun 19 18:22:52 by below i mean, as separate below the buttons..!! Jun 19 18:23:23 linuxdroid: try outputting the value of the "this" pointer each time the counter is updated Jun 19 18:23:26 so set a breakpoint and look at the call stack Jun 19 18:23:31 see if the imagview event is triggered multiple times, or if the buttons are triggered Jun 19 18:23:44 the this pointer is always the samw Jun 19 18:24:02 ah right the listener is its own object Jun 19 18:24:02 wongk, i agree wiht u Jun 19 18:24:07 germann: well, the error message suggests to me that you need to build an android kernel first and provide the kernel config to it Jun 19 18:24:16 kernel got quite specific config file Jun 19 18:24:28 p_l: yeah, and if I was building for a specific device I think I know how to do that Jun 19 18:24:39 but I can't find any info on building for the emulator target Jun 19 18:24:42 or just do system.out.println("the button was pressed"); and other stating touch event happened in apporate places and see which (or both) was called on touch Jun 19 18:25:00 also i m able to draw only in a small part of the image-view..!? Jun 19 18:25:38 HOw ot check the call stack. i m a noob.? Jun 19 18:26:00 in eclipse, once you set a breakpoint you should see the call stack in the debug view Jun 19 18:26:01 germann: emulator, at least older ones, was compatible with original G1 Jun 19 18:26:07 if you're using gdb, the command is... frames? Jun 19 18:26:08 frame? Jun 19 18:26:29 okay in eclipse, i'll try Jun 19 18:26:35 but what i did was Jun 19 18:26:50 p_l: thanks... I think I'm missing some fundamental knowledge that nobody seems to be able to convey to me and doesn't exist in any step-by-step howto for building aosp Jun 19 18:27:04 because all the tuts I see are dead easy, but don't work Jun 19 18:27:11 i used a textview and updated its vaule at all the places when the counter was updated. Jun 19 18:27:20 germann: you can try building just the necessary components Jun 19 18:27:40 well if I'm editing systemui I kind of need most of the system under it Jun 19 18:27:56 so that way i was able to see that the counter is updated unnecessarily Jun 19 18:28:05 XXCoder, and also the screen man' Jun 19 18:28:32 i m getting only a small part of the imageview to draw the rest is like blank Jun 19 18:28:39 germann: well, build for G1, load the image into emulator Jun 19 18:28:48 there are some docs in emulator help about it Jun 19 18:28:57 you sure you set it to correct size imageview? Jun 19 18:29:27 thanks again p_l, I'll try that :) Jun 19 18:30:10 Is it spossible to make a restore point in eclipse? I want to test some new ideas, but need a possibility to restore my project like it is in the moment later... Jun 19 18:30:23 sukramTM: use some version control Jun 19 18:30:32 like git or something Jun 19 18:31:07 always use version control, unless you're just messing around Jun 19 18:31:31 XXCoder: I wouldn't recommend git for personal use, svn or cvs are good enough for that Jun 19 18:31:45 git's advantages come from working in teams Jun 19 18:31:47 XXCoder: I recommend git for personal use, it's awesome Jun 19 18:31:52 yeah InanTop I couldnt think of names till you said it lol Jun 19 18:32:11 I like svn personally, and mercurial for teams Jun 19 18:32:18 You mean this: http://git-scm.com/ Jun 19 18:32:24 git is unnecessarily complex for a personal project Jun 19 18:32:24 SimonVT, http://imgur.com/qzP2G this is my view for that code Jun 19 18:32:30 i would not recommend svn for anything Jun 19 18:32:30 proper names and terms is hard for me to remember Jun 19 18:32:37 i would recommend git for eveything Jun 19 18:32:41 lemme check what i use Jun 19 18:32:44 GIT ftw Jun 19 18:32:56 I didn't mean to blaspheme Jun 19 18:32:57 lol Jun 19 18:33:13 so i also set a textview check the value of the counter Jun 19 18:33:59 Can somebody please take a look at this and offer any possible support ! : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 19 18:34:07 BAHH I can't see what name of program in eclipse's Teamview menu Jun 19 18:34:47 @eclipse.org i found EGit Jun 19 18:35:07 sukramTM: from what I've heard git is best used via command-line Jun 19 18:35:11 egit is horrible Jun 19 18:35:13 SimonVT, u there? Jun 19 18:35:16 yeah Jun 19 18:35:28 What's your layout xml Jun 19 18:35:29 did u checked that out man Jun 19 18:35:35 i just post a link Jun 19 18:35:39 I hate command line, I am a windows user ;-) Jun 19 18:35:48 I can't see shit on that image Jun 19 18:35:48 i pretty much hate git, but force myself to use it because i'mnot smart enough to figure out multiple vc systems well enough to be useful, and it seems to have the most update. i don't want to know git ant hg and svn Jun 19 18:36:14 sukramTM: then I'm going to keep going against popular opinion here and recommend TortoiseSVN Jun 19 18:36:28 tortoise was awesome. Jun 19 18:36:35 dunno about know though :) Jun 19 18:36:53 git also has a good free gui thingy, hold on Jun 19 18:37:03 TortoiseHg is also really good for mercurial Jun 19 18:37:07 but TortoiseGit apparently sucks Jun 19 18:37:20 oh wait, SourceTree is only for mac. nm Jun 19 18:38:11 i find git bash to be the best interface Jun 19 18:38:11 can nobody help ^^ Jun 19 18:38:26 InanTop: Work Tortoise directly in eclipse? Jun 19 18:38:48 sukramTM: not sure if that's possible, I hate eclipse and avoid it as much as possible Jun 19 18:38:54 sukramTM: I'm sure there's a way Jun 19 18:39:03 toirtose integrates into windows explorer Jun 19 18:39:10 SimonVT, http://imgur.com/zJFuy Jun 19 18:39:18 the red part is my image view Jun 19 18:40:19 Sounds all very complicate, I just copy my workspace folder Jun 19 18:40:33 sukramTM: it's worth the investment Jun 19 18:40:45 you can store any number of changes, review what you changed line-by-line Jun 19 18:40:53 switch between versions at will Jun 19 18:41:44 Is it equal with wich programm I change the files? Jun 19 18:42:04 rephrase? Jun 19 18:42:19 SimonVT, Jun 19 18:42:43 version control and IDEs arent the same thing if that's what you're asking Jun 19 18:42:45 InanTop: me? Jun 19 18:42:48 yeah Jun 19 18:42:58 version control is almost like a back-up system Jun 19 18:43:02 oh finally found it. I use mecurual version control. Jun 19 18:43:04 it doesnt care about your files Jun 19 18:43:07 just that they exist Jun 19 18:43:12 and change Jun 19 18:43:14 yeah I love mercurial Jun 19 18:43:22 yah it is VERY effective Jun 19 18:43:29 google code loves merc Jun 19 18:43:37 git is similar but I'm not familiar with it yet Jun 19 18:43:46 Is the version control independet from the editor program? Jun 19 18:43:48 and TortoiseHg is a great GUI Jun 19 18:43:56 sukramTM: yes Jun 19 18:44:00 sukramTM: yep, TortoiseSVN for example just runs via the right-click context menu Jun 19 18:44:05 http://www.indiangeek.net/wp-content/uploads/Programmer%20competency%20matrix.htm Jun 19 18:44:05 ok Jun 19 18:44:15 I will try Jun 19 18:44:21 it has a section there for version control stuff Jun 19 18:44:24 I have fixed souce before. I acciently deleted small part of source code then made lot of changes without testing. I couldn't just use control z for this. so I used version control browse changes Jun 19 18:44:28 you'll get the idea Jun 19 18:44:52 Because now i try to add google maps in my app, and that are many changes ;-) Jun 19 18:45:12 yeah version control is invaluable, not only does it make it harder to lose your data, it makes it easier to track changes Jun 19 18:45:21 backups are good for "oh shit revert" Jun 19 18:45:27 version control lets you selectively merge Jun 19 18:45:42 I got a little GUI question though. right now I have 2 list with 5 stock images and one "custom" entry, and seperate options to set custom image Jun 19 18:45:55 SimonVT, Jun 19 18:46:01 InanTop: well, in reality that got added with DVCSes like hg, git, darcs etc. Jun 19 18:46:10 SVN, afaik, made branching bloody Jun 19 18:46:12 http://imgur.com/rcc4i Jun 19 18:46:15 SimonVT, Jun 19 18:46:17 its fairly awkward, but is opening image selector when one clicks "Custom" entry any better? Jun 19 18:46:27 The instaltion want to close my virus scanner Jun 19 18:46:30 true, branching is a pain in svn but for personal use (i.e. tracking your own changes) it's great Jun 19 18:46:32 not good Jun 19 18:46:35 this is the screenshot of my drawing without the button Jun 19 18:46:36 sukramTM: for TortoiseSVN? Jun 19 18:46:42 yes Jun 19 18:46:54 http://tortoisesvn.net/ from here? Jun 19 18:46:55 just because svn is bad at branching doesn't mean all centralized systems are Jun 19 18:46:58 and as you can see i m not able to draw on to whole of the screen Jun 19 18:47:16 Inan: yes Jun 19 18:47:41 if you don't trust it you can try git or mercurial or something Jun 19 18:47:45 SimonVT, somebody Jun 19 18:47:48 I use TortoiseSVN though Jun 19 18:47:55 and I haven't had my bank account stolen or anything Jun 19 18:48:35 i install it on my save system and see what it does Jun 19 18:48:42 that's because it modifies your registry Jun 19 18:48:46 is svn merging still bad? it was a long time ago, how about these days ? Jun 19 18:48:57 terrible Jun 19 18:49:00 hey guys Jun 19 18:49:04 g00s, it can be alright Jun 19 18:49:04 sometimes Jun 19 18:49:05 g00s: I think it was architectural issue Jun 19 18:49:07 http://pastebin.com/6YmPHLgQ link of my code Jun 19 18:49:15 may i ask something about an opensource project thingy? Jun 19 18:49:24 g00s: so, "fix it and it's not SVN anymore" Jun 19 18:49:32 someone try to tell me why the counter increases when ever i click the button Jun 19 18:49:42 p_l: they fixed the finding common ancestor thing, was it the branches/ tags/ trunk/ crap & shallow copies ? Jun 19 18:49:46 well basically Jun 19 18:49:48 also i m not able to use the full imageview to draw.. Jun 19 18:49:48 https://github.com/z0lope0z/PADC-Skeleton Jun 19 18:50:11 i'm working on an opensource project that wraps up commonly used libs and technologies on android Jun 19 18:50:12 like Jun 19 18:50:12 svn also fixed their dumbass working copy scheme (.svn directories everywhere) Jun 19 18:50:13 i have aslo shared my screen shots Jun 19 18:50:21 g00s: no idea, I avoided SVN in a long time Jun 19 18:50:24 g00s: I wouldn't use svn for something that is going to have a lot of branches Jun 19 18:50:26 actionbarsherlock, c2dm, roboguice, robolectric, robotium, etc.. Jun 19 18:50:29 this is the screenshot of my drawing without the button Jun 19 18:50:33 I appreciate its simplicity for personal projects though Jun 19 18:50:35 http://imgur.com/rcc4i Jun 19 18:50:39 i'm just wondering if it's a good idea Jun 19 18:50:40 mercurial is what I'd use ffor collaboration Jun 19 18:50:41 SimonVT, http://imgur.com/zJFuy Jun 19 18:50:49 nobody seems to be contributing except me :/ Jun 19 18:50:53 * linuxdroid now waiting again, Jun 19 18:51:10 * linuxdroid asking someone who is free.? Jun 19 18:52:55 How do I prevent Eclipse debugger from going into String.class, AbstractStringBuilder.class, and etc. when 'stepping-into' when debugging? Jun 19 18:53:14 step over :P Jun 19 18:54:15 wongk, can u help man! Jun 19 18:54:37 i did, i told you to use the debugger, let me see the call stack Jun 19 18:55:16 ahh NullPointerException how I missed you Jun 19 18:55:28 lol Jun 19 18:55:55 what is the normal way services are handled? Can an activity be a service? Jun 19 18:56:03 ninjai: ... no Jun 19 18:56:47 can an activity be a service... O.o Jun 19 18:57:48 evancharlton, I'm a bit confused. I am trying to make an app that will track your distance you walk with GPS. I have an activity class, a location manager class, and a service class. I'm having a hard time tying them all together. I want my location tracking class to be the service and the service class to handle it. Problem is, it seems the location tracking class needs to extend activity in order to append to a text file lo Jun 19 18:57:48 g that I have. How the heck should I be doing this? Jun 19 18:58:37 Ok I installed it Jun 19 18:59:29 I dont understand why a ListHashSet isnt part of the core libraries, the insertion/access order given by LinkedHashSet are so limiting Jun 19 19:00:21 er, do you want a list or a hash? Jun 19 19:00:30 both :P Jun 19 19:00:36 that doesn't make sense Jun 19 19:00:47 sure it does, i want fast random access by key, but i also want to maintain the order of the items Jun 19 19:01:03 then you want an ordered map Jun 19 19:01:09 TreeSet, TreeMap Jun 19 19:01:25 from Apache Collections? Jun 19 19:01:29 from java Jun 19 19:01:56 its not part of the standard collections framework Jun 19 19:02:15 http://docs.oracle.com/javase/6/docs/api/java/util/TreeSet.html Jun 19 19:03:00 not quite what i need, since the order is arbitrary, rather than being sorted Jun 19 19:03:12 that exactly the opposite of what it is Jun 19 19:03:23 *re-reads* Jun 19 19:03:34 "The elements are ordered using their natural ordering, or by a Comparator provided at set creation time, depending on which constructor is used." Jun 19 19:03:36 that's why it's a tree Jun 19 19:03:46 wongk, exactly, so its sorted, natural ordering or compatator, sorting Jun 19 19:03:54 hash = unordered, tree = ordered Jun 19 19:04:02 ahh sorry, i wasnt clear, what i was trying to say what i need arbitrary ordering Jun 19 19:04:13 say was that i need^ Jun 19 19:04:31 right now im maintaining a HashSet and a LinkedList to get the desired behaviour Jun 19 19:04:35 you mean by order of insertion? Jun 19 19:04:43 no, any order i want Jun 19 19:04:53 that's what TreeSet is Jun 19 19:05:01 no, thats sorting Jun 19 19:05:09 sorting = ordering Jun 19 19:05:15 if i want to move a key-value pair up and down the list, i cant use a treeset, because that will break the rule for the comparator Jun 19 19:05:29 what you want doesn't exist, then Jun 19 19:05:29 sorted =/= ordered Jun 19 19:05:50 wongk, exactly, it would be a ListHashSet, which allows you to update the index Jun 19 19:05:58 sorry i was so unclear, my brain is mush Jun 19 19:06:15 which invalidate all the properties of the 'hash' portion of that container :P Jun 19 19:06:20 OrderedMap does exist, but its in Apache commons and im not going to include that Jun 19 19:06:28 robb_www: have you looked at the guava libraries? maybe there is something there for you Jun 19 19:06:34 wongk, except i still want fast access by key :P Jun 19 19:06:38 what might cause an google play "This app is incompatible with all of your devices" error for specific apps? Jun 19 19:07:04 g00s, ill have a look out of curiosity Jun 19 19:07:11 means the developer doesnt the app compatible with your device Jun 19 19:07:17 or doesnt say its compatible Jun 19 19:07:19 sometimes it is Jun 19 19:07:36 o.o Jun 19 19:07:49 I can read the message, but what actually might cause it? Jun 19 19:08:07 the cause is your device is incompatible Jun 19 19:08:11 most commonly platform level Jun 19 19:08:18 there are other variables Jun 19 19:08:19 some apps look at your build.prop Jun 19 19:08:34 what kind of app spobat Jun 19 19:08:55 What do you mean? Jun 19 19:09:15 wongk, just realised i kept saying HashSet when I meant HashMap >.< Jun 19 19:09:35 same thing, for the most part Jun 19 19:09:44 your mention of key was clear enough Jun 19 19:09:54 what app are you trying to downoad Jun 19 19:09:58 download Jun 19 19:10:06 how does it matter? Jun 19 19:10:29 -.- Jun 19 19:10:31 oi Jun 19 19:10:47 * Shano56 * Added *!*lib@p5DC774A6.dip.t-dialin.net to ignore list Jun 19 19:10:53 wongk, im writing an editor for a file format that essentially acts as a HashMap of key-value pairs, but I need to maintain the original order for the user experience, so when the key is updated i need to maintain the entries position in the list despite the fact it will exist at a different location in the HashMap, LinkedHashMap is insufficient at that point because insertion-order would screw up the index Jun 19 19:11:59 spobat: you're in country that the app is not available Jun 19 19:12:11 bundle up ArrayList and HashMap into one reusable class Jun 19 19:12:36 p_l that might be :) Jun 19 19:13:04 spobat: or none of your devices have required features (can be OS version, a feature string - like having BT, supporting specific texture formats in GPU, etc., country or network) Jun 19 19:13:24 okay, thanks! Jun 19 19:13:29 wongk, thats basically what ive done, but its not in a generic class right now Jun 19 19:14:49 robb_www: once you're done, put it on github and the world will worship you ;) Jun 19 19:16:15 depends if the code comes out better than my posts here Jun 19 19:18:40 wongk, did u saw my thing man.? Jun 19 19:18:59 robb_www: just do what Cursor does, use an array to store but then map indexes to values in a HashMap Jun 19 19:19:58 so in Cursor HashMap maps to an index in the array? Jun 19 19:20:38 linuxdroid: your stack trace? i have not seen it yet Jun 19 19:20:54 yes, it caches that so that when you say .getColumnName() it doesn't iterate it every time Jun 19 19:20:54 man its like 0051 hrs here Jun 19 19:21:04 and i have to go for a conference in the mornig Jun 19 19:21:17 pls check it asap Jun 19 19:21:21 please...... Jun 19 19:21:27 better get to bed Jun 19 19:21:29 linuxdroid: could be worse. could be 0351 hours. Jun 19 19:21:38 g00s im surprised, personally dont like the idea of boxing integers unnecessarily Jun 19 19:21:58 ctate, man if it doesn't work out i can stay wake up the whole night Jun 19 19:22:09 bozing annoys the piss out of me Jun 19 19:22:16 but then i'll sleep in the conference though lol Jun 19 19:22:19 boxing Jun 19 19:22:48 wongk, please help out man Jun 19 19:22:53 ctate: you seemed to know a thing or two about the surfaceflinger design yesterday, maybe you can clarify something for me... Jun 19 19:23:09 surfaceflinger.h uses a layer's z-order for compositing, and in the case of a "tie" it breaks the tie with the "sequence" of the layer Jun 19 19:23:19 linuxdroid: i am going to put you on my ignore list soon Jun 19 19:23:29 InanTop: err, no? Jun 19 19:23:42 i just knew the broad strokes outlines; i know essentialliy nothing about its internals Jun 19 19:23:42 linuxdroid: i already told you what to try Jun 19 19:23:47 ah Jun 19 19:23:48 lol Jun 19 19:23:50 damn Jun 19 19:23:54 yeah sorry Jun 19 19:23:55 add system messages to see whats happebinbg Jun 19 19:24:01 no worries Jun 19 19:24:43 robb_www: there are some libaries that use primitives , if you are really worried about that sort of thing http://labs.carrotsearch.com/hppc.html Jun 19 19:25:02 autoboxing sux0rz Jun 19 19:25:13 why do you think SparseArray and SparseIntArray exist? :) Jun 19 19:25:17 okay...!! Jun 19 19:25:29 ctate: urk. 0351 is time where I need to consider not sleeping the night if I want to go anywhere in the morning Jun 19 19:25:45 g00s, that is cool, thanks for the link im going to bookmark that Jun 19 19:25:48 http://trove.starlight-systems.com/ Jun 19 19:26:29 multiple high performance collections Jun 19 19:26:48 o so they claim! Jun 19 19:26:50 or Jun 19 19:26:56 synergies: leveraged. Jun 19 19:27:12 heh Jun 19 19:27:16 lov++ Jun 19 19:27:34 wblov Jun 19 19:27:50 some benchmarks (old) http://b010.blogspot.com/2009/05/speed-comparison-of-1-javas-built-in.html Jun 19 19:28:23 not sure how this would translate to dalvik Jun 19 19:28:32 let us know how it works out :) Jun 19 19:28:40 yeah you really can't compare; a lot of the performance profile is quite different Jun 19 19:29:53 it would be a good subject for a blog post, for someone to repeat this on dalvik or some sort of benchmark Jun 19 19:30:03 comparing the various collections Jun 19 19:32:50 Can anybody help here : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 19 19:32:55 ctate: can you confirm / deny http://phandroid.com/2012/06/19/rumor-nexus-7-tablet-already-shipping-will-start-selling-in-july/ Jun 19 19:32:59 :) Jun 19 19:33:10 g00s: probably can't Jun 19 19:33:18 g00s: let me know whe nyou get that blog post written! =] Jun 19 19:33:21 its an ongoing joke :) Jun 19 19:33:25 i can neither confirm nor deny nor either confirm or deny my confirmation or denial. Jun 19 19:33:29 \o/ Jun 19 19:33:33 lol Jun 19 19:33:36 ctate just confirmed it Jun 19 19:33:41 netcraft confirms it Jun 19 19:33:44 android is dying Jun 19 19:33:55 wut Jun 19 19:34:20 $199, man, why'd i buy this POS archos :P Jun 19 19:34:21 yeah, win8 is gonna pwn it Jun 19 19:34:34 the surface looks pretty cool Jun 19 19:34:50 not sure about windows phone though Jun 19 19:35:03 i wonder about the size/weight Jun 19 19:35:04 wolfbyte i love my archos Jun 19 19:35:08 i'm excited about this thing, i have been saying for years google should have a carrier-free device for development, that was official (nexus) on price parrity with an iPod touch $200-300) Jun 19 19:35:08 wongk *** Jun 19 19:35:27 I saw a specs comparison pic (not sure if the data is 100% correct) buti t was about 20g more than the ipad, and .1mm thinner Jun 19 19:35:34 slightly bigger display than the galaxy tab Jun 19 19:35:49 acceptable Jun 19 19:35:50 i find it to be very cheaply made Jun 19 19:35:56 what model wongk Jun 19 19:36:05 InanTop: i think the arm and intel versions differ in weight, and it depends on which keyboard you have on it Jun 19 19:36:11 g9 Jun 19 19:36:17 g00s: keyboard is part of the cover isn't it? Jun 19 19:36:23 g00s: don't think it's considered in the specs Jun 19 19:36:23 yeah Jun 19 19:36:35 InanTop: what i heard is that the ARM version would be 14mm thick and 1.5 pounds, which is both thicker and heavier than the iPad 3, and MUCH thicker & heavier than the iPad2 Jun 19 19:36:36 the g9 had a nasty screen defect Jun 19 19:36:44 yes, quite Jun 19 19:36:45 and the x86 version will be 2 pounds Jun 19 19:36:51 hmm … we'll find out. i think the RT version will compete with iPad, and intel version compete with ultrabooks Jun 19 19:36:51 sent it to RMA and say your charger is broken or something lol Jun 19 19:36:57 I heard that it will ship with ponies Jun 19 19:36:59 the Xoom is 1.56 pounds, and IMO it's pretty damn heavy Jun 19 19:36:59 you'll get a new one Jun 19 19:37:02 you touch the damn thing on the back and it distorts Jun 19 19:37:02 which would be perfect for bronies Jun 19 19:37:02 maybe even a free upgrade Jun 19 19:37:22 it'll probably be as shitty as the first one Jun 19 19:37:24 I'll try to dig up that pic I saw, it was probably from reddit Jun 19 19:37:27 ctate: take a note; next flagship device should be the Nexus Brony Jun 19 19:37:46 found an official spec sheet instead Jun 19 19:37:47 http://www.microsoft.com/global/surface/en/us/renderingassets/surfacespecsheet.pdf Jun 19 19:37:53 wongk: it has a magnesium case Jun 19 19:37:55 marketing for the key prepubescent girl and manchild audience: in the bag. Jun 19 19:38:20 the best thing about it, it runs more than angry birds Jun 19 19:38:24 XD Jun 19 19:38:30 wongk, i had 1ghz version, nasty screen defect, felt like shitty build quality Jun 19 19:38:40 sent it to RMA, free upgrade to 1.5ghz version, and no more screen defect Jun 19 19:38:50 larryBoy: I already turned one person away from Win8 on tablets just by explaining secure boot ;) Jun 19 19:38:51 yeah having a real OS on a "mobile" platform will be great Jun 19 19:38:56 oh, well i did email about an RMA, maybe i'll actually use it Jun 19 19:38:59 ha Jun 19 19:39:04 no doubt they'll find ways to integrate it with xbox and PC as well Jun 19 19:39:07 didn't they make tablet PCs back in the early 2000s? Jun 19 19:39:09 you should Jun 19 19:39:13 it only took them 1 month to get back to me about it too Jun 19 19:39:15 do you live in the US Jun 19 19:39:18 yes Jun 19 19:39:30 are we talking tablet PCs with keyboards? those were cool, always wanted one Jun 19 19:39:38 get a flat rate box at the USPS, maybe some bubble wrap, and insurance Jun 19 19:39:44 it costs like 12 dollars total Jun 19 19:39:47 maybe a little less Jun 19 19:39:51 I want to write an app for it to stream video output from my desktop and stream keyboard/touch back Jun 19 19:40:10 or maybe it'll come iwth something like remote desktop built in Jun 19 19:40:26 I mostly want it for portable gaming though which wouldnt be possible with remote desktop Jun 19 19:40:56 I also hope it's not 900 dolalrs like the ipad Jun 19 19:41:04 ctate: yes, they did, I've seen the tv ads :) Jun 19 19:41:20 they were balls Jun 19 19:41:33 nothing like an 8 pound "tablet" Jun 19 19:41:50 with laggy and inaccurate handwriting recognition Jun 19 19:41:53 robb_www: MS pushed for tablet PCs with docking stations that turned them into desktops. Later notebooks got good enough to use the same soft Jun 19 19:43:28 p_l: yeah, the windows secure boot is a sad story Jun 19 19:43:34 ctate, thanks for that issue yesterday, heh Jun 19 19:43:43 oh good you saw my response Jun 19 19:43:50 so yeah, it'll blow up in a kind of cryptic way today Jun 19 19:43:55 ctate, speaking of serviceconnection, what happens if I use the same (identity) serviceconnection to bind multiple times from different contexts? Jun 19 19:43:57 p_l, im thinking of the ones where the display swiveled around and sat facing upwards ontop of the keyboard Jun 19 19:44:00 g00s: I'm not against presence of the functionality in hw, but I'm against how it ends up being used Jun 19 19:44:11 every time i look in here nobody is talking about android Jun 19 19:44:12 i made a change downstream so that it'll eventually start blowing up immediately with a stack trace that points back into the app's code, much more usefully Jun 19 19:44:13 ctate, yeah, if you highlight, I'll see it, I keep a log Jun 19 19:44:20 robb_www: those came later, but they used the same software Jun 19 19:44:28 pfn: curious - why are you trying these weird edge cases ? Jun 19 19:44:39 p_l, interesting, didnt know much came before that Jun 19 19:45:15 robb_www: the original ads had the computer literally separate into two parts, with keyboard being part of the docking station Jun 19 19:46:00 p_l: what would be cool is if the kb had a solar charger also, if that was possible (enough wattage) Jun 19 19:46:33 i mean, the detachable kb for the surface Jun 19 19:46:47 g00s: it was more of a desktop back then Jun 19 19:46:53 there are laptops with solar cells in the lid, but i wouldnt want to leave it laying around like that Jun 19 19:46:58 that is, it would be something you'd use around the houe Jun 19 19:47:00 *house Jun 19 19:47:29 is tehre any way i get get more information on why my service isn't starting? I call the startService method with my intent, and nothing happens. No output, no nothing. Jun 19 19:47:53 using ndk-gdb, how can I break into SurfaceFlinger.cpp ? Jun 19 19:47:55 it's not detecting that source file Jun 19 19:50:04 g00s, cant tell if samsung ever shipped any, but check out the NC215S Jun 19 19:50:07 ninjai: as always, step 1 is to read the log Jun 19 19:51:32 ctate, which log? logcat? _nothing_ is showing up Jun 19 19:52:00 nothing from *any* app? Jun 19 19:52:20 [also are you certain that your startActivity() call is being executed?] Jun 19 19:52:40 if nothing that means big problem Jun 19 19:52:58 personally i run "adb logcat" from a shell window, not from inside Eclipse Jun 19 19:52:58 if you have more than once device connected, try disconnecting all but the one your debugging Jun 19 19:53:11 or even better, adb logcat -v time Jun 19 19:53:23 (or for those of us who need to know about which threads are doing what, -v threadtime) Jun 19 19:53:35 ive had logcat show up empty in eclipse because of multiple devices Jun 19 19:54:03 ctate, I can see the log 100% fine, I'm watching new stuff coming in on eclipse. Nothing happens in the log when I call startService Jun 19 19:55:08 g00s, because I have a use-case for which it makes sense Jun 19 19:55:19 I want to influence a service's lifecycle Jun 19 19:56:03 for which I want to bind/unbind Jun 19 19:56:04 but I don't want any calls against the service Jun 19 19:56:04 so I don't care when the service is actually connected Jun 19 19:56:04 I just want to use bind/unbind as a ref counter, effectively Jun 19 19:56:32 ninjai: hm, i'd expect error messages in the log if it was unable to launch it Jun 19 19:56:45 I'm trying to use an indeterminate progress bar in my activity actionbar using requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); in the onCreate() method. I'm using setProgressBarIndeterminateVisibility(false); directly after to hide it from being initially visible, but the progress spinner is still shown. How can I hide it while still keeping the feature active? Jun 19 19:56:47 ctate, I actually just got it working. No idea wtf it was. Jun 19 19:56:51 and doing that, I don't want to pass a service connection, but since that'll npe, the next best option is to use a singleton serviceconnection Jun 19 19:56:52 you can verify that it isn't live by checking the (rather lengthy) output of "adb shell dumpsys activity services" Jun 19 19:56:55 oh ha ha Jun 19 19:56:57 wack Jun 19 19:57:00 very. Jun 19 19:57:10 i blame eclipse Jun 19 19:57:11 lol Jun 19 19:57:23 it seems to have a decent amount of bugs with the android plugins Jun 19 19:57:44 pfn: did you see how the Music app stores binders in a static reference ? Jun 19 19:57:57 uh, static / global hash or something Jun 19 19:57:58 g00s, that's on the service-side Jun 19 19:58:01 ok Jun 19 19:58:06 I'm curious about the serviceconnection object Jun 19 19:58:36 I mean, I'd figure the service binder would key any sort of cache by context+serviceconnection Jun 19 19:58:50 but if it keys by serviceconnection, then I'm kinda fubar there Jun 19 19:59:07 it does key by ServiceConnection under the covers Jun 19 19:59:16 1:1 from the ServiceConnection instances to the bindings Jun 19 19:59:29 so if I use a singleton service connection everywhere, I can expect very weird behavior Jun 19 19:59:32 ... Jun 19 19:59:33 the context determines the lifetime of the binding though Jun 19 19:59:35 i would have to imagine that is the case, because individual bindings could break if the service is remote Jun 19 19:59:35 ok, I guess I need to re-work my scheme Jun 19 19:59:47 yes. you need a different instance per binding. Jun 19 20:00:02 the reason is my service connection is no-op Jun 19 20:00:19 oh oh wait, i missed wha tyou said about the context as well Jun 19 20:00:20 oh well, I'll change my scheme Jun 19 20:00:30 you're only binding to one thing *per context* with that SC instance? Jun 19 20:00:43 e.g. context1.bindService(..., SINGLETON_SRV_CONN,...) Jun 19 20:00:51 context2.bindService(..., SINGLETON_SRV_CONN, ...) Jun 19 20:00:55 yes Jun 19 20:01:02 okay Jun 19 20:01:13 there is a map: ServiceConnection -> internal dispatch bookkeeping Jun 19 20:01:19 that map is per-context Jun 19 20:01:23 if it's keyed by context+service connection, then my assumptions will work great Jun 19 20:01:35 sounds like I'm safe then :) Jun 19 20:01:57 resoution involves looking up the map for the given context, then looking up the dispatch bookkeeping using the SC instance as the key. Right: sounds like you're clean. Jun 19 20:02:14 also note that you *do* have hte source code to all this, btw :) Jun 19 20:02:36 I know, but digging down the hole of all the nested context implementations feels painful Jun 19 20:02:46 I did a brief pass through already, wasn't immediately obvious Jun 19 20:02:48 in this case, bindService() starts in ContextImpl.java and also winds up calling into LoadedApk.java where the bookeeping maps are maintained Jun 19 20:02:59 well, you don't use Eclipse Jun 19 20:03:07 which makes this sort of "take me to the defintion of this" stuff easy :) Jun 19 20:03:14 I suppose that's true Jun 19 20:03:29 I should lookat loading an aosp workspace up Jun 19 20:03:31 [and the reverse: which points in the code call this method?] Jun 19 20:03:49 yeah, find references/declarations, I'm familiar with eclipse, just choose not to use it most of the time Jun 19 20:05:55 hmm ive borrowe dmy mates phone i suspect he has rooted it or somethign to allow more heap any way i can check? Jun 19 20:07:13 look for superuser in the app drawer, or open a terminal and type su Jun 19 20:07:46 thx Jun 19 20:10:39 hmm, I've done this before, but can't remember how now…How can I use any bitmap as the icon in ICS notification bar? Jun 19 20:12:26 how do i open a terminal wongk Jun 19 20:12:30 no sign of an app called superuser Jun 19 20:12:40 i saw my app using 31 meg so im confused Jun 19 20:12:45 might just be a different rom Jun 19 20:12:47 install a terminal app Jun 19 20:12:52 but my own n1 usually crashes at 31 meg Jun 19 20:13:05 ah Jun 19 20:13:06 different ROMs have different heap sizes Jun 19 20:13:26 is there a way for me to break in SurfaceFlinger.cpp using ndk-gdb Jun 19 20:13:38 my irc client crashed after I last asked sorry if there's a response already Jun 19 20:14:05 debug symbols use hard coded absolute paths Jun 19 20:14:22 does cyanogen allow more heap or anything Jun 19 20:14:34 wongk: can you elaborate? I'm not sure what that means Jun 19 20:14:35 ah Jun 19 20:14:38 or even if it's in response to me Jun 19 20:14:38 but typically you can inform gdb about source code paths Jun 19 20:14:38 lol Jun 19 20:14:54 either way, it's unlikely you have debug symbols Jun 19 20:15:06 gaz`: it's configurable Jun 19 20:15:15 wongk: would I have to build the sdk/ndk in debug mode? Jun 19 20:15:25 yes Jun 19 20:15:34 not sure why I didnt think of that Jun 19 20:15:42 is there any chance it's already in debug mode but the source can't be found for some reason? Jun 19 20:15:48 or better question, how can I check Jun 19 20:15:53 that it's release/debug Jun 19 20:15:58 hmmm google analytics is crashing my app thats all i need Jun 19 20:15:59 com.google.android.apps.analytics.PersistentHitStore.putEvent(Unknown Source) Jun 19 20:16:18 gaz`: did you strip it with proguard? Jun 19 20:16:18 gaz`: when are you going to learn to paste the full stack trace? Jun 19 20:16:23 no Jun 19 20:17:16 InanTop: you can check it for symbols with objdump -T Jun 19 20:17:26 but i don't know that you can check it for optimization level Jun 19 20:17:27 seems a bit verbose doing that Jun 19 20:17:27 :) Jun 19 20:17:28 http://pastebin.com/7G4a5TY8 Jun 19 20:17:44 wongk: do I run that in gdb? Jun 19 20:17:47 no Jun 19 20:17:52 command line, on the binary Jun 19 20:17:53 annoying how stack traces look in pastebin Jun 19 20:18:06 wongk: ok thanks I'll check it out Jun 19 20:18:20 see i dont see how the satack trace helps in this case Jun 19 20:18:41 "file format not recognized" for the apk Jun 19 20:18:43 you mean, you dont see how you didnt trap the npw? Jun 19 20:18:45 is there another binary you meant Jun 19 20:19:07 npe* Jun 19 20:19:27 FineDiningTabHostActivity.java:222 Jun 19 20:19:27 I wanna find online resources such as blogs by independent Android developers and independent communities Jun 19 20:19:33 any ideas? Jun 19 20:19:45 the line in question is GoogleAnalyticsTracker.getInstance().trackPageView("OPENING "+TAG+" "); Jun 19 20:20:02 InanTop: the binary that was compiled with g++ that the source file you metion is a part of Jun 19 20:20:10 an apk is an archive Jun 19 20:20:33 gaz`: getInstance() could be returning null Jun 19 20:20:39 I have a line of code in a try block, all it is is creating a new file output stream. How can a brand new fos give me a nullpointer exception? Jun 19 20:20:40 which binary would surfaceflinger's info be in... if you haven't realized http://i.imgur.com/ChzUb.jpg Jun 19 20:20:52 no clue Jun 19 20:20:59 I'll google some more Jun 19 20:21:01 surfaceflinger is in native code, not in java Jun 19 20:21:10 birbeck must be bit lame Jun 19 20:21:30 InanTop: this is going to be very difficult, just so you are aware Jun 19 20:21:51 so look at what .so files are installed on the system Jun 19 20:22:01 wongk: lol I know... I know... been chasing this bug for 2 weeks as my intro to Android/Java/Mobile dev Jun 19 20:22:20 i couldn't think of a worse intro Jun 19 20:22:25 why is this line of code giving me a null pointer exception? "FileOutputStream fOut = openFileOutput("data.txt", MODE_APPEND);" Jun 19 20:22:32 at least on ics, i think there's a libsurfaceflinger.so that contains its code Jun 19 20:22:42 we're using "froyo-plus-asop" Jun 19 20:22:44 2.3? Jun 19 20:22:50 ninjai: not that line of code, then Jun 19 20:23:00 wongk: believe me I know Jun 19 20:23:09 ninjai: this is null Jun 19 20:23:09 either that or 'this' is null, though how you'd achieve that i have no idea Jun 19 20:23:49 I guess 'this' is null =\ Jun 19 20:26:11 how on earth Jun 19 20:28:00 Hello Jun 19 20:28:26 Greetings! I am a first time android developer and am through to the beta stage of my app. Beta stage as in works great on the few phones that i have tried out. Where and how else could i test my app and make it ready for the market? Jun 19 20:29:44 how can I read/write to files, and databases, without making my class extend Activity? Jun 19 20:31:12 all you need is a context, a service is a context Jun 19 20:31:22 thanks wongk Jun 19 20:31:22 whats a reasonable timeout to use for http requests? Jun 19 20:31:54 What's the difference between the Application context and the Activity Context? Jun 19 20:33:07 they have different lifetimes Jun 19 20:33:16 they can have different configurations Jun 19 20:33:21 etc Jun 19 20:33:28 the application context will always have a valid reference while the application is running, activity context die with the activity (unless you have a "memory leak") Jun 19 20:34:15 ninjai:For db u can read/write from any class, but u need an object of subclass of sqliteopenhelper, however it's not secure and u're db will stay in memory after activity is destroyed. Jun 19 20:35:07 er, wat Jun 19 20:35:29 wat, indeed Jun 19 20:35:41 more like "wut" Jun 19 20:35:47 whoo? Jun 19 20:36:06 yawhooo ! Jun 19 20:36:28 http://pastebin.com/R69N06fn Jun 19 20:36:30 here Jun 19 20:36:42 ctate & wongk: ok thanks! Jun 19 20:36:45 it's working but it has memory leak Jun 19 20:37:51 i don't see any leaks in this code Jun 19 20:38:03 when u start listing datas Jun 19 20:38:26 u cannot close the db, unless u put all the datas in arraylist Jun 19 20:39:11 close the db when you are done with it, by acting on the db object Jun 19 20:39:14 this doesn't return data; it returns cursors Jun 19 20:39:20 just close everything when you're done Jun 19 20:39:32 yeah but i know but when u closed the db Jun 19 20:39:37 cursor getting null Jun 19 20:39:49 then you're doing it wrong Jun 19 20:40:05 it's not mine Jun 19 20:40:14 I'm using contentresolver Jun 19 20:40:51 this code is not using. Written by my friend i'm just testing it Jun 19 20:42:24 By the way i need some help with appWidget, when i use config class textview is not updating, but onUpdate works Jun 19 20:42:45 can you psatebin the code Jun 19 20:43:02 i have the code on stackoverflow Jun 19 20:43:04 hold on Jun 19 20:43:57 happy coding everyone! Jun 19 20:44:00 good night~ Jun 19 20:44:46 http://stackoverflow.com/questions/11092723/app-widget-does-not-update-textview-even-onupdate-method-works Jun 19 20:44:50 here it is Jun 19 20:45:31 If you are doing a fragment based UI do you ever have to use activities? Jun 19 20:46:24 yes Jun 19 20:46:36 nope not using fragment Jun 19 20:46:59 in the code i ve sent, i'm just trying to update time in every 32 min Jun 19 20:47:12 wongk, you do need activities? Jun 19 20:47:19 yes Jun 19 20:47:28 but it's not goal, i have to update data from the db in every 32min Jun 19 20:48:00 however like i said when i used config class textview is not changing Jun 19 20:48:52 Ok, so the mainifest launches the activity, whoes content view launches the fragment? Jun 19 20:49:31 It took a while until I learned @+id/ Jun 19 20:49:34 Cravier: why not just work with the passed in appWidgetIds? Jun 19 20:50:21 that'd be my first guess Jun 19 20:50:32 that was my first try yesterday, But i rage deleted all of them today Jun 19 20:50:53 now passing appwidgetIds, but still it's the same. It's just wierd Jun 19 20:51:42 and using service now Jun 19 20:52:00 your positive the layout has a View with id tvWidget? Jun 19 20:52:15 yep Jun 19 20:52:32 i don't see any obvious issue Jun 19 20:52:40 Is it possible to use WebView to make a full-blown web browser? Jun 19 20:52:56 luyang: you mean like the android browser? Jun 19 20:53:00 yeah Jun 19 20:53:01 luyang: yes Jun 19 20:53:03 yeah Jun 19 20:53:10 luyang: that's all Browser is Jun 19 20:53:10 so it shouldn't be worse than the builtin then? Jun 19 20:53:16 Can somebody help with in app billing http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 19 20:53:20 Many people said the same, I'll see after i complete my service and passing appWidgetIds Jun 19 20:54:46 Greetings! I am a first time android developer and am through to the beta stage of my app. Beta stage as in works great on the few phones that i have tried out. Where and how else could i test my app and make it ready for the market? Jun 19 20:54:56 Has anyone here used ViewPagerIndicator? I would like to talk to you about how you implemented static fragments. Jun 19 20:55:28 Raul-, you can test it with virtual devices through eclipse. Jun 19 20:55:50 Just use the AVD Manager. Jun 19 20:57:13 @Snicers-Work2, Yes ofc I have done that. All my dev wouldn't have been possible if not for the emulator Jun 19 20:58:13 I was wondering if there is a community where i could share my app so as to get some feeback Jun 19 20:58:19 *feedback Jun 19 20:58:35 Raul-: not really, there are testing services Jun 19 20:58:43 Other then testing on the virtual devices there isn't much else I know of you being able to do. I assumed you just tested on your physical devices. I don't know of any community. Jun 19 20:59:40 @wongk: Testing services as in Monkey UI testing..? Jun 19 20:59:44 how do you delete the last item in an array adapter? Jun 19 21:00:34 Raul-: no, as in you pay them and they test your app Jun 19 21:01:02 @wongk-: Oh i see. Jun 19 21:03:11 * wongk out Jun 19 21:04:03 spuz: http://stackoverflow.com/questions/4698386/android-how-to-remove-an-item-from-a-listview-and-arrayadapter Jun 19 21:04:22 Raul-: www.thebetafamily.com Jun 19 21:05:03 dlaroche, thanks Jun 19 21:05:44 @dlaroche-: That looks good! Thanks . Jun 19 21:05:52 no problem. I don't think they are very responsive though. I still have an app waiting for admin approval from them. You may want to contact them directly to push them forward. Jun 19 21:06:08 Raul-: glad to assist Jun 19 21:09:06 a pretty good presentation by Martin Fowler on the spectrum of native apps to mobile web apps http://martinfowler.com/articles/multiMobile/ Jun 19 21:09:36 if anything i learned about the Uncanny Valley Jun 19 21:10:43 i wonder, if wp starts to succeed, if the shift will be more torwards hybrid/web mobile apps; its getting too expensive if you are a channel app to maintain all these native ports Jun 19 21:17:51 i have a java class that is making heavy use of HttpsURLConnection, it works as intended when run as a Java program, however once I get it into an android app I start having problems with HttpsURLConnection not working right. It seems that the first POSTs seem to work fine but eventually it just starts returning 0 length InputStreams Jun 19 21:17:58 i have KeepAlive set to false Jun 19 21:18:05 i close the connections when done with them Jun 19 21:18:25 i've tried 2.1 and 2.3 (and 4.0 sometimes hangs on the conn.getInputStream() ) Jun 19 21:18:32 is there something i'm overlooking?! Jun 19 21:20:06 Nieylana: did you read this? http://android-developers.blogspot.com/2011/09/androids-http-clients.html Jun 19 21:20:29 in any case, you could try grabbing the latest apache httpclient and using jarjar to repackage it for your app Jun 19 21:21:41 does the SGS2+ refer to msm or samsung branch ? Jun 19 21:22:34 g00s: i've read that and it doesn't seem to explain why subsequent uses of HttpURLConnection (which is supposedly the preferred method of doing things) is returning a response code of -1 Jun 19 21:23:03 Nieylana: do you remember to close the connection streams after you are done with them? Jun 19 21:23:17 alankila: i close and disconnect the connections Jun 19 21:23:30 okay, sounds good to me. Jun 19 21:24:07 the file using it can be found here if anyone is interested in looking at ithttp://code.google.com/p/bellevueblackboard/source/browse/branches/NewService/src/edu/bellevue/android/blackboard/objects/CourseSites91Adapter.java Jun 19 21:24:27 executePost is the workhorse dealing w/ URLConnections Jun 19 21:24:36 and i think it cleans up sufficiently Jun 19 21:24:49 damn google should seriously start adding some kind of api compatibility shims in apks so that you could call all android methods without resorting to reflection, the runtime should just provide a fake jar with the missing methods throwing some runtimeexception if called Jun 19 21:24:57 using reflection is painful and silly Jun 19 21:25:52 ofc there is a sizeable and growing set of compatibility libraries for just that purpose Jun 19 21:25:56 Nieylana: hmm, i haven't done this before, but should not rd.close() and conn.disconnect() be in a finally clause ? Jun 19 21:26:05 to use newer-API-level functionality cleanly on devices that predate it Jun 19 21:26:38 ADT should just do it. And I don't mean that the methods need to work, just that you have to be able to call them without ending up with missing methods and/or classnotfound exceptions. Jun 19 21:26:46 g00s: if you need a try statement i could see it being in the finally that way even if an exception occurs you are sure to close() and disconnect(), but none of that code throws exceptions requiring a try statement Jun 19 21:26:55 ADT is part of Eclipse; that's irrelevant Jun 19 21:26:57 fail at runtime because this version of android doesn't provide the method. Jun 19 21:27:00 libraries? Jun 19 21:27:16 what you're asking for is noop stub implementations of *everything* in the compat libraries? Jun 19 21:27:38 well, it would just be better if we were all on the same version of android :) Jun 19 21:27:49 * ctate | the runtime should just provide a fake jar with the missing methods throwing some runtimeexception if called Jun 19 21:28:03 ctate: sort of. I mean that when you say you test your apk on version N, but are compatible on version M, the ADT should provide shim libraries matching the differences between M .. N-1 so that those methods and classes are resolvable, even if they don't work. Just to avoid having to write reflection, which is so ugly. Jun 19 21:28:05 as opposed to the current situation where it throws a no such method exception? :) Jun 19 21:28:22 well you can get classnotfound also Jun 19 21:28:28 alankila: you don't need to use reflection Jun 19 21:28:30 which is more annoying to solve Jun 19 21:28:32 alankila: seriously, i'm unclear on what exactly you're asking for beyond what the support libs already provide. Jun 19 21:28:43 you can just compile for the latest version and protect the calls with the appropriate version tests Jun 19 21:28:44 you want compat library coverage of every single new API entry? Jun 19 21:28:49 even if nonfunctional? Jun 19 21:28:55 or do you want something else? Jun 19 21:29:01 just suggesting that reflection should be avoided at all costs. Jun 19 21:29:06 then don't use it :) Jun 19 21:29:09 ==romainguy Jun 19 21:29:09 don't use it then Jun 19 21:29:12 you don't have to use it Jun 19 21:29:20 Class.forName("android.net.http.HttpResponseCache") Jun 19 21:29:20 if your stub would throw on call anyway you'll still have to test version Jun 19 21:29:24 and that'll work fine Jun 19 21:29:31 (even today) Jun 19 21:29:32 a nice example from the official docs. Jun 19 21:29:34 err, blog Jun 19 21:30:35 Clearly just writing 'HttpResponseCache.install(dir, size);' did not work Jun 19 21:31:07 but I'm telling it should at least be possible to write this and try+catch around that, and have the application work (but without the actual response cache working, of course) Jun 19 21:31:17 alankila: change your targetSdk Jun 19 21:31:28 Can anyone recommend a way to sniff bluetooth traffic from/to an app? Jun 19 21:32:03 romainguy: ah, so it will work? I'm confused why the blog suggests using code like this in that case. Jun 19 21:32:27 I assumed it's just going to crash and burn in classnotfoundexception when classloader tries to load this class or something Jun 19 21:32:35 In the android description you have to use a API Key for Google Maps: http://developer.android.com/resources/tutorials/views/hello-mapview.html But the google api page say: no key needed: https://developers.google.com/maps/signup?hl=de Jun 19 21:32:53 alankila: which is why if you change the targetSdk and call newer APIs you must make sure to test the platform version first Jun 19 21:33:21 romainguy: okay, but the error from trying to load the class occur when the method call is encountered at runtime, not when the class doing the call is loaded? Jun 19 21:33:39 alankila: you were asking for it to crash and burn with a runtimeexception if you called it inappropriately Jun 19 21:33:42 how is this much different? Jun 19 21:34:15 never mind. I am too poor at explaining what I want and I don't remember how java handles missing classes. I just have to test this when I bother doing it. Jun 19 21:34:31 java's lazy about loading classes; it only does so on first use Jun 19 21:34:35 not first detected refernce Jun 19 21:34:39 or something very like that Jun 19 21:34:50 ctate: oh good. That means that it's possible to write the "optimal" sequence. Jun 19 21:35:09 which is just a direct invocation of the method without the reflection bollocks Jun 19 21:35:38 which lowers my opinion of the blog somewhat. I guess the intention was that you can just copypaste that reflection shit without changing the target sdk, then. Jun 19 21:35:47 at worst you still wouldn't need reflection, just an extra indirection class Jun 19 21:36:02 ctate: which itself must be loaded by reflection. Jun 19 21:36:18 because if we assume the loading is eager, then all anybody directly references will appear in memory on loading the first class Jun 19 21:36:20 alankila: no Jun 19 21:36:33 no reflection involved Jun 19 21:36:33 loading is lazy Jun 19 21:36:47 ctate: I was speaking hypothetically in case of eager loading. Jun 19 21:36:48 just taking advantage of java's lazy class loading/resolution Jun 19 21:36:50 if it wasn't, all your app + most of the framework would be loaded when you start the app Jun 19 21:37:10 ctate: you can't make an indirection class and gain anything without lazy loading, so you don't need the indirection class if you have the lazy loading to begin with Jun 19 21:37:14 that was the entire argument I tried to make. Jun 19 21:37:40 alankila: the advantage of the indirection is to move all the platform version specific code into one place Jun 19 21:37:41 depends on how lazy it is Jun 19 21:37:44 romainguy: but zygote ensures that all of the framework is loaded to begin with, doesn't it? Jun 19 21:37:46 easier to manage in a way Jun 19 21:37:52 dalvik was always lazy about loading to some extent Jun 19 21:37:55 alankila: not all of it and it's not a guarantee Jun 19 21:37:56 anyway not that it matters. Jun 19 21:37:58 in the donut timeframe it was made even lazier :) Jun 19 21:37:58 we load what we see fit :) Jun 19 21:39:24 honestly the zygote should probably contain everything, because it's probably the only way to gain advantage of the RAM sharing... you very quickly begin to lose if multiple apps want something zygote hasn't preloaded but could have. Nevertheless, I guess there must be reasons to be picky. Jun 19 21:39:49 Can somebody help with in app billing http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 19 21:40:32 not that I know what they are. Alternatively android might use something like the kernel samepage merging feature to combine memory after the fact, but this sort of thing is worse than just arranging memory to be shared by construction. Jun 19 21:43:57 actually, has anyone ever tested if KSM would be useful for android? Jun 19 21:44:56 we're using it Jun 19 21:45:02 as of ICS Jun 19 21:45:14 really? I don't see /sys/kernel/mm/ksm on my phone at least Jun 19 21:45:21 which phone? Jun 19 21:45:31 a galaxy s 2, but it runs cyanogenmod, maybe custom kernel, don't know Jun 19 21:45:39 so anyhow, Nieylana i would still try putting the con/stream close stuff in a finally Jun 19 21:45:41 i'm pretty sure that at least some of (galaxy nexus, nexus s, xoom) use it in ICS Jun 19 21:45:46 says it's a 3.0.32 kernel. Jun 19 21:45:47 oh, no idea what samsung is doing with their kernels Jun 19 21:45:54 maybe you are getting an exception, poisioning the connection pool, trying again, and borking Jun 19 21:45:56 it helps rather a lot Jun 19 21:46:19 really? what kind of sharing figures do you see with ksm? Jun 19 21:46:23 is samsung still using that shitty ass filesystem ? Jun 19 21:46:33 rfs ? Jun 19 21:46:37 rfs? no idea, cyanogenmod doesn't touch the shit Jun 19 21:46:40 i'm trying to remember. i think we see on the order of 4 megs of ram footprint reduction on a galaxy nexus? something like that. Jun 19 21:46:54 virtually all of that is zero-filled pages, of course Jun 19 21:48:13 g00s: thanks i will try that, i'm setting up Charles Proxy to see if requests are even leaving the device Jun 19 21:48:14 g00s: i *think* samsung has seen the light re RFS Jun 19 21:49:15 samsung in general tries too hard to improve what isn't broken Jun 19 21:49:59 well, RFS makes sense(*) on CF cards Jun 19 21:50:04 which is what it was developed for Jun 19 21:50:21 it's just that it was wildly inappropriate for use on Android phones Jun 19 21:50:32 (*) modulo the quality of the implementation, of course. Jun 19 21:50:54 I also felt that their mDNIe display sharpening tech (or whatever) was piss-poor Jun 19 21:51:06 the single worst feature of the original galaxy s because it made insane halos around everything Jun 19 21:52:12 couple that with RFS-generated long pauses, and I start to think that there's something wrong about samsung's corporate culture. Their special techs are obviously rather shitty. Jun 19 21:52:51 kevin purdy had an interesting article about samsung and android yesterday, unfortunately it was all wild speculation, but it seems consistent with their nature and aspirations (to be apple) Jun 19 21:53:03 I even disable the mDNIe thing now although I see that users have grown fond of the display filter as CM enables it by default nowadays thanks to some user bug about how interface looked too fuzzy Jun 19 21:53:50 so I had to work out how to disable it again Jun 19 21:54:03 I like my UI fuzzy :-p Jun 19 21:58:03 huh... somehow my stuff just started working rofl! Jun 19 21:58:21 didn't change a thing (other than who i'm logging in as) Jun 19 21:58:38 anywho thank you guys for the help/suggestions Jun 19 22:00:00 ctate: zl just mentioned a new high cri light http://www.zebralight.com/H502d-High-CRI-Daylight-tint-AA-Flood-Headlamp_p_96.html … not sure if you were looking for headlamp or flashlight Jun 19 22:00:26 this one is floody compared to tighter beam. Jun 19 22:07:00 shit , apple got a patent for this. i've been wondering how this could be done for a long time. http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&u=%2Fnetahtml%2FPTO%2Fsrchnum.htm&r=1&f=G&l=50&s1=8,205,265.PN.&OS=PN/8,205,265&RS=PN/8,205,265 Jun 19 22:07:06 alankila: (of course there's also a performance hit for the ksm stuff) Jun 19 22:07:29 g00s: flashlight, not headlamps Jun 19 22:07:36 what does "high CRI" mean, anyway? Jun 19 22:07:43 ctate: 85 or above Jun 19 22:08:04 85 what? Jun 19 22:08:08 oh, it's a color fidelity thing? Jun 19 22:08:16 xml emitters are around 65 cold, 75 neutral warm; xpg is 75 cold; luxeon high cris are 85+ Jun 19 22:08:18 ctate: sure, to merge you need to know what to merge. That means hashing, comparing, spending a little bit of memory for those hashes, etc. But android doesn't have to do very frequent memory sweeps Jun 19 22:08:21 ctate: yeah Jun 19 22:08:27 or wouldn't have to Jun 19 22:09:27 g00s: so yeah, high CRI is good; long runtime is more important than brightness Jun 19 22:09:46 basically just want a better maglight, especially if i can get it a bit floodier than those are Jun 19 22:09:49 ctate: if i remembered correctly, color rendition was important to you. i prefer a little better runtime and higher output. but, if you are using this to identify color coded cables which cary life threatening voltages, go with the high cRi :) Jun 19 22:09:58 :) Jun 19 22:10:31 "okay, do i snip the blue wire, the turquoise wire, the green wire, or the violet wire?" Jun 19 22:11:32 What do you mean? They're all blue wires! Jun 19 22:12:07 personally i seem to have rather better color sense than most men Jun 19 22:12:12 lucky me! Jun 19 22:12:45 I seem to have crap color sense Jun 19 22:13:01 my friend was color blind, he made all his screens shades of pink Jun 19 22:15:00 JakeWharton: http://www.appbrain.com/stats/libraries/dev Jun 19 22:15:13 heh, i saw :) Jun 19 22:15:27 abs is in 0.99% of apps :-D Jun 19 22:15:31 thats cool man Jun 19 22:15:42 ViewPagerIndicator is on there too Jun 19 22:15:57 0.99% of developers have seen the light Jun 19 22:16:01 oh nice Jun 19 22:16:05 yep im using that in my app right now Jun 19 22:16:07 I emailed them to remove the spacing and change the casing Jun 19 22:16:10 no response Jun 19 22:16:10 which is finished in liek 25 mins Jun 19 22:16:27 then ill send u a link to it ;) Jun 19 22:16:48 wtf they did it with VPI too Jun 19 22:16:51 Viewpager Indicator Jun 19 22:17:02 hehe Jun 19 22:17:15 yeh annoying when ppl get ur name wrong Jun 19 22:17:24 of app:) Jun 19 22:18:26 people get my own name wrong all the time Jun 19 22:19:57 people thnk im scottish sometimes Jun 19 22:22:20 Somebody signed up for the android maps api? i get the error that my key issnt valid Jun 19 22:22:50 is your name Gaz like Gaz Coombes ? Jun 19 22:23:01 im not him Jun 19 22:23:10 sukramTM <- make sure that you give md5 hash not sha Jun 19 22:23:11 wow, the support library is only in 6.3% apps ? Jun 19 22:23:20 is he the singer dude Jun 19 22:23:37 konradyx: thx that is it Jun 19 22:23:52 but how i get the md5 Jun 19 22:24:08 give -v parameter Jun 19 22:24:18 in keytool Jun 19 22:24:22 i'm not sure Jun 19 22:25:03 thats weird that there are more people using ormlite than abs; i'm surprised anyone is using ormlite Jun 19 22:25:08 works, thy Jun 19 22:25:12 thx Jun 19 22:25:38 np Jun 19 22:25:59 but why i didnt found this hint in the documentation? Jun 19 22:26:52 Is there an easy way to get an apk from the market if my device is filtered out? Jun 19 22:27:14 sukramTM: don't ask me ;) Jun 19 22:27:16 Get a device the app supports Jun 19 22:27:56 i read that it's java version problem Jun 19 22:28:00 previous used md5 as default, now its sha1 Jun 19 22:28:02 but i'm not sure Jun 19 22:29:24 can I use in one class 2 extends ? Jun 19 22:30:30 sha1 hashes are larger than md5 Jun 19 22:30:34 sukramTM: No, only one. You can have multiple implements though Jun 19 22:33:09 i am new with java, in C++ I could use more than one extends but in java i got an error Jun 19 22:33:30 Java does not support multiple inheritance Jun 19 22:34:18 and how i can use Activity and MapActivity in one class? Jun 19 22:34:28 heh Jun 19 22:34:36 MapActivity *is* an Activity Jun 19 22:34:39 so... Jun 19 22:35:46 remember, multiple inheritance is bad Jun 19 22:36:07 existing libraries are designed so you don't need multiple inheritance. The closer you'd need is interfaces with "implements" Jun 19 22:37:24 the interesting part is that you wanted to use multiple inheritance, but you didn't even check what the super class of MapActivity was Jun 19 22:42:51 be glad you have single inheritance http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html Jun 19 22:43:06 During the memorable Q&A session, someone asked him: "If you could do Java over again, what would you change?" "I'd leave out classes," he replied. After the laughter died down, he explained that the real problem wasn't classes per se, but rather implementation inheritance Jun 19 23:02:45 g00s: well, multiple inheritance can work :) Jun 19 23:03:14 the way it is done in Java and similar object systems inheritance can be painful Jun 19 23:09:05 p_l: i'm not much of an oo theorist, but i find composition nice when you can forward messages from the outer class to the inner classes Jun 19 23:09:30 easily, like , without having to write boilerplate. like obj-c message forwarding, which i guess is like smalltalk ? Jun 19 23:09:52 I like the generic function approach. Feels much more composable than the one in Java Jun 19 23:10:00 g00s: yes. It's afaik a direct copy Jun 19 23:10:35 with Smalltalk being Alan Kay's "archetypical OO language" Jun 19 23:14:13 tradeoffs. method calls in obj-c / smalltalk are expensive. Jun 19 23:17:30 g00s: check out Go's struct embedding if you want to see that kind of composition done really well :) Jun 19 23:23:15 how come the only questions on android-developers that get answered are the ones that don't follow the guidelines? Jun 19 23:25:07 what function obsoletes [replaces] addView() in the latest versions of Android? Jun 19 23:25:49 mdwright: cool, thanks :) Jun 19 23:26:11 ctate: yeah, these things are cached at runtime, i'm not sure in real world how bad it is Jun 19 23:28:15 Can somebody help with in app billing http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 19 23:28:44 g00s: even after hashing iirc the raw x86 cost of an ObjC method call is ~ 14 instructions Jun 19 23:28:52 I mean, the latest version of the ANdroid SDK Jun 19 23:29:30 doesn't "seem" to be a problem for the iphone Jun 19 23:29:56 the world's studliest GPU buys you a lot :) Jun 19 23:30:11 I need a function that will add a RadioButton to a RadioGroup Jun 19 23:31:16 I mean, err...method Jun 19 23:31:24 * DrChaos codes in C most of the time Jun 19 23:31:51 ohai ctate Jun 19 23:32:18 Coolest operating system to bootcamp with? Jun 19 23:32:30 canadiancow ☢ mmm...cow's tongue Jun 19 23:32:30 can't you only bootcamp with win7? Jun 19 23:32:38 wabz: no Jun 19 23:32:44 hwrd|work: Arduino ;) Jun 19 23:32:58 ctate: Can you really bootcamp with arduino>? Jun 19 23:33:20 hwrd|work ☢ Coolest bootloader and OS to install on Mac? Grub 2 [no bootcamp, native EFI] + Linux [native EFI] Jun 19 23:33:28 hwrd|work: i have no effing clue Jun 19 23:33:41 https://groups.google.com/forum/?fromgroups#!topic/android-developers/Pcz7ja8tKS4 anyone? Jun 19 23:33:43 ctate: Just thought about ti, that doesn't even make sense. Jun 19 23:34:00 DrChaos: You said linux, I already don't believe you. Jun 19 23:34:04 Win95 >>> Linux Jun 19 23:35:28 You said Windows, I don't believe you Jun 19 23:36:04 wabz: NT6 (Vista/7) don't need Bootcamp Jun 19 23:41:02 When I build an AVD, wich Skin I have to take to simulate a HTC Desire HD? Jun 19 23:42:06 How do I recreate the RadioGroup from the XML file in java code? Jun 19 23:42:19 I tried this but I'm getting an error from eclipse: RadioGroup rgrp = new RadioGroup(R.id.types); Jun 19 23:43:51 or rather, grab the RadioGroup from the XML file and then manipulate it by adding some new widgets to it Jun 19 23:44:59 RadioGroup rgrp = (RadioGroup)findViewById(R.id.types); Jun 19 23:45:02 perfect Jun 19 23:46:56 is there a way to automatically update all apps from play store, even if they "require" manual update, due to most likely changed permissions? Jun 19 23:49:38 dijonyummy: no Jun 20 00:12:49 how do I wrap my whole layout in a ScrollView container? Jun 20 00:15:19 Jun 20 00:19:56 JakeWharton ☢ does not set the required layout_width attribute: set to which? wrap_content or fill_parent? Jun 20 00:25:12 wrap_content on both works gr8 Jun 20 00:29:11 use match_parent on both Jun 20 00:29:36 romainguy_: ping Jun 20 00:35:41 oh look a GoogleIO app Jun 20 00:35:49 where? Jun 20 00:35:56 https://play.google.com/store/apps/details?id=com.google.android.apps.iosched Jun 20 00:35:58 natch :) Jun 20 00:36:19 :) wish i could go to googleio in SF instead of just the Extended one from midnight until 8am.. Jun 20 00:37:20 * Play back "I/O Live" session video streams on your Android 3.0+ devices Jun 20 00:37:27 like that one :) Jun 20 00:38:43 ctate: do you know when they are going to update the iosched code http://code.google.com/p/iosched/ ? Jun 20 00:38:54 i know nothign about that Jun 20 00:39:14 looks like the 2012 version in play, but 2011 version sources available Jun 20 00:47:15 iosched 2012 looks pretty good on froyo Jun 20 00:47:23 actionbar , nice tabs and everything Jun 20 00:47:32 can't wait to see the code Jun 20 00:49:26 i wonder if this is using abs? the actionbar works very very well Jun 20 00:49:56 i think it might be Jun 20 00:50:43 ctate: could you find out ? Roman Nurik worked on last year, dunno about this year Jun 20 00:50:50 Sharky worked on the original one Jun 20 00:50:54 yeah it's roman Jun 20 00:51:05 let me rephrase: i hear he's probably using ABS Jun 20 00:51:10 :) Jun 20 00:51:21 \o/ Jun 20 00:51:26 ctate confirms … :) Jun 20 00:52:01 :) Jun 20 00:54:18 Is this possible with the android google maps api: https://developers.google.com/maps/documentation/javascript/overlays?hl=en#Polygons Jun 20 00:54:44 Hi all, I'm having an odd issue with onTouchEvent. It seems that the touch event is firing 3 times when I tap the screen on my Asus tf300 once. The code is in a custom view that extends View. onTouchEvent code: http://pastebin.com/nVrtAtQy Jun 20 00:55:34 yeah touch seems to be very sensive Jun 20 00:55:45 can trigger many times from one press Jun 20 00:56:41 hmm is there a workaround for it? like return false when my code is doing what it's doing to prevent further processing? Jun 20 00:56:54 *code is done doing what it's doing* Jun 20 00:57:14 dunno only time I had problem with it I didn't do anything because that app just adds flowers where touch is Jun 20 00:57:33 maybe add touch disable timer which stops touch event for half second Jun 20 00:58:17 hmm that could work, is the duration of the disable configurable? Jun 20 00:58:37 yeah you can set it by milliseconds Jun 20 00:59:03 just change it to timing that you feel is long enough to avoid dups but reactive enough to user. Jun 20 00:59:11 oh, i see what you mean, at first i thought you meant there was something built-in to do that Jun 20 00:59:31 nah you just create timer and add some stuff to function it calls. Jun 20 00:59:53 cool, I'll give that a try. Thanks! Jun 20 01:00:48 ok, i want to switch layouts in the same activity, and can't decide to pursue a route with 's , 's , using visiblility, or the ViewFlipper. i want to have a menu to change screens, swipe will screw up one of my layouts, which is best suited? Jun 20 01:02:07 XXCoder: ah-hah! I thought I'd switch the return true to return false real quick and see what happened with it, turns out it prevented the duplicate touch trigger Jun 20 01:03:38 touch event return false as result? Jun 20 01:03:44 yup Jun 20 01:04:28 odd Jun 20 01:04:31 public synchronized void onTouchEvent(MotionEvent event) { Jun 20 01:04:35 its void Jun 20 01:06:17 onTouch() in an OnTouchListener returns a boolean Jun 20 01:06:45 on the View class, onTouchEvent is boolean, not void Jun 20 01:06:54 ahh ok Jun 20 01:07:12 that line was from live wallpaper, which dont have view Jun 20 01:08:01 I find it kind of odd that returning false (indicating the event was not handled) prevents multiple firings of the onTouchEvent Jun 20 01:08:29 interesting. mybe its a bug? Jun 20 01:08:46 or maybe it added JUST enough delay to avoid dupicate? Jun 20 01:09:07 you know, from it looking for more listeners for touch Jun 20 01:10:41 Maybe, I suppose I could test that by changing it to use a delay instead of return false Jun 20 01:11:21 yeah Jun 20 01:11:38 could just use thread.sleep(100); Jun 20 01:11:44 thats 1/10 of a second Jun 20 01:13:30 http://www.bgr.com/2012/06/19/google-nexus-tablet-launch-rumor-google-io/ Jun 20 01:15:07 Hey, what should I use to create box structures in Android, kinda like divs in basic HTML? Jun 20 01:15:23 HeathHome: what are you trying to do exactly? Jun 20 01:15:54 If you have used the G+ app, I am trying to create containers like they use for posts. Jun 20 01:16:45 Would it just be a LinearLayout? Jun 20 01:16:48 snowinferno: how effective was thread sleep? lol Jun 20 01:17:00 HeathHome: theres few options on container Jun 20 01:17:55 XXCoder, What do you mean? Jun 20 01:18:30 Hello. I'm trying to run adb. It's worked fine for me before, but when I try to run ./adb, I get the following error: "bash: ./adb: No such file or directory." Yes, adb is there...I listed it alright. A simple "hello world" bash script works just fine, too. Any ideas? Jun 20 01:19:01 I forgot what contains is aviliable but theres more than one kind of container you can use Jun 20 01:19:02 XXCoder: lol all it did was add a delay between triggers Jun 20 01:19:39 snowinferno: not surpised, it stops your app for 1/10 second. touch events probably was just held till it woke up Jun 20 01:19:53 HeathHome: just find one that will work well. Jun 20 01:21:24 snowinferno: touch fires many times? do you check for the action too? DOWN, UP, MOVE? Down and up should each be fired only once. Jun 20 01:21:54 pboos: I'm just using onTouchEvent and it is being triggered 3 times Jun 20 01:22:25 pboos: event.getAction() Jun 20 01:22:25 ? Jun 20 01:22:48 showinferno, XXCoder: yes, that one fires ALWAYS more than once Jun 20 01:23:12 try: if (event.getAction() == MotionEvent.ACTION_UP) { ... } Jun 20 01:23:41 since when you touch, you (most likely) also do a little move ;-) Jun 20 01:23:59 so you get 1x ACTION_DOWN, 1 or more ACTION_MOVE, and 1x ACTION_UP Jun 20 01:24:09 thanks! I didn't know that. I'm going through a book that uses building apps as a teaching method. That seems like the kind of thing they should have known Jun 20 01:24:43 showinferno: if they teach about that onTouchEvent, they should have mentioned that. Jun 20 01:25:43 I'll double check, but I don't recall them mentioning it Jun 20 01:26:49 pboos: yeah 3 event - down, move and up Jun 20 01:27:02 thats something new to me :) thanks. Jun 20 01:27:19 don't forget to check for CANCEL :) Jun 20 01:27:22 is there event for hold? Jun 20 01:27:43 XXCoder: just start a timer on a DOWN Jun 20 01:28:01 (we use Handler.postDelayed() for that purpose, and we cancel the runnable on UP or CANCEL) Jun 20 01:28:10 I would think theres an action_hold Jun 20 01:28:14 but ok Jun 20 01:28:29 there is no action hold Jun 20 01:28:34 it doesn't really make sense Jun 20 01:28:42 the meaning depends on the app Jun 20 01:29:41 XXCoder: and if you need "hold" just do a view.setOnLongClickListener Jun 20 01:29:45 true would be nice to have it as "press more than X time" Jun 20 01:30:08 no problem though Jun 20 01:31:54 g00s are you going to io? Jun 20 01:35:26 why eclipse say res is not used: http://pastebin.com/eZmqcrEp Jun 20 01:36:46 ok, adding a line is not using... Jun 20 01:41:09 g00s: look in About > Open Source Licenses Jun 20 01:41:29 wow, there's overlap in the values of the MotionEvent.ACTION_ constants Jun 20 01:42:05 you have to bitwise and them to things Jun 20 01:42:45 http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_MASK Jun 20 01:43:24 then you can == them Jun 20 01:44:25 or use getActionMasked() Jun 20 01:44:36 but that is API 8 Jun 20 01:44:59 so if you target >=2.2 just use getActionMasked :) Jun 20 01:45:05 heh I'm working in ICS at the moment Jun 20 01:45:45 well, the question is: what phones does your app have to run on, only new ones, or as well older ones? Jun 20 01:46:09 since I'm just learning at the moment I'm only testing them out on my Asus tf300 tablet :) Jun 20 01:48:08 you can use MotionEventCompat from the support lib too Jun 20 01:48:13 Does anyone know of any open source android apps that have good UI examples? Jun 20 01:49:56 pboos: I just lost some respect for this book, they make no mention of checking which action is being performed Jun 20 01:52:35 JakeWharton: MotionEventCompat :) NICE! did not know that one exists. thx! Jun 20 01:54:23 Ok, I want to create a themed container that has a unique set of content within a fragment. Should I use another Fragment? Jun 20 01:55:50 canadiancow: unfortunately, no :( Jun 20 01:56:07 JakeWharton: yeah - doing that … holy crap the list is long Jun 20 01:56:34 looks autogenerated Jun 20 01:56:36 d Jun 20 01:57:07 JakeWharton: 1) context switching done 2) grats on ABS in the I/O app Jun 20 01:57:42 you're going places (or at least your name is) Jun 20 01:58:03 abs__action_mode.bar.xml Jun 20 01:58:38 nice Jun 20 01:58:39 can Jun 20 01:58:41 't wait to try Jun 20 01:58:44 and to get a new IRC client Jun 20 01:58:51 dinner Jun 20 02:03:44 hey there Jun 20 02:14:56 g00s make my abs work better Jun 20 02:15:02 FUCK I FORGOT TO RELEASE AN APP UPDATE THIS WEEKEND Jun 20 02:15:04 T_T Jun 20 02:15:11 last* weekend Jun 20 02:15:16 i guess the week's almost half over now too Jun 20 02:15:38 one thing though, when i press the menu button, the icons are not clear Jun 20 02:15:42 I'm legitimately in hell Jun 20 02:15:47 like, burning and sizzling Jun 20 02:15:48 g00s wat? Jun 20 02:15:52 readme wat? Jun 20 02:15:59 fire, brimstone Jun 20 02:16:00 i wonder if it is taking the actionbar icon, which is light grey , and putting it on top of off white Jun 20 02:16:08 satan Jun 20 02:16:13 which is the menu background Jun 20 02:16:30 so - i wonder if roman just messed this up, or if this is an issue with abs Jun 20 02:16:35 g00s: you sound like one of my clients Jun 20 02:16:39 or depends on what theme you use Jun 20 02:16:48 'the icon is not clear!?!?!?' what menu button Jun 20 02:17:03 readme: i'm testing iosched 2012 on froyo Jun 20 02:17:10 the hardware menu button Jun 20 02:17:24 ah Jun 20 02:17:34 the pane that shows up, shows some items with icons, but they are like #eeeee on #ffffff Jun 20 02:17:43 hehe Jun 20 02:18:08 readme: http://www.huffingtonpost.com/2012/06/19/dirty-dozen-foods-list-2012-ewg_n_1606256.html Jun 20 02:18:53 yeah i guess i should get organic Jun 20 02:19:10 that list in the Open Source Licenses in iosched has been generated a little oddly :p Jun 20 02:19:25 i scrolled through the whole damn thing :| Jun 20 02:19:30 yeah same Jun 20 02:19:36 i should get a free i/o ticket for that accomplishment :) Jun 20 02:19:45 it has a few .svn-base Jun 20 02:19:51 lol Jun 20 02:20:24 i think there is probably a price on my head by some googlers, maybe not a good idea to show up at i/o after all Jun 20 02:20:32 and a Notices for files: followed by the entire apache license definition Jun 20 02:22:51 what music should I listen to in order to inspire myself to code faster Jun 20 02:22:57 corelli Jun 20 02:23:22 readme: none , maybe white noise or something like that Jun 20 02:23:36 if you're using Froyo and using the I/O app... Jun 20 02:23:41 but if no distractions, despite what people often say, music impedes cognition Jun 20 02:23:42 i'm not writing hard code, just lots of boring code Jun 20 02:23:48 oh I read a study on this Jun 20 02:23:54 also if you want it to seem like you're achieving something listen to this http://www.youtube.com/watch?v=42MAk4_DBFc Jun 20 02:24:06 when the task is very familiar, music won't effect it really Jun 20 02:24:17 but I totally agree on white noise Jun 20 02:24:33 if I was going to code something actually worth the bytes it will be stored in then i'd use white noise Jun 20 02:26:06 are you writing sql for a content provider? :p Jun 20 02:26:19 i've been there / learned not to do that Jun 20 02:26:34 bunch of mysql - rest - android - very anal layout work Jun 20 02:27:01 i would never use a CP unless the requirement was to share with other apps Jun 20 02:27:22 JakeWharton: any ideas? i'm just guessing, i have no understanding of actionbars, but i'm guessing the ab icon like refresh is #ffffff w/80% opacity. when you put that on the old froyo menu background, it doesn't work well Jun 20 02:27:31 correct Jun 20 02:27:32 well, with the dark theme, which has the light icons Jun 20 02:27:36 thanks for the music recommendation Jun 20 02:27:38 stupid old phones Jun 20 02:27:51 JakeWharton: so, is the solution then to use a light theme with darker icons ? Jun 20 02:27:57 i have been wanting to listen to more classical.. mozart last night Jun 20 02:27:59 minSdkVersion="9" Jun 20 02:28:01 is the solution Jun 20 02:28:02 or would that f up GB menu background :D Jun 20 02:28:03 also playing the Magic Piano Jun 20 02:28:10 that thing makes me sound like a virtuoso Jun 20 02:28:13 oh fuck, i can't do that Jun 20 02:28:18 i have to have minsdk = 8 Jun 20 02:28:48 so give Froyo its own icons Jun 20 02:28:55 for their ugly white menus Jun 20 02:29:13 so i can have different menu icons and ab icons ? Jun 20 02:29:18 no Jun 20 02:29:24 hehe Jun 20 02:29:34 replace the built in ugly menu with a black one Jun 20 02:29:55 maybe ABS 5 will support that Jun 20 02:30:05 JakeWharton: :O http://books.google.com/books?id=FLkQ7_J8zzYC&pg=PA331&dq=hubroid&hl=en&sa=X&ei=kzXhT8yQB6GY0QG5sMScAg&ved=0CDUQ6AEwAA#v=onepage&q=hubroid&f=false Jun 20 02:30:07 can't wait to drop 2.1 support Jun 20 02:30:21 JakeWharton: but 8 is 2.2 Jun 20 02:30:30 i know Jun 20 02:30:32 so you want to drop 2.2 also ? Jun 20 02:30:44 um, i want to drop anything non-ICS Jun 20 02:30:48 or rather, non-3.2+ Jun 20 02:30:49 haha Jun 20 02:30:52 me too XD Jun 20 02:31:03 so do it Jun 20 02:31:08 make a beautiful app, support 14+ Jun 20 02:31:31 i have a froyo phone :( Jun 20 02:31:43 get a phone from this decade Jun 20 02:32:02 i hope the nexus 7 can replace this as my dev device Jun 20 02:32:10 basically, i need bluetooth Jun 20 02:32:21 once the emu has it, maybe i don't need any hw Jun 20 02:32:34 the emu is supposed to have it, supposedly ;) Jun 20 02:32:37 *some time) Jun 20 02:32:57 you can get an unlocked phone for like $200-300 on swappa that has bluetooth Jun 20 02:33:14 I hope they have more devices than the nexus 7 Jun 20 02:33:28 i hope it's not called the nexus 7 Jun 20 02:33:33 i'm already sick of hearing people say that Jun 20 02:33:36 mhmm Jun 20 02:33:38 i would get an unlocked n1 for dev Jun 20 02:33:50 but i think they are scarce now Jun 20 02:34:05 i carry one in my bag Jun 20 02:34:10 haven't turned it on in months Jun 20 02:34:15 JakeWharton: oh nice Jun 20 02:34:17 I never knew of this site Jun 20 02:34:25 battery is probably in fits Jun 20 02:34:26 I did at one point imagine it would be a good idea to do this, though Jun 20 02:34:28 I've got my g1 still plugged in next to me Jun 20 02:35:42 do anybody recommend any beginner friendly learn java books? Jun 20 02:35:43 i'm fly like a g1 Jun 20 02:36:00 JakeWharton: it's still running Froyo like a champ Jun 20 02:36:06 use it for all my worst-case testing Jun 20 02:36:45 i usually just configure an emulator inside my windows VM inside my linux VM on my Mac while running Diablo 3 on full settings Jun 20 02:36:49 and should i learn xml, or is it so easy i dont need to learn it? I basically can look at it and understand; but I was wondering if there's more stuff I would need to know Jun 20 02:37:00 * Jug6ernaut loves when he ask ppl who sing "high like a g6" who dont know what a g6 is Jun 20 02:37:15 whats a g6 Jun 20 02:37:23 is it a ju g6 ernaut Jun 20 02:37:28 private jet Jun 20 02:37:36 xD Jun 20 02:37:49 sexy jet to be exact Jun 20 02:38:00 lol Jun 20 02:38:03 JakeWharton: so yeah, Hubroid is published in this For Dummies book Jun 20 02:38:09 which is strange because it's not a tablet app Jun 20 02:38:24 is that the one by Donn Felker? Jun 20 02:38:27 do anybody recommend any beginner friendly learn java books? Jun 20 02:38:30 and should i learn xml, or is it so easy i dont need to learn it? I basically can look at it and understand; but I was wondering if there's more stuff I would need to know Jun 20 02:38:32 only one person selling gnex on swappa and his price is higher than new from google :) Jun 20 02:38:36 JakeWharton: yeah Jun 20 02:38:38 YoGabaGaba: protip: don't repeat yourself Jun 20 02:38:41 we all heard you Jun 20 02:38:53 yogabagaba just dive in, if u like it you'll learn it Jun 20 02:39:11 YoGabaGaba: head first java maybe Jun 20 02:39:36 emphasis on beginner friendly. not my style Jun 20 02:39:51 ProTip /part Jun 20 02:39:54 i can't understand 'manga for linear algebra' … what are they coming to ? Jun 20 02:40:10 i heard head first isn't beginner friendly Jun 20 02:40:27 do ppl still read books these days? Jun 20 02:40:33 seriously google is your friend Jun 20 02:40:44 i have a java book, got it for college, used it like...once? Jun 20 02:40:55 i like a hard copy for when i'm bored, but lmgtfy is pretty cool Jun 20 02:41:04 YoGabaGaba: it doesn't get any easier than that :| Jun 20 02:42:12 head first is specifically written for beginners. Jun 20 02:42:21 it's mostly full of cartoons Jun 20 02:42:27 haha Jun 20 02:42:31 my girlfriend is reading head first excel.. Jun 20 02:42:37 lmao Jun 20 02:43:25 got to remind her to actually read the second chapter... she said something about having finished the first one and all I could think was oh, you mean the one that consists entirely of cartoons, and nothing else Jun 20 02:44:15 lol Jun 20 02:44:28 first chapter is like "ok your read to actually do something now" Jun 20 02:49:23 * readme 's playing moonlight sonata on smule magic piano Jun 20 02:49:31 hey there.. I suppose this may be a matter of opinion, but, suppose I have some data I need to ask the user for to input, like a date. Id like to capture this by a DatePickerDialog, so, for the guy who triggers the dialog on tap, would you use a TextView or an EditText thats hooked with an onClickListener? Either way the codes the same, but just as a matter of aesthetic I suppose Jun 20 02:49:35 * g00s is trying to figure out what is new in git 1.7.11. Jun 20 02:52:36 nothing you will ever use Jun 20 02:52:38 so why bother Jun 20 02:52:53 add, commit, push, pull, merge, rebase, clone Jun 20 02:53:01 i'll stay at 1.7.10.4. Jun 20 02:53:46 did they remove that essential --feature-flag-that-nobody-ever-uses that you use? Jun 20 02:53:49 is there a problem with Samsung devices and BitmapFactory.decodeFile() ? The docs say it should return null on failure, but i'm getting exceptions Jun 20 02:54:10 JakeWharton: i'm more concerned with stability than any new flags Jun 20 02:54:40 xorgate: I wouldnt expect a device with a stock rom to behave in an unexpected way such as that Jun 20 02:54:59 what r the exceptions Jun 20 02:55:15 file not found, for example Jun 20 02:55:32 i can write code around it, but i wasn't expecting this Jun 20 02:55:47 xorgate: looking at the code, it swallows exceptions Jun 20 02:55:49 thats weird Jun 20 02:56:02 lemme get a log Jun 20 02:56:11 Samsung is for humans Jun 20 02:56:14 humans like exceptions Jun 20 02:56:31 have any of you played with the SGSIII? Jun 20 02:56:32 if it fails it should just return null Jun 20 02:56:33 i'd check how u r getting that files path, not to say u r doing it wrong,but does same code work on different devices under same circumstances? Jun 20 02:56:37 it is so awful it hurts Jun 20 02:57:19 https://gist.github.com/8b2c38e28df0b3e1fcc9 Jun 20 02:57:37 JakeWharton: so, syllogistically, If Samsung is for humans,and humans like exceptions, Samsung likes exceptions? Jun 20 02:57:47 they must Jun 20 02:58:07 exceptions are meant to be thrown Jun 20 02:58:10 the bus is for humans, and humans like pie, therefore the bus likes pie Jun 20 02:58:12 Samsungs are meant to be thrown Jun 20 02:58:20 yay transitive property! Jun 20 02:58:23 Before my SGS Captivate took a dump on me, I never really ran into weird behavior, even when using custom roms Jun 20 02:58:32 rofl! yeah I wanna throw my captivate actually.. Jun 20 02:59:03 xor, you're logic is retarded, therefore you're mother had sex with me last night in my jacuzzi Jun 20 02:59:05 anywho i was wondering if anyone has a GT-I9000 and would help me out :0 Jun 20 02:59:21 xorgate: it has to be european? Jun 20 02:59:41 drpenguin certainly not! (i think?, what an odd question) Jun 20 02:59:57 thats what the i9000 series phones are, euro phones **** ENDING LOGGING AT Wed Jun 20 02:59:59 2012