**** BEGIN LOGGING AT Sun Oct 28 03:00:03 2012 Oct 28 03:42:36 how can i change a variable's value after a certain amount of time? Oct 28 03:42:47 i have a handler and a runnable, but i can't change anything that's outside the runnable Oct 28 03:47:57 hi i am trying to publish my first app but having this issue - The certificate that signed this apk is not valid until the future. Create a new certificate. Oct 28 03:47:58 any idea Oct 28 03:49:53 ultra-: yes, you can change things outside of the runnable. Just not variables that are on the stack in function-scope. Oct 28 03:49:59 http://pastie.org/5126062 Oct 28 03:50:17 that said you're probably approaching this in a way that you're going to introduce buggy race conditions into your program. Oct 28 03:50:24 so I'd think about this a little harder. Oct 28 03:51:38 well, i'm trying to fade out my view (AlphaAnimation), change a value that changes its color (int color), then fade in with the new color Oct 28 03:51:52 so i have two alpha animations to fade in, out… in has a start offset Oct 28 03:52:07 the animations have onComplete etc type listeners that you should use. Oct 28 03:52:17 i tried that too, but same problem Oct 28 03:52:25 the method has (int color) as an argument Oct 28 03:52:37 and i can't use this.color = color in the listener Oct 28 03:52:48 show code Oct 28 03:52:53 one second Oct 28 03:54:30 http://pastie.org/5126078 Oct 28 03:54:34 anyone have some experience with IMEs? Oct 28 03:55:09 oh, i could probably do this: final int newColor = color outside of the animationlistener Oct 28 03:55:15 then this.color = newColor Oct 28 03:55:47 nope, it still can't resolve this.color Oct 28 03:55:56 why would you use this.color? Oct 28 03:56:00 what are you trying to set the color on Oct 28 03:56:26 the animation listener? I'm sure that animation listeners are not very colorful. Oct 28 03:56:46 because, that's what this means Oct 28 03:57:03 the global variable int color Oct 28 03:57:13 actually, i should be using setColor() for the paints Oct 28 03:57:20 what is the newest available os for android bionic Oct 28 03:57:24 ok: try MyClass.this.color but I would discourage this approach. Oct 28 03:57:33 it might be the only easy one so just go with it. Oct 28 03:58:07 yeah that was my problem… for some reason i thought i was setting the paint colors from onDraw and was using a global variable that i'm not actually using anymore… it allows textPaint.setColor() Oct 28 04:04:15 does foxfi work with the newest ics Oct 28 04:08:27 how long does a published app take to show up in market Oct 28 04:08:49 not long Oct 28 04:08:56 it's available now if you build your own url. Oct 28 04:09:41 https://play.google.com/store/apps/details?id=com.sylon.app Oct 28 04:10:20 tdignan: i tried that its not Oct 28 04:10:24 not sure if i published it right Oct 28 04:14:34 well double check all your stuff.. you do have to select your APK as published etc. Oct 28 04:15:11 yea i did Oct 28 04:15:26 does google lower case your namespace Oct 28 04:15:27 or whatevrr Oct 28 04:18:59 it says my app is published Oct 28 04:19:01 in the console Oct 28 04:19:06 but i cant see it in market Oct 28 04:19:09 even with the url Oct 28 04:29:44 What are the restrictions regarding Service's and View's widgets? Oct 28 04:29:53 Views/widgets* Oct 28 04:30:00 Your Registration to Google Play is still being processed. Oct 28 04:30:07 so that means that i have to wait, right Oct 28 04:31:11 nah, it means they took your money and just ripped you off. Oct 28 04:31:18 it's a big joke they play on noobs Oct 28 04:32:26 maslen: you mean restrictions like "Services run in the background and don't touch the UI"? Oct 28 04:34:11 technically.... Oct 28 04:35:03 Leeds: Yes. Are all of the details enumerated somewhere? Oct 28 04:36:11 what sort of details, beyond "Services run in the background and don't touch the UI"? Oct 28 04:36:11 What I'm thinking of is making a class that extends View, and the Service uses it whenever a View is needed. That View would call back into the Activity, which would call the respective function on the 'original' View. Oct 28 04:37:53 basically, a relatively simple method of wrapping, at the android-API level Oct 28 04:38:42 that seems like a weird and unnecessary thing to do Oct 28 04:40:25 tdignan, thanks for the witty answer Oct 28 04:40:39 Perhaps. It's for research. Oct 28 04:41:01 (Involving a professor - which perhaps explains everything) Oct 28 04:41:10 it's saturday. hence the delay Oct 28 04:41:16 infact, it's sunday here Oct 28 04:41:26 Sculptor: you're *really* delayed - yeah, Sunday Oct 28 04:41:43 Leeds, 5:41am sunday Oct 28 04:41:59 12:41 lunchtime Sunday Oct 28 04:42:00 :P Oct 28 04:42:30 must be asia Oct 28 04:43:31 yeah. japan or even indonesia Oct 28 04:43:43 or australia/nz Oct 28 04:43:45 or hong kong Oct 28 04:43:58 one of the above... Oct 28 04:44:26 12:44pm Sunday (CIT) - Time in Bali, Indonesia Oct 28 04:47:52 Sculptor: np Oct 28 04:48:38 i have a locked phone. if i root it and install cyanogenmod, will that unlock it? Oct 28 04:50:47 I wish I was in Bali right now :) Oct 28 04:51:00 ashes: see the topic, #android-root for you Oct 28 04:51:06 k Oct 28 04:51:11 there is going to be a severe hurricane here in a bit. Oct 28 04:51:36 quick to the bunker Oct 28 04:52:33 brace yourself Oct 28 04:56:37 hey guys, quick q would anyone know why my animation would work only on 4.1.2 and not 2.3.3? Oct 28 04:56:58 pYFriZ64 Oct 28 04:57:02 http://pastebin.com/pYFriZ64 Oct 28 04:58:03 . Oct 28 05:23:49 tdignan: which state? you in a yellow/red area? Oct 28 05:23:56 mass Oct 28 05:26:15 nyc here Oct 28 05:33:45 eh it shouldn't even be bad. weather.com says it's only category 1 Oct 28 05:33:46 last year was much worse, especially for ny Oct 28 05:38:35 hi Oct 28 05:46:07 does anyone here uses ndk? Oct 28 05:48:40 If my app is targeting ICS and above, what do I use to make a Play Store like swipey tabs UI? Oct 28 05:49:14 fragments with horizontal scrollview perhaps? Oct 28 05:49:17 I assumed ICS and above had something in the SDK, but I can't find anything. Will I have to use one of the libraries? Oct 28 05:49:38 actionbar is for tabs Oct 28 05:50:21 Oh wait, I just discovered ViewPager Oct 28 05:50:46 Too many similarly named things, damn Oct 28 05:51:52 check out ViewPagerIndicator library Oct 28 06:17:23 does anybody have the USB driver for the ADK2012 on osx? Oct 28 06:17:46 https://groups.google.com/forum/#!msg/android-developers/rTdNUVbE2_A/Fx-GqsV8Vk8J <-- suggests that there is one Oct 28 06:19:35 issackelly, I have never had to install a driver for android dev on a mac Oct 28 06:20:47 gutano strange. some say you need it, it's not I can see that it's connected in my USB probe, but it does not show up in the serial port list when I'm connected via USB Oct 28 06:22:16 I think I may have found it Oct 28 06:22:16 https://groups.google.com/forum/#!topic/adk-developers/YHym_nGIX-4 Oct 28 06:22:27 Vlad and I are having the same issue. Oct 28 06:22:45 your barking up the wrong tree Oct 28 06:22:54 do you have debugging enabled on the phone? Oct 28 06:23:28 I'm not dealing with the phone. I'm dealing with the ADK Oct 28 06:23:49 the hardware kit Oct 28 06:24:42 that just a bare board or something (not familiar) Oct 28 06:25:04 ahh... accessory Oct 28 06:25:23 don't mind me, I'm not familiar at all then Oct 28 06:25:59 between ADT/SDK, I was just assuming you had your acronyms wrong (my bad) Oct 28 06:27:04 no worries :) Oct 28 06:27:37 yeah, it's an arduino based accessory development board Oct 28 06:28:14 that does sound like fun... if only I had the time to tinker Oct 28 06:28:37 too many acronyms Oct 28 06:29:29 i have wanted to try using libusb to turn a desktop/laptop into an 'accessory' Oct 28 06:30:21 worked! writing to flash Oct 28 08:01:34 is it posible to extract the AndroidManifest.apk from a fully compiled apk? Oct 28 08:07:01 oops, xml Oct 28 08:32:04 looks like aapt d xmltree foo.apk AndroidManifest.xml is what i want Oct 28 08:37:05 or you can open it with 7z Oct 28 08:37:54 Sculptor: i can already unzip the apk, the problem is the xml file was converted to a custom binary format Oct 28 08:38:21 it seems to also do it with the layout files Oct 28 08:38:25 ah, didn't know that. thanks Oct 28 08:38:41 i never ripped off anyone's code - hence i don't know Oct 28 08:38:42 ive noticed it in the errors before, when i had slightly invalid layout Oct 28 08:38:55 i was looking for the custom url schemes, like foo:// Oct 28 08:39:08 so i could check vnc apps to see if any can be started from the browser Oct 28 08:39:40 now that i know what to look for, i need an apk of a vnc viewer, or the source :) Oct 28 08:42:07 clever, here http://code.google.com/p/android-vnc-viewer/ Oct 28 08:42:30 the main thing i need, is the ability to set both ip and password in that command Oct 28 08:42:47 * clever checks Oct 28 08:43:18 hmmmm, that project does support vnc://!, *digs more* Oct 28 08:43:41 source code is available Oct 28 08:43:43 its hooked to the VncCanvasActivity Oct 28 08:43:51 yeah, its easyer to find the protocol when i have source Oct 28 08:45:19 http://code.google.com/p/android-vnc-viewer/ Oct 28 08:45:29 http://code.google.com/p/android-vnc-viewer/source/browse/trunk/eclipse_projects/androidVNC/src/android/androidVNC/VncCanvasActivity.java#536 Oct 28 08:45:32 ok, found out where it handles it :) Oct 28 08:47:19 Sculptor: i'll need to test, but from the code, it looks like vnc://host:port/colormodel/password Oct 28 08:51:00 could be Oct 28 08:52:01 just need to figure out what a sane colormodel is Oct 28 08:54:39 i'm guessing C24bit may work Oct 28 09:08:08 hey guys Oct 28 09:08:21 o/ Oct 28 09:08:34 how do i limit the shareActionProvider of the ActionBar to just facebook, google+ and twitter? Oct 28 09:08:48 good question Oct 28 09:15:08 hi guys, i think everyone got dced Oct 28 09:15:14 so i'm gonna ask again if that's okay Oct 28 09:15:24 how do i limit the shareActionProvider of the ActionBar to just facebook, google+ and twitter? Oct 28 09:30:20 hm. checking out this lmax disruptor library for concurrency, wonder if it could be useful in android Oct 28 09:54:53 is there a function on android to convert e.g. mp3 or ogg to a pcm buffer? Oct 28 10:08:33 vandenoever, nop, you have to do it manually, even for a wav pcm you have to parse the header (per example to know the sample rate) and remove the header to feed audiotrack Oct 28 10:13:10 adq: ok, thanks, that's a shame. i can imagine this is a very common use case Oct 28 10:14:23 maybe i should look at libavformat and ndk Oct 28 10:19:53 hey Oct 28 10:19:59 Alight so, why does my phone say insufficient storage space even tho i got most of my apps saved to sd card? Oct 28 10:20:11 gahh Oct 28 10:20:24 im using cyanogenmod if that helps Oct 28 10:20:29 wasted half the day trying to figure out how to alphaanimation on a shape drawable in gingerbread Oct 28 10:20:35 turns out you can't do it Oct 28 10:32:33 Hi, what's the proper way to support Android 2.1 > and ICS phones and tablets with regards to menus and action bars? It's all rather confusing... Oct 28 10:35:11 I just want a simple menu, nothing fancy, but I can't use the old way of creating menus, as it breaks on tablets without buttons. Oct 28 10:36:07 MarkG1234, using ActionBarSherlock is the best way Oct 28 10:38:31 You can use the "old way" of creating menus Oct 28 10:38:38 When an actionbar is available they go there Oct 28 10:39:01 why not just create an xml panel with buttons and include that in your layouts? Oct 28 10:39:06 Just remember to use Theme.Holo on 3.0+ Oct 28 10:39:44 Google don't seem to offer any official advise on this... Oct 28 10:40:51 155 MB used - 30 MB free, ive got 13 apps, 9 are on sd card - is this making sense? Oct 28 10:41:10 depends on the apps Oct 28 10:41:11 screwsss: wrong channel Oct 28 10:44:50 even in the right channel no one could tell you Oct 28 10:52:14 does anyone have cm10 on a large tablet? Oct 28 10:56:01 elliptic1: ive 13" but ics Oct 28 10:57:14 is your Settings app two panes? Oct 28 11:01:07 Leeds - not exactly gettin the answer i want in the right channels Oct 28 11:01:15 not gettn any answer actually Oct 28 11:01:16 :( Oct 28 11:01:38 a) have patience b) you didn't answer *my* question to you Oct 28 11:03:14 you asked me a question!? Oct 28 11:03:27 yes, and you're still talking in the wrong channel Oct 28 11:05:07 ohh you asked me in android root Oct 28 11:05:10 okay i have 10 windows open soz Oct 28 11:05:24 it would help if you could learn to use your IRC client Oct 28 11:06:38 hello can anyone help me put the compiled android on my phone? Oct 28 11:06:52 loin: you mean your app? Oct 28 11:06:55 lol Oct 28 11:07:05 not the app Oct 28 11:07:09 android Oct 28 11:07:11 the whole thing Oct 28 11:07:19 then you are asking in the wrong bloody place Oct 28 11:07:25 #android-root Oct 28 11:07:53 thanks tech1 Oct 28 11:08:05 elliptic1: it is a list of categories and the specific config screen next to it Oct 28 11:09:47 vandenoever ok thanks I'm trying to figure out the Fragments thing Oct 28 11:13:43 ok why can't I access onBufferingUpdateListener() and onBufferingUpdate() of MediaPlayer through VideoView which extends MediaPlayer ? Oct 28 11:14:28 maybe they're private Oct 28 11:15:19 well the purpose was so I could pop up a spinning progress bar, and I have it now sortof working but its dirty stackoverflow hack Oct 28 11:16:15 spinning progress bar when the user moves the MediaController slider to another position and it has to load the video again to that position or internet connection being slow Oct 28 11:16:45 which any user expects of any basic video player ;) Oct 28 11:17:03 Maybe it's because it doesn't extend MediaPlayer Oct 28 11:17:17 ok they said it 'wraps' it Oct 28 11:18:28 shmooz: can you access the MediaPlayer and register there? Oct 28 11:20:30 I haven't successfully got MediaPlayer to display video, they said to use VideoView to save time and have advantage but some basics are not there , so I will try MediaPlayer with custom surface I guess Oct 28 11:21:18 I will have to eventually drop MediaPlayer too because it doesn't support enough formats like MX Player does Oct 28 11:22:09 once I learn the NDK and how to compile and use ffmpeg libs and package it with the app .. Oct 28 11:24:49 shmooz: i'm looking into ffmpeg atm too Oct 28 11:25:06 luckily ffmpeg 1.0 has just been released :) Oct 28 11:25:24 silly that each app has to reinvent the wheel and add a static ffmpeg Oct 28 11:26:18 Hi Oct 28 11:26:59 I guess ffmpeg's licencing would stop android dudes from including it in MediaPlayer ? Oct 28 11:28:21 it's mostly lgpl Oct 28 11:30:02 I am trying to read data from the internet, I created a URL object, opened a connection to it, connected to it, got the input stream, decorated it using InputStreamReader and BufferedReader, but when I try to read from it, I get exceptions Oct 28 11:30:15 i have pasted the code and the error log here https://gist.github.com/3968366 Oct 28 11:30:17 well either way, I know its possible , but you gotta be freakin rocket scientist lol Oct 28 11:31:20 sulaiman: Have you actually read the exception? Oct 28 11:31:33 It's almost a full sentence explaining what is wrong Oct 28 11:33:29 SimonVT, yes, I am still confused Oct 28 11:33:41 Caused by: android.os.NetworkOnMainThreadException Oct 28 11:33:49 You're doing network on the main thread, don't do that Oct 28 11:34:07 use a asynctask! Oct 28 11:34:21 oh okay, i'll fix that, thanks SimonVT, elliptic1 Oct 28 11:35:03 Remember to split up the method, you can't touch the ui from a background thread Oct 28 11:35:05 SimonVT: does it always throw an exception like that, or is it a debug thing? Oct 28 11:36:17 i think you will be posting a runnable at some point Oct 28 11:36:27 No idea, I don't usually put strict mode violations in release builds Oct 28 11:36:59 SimonVT: ive been doing http from my service and havent noticed anything like that Oct 28 11:37:07 and i'm pretty sure it was in the main thread Oct 28 11:37:23 Whether that check is enabled depends on your target api Oct 28 11:37:35 clever, I also forgot the INTERNET permission, i think that is why Oct 28 11:37:49 sulaiman: yeah, thats more likely to make it fail hard Oct 28 11:37:51 And what api level you test on Oct 28 11:42:50 Is anyone familiar with Fragments and in particular PreferenceFragments? Oct 28 11:42:52 clever, SimonVT: I reduced the api level to 8, used the INTERNET permission, and it worked. Oct 28 11:43:12 I am still going to modify it to run in a separate thread though Oct 28 11:43:12 ah, should still fix it to use async, so the ui doesnt hang Oct 28 11:43:15 yeah Oct 28 11:43:24 Way to ignore best-practice advice Oct 28 11:43:32 Networking takes time Oct 28 11:43:44 While you're blocking the main thread, nothing else can happen Oct 28 11:43:50 SimonVT, I understand, I was only trying to figure out why it failed. I am going to use async Oct 28 11:44:50 once I figure out what it is Oct 28 13:04:47 is there a standard place in the intellij / android project folder to save (related per-project) documentation that won't be build into the final .APK ? Oct 28 13:13:05 eh - i found one Oct 28 13:14:47 good stuff Oct 28 14:28:12 clever, SimonVT, elliptic1: I modified my demo code to use async https://gist.github.com/3968737 Oct 28 14:28:18 thanks Oct 28 14:28:38 Hy, is there a way to debug my web app under chrome for android without having a physical device that able to run it? Oct 28 14:29:08 u-foka: yes, you can run it in the emulator that comes with the android sdk Oct 28 14:29:33 u-foka: you can choose the version of android you'd like to run Oct 28 14:34:19 except that chrome doesn't come with the emulator, and is only available from the play store Oct 28 14:35:01 Leeds: yeah, that's what I was thinking Oct 28 14:35:09 ah right, i forgot that there was a second webkit based browser Oct 28 14:37:18 If you google around there are a few apk's uploaded which you could download and install on your emulated android device Oct 28 14:37:33 make sure you are emulating android 4.0 or higher Oct 28 14:41:53 if i buy a tablet can I write apps on it? like is there an ide etc? Oct 28 14:43:07 brx_: there's aide Oct 28 14:43:12 it's very good Oct 28 14:43:24 but it's still a lot harder to use than a computer Oct 28 14:43:58 brx_: https://play.google.com/store/apps/details?id=com.aide.ui&hl=en Oct 28 14:44:16 thanks Ankhwatcher Oct 28 14:44:42 have you tried it yourself Ankhwatcher Oct 28 14:44:48 brx_: yes Oct 28 14:45:07 do you use it on a regular basis, or is that out of the question? Oct 28 14:45:13 It's really easy to import projects from github and dropbox Oct 28 14:45:26 but it doesn't seem to support google api packages Oct 28 14:45:44 which makes most of my projects uncompilable through it Oct 28 14:45:46 ahh i see Oct 28 14:46:12 ye i suppose you would loose quite a bit not being able to use the google apis Oct 28 14:46:30 brx_: if you get a nexus 7 you could try: https://wiki.ubuntu.com/Nexus7/Installation Oct 28 14:46:39 Ubuntu on a Nexus 7 Oct 28 14:46:48 ahhhh nice Oct 28 14:47:03 maybe eclipse will work on it, not sure how you would hook up the device to debug to though Oct 28 14:47:59 Ankhwatcher, can you hook up a keyboard and mouse to a nexus 7? i couldnt imagine coding using a touchscreen interface Oct 28 14:48:08 that would be agony Oct 28 14:48:28 yes, the nexus 7 has USB OTG and Bluetoot Oct 28 14:48:47 you can hook a keyboard and mouse through usb otg Oct 28 14:48:52 are you using a nexus 7 yourself? Oct 28 14:48:58 I have one here Oct 28 14:49:19 we need a dock released which charges over pogo pins Oct 28 14:49:34 why is the battery capacity grim? Oct 28 14:49:43 that would allow the N7 to charge while hosting usb keyboard and mouse Oct 28 14:49:46 heya - HOW TO backup cm 7 settings - titanium backup? Oct 28 14:49:53 it's weird how they build all these devices with pogo pins but never really seem to use them Oct 28 14:50:50 i ight sell a macbook i have for a nexus 7 Oct 28 14:52:30 Leeds: yeah, drive me nuts Oct 28 14:52:48 I never used the pins on N1 Oct 28 14:54:58 brx_: AIDE will run on a phone, so maybe you should try it out there Oct 28 14:55:10 i was just looking now, om my desire Oct 28 14:55:28 s or original? Oct 28 14:55:30 just listed my macbook on gumtree too Oct 28 14:55:32 original Oct 28 14:55:45 its lasted me 4 years! never had a problem with it Oct 28 14:55:53 bs Oct 28 14:55:58 it came with a problem Oct 28 14:56:04 lol, which is? Oct 28 14:56:14 it didn't have nearly sufficient internal storage Oct 28 14:56:25 very true, ye Oct 28 14:56:36 htc couldn't fit their own updates on the damned thing Oct 28 14:56:38 but i have a lightweight ROM installed and dont download many apps tbh Oct 28 14:57:10 that's not "never had a problem with it" that's "worked around it's design flaw" Oct 28 14:57:46 hehe, i suppose Oct 28 14:58:14 ah well, other than that they were pretty good little phones Oct 28 14:59:00 ye definetly, ive seen worse android devices but like i said its done me good over the past eon Oct 28 15:03:28 macbook listed on gumtree :D Oct 28 15:03:33 bring on the nexus 7 baby Oct 28 15:03:38 lol Oct 28 15:03:53 are you going to wait for the 32GB? Oct 28 15:04:16 some bloody hurricane has delayed it Oct 28 15:04:41 dunno, should i wait? Oct 28 15:04:47 brx_: yes Oct 28 15:04:55 the price of the 16GB will drop Oct 28 15:05:08 and the 8GB is gone Oct 28 15:05:20 brx_: where are you? Oct 28 15:05:21 yeah, I absolutely wouldn't buy an N7 until the new pricing rolls out Oct 28 15:05:30 england Ankhwatcher Oct 28 15:05:51 ok thanks for the info Ankhwatcher , Leeds Oct 28 15:05:53 apparently it's already in Curry's Oct 28 15:07:15 ok Oct 28 15:07:39 http://www.mobot.net/google-nexus-7-16gb-price-cut-expected-32gb-launch-49343 Oct 28 15:08:44 cool as milk Oct 28 15:09:03 the price in Ireland for a 16GB Nexus 7 from PCWorld https://www.google.ie/webhp?rlz=1C1LENN_enIE482IE482&sourceid=chrome-instant&ie=UTF-8&ion=1#hl=en&gs_nf=3&tok=__b5FwHaNEsvkvgrY6AeNw&cp=16&gs_id=f&xhr=t&q=229.99+eur+in+gbp&pf=p&safe=off&rlz=1C1LENN_enIE482IE482&sclient=psy-ab&oq=229.99+eur+in+gp&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&fp=f866dbcc70375457&bpcl=35466521&ion=1&biw=1517&bih=741 Oct 28 15:09:37 PaddyTax is alive and well Oct 28 15:10:05 lol Oct 28 15:10:13 I wonder what hte PaddyTax markup on the Nexus 4 will be Oct 28 15:12:39 paddytax? Oct 28 15:12:55 irish / leprechauns Oct 28 15:15:51 ah Oct 28 15:18:07 http://www.peoplesrepublicofcork.com/forums/archive/index.php/t-126885.html Oct 28 15:18:47 a bunch of people from cork griping about O2 and the iPhone back in 2008 Oct 28 15:34:24 Once in a while I receive an error report showing a NoClassDefFoundError: Oct 28 15:34:30 java.lang.NoClassDefFoundError: java.util.ArrayDeque Oct 28 15:34:51 however, this is on a code path that every user comes across multiple times Oct 28 15:35:00 Can this be due to a bad install or some such? Oct 28 15:35:08 Sera6x7: the device probably has a too low api? Oct 28 15:36:55 I restrict installs to SDK7 and up, and it's not part of the SDK Oct 28 15:37:45 Sera6x7: arraydeque has been implemented in apilevel 9 Oct 28 15:39:38 hmm, ok that would explain it Oct 28 15:40:25 thanks, at least I'll know that an easy workaround will work Oct 28 15:40:42 np :) Oct 28 15:41:15 Hi ! Oct 28 15:41:24 Please, I have a problem with a xml include Oct 28 15:42:21 here are my ressources files : http://sprunge.us/JOTG?xml and http://sprunge.us/KaeX?xml Oct 28 15:42:48 and here is the error : res/layout/menu.xml:132: error: Error parsing XML: junk after document element Oct 28 15:43:35 you have incorrect xml Oct 28 15:43:37 Xeli: is there an overview of which parts of Guava are available at which SDK levels? Oct 28 15:44:00 Gaulois94: as the error indicates, you have a button tag after the RelativeLayout Oct 28 15:44:55 MDijkstra: and I can't ? Oct 28 15:45:16 Because I want to include this file, thus after, the Button is in my slider layout Oct 28 15:45:22 Sera6x7: I haven't worked with guava so I wouldn't know. but you can try setting your targetapi to the minapi and the compiler will tell you what you can or cannot use Oct 28 15:45:29 Layout resources can only contain one top level tag Oct 28 15:45:38 Either a viewgroup or the merge tag Oct 28 15:46:06 Ok, thank you :D Oct 28 15:46:07 Xeli: problem is, I use the same codebase for my desktop game and for my android game, Oct 28 15:46:10 Or a view with no childs Oct 28 15:46:57 on the desktop I use Guava of course, and, according to the NoClassDefFoundException, it seems the guava libs don't all end up in the apk Oct 28 15:47:08 Gaulois94: I don't know how this layout looks, but you usually don't need a relativelayout Oct 28 15:47:23 It just a training Oct 28 15:48:10 And the relative layout look like the menu of this program : http://uploads.siteduzero.com/files/376001_377000/376822.png Oct 28 15:48:20 Gaulois94: well, when practicing something it's useful to know what you are doing Oct 28 15:48:58 Gaulois94: and you should use a gridlayout here Oct 28 15:49:13 for the edit part Oct 28 15:49:28 Sera6x7: why do you think not all parts end up in the apk? Oct 28 15:49:33 for the entire screen, then you can also use the visual editor, which is nice if you don't fully understand xml yet Oct 28 15:49:46 anyone have a good understanding of GPL3? Oct 28 15:50:27 Xeli: because the dequeu isn't there for some users even though I have the Guava lib as a dependency on my Android project Oct 28 15:50:29 Weel, I come back later, see you later :) (sorry for my bad english, I'm french) Oct 28 15:51:21 Sera6x7: that's because the ArrayDeque isn't provided with guava (from what I understand) Oct 28 15:52:18 so, where your desktop users have java 6-7 which provides an ArrayDeque implementation, the android users with sdk <9 don't have an implementation Oct 28 15:52:41 ah, of course, sorry about the confusion, I misread the stacktrace Oct 28 15:53:25 you might wanna up the min api lvl eventhough 15% seem to be using an apilvl <9 http://developer.android.com/about/dashboards/index.html Oct 28 16:05:07 Xeli: I considered taking level 9 as the minimum, but so far this has been the only issue, for gamedev I can skip most of the Android api Oct 28 16:18:42 lol, i just found four interesting links and sent them through chrome to phone Oct 28 16:19:04 it sounds funny when you're phone and tablet suddenly try the play the same sound four times each Oct 28 16:28:28 Someone know how can I use adb logcat ? Oct 28 16:28:44 When I do "adb logcat", I have too many message Oct 28 16:30:29 while I want only my program's errors Oct 28 16:31:50 http://developer.android.com/tools/debugging/debugging-log.html ... or try "grep" if you are used to it Oct 28 16:32:22 And when I do adb logcat BlocNote:V *:S Oct 28 16:32:42 I have any log Oct 28 16:33:29 are you on windows or you should escape the "*" ? Oct 28 16:33:52 I'm on linux Oct 28 16:33:58 and I use only the console Oct 28 16:34:12 Gaulois94: Are you debugging to a phone? Oct 28 16:34:35 it should literally then be like: adb logcat BlocNote:V \*:S Oct 28 16:34:44 Yes, I think Oct 28 16:34:50 You could read the logs directly on the device: https://play.google.com/store/apps/details?id=org.jtb.alogcat&hl=en Oct 28 16:34:55 double or single quotes would work too Oct 28 16:35:43 Thank you, I go to try it Oct 28 16:36:04 i'm thinking it twice. It's unlikely that the escaping thing was actually affecting you Oct 28 16:37:04 BlocNote it's my program's name Oct 28 16:38:05 the problem is that you get log from other apps, or that you don't get log at all? Oct 28 16:38:11 I want to debug it because I have a fatal error Oct 28 16:38:31 If I do adb logcat, I have logs from others apps Oct 28 16:38:42 Does anyone know of a way to set Eclipse so it shows the Project Name on the tab for a page of code your editing? I've got two different versions of my project and I need to change the same file in both of them in different ways, it's confusing with them both open using the same name. Oct 28 16:38:48 fun, it works for me. Maybe you mistyped a character or something? Oct 28 16:38:50 and when I do adb logcat BlocNote:V *:S, I don't get any log Oct 28 16:38:58 what the... Oct 28 16:39:12 (sorry for my english, I'm french" Oct 28 16:39:15 )* Oct 28 16:39:27 are you sure that the application logs with the tag name of "BlockNote" ? Oct 28 16:39:32 or BlocNote Oct 28 16:39:49 is it com.example.blocknote? Oct 28 16:40:06 Do you want my AndroidManifest.xml file ? Oct 28 16:40:20 no, it's not there Oct 28 16:40:28 the package name is Oct 28 16:40:43 the package name is fr.tutorial.BlocNotee Oct 28 16:40:47 you can put an arbitrary Tag when you log Oct 28 16:40:47 nOTE* Oct 28 16:41:01 okay so try searching for fr.tutorial Oct 28 16:41:09 ok :) Oct 28 16:41:12 and when you filter you need to put the exact Tag, respecting uppercase Oct 28 16:41:51 I know. Well, I go try it Oct 28 16:41:54 why not start with: adb logcat | grep -i note Oct 28 16:41:54 Then take note of the exact tag, then start using it Oct 28 16:42:27 But if it is your application you should know how are you calling Log() Oct 28 16:51:22 Gaulois94: did you get it working? Oct 28 17:11:15 Sorry to disturbe you again, I have a other question Oct 28 17:11:42 lol, when you reset your password on my ISP's website it is sent from "Dervilla Mullan - Director of eircom Online" Oct 28 17:11:58 they have a Director doing password resets? Oct 28 17:12:13 I have the following attribute : android:text="@string/preview" Oct 28 17:12:53 And I want to add this string : " : " Oct 28 17:13:05 How can I do this ? Oct 28 17:13:15 you want to add it to the strings file? Oct 28 17:13:32 no, to the attribute Oct 28 17:13:37 you cannot. Oct 28 17:14:01 arf, thank you Oct 28 17:14:03 you have to edit the preview field and add ":" in it, or not using it to add directly to the attribute Oct 28 17:14:35 ok Oct 28 17:14:51 so you want to add that onto the end of the string? Oct 28 17:15:09 hi guys.. need some help with buttons and onTouchListener. how do I detect if a user moves the finger outside the button area? I want the button to "unregister" the ACTION_DOWN. instead the buttons gets clicked even though I release it outside the button area. Oct 28 17:15:25 Ankhwatcher: yes Oct 28 17:15:47 But if I can't, I will add this to my string's file Oct 28 17:16:38 Gaulois94: you can't do it in XML Oct 28 17:17:00 you could grab that text element in java, and change it there Oct 28 17:17:17 but if you don't need it to change dynamically it's a hell of a lot easier to change the strings file Oct 28 17:17:30 ok, it just for knowing ;) Oct 28 17:17:33 indeed as Ankhwatcher said, third possibility, at runtime in java you read the text field, add a semicolon and write it Oct 28 17:17:44 but that's heavy :p Oct 28 17:18:17 mhead: play with ACTION_MOVE Oct 28 17:19:14 ok I made it so when you turn the phone sideways to landscape VideoView goes into fullscreen, but when its paused its not redrawing the video image, how can I get it to refresh the video image while paused ? Oct 28 17:19:50 Ankhwatcher: hmm.. so there's no easier way to detect if e.g. ACTION_UP has been triggered outside the button? I thought there might be an event thrown when the finger goes outside the box Oct 28 17:19:51 I tried myVideoView.invalidate() it made no difference Oct 28 17:20:25 mhead, yes there is for sure Oct 28 17:20:30 mhead: I haven't tried this, but maybe you could do something with Action_outside Oct 28 17:20:36 try to log all actions Oct 28 17:20:46 you will see what happens and how to handle this case Oct 28 17:20:49 ^^good advice Oct 28 17:21:45 I did try.. and the only events that are shown are action_down, action_move and action_up.. but it doesn't really matter where I release. same events are triggered. Oct 28 17:21:48 but I'll try again :) Oct 28 17:22:10 there is one called ACTION_OUTSIDE Oct 28 17:22:25 but it might requires a mask iirc Oct 28 17:22:36 (i don't recall well, but i searched same things few monthes ago) Oct 28 17:23:02 at worst case, you can detect the coords of your button, and handle in this way too Oct 28 17:23:19 (i used this technic for simulating a piano roll) Oct 28 17:23:26 hmm.. I'll have a look at ACTION_OUTSIDE. thanks! Oct 28 17:23:27 (not same problem as you, but close concept) Oct 28 17:24:07 detecting coords is my last exit.. I would assume there is an easier method :) Oct 28 17:37:13 nope.. only ACTION_DOWN, ACTION_MOVE and ACTION UP are triggered on the button.. irrespectively of where I release on the screen Oct 28 17:37:35 so detecting coords seems to be the only way ;( Oct 28 17:40:29 I have a other problem... When I want to edit a text in a EditText Widget, I can't to see the text because my keyboard hide it Oct 28 17:41:42 Here is the file who contain this EditText : http://sprunge.us/GhRS?xml Oct 28 17:42:46 I come back later, I go to eat Oct 28 17:44:01 I've seen the problem that Gaulois94 is describing in applications before, but I've no idea how to resolve it. Oct 28 17:44:55 Ankhwatcher, 3 replies to the macbook ad, i can feel the power of the nexus on the horizon Oct 28 17:45:26 brx_: you do have another computer though, right? Oct 28 17:46:09 yes i have an old sony vaio Oct 28 17:46:42 'cause deving on the N7 is possible, but I wouldn't say it'll be easy Oct 28 17:47:13 ye thats fine, i think i can get some more life from this lappy before it packs in Oct 28 17:47:37 i need something i can be portable with, right now i must always be plugged into mains with this laptop :/ Oct 28 17:47:56 and no point buying another laptop until this one is completely dead Oct 28 17:48:05 brx_: good good Oct 28 17:48:25 :D Oct 28 17:59:55 v Oct 28 18:02:17 Ankhwatcher: no problem Oct 28 18:03:05 I'm using a ViewPager; and want to achieve the effect of having each the previous and next page "bleed" a little bit into the container, except for the first and last pages (which don't have a prev/next of course.) Ie, something approximately like the tile-view on Windows 8, where the first screen looks like http://twimgs.com/informationweek/Ben/win8startweb.jpg, and scrolling right looks like Oct 28 18:03:05 http://www.itwriting.com/blog/wp-content/uploads/2011/06/image1.png Oct 28 18:03:40 Gaulois94: here's a thought: throw everything in a scrollview see if that does anything Oct 28 18:03:58 I can approximate the way the 'next' page bleeds into the current page by setting the pagewidth to be a fraction less than 1.0, but would like your ideas on the best way to achieve the effect described above Oct 28 18:13:18 OK, I try it Oct 28 18:15:17 I have a ListView, I want to measure in pixels the height from the top of the list each item (ie. item 0 is at 0 pixels from the top, item 28 is 4328 pixels from the top, etc.) - not relative to the layout. What I'm trying to do is make a scrolling background for the ListView, in the case where ListView items aren't equal height (but each item is of constant height - ie. if item 23 is 143 pixels tall, it always will be). How Oct 28 18:15:18 can I accomplish this? Oct 28 18:15:45 it's funny when i work in java I read websites, look things up and research. When I'm writing xml I throw random functions and settings at it to see what they do. Oct 28 18:16:40 Gaulois94, just in case you don't know, you have a french chan in #android-fr full of developers too Oct 28 18:17:10 but there are less willing to help than here ;-) voili, voilou :p Oct 28 18:17:22 adq: that explains why everyone always speaks english in here Oct 28 18:17:29 lol Oct 28 18:17:36 not sure it explains anything ^^ Oct 28 18:18:29 adq: thank you :) Oct 28 18:18:37 But I want also to perform my english Oct 28 18:18:47 understood Oct 28 18:18:51 (indeed, english is important for developers). Oct 28 18:18:51 damned americans are undermining all languages ;) I spelled colour wrong without a second thought today Oct 28 18:19:19 mine (english), seems totally versatil according to feedback from few ppl here :p Oct 28 18:21:10 I'm 16, it because I don't have a good english like you Oct 28 18:21:25 not bad for a young french guy ;-) Oct 28 18:21:36 But I think tht I'm understandable Oct 28 18:21:49 that* Oct 28 18:21:53 but at 16, seriously, what are you doing on irc lol! Oct 28 18:21:54 thank you :) Oct 28 18:22:01 lol Oct 28 18:22:04 Gaulois94: you make about as much sense as anyone else Oct 28 18:22:20 he's joined the cool people Oct 28 18:22:24 faith in humanity has been restored Oct 28 18:22:31 not those myface drones! Oct 28 18:22:46 :D Oct 28 18:22:52 Ravenheart: with their photos and their social lives Oct 28 18:23:04 adq: because is too late for go out :) Oct 28 18:23:05 and duckfaces Oct 28 18:23:11 and look at my boobs not eyes Oct 28 18:23:14 good argue ;-) Oct 28 18:23:30 or the deeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeep message photos Oct 28 18:23:45 somebody please think of the children! Oct 28 18:24:00 no problem Ankhwatcher :) Oct 28 18:24:34 damn! the only way i've found to film an android application with high quality is to use the emulator :| Oct 28 18:24:39 Gaulois94: http://www.youtube.com/watch?v=Qh2sWSVRrmo Oct 28 18:25:20 Ankhwatcher: I know this episode :D Oct 28 18:25:40 adq: you are no lucky :) Oct 28 18:26:03 I don't like android emulator, is very slow Oct 28 18:26:14 screenshots/second via adb is horrible and is not an option (+ it impacts the performances), I did not find any tripod and decent camera @home too Oct 28 18:26:27 have a phone with tv-out, then a tv recorder Oct 28 18:26:30 Gaulois94, it's fast if you use the x86 image Oct 28 18:26:46 SuD, yup but not hdmi out here :| (old htc desire hd) Oct 28 18:26:51 s/not/no Oct 28 18:27:17 there are paid services that create promo videos of your app Oct 28 18:27:29 I did not (yet) earn enough to invest in that :p Oct 28 18:27:36 but thx, I did not know it even exists Oct 28 18:27:39 adq: really ? Oct 28 18:27:46 neither i until i received an email from them Oct 28 18:27:47 Gaulois94, yes totally, you will be astonished ! Oct 28 18:27:53 this is the power of virtualization :-) Oct 28 18:28:25 SuD, I recently lot of email looking like scam :/ they crawl with bots the google play market :\ Oct 28 18:28:32 received* Oct 28 18:28:50 I have begun a compilation :D Oct 28 18:29:19 I also traced lot of illegal apks repo, because when you release or update a legit apk, they seem to be synced Oct 28 18:29:36 but DCMA requests do not work well at all :( big disappointment here Oct 28 18:29:46 i receive a few emails from alternative app stores. not sure if scam Oct 28 18:30:08 not all are scam, but most of them (IMHO) Oct 28 18:31:18 ttyl folks! Oct 28 18:39:21 Why would findViewByID() return null, but yet SetContentView() properly displays the View ? Oct 28 18:39:36 (using the resource ID for both) Oct 28 18:40:51 it could depend on the time you call findViewById(), I expect. Are you calling findViewById() after the setContentView()? Oct 28 18:41:44 I usually find myself running into that gotcha when I call findViewById inside constructors Oct 28 18:41:54 The other away around Oct 28 18:42:34 well, the other way around won't work Oct 28 18:42:41 you have to create the layout first, obviously Oct 28 18:43:29 kbs: Why is it obvious exactly? I'm still a bit new to Android Oct 28 18:44:16 maslen: wasn't me that said it was obvious :-) but at any rate, findXX means something like find a subview that's already been created. Oct 28 18:44:35 setContentView() from an activity is the method that actually does the attaching of the subviews Oct 28 18:44:43 I see. Oct 28 18:44:49 hence, find before setContent() doen't find anything Oct 28 18:48:12 But if I were to change the order, even if it's in the same method, it would not return null? Oct 28 18:48:22 Or does it specifically need to wait until the view is loaded? Oct 28 18:48:56 it's a synchronous call at least for the purposes of attaching the subview, so it ought to work even within the same method. Oct 28 18:49:16 Apparently, it's not :( Oct 28 18:49:46 oh, I probably ought to say that you should wait for the xxcreate() method to call setContentView Oct 28 18:49:58 What's the best way to do that then? Oct 28 18:50:30 call the setContentView() from the overridden onCreate() method i your activity Oct 28 18:51:13 like an old vacuum tube, android needs to warm up before anything interesting actually happens :-) Oct 28 18:51:26 that's an... ancient metaphor :) Oct 28 18:51:38 whippersnappers Oct 28 18:57:49 Hello Oct 28 18:58:24 Wich way of internet access can be much better for IRC-client? Oct 28 18:58:34 ? Oct 28 18:59:00 kosc: what do you mean by internet access? Oct 28 18:59:51 kosc, permanent internet access Oct 28 19:00:37 Ankhwatcher: Socket, AndroidHttpClient or what? Oct 28 19:02:18 erm... IRC requires a constant connection. Oct 28 19:04:00 i need an idea for a gps icon Oct 28 19:04:05 what'd be the bes representation Oct 28 19:04:13 a compass? a target? a satellite? Oct 28 19:05:19 Sculptor: yes Oct 28 19:05:34 which one Oct 28 19:05:35 isn't there a standard android icon for location services? Oct 28 19:05:48 What sort of icon? Oct 28 19:05:58 a female breast with a compass on top Oct 28 19:06:13 kbs: there is a NESW icon from the corner of a map Oct 28 19:06:17 seems to fit the bill Oct 28 19:06:29 Estel, for widget Oct 28 19:06:34 There is a pack of action bar icons: http://developer.android.com/design/downloads/index.html Oct 28 19:07:27 A map texture overlaid on a 3D render of Abe Lincoln's head Oct 28 19:07:51 really nice, but i want to design mine Oct 28 19:09:28 hi all! What do I need to implement background service, that will always on, even after reboot, and will show notifications on set time. Thanks! Oct 28 19:10:25 rootty: what I've done is to implement a receiver for boot_completed, and in there add somehing to AlarmManager Oct 28 19:11:04 kbs, yaou meen Broadcast receiver? Oct 28 19:11:09 you* Oct 28 19:11:16 *mean Oct 28 19:11:28 rootty: yes, a broadcast receiver Oct 28 19:11:57 kbs, thanks a lot. Oct 28 19:12:00 rootty: what do you actually want to do? Don't necessarily need a service Oct 28 19:14:14 Estel, I need to create some service, that will show reminder notifications Oct 28 19:14:24 something like tsak manager Oct 28 19:14:26 task* Oct 28 19:15:29 Estel, do I need service ? Oct 28 19:15:49 kbs: Strange. Even after loading View (and waiting a good few seconds past that), findViewByID still returns null Oct 28 19:16:20 maslen: beats me then :-) maybe pastebin your code so more eyes can look at it Oct 28 19:16:37 rootty: for something like that, I'd consider using the alarmmanager Oct 28 19:16:50 rather than aconstantly running service Oct 28 19:17:42 kbs: This is a relatively large piece of code spread across about 4 files :(. Oct 28 19:17:52 Estel, is designing your own icons considered a bad practice. i'm making a widget, not an action bar Oct 28 19:18:15 kbs, okay, I'll give it a try. Oct 28 19:19:45 What is the easiest way to do this on Android ? https://developers.google.com/accounts/docs/OAuth2InstalledApp Oct 28 19:23:25 Please, Why I can't to change my time zone ? Oct 28 19:23:35 It is set at GMT 0 Oct 28 19:23:42 but I want to set it at GMT +2 Oct 28 19:23:50 I went to settings Oct 28 19:24:12 But it does'nt want to change the time zone... Oct 28 19:26:35 http://static.echonest.com/InfiniteGangnamStyle/ Oct 28 19:26:42 this should solve your Android problems Oct 28 19:26:47 is "automatic" checked? It should stay in "GMT+1" because it adds the DST Oct 28 19:27:57 Thank you, I go see it :) Oct 28 19:28:14 SuD: no, it doesn't checked it automaticaly Oct 28 19:28:23 My phone is in english, and I live in France Oct 28 19:28:29 you should try "automatic" anyway Oct 28 19:29:11 pour quoi pas français? Oct 28 19:29:29 Because I want it in english :) Oct 28 19:29:58 for anyone who was curious about my original problem [allowing both the previous and next pages in a ViewPager to 'bleed' into the container] the solution was twofold: 1) override draw() and translate the canvas to the appropriate amount, and 2) set the page-fraction to a suitable number < 1 Oct 28 19:30:04 i don't know how it works, but leaving it in automatic works and does the DST right Oct 28 19:34:09 I's good, it works :) Oct 28 19:34:17 it's Oct 28 19:51:13 hi, I need to make a texas hold'em poker game as school project, but I don't know anything about java or android related libraries... my part is to make the interface and some basic stuff on the project so we will work on it later... but how should I look for the apis that would help me? Oct 28 19:52:08 you're pretty screwed :-) Oct 28 19:52:22 I was thinking about adding a imageView (I think it's that, a object that holds an image) and get images of the cards and show on the screen, but I don't know if that is the best way, or how to manipulate this object, like to set image or things like that Oct 28 19:52:26 maybe take a look at how xml layouts works Oct 28 19:52:35 you have a pseudo-wysiwyg Oct 28 19:52:45 so you can play a bit around without knowing a lot about java and android Oct 28 19:53:35 adq: how do I change a content of a imageView to an existing image (png or jpg) from the project? (on res folder) Oct 28 19:54:01 adq: I tried it with setImageDrawable() and it didn't work Oct 28 19:54:49 in xml you can also change the content of an imageview via the attributes android:src or android:background Oct 28 19:55:32 in java, take a look at http://developer.android.com/reference/android/widget/ImageView.html you have lot of methods for setImage.. Oct 28 19:56:07 setImageResource(R.drawable.yourimage) should help Oct 28 19:56:18 if you have put yourimage.png in the drawable folder Oct 28 19:57:33 thx Oct 28 19:57:39 np mate! Oct 28 20:02:33 adq: I got error, saying it can't find R.layout.activity_main... but it comes from the default project and when I go change the layout file and save it gives me that error, I created a new project, and it was ok ,than I added an imageView on layout and got the error again Oct 28 20:02:41 do you know what is that? Oct 28 20:02:53 nop sorry :/ Oct 28 20:03:01 activity_main cannot be resolved or is not a field Oct 28 20:04:01 or maybe... either you don't have a activity_main.xml in your res/layout folder either you might just need to clean your project (but for this second thought, i doubt) Oct 28 20:05:16 tyul: are you following tutorial things? Oct 28 20:05:18 adq: it is ok now (for no reason aparently lol)... thx anyway =) Oct 28 20:05:44 Estel: I started reading a book calling pragmatic android programming or something Oct 28 20:05:58 Pragmatic.Hello.Android.3rd.Edition.Jul.2010 Oct 28 20:06:40 Looks legit. Oct 28 20:07:14 lol Oct 28 20:15:35 i'm extending arrayadapter to make checkboxes persistent while filtering. anyone know how to best to this? Oct 28 20:16:56 I'm guessing using an onitemclick to add the value to a container and use that container to fill the right checkboxes on refreshes? Oct 28 20:17:34 Any thoughts on why I might get a timeout on installing an apk on my device through Eclipse while debugging? Happened originally with my phone, and I eventually gave up and started testing on a Kindle Fire, but now that's having issues Oct 28 20:17:53 I get "Uploading appName.apk onto device '4C6E0060...1' Oct 28 20:18:04 Then a "Failed to install appName.apk on device '...' : timeout Oct 28 20:21:13 could make the timeout longer, Window -> Preferences ddms Oct 28 20:22:22 but probably connection problem doppio, maybe a faulty usb-port? Oct 28 20:22:27 Question because it's not clear for me: I want to submit a DMCA concerning one of my app on Google Play. I found my apk on many illegal apks share site. Should I select Google Play here (http://support.google.com/bin/static.py?hl=en&ts=1114905&page=ts.cs) or WebSearch or something else? Oct 28 20:22:58 Mikevin, I've tried that -- I set the timeout to a minute, and it usually takes about 5 seconds max -- doubt it would take longer, right? Oct 28 20:23:08 I'll try another port, too, thanks Oct 28 20:23:08 yeah a minute is way too long Oct 28 20:25:29 one of those things where you have to eliminate parts I guess, could be the cable if it's the same Oct 28 20:26:45 I've tried other cables, too Oct 28 20:27:00 I used to debug on my phone all the time, and then suddenly I got the issue Oct 28 20:27:16 Just switched devices and nothing else, and no problems til now Oct 28 20:27:44 But I'm able to install from a different location (different PC entirely, etc.) on the phone. Pretty strange Oct 28 20:28:58 oh I guess its adb then? Oct 28 20:29:14 that should work with a restart though Oct 28 20:29:52 Yeah, I've tried restarting the ADB, the machine, etc. :/ The issue has been going on for weeks now Oct 28 20:29:58 With the phone, anyway Oct 28 20:30:03 Just now experiencing it with the Kindle Oct 28 20:30:25 first time trying with the kindle since the problem started with the phone? Oct 28 20:30:58 Nah, I used to debug on the phone, then the phone stopped working several weeks ago. Switched to the Kindle after searching for a solution for too long, and have been using it ever since Oct 28 20:31:08 At least 2 weeks without problems Oct 28 20:31:39 also, weird suggestion maybe but have you tried the usb-ports on the back of your pc? Oct 28 20:32:16 Hmm, nope. I'll try that now Oct 28 20:33:42 no errors on the code but the application terminates when I try to run on the emulator =( Oct 28 20:34:15 not sure if that would do anything here but i've seen it cause problems with other soft/hardware because the frontports are often on lower power Oct 28 20:36:19 tyul check logcat? Oct 28 20:36:49 Mikevin: I was adding a onclicklistener to a button Oct 28 20:37:32 Mikevin: when I delete those lines, it works Oct 28 20:38:43 tyul I meant you should check Logcat if your app crashes. best way to see what's going wrong where Oct 28 20:40:01 Damn, same problem after switching USB ports Oct 28 20:40:14 Also tried uninstalling some apps in case app data was full Oct 28 20:41:30 Mikevin: http://i.imgur.com/ARSKG.png Oct 28 20:43:09 doppio hmmm, any updates available for your android sdk? Oct 28 20:46:41 Mikevin: Nothing that looks relevant, just stuff like AdMob. Although there's a new USB driver. I'll try that :) Oct 28 20:47:43 hope that works Oct 28 20:51:40 If anyone is interested in/want to chat about how to monetize your applications check out #makingmoneywithandroid Oct 28 20:52:00 Solirify: see topic Oct 28 20:52:16 Is there a straightforward tweak to ViewPager to allow it to 'bleed in' both the previous and the next page within its container? Currently, setting pageWidth to a fraction < 1 only bleeds in the next page, not the previous page. I'm now doing something silly like overriding draw() and calling translate on the canvas to hack it; is there a better way? Oct 28 20:52:55 kbs: try to disable children clipping on the parent Oct 28 20:53:12 romainguy: aaah. that's a great idea, thanks. Oct 28 20:53:40 romainguy: Sorry, didn't think IRC was the same as website. Won't happen again. :) Oct 28 21:02:24 Is it possible to cast context to interface implemented in Fragment? Oct 28 21:08:53 sup Oct 28 21:21:29 when I run my app in an emulator, I can use the file browser tab in eclipse to browse /data Oct 28 21:21:54 when I plug in my phone, I can browse / and some directories, but not /data Oct 28 21:22:26 any way to get around these permissions? Oct 28 21:22:33 my phone isn't rooted Oct 28 21:24:31 RustyShackleford, I know the only way by console Oct 28 21:26:03 for ex. you want to copy sqlite database: $ adb shell 'run-as package.name cat /data/data/package.name/databases/database.db > /storage/sdcard0/ftp/database.db' Oct 28 21:26:53 RustyShackleford, and after that you can copy it via Browser tab from accesible folder Oct 28 21:27:50 rootty: that will work on windows? Or bash only? Oct 28 21:28:12 it must work on adb console Oct 28 21:29:19 you also can do this: adb shell -> adb run-as package; cd package/database Oct 28 21:52:13 How can I force a ListView to measure all of its displayed children? I keep having getHeight() return 0. Oct 28 22:01:21 Hi guys! I need some help on widget programming - is it possible to have the widget open up one of its activities when it's "launched" from the app drawer, just like an app? Right now it seems as it's starting, but the screen goes black and then it returns like nothing happened. Oct 28 22:01:47 mdkess, i think you can find it with your adapter linked to your listview, in the overriden method called getCount Oct 28 22:02:06 adq, not the count, I mean, I just want to know the height of an item in my listview. Oct 28 22:02:10 But it seems to always be zero. Oct 28 22:02:22 Since it's not measured yet. And I can't figure out how to force everything to be measured. Oct 28 22:02:26 oops sorry i misunderstood :| Oct 28 22:03:20 so in overriden getView, one of the parameter is a view (e.g. (int position, View convertView, ViewGroup parent)) Oct 28 22:03:50 maybe a method against convertView will return the height of one view, then you sum all of them Oct 28 22:04:25 but i'm not sure if getView is only and necessarly called for visible view/items Oct 28 22:05:31 anyone?.. Oct 28 22:05:45 no clue on my side Viorel_ Oct 28 22:08:16 thank you adq, I haven't found anything on that on forums, and thought I'd give it a try over here, maybe I'll get a response, so that if it's not possible, to stop searching and move on. Oct 28 22:08:16 adq, so what I'm trying to do is exactly that - say that the height of item 0 is 0, then the height of item N is the height of (N-1) plus this thing's height. But getHeight always returns zero in the adapter - so I think that I need to force the view to measure everything first, but I can't for the life of me figure out how. Oct 28 22:09:25 mdkess, .getMeasuredHeight() <- same for that? Oct 28 22:10:07 Viorel_, be patient here, and also take in account many ppl are not near GMT on this place, so less probability to get an answer right now maybe Oct 28 22:10:24 adq aye Oct 28 22:10:25 yes, I know :) Oct 28 22:10:44 This http://stackoverflow.com/a/9486390/31455 seems to be a clue Oct 28 22:25:31 Hi2all. I'm writing data to AudioTrack in streaming mode and want to display played data with kind of diagram simultaneously. Oct 28 22:26:00 AndroidTrack plays audio with some delay after write.. Oct 28 22:26:15 mdkess: weren't you trying earlier to get the 'virtual' displacement of a given view within a ListView? Oct 28 22:26:17 I want to run three AsyncTasks in series, one after another. Should I modify each AsyncTask to call the one after it in a chain, create another AsyncTask which starts and waits for each in its doInBackground method, or do something else? Oct 28 22:26:54 kbs, yeah - all I'm trying to do is get a background to scroll. I think I figured it out though, measuring the row in the adapter seems to do the trick. Oct 28 22:27:15 vklimkov, minimum delay you can reach with audiotrack is linked to the buffer size: buffer_size = android.media.AudioTrack.getMinBufferSize(MainActivity.SAMPLE_RATE_HERTZ, AudioFormat. CHANNEL_OUT_MONO,AudioFormat.ENCODING_PCM_16BIT); Oct 28 22:27:18 how I can compensate that delay to display diagram at the same time corresponding buffer is played Oct 28 22:27:21 this is one field of an entry in a csv file I'm trying to parse Oct 28 22:27:22 "Adams/Wabash (Brown, Green, Orange, Pink & Purple Lines)" Oct 28 22:27:31 those bastards Oct 28 22:28:07 vklimkov, you also have to use an efficient FFT (fast fourrier transform) renderer in another thread Oct 28 22:28:12 mdkess: ah, ok. I haven't done this, but I was going to suggest whether a combination of getScrollY() on the listView, and the getTop() method on any displayed child would do the trick; but it sounds like you have a solution already. Oct 28 22:28:17 for displaying played data Oct 28 22:28:26 how do I tackle those extra commas Oct 28 22:28:42 I was just using scanner with a comma delimiter Oct 28 22:29:02 RustyShackleford: ask for your data in a better format :P Oct 28 22:29:10 vklimkov, and then you will see all is synced perfectly Oct 28 22:29:12 kbs: I'll post it to github when I'm done. As frustrating as these things are, I always learn a ton about the subtleties of these APIs. Oct 28 22:29:19 RustyShackleford: you could just look for colours, if that's all you're expecting in ()s. Oct 28 22:30:39 that name doesn't need the line colors Oct 28 22:30:40 vklimkov, or you can cheat if you don't need real-time and render first what will be played later, but it might also be troublesome Oct 28 22:30:49 to sync Oct 28 22:30:49 it's another field in the csv file Oct 28 22:31:44 it's surrounded by quotes Oct 28 22:31:51 adb, not quite sure what you mean with FFT renderer but min audio buffer for AudioTrack initialization worked perfectly. Thank you very much!! In my code that value was multiplied by 10 (from some tutorial maybe) Oct 28 22:31:59 perhaps I can use that Oct 28 22:32:00 * adq fastboot :D Oct 28 22:32:27 vklimkov, glad to head :D audiotrack is awesome! Oct 28 22:32:31 hear* Oct 28 22:34:47 I used to work with native interfaces for audio. that seemed to me more robust and clear.. but may be it's just seeming) Oct 28 22:35:16 I recently played a lot with DSP so I ate all I can about audiotrack Oct 28 22:36:08 soundpool has too much latency :/ Oct 28 22:37:33 hey Oct 28 22:37:41 does an app need permissions to read from logcat? Oct 28 22:37:58 or is it root-only? Oct 28 22:38:26 SuD was that to me? Oct 28 22:38:32 yup Oct 28 22:38:41 historypeats, might be needed Oct 28 22:39:18 ah, thanks adq, SuD Oct 28 22:53:39 so question about webviews, security and best practices Oct 28 22:54:21 since the webview*.db files are in the apps home dir is it still necessary to encrypt the contents Oct 28 22:54:24 like cookies Oct 28 22:54:25 or something Oct 28 22:55:09 or better yet - what are best practices for using the webview cache Oct 28 22:55:11 in terms of security Oct 28 23:02:48 Hi all, new(ish) to Android programming, having a right old game trying to get sqlite stuff working. here is my helper class. http://pastebin.com/2yPfNM6R Oct 28 23:03:34 I can get all the entries just fine, and populate a listview, but I always get a mCount of 0 when I try and get a particular item using getProfile. What am Imissing? Oct 28 23:06:30 The database is just 3x string objects. Nothing clever... Oct 28 23:11:55 where are you getting the _id argument from? Oct 28 23:14:24 mCount = ? Oct 28 23:16:32 Cursor.mCount = 0 Oct 28 23:19:11 OK, putting the question another way, how can I tell if it's a problem with how I am putting the data in, or if it's a problem with the query to get it out? Oct 28 23:20:07 MarkG1234: where are you getting the _id argument from? Oct 28 23:20:25 It's a static string prefix with a row number Oct 28 23:20:40 it's supposed to be _id Oct 28 23:20:44 what I mean is, where is the rowId number coming from Oct 28 23:20:44 or do you mean the one I pass in to get the row Oct 28 23:20:48 the latter Oct 28 23:22:01 I want the second row, so I pass in 2 (I have tried 1, incase it's 0 based). The data at this moment is hard coded to be entered, I know there are 10 rows. Oct 28 23:22:11 ah Oct 28 23:22:12 is this not how it works? Oct 28 23:22:59 hello Oct 28 23:23:02 well, your schema indicates that the argument to pass is the auto-incremented value in your db. Does the getAllXX () query return a non-zero count for the cursor? Oct 28 23:23:54 what is the logcat command to filter out the spam thats always coming out of my tablet: battery and link speed messages Oct 28 23:26:01 MarkG1234: to answer your question; it's just a sql-db; so you need to figure out the value for your primary key for whatever you've inserted. if you get a non-zero cursor for your getAllProfiles() method, you ought to be able to use the key_rowid value that you obtain; and so forth. Oct 28 23:27:26 I get a mCount of -1 for the GetAllProfiles() Oct 28 23:27:52 what is the mCount thing? are you looking at something in a debugger? Oct 28 23:28:00 sorry yes. Oct 28 23:29:10 I dunno what that value really means; but you ought to be able to verify the number of available rows with .getCount() from thecursor Oct 28 23:29:22 if that comes out to be zero, then there's no data in the db Oct 28 23:29:35 meaning, possibly an issue with how the profiles are inserted Oct 28 23:30:00 if you are usig the emulator or a rooted device, you should be able to run sqlite3 directly on the database and poke around as well. Oct 28 23:31:40 or if your application has debuggable=true in its manifest you can use the run-as command to view its private filesystem Oct 28 23:32:32 anyone familiar with the evo shift? Oct 28 23:33:02 running cyanogen 7.2stable on htc evo shift and have been for the longest time, but running into some issues lately; such as not being able to receive MMS (have tried using gosms, handycent) and still receiving errors; also tried using APN backup and restore from the market; didnt really help out too much Oct 28 23:33:12 OK, thanks all, thart gives me a few things to try out. Oct 28 23:33:24 but the biggest pet peeve is having "3new voice messages" showing up when I do have ANY messages at all; so I tried using a voicemail alternative; and that didnt really help Oct 28 23:33:41 is there a fix that anyone knows about? I looked at XDAforums and didnt really find too much help. OR any suggestions for a new rom to try out that is more stable? Oct 28 23:33:42 Quagmire3: try #cyanogenmod or #android Oct 28 23:33:45 thanks Oct 28 23:43:28 Hi all.. Im having some trouble getting my android phone to work correctly with Unity (i know this aint the unity channel). Im trying to use their Profiler, to monitor my app at runitime. The only way it connects is by using ADB profiling, and the adb forward command.. ( /msg NickServ identify .) Oct 28 23:43:45 the problem is, that connecting this way makes my app lag, and freeze after 30 seconds. Oct 28 23:44:18 Normally the profiler is connecting through wifi.. I'm assuming that using the adb command makes it connect through USB, am I right? Oct 28 23:46:50 im trying to filter out logcat messages by it's tage name. i am using: adb logcat -s TAGNAME , except now it is showing only those messages(the opposite of what i want) Oct 28 23:46:56 tag name * Oct 28 23:52:27 I'm trying to use a ScrollView to draw a large grid of views and can't get the gridview to do more than 1 row, and it always stretches the views to fit instead of letting the views take their natural size. Oct 28 23:56:35 gridview shoul not be put inside a scrollview Oct 28 23:56:49 you can just use gridview on its own, and it scrolls for you. Oct 28 23:57:02 interesting Oct 28 23:58:19 well that's slightly better Oct 29 00:01:01 How bad is it if a ANDROID_ID goes public? Oct 29 00:49:59 How do I get a drop shadow on listview items? Oct 29 01:04:45 mdkess: off the top of my head, you will probably want to create a drop-shadow 9 patch image to use as the background for your listview items. Oct 29 01:04:56 maybe throw in some margin around them to accentuate it Oct 29 01:05:01 I was afraid of that. Cool, thanks. Oct 29 01:05:15 maybe it can be done with XML Oct 29 01:05:21 shapedrawable Oct 29 01:24:10 hey, guys. for the life of me, i can't figure out why toggling a togglebutton causes a dialog to scroll to the top. am i missing something? Oct 29 01:25:22 I am writng a custom simpleCursorAdapter. I watched a video by roman guy where he showed the ViewHolder pattern and how to write efficient listView. How would i do this on a CursorAdapter. I am a little confused because i see: newView(), bindView(), and getView(). Which one should i overrite? Oct 29 01:31:35 Also what exactly are bindView() and newView(), if i implement these do i still need to overrite getView()? Oct 29 01:36:56 anyone? Oct 29 01:43:28 if gallery is depracated while using java compiler version 1.6 on a API16 build Oct 29 01:43:34 will i have problems when trying to display an image when the user clicks on it? Oct 29 01:50:10 If I'm inflating a view from an XML file, how can I get a reference to that View object? Using Activity.findViewByID returns Null, even after the View is displayed. Oct 29 01:59:05 hey guys Oct 29 02:00:20 i'm working on Android In App Billing, i need a way to post to my server and have android wait for my response before proceeding with In App Billing. Oct 29 02:01:11 What happens is, after my purchase_request my broadcast receiver receives from billing a notify ID and after receiving that notifyID i need to generate a nonce on my server Oct 29 02:01:59 wait nvmd LOL i got a solution Oct 29 02:02:34 lol is always the solution Oct 29 02:07:55 maslan Oct 29 02:08:00 that findviewbyid Oct 29 02:08:11 it references something on the main.xml page that you have laid out Oct 29 02:08:12 a widget Oct 29 02:08:17 like you name that widget with the ID field Oct 29 02:10:58 factory80: Thanks. That's what I had found on SO, but had no luck implementing. I'm going the other router - I'm going to inflate the XML, and then just keep that reference, and setContentView() it. Oct 29 02:11:05 other route* Oct 29 02:13:42 does anyone have any idea about my scrolling issue? Oct 29 02:18:34 trying to develop with InputMethodService, not sure i understand its lifecycle; when/how does it start operating in my app? Oct 29 02:25:11 if any of you have a samsung s2 (T989 or T989D), i packaged a patched fork of Heimdall that works with this phone: http://www.secondfloor.ca/heimdall/ Oct 29 02:25:41 ashes: i do Oct 29 02:25:47 from what i understand, the InputMethodService acts on events (such as user selecting this input method or such) is there any way to programmatically activate the InputMethodService (causing onCreate() / onCreateInputView() / onStartInputView() / etc) ? Oct 29 02:26:06 i.e. not by user manually triggering it? Oct 29 02:26:47 ashes: actually, i hate to disappoint,, but i really don't want to flash anything; my phone's exactly how i want it. i can try reading the pit or something, if you want,b ut i believe this ocnversation belongs in #android-root, no? Oct 29 02:27:00 sure Oct 29 02:27:40 i've never worked with .patch files before; what should i do? Oct 29 02:28:07 the patch is just my difference. heimdall is already patched Oct 29 02:28:24 oh, alright. gimme a few to test. Oct 29 02:28:34 and it's a source tarball. it will need to be compiled Oct 29 02:28:55 the top of the patch has comments that lead to instructions to compile the source Oct 29 02:30:16 i soft bricked my phone for the last few hours Oct 29 02:30:24 i'm so happy it's fixed Oct 29 02:31:22 my old phone was stolen on friday night Oct 29 02:31:45 did you have any kind of remote access softwqare set up? Oct 29 02:31:52 no Oct 29 02:31:57 never got around to it Oct 29 02:32:07 i had password locked the sim card though Oct 29 02:32:12 and screen saver Oct 29 02:32:28 i'd like to recommend cerberus;i'd quite awesome Oct 29 02:32:32 when i tried calling it, it didn't even go to voicemail Oct 29 02:32:46 i think they pulled the sim card out Oct 29 02:34:26 it's not easy to just buy a phone Oct 29 02:34:34 from a store Oct 29 02:34:53 except for prepaid, which tend to be low end models Oct 29 02:35:25 aww Oct 29 02:35:28 sorry to hear it Oct 29 02:35:32 i went to 3 stores before i found one that will let me buy a phone without a contract Oct 29 02:35:57 a good phone Oct 29 02:36:16 and the guy did everything he could to talk me into a contract Oct 29 02:37:41 i use 7eleven's cell phone service. it's cheap. 100 nation wide minutes, unlimited text and data for $30. a 1GB data plan from telus is $63, on a 3 year contract, which is a $900 difference Oct 29 02:38:46 no, over $1000 difference Oct 29 02:39:11 your patch seems to work Oct 29 02:39:38 i just grabbed my PIT without issue Oct 29 02:41:30 k Oct 29 02:46:39 i'll advertize it on xda. it took me hours to figure out because all the info i was getting said i needed a windows box to use Kies Oct 29 02:50:04 glad to see it works Oct 29 02:50:17 i have a feeling we'll be getting flashable imgs now :) Oct 29 02:53:32 i'll presume nobody's on that has an answer to my scroll issue, right? Oct 29 02:53:59 ain't nobody gonna answer that without seeing some code Oct 29 02:54:46 it's not a know bug of any sorts? Oct 29 02:55:05 it is Oct 29 02:55:18 er Oct 29 02:55:18 what's the solution? Oct 29 02:55:19 nm Oct 29 02:55:24 oh Oct 29 02:55:30 i can click my toggle buttons just fine without any wacky scroliness Oct 29 02:55:43 in a dialog? Oct 29 02:56:45 Do you folks have a solution to dealing with 3rd party xml that wasn't encoded/escaped properly? Oct 29 02:57:54 tell whoever gave you broken data to fix it? Oct 29 02:58:00 joshee12: no, i don't have that issue. Oct 29 02:59:02 oops. *josheee12 Oct 29 02:59:32 odd...must be something weird on my code, i'll look into it, thanks Oct 29 02:59:50 it's a website that generates TomTom data to xml, with unescaped characters... **** ENDING LOGGING AT Mon Oct 29 03:00:01 2012