**** BEGIN LOGGING AT Mon Apr 29 02:59:58 2013 Apr 29 03:48:00 Ello all Apr 29 03:48:37 Anyone here have any experience with launchers/home replacement/apps/homescreen gestures? Apr 29 03:52:49 Hi guys, are there any android engines/games similar to edge? I'm trying to biuld a anti - TD that's stylistically similar. Apr 29 03:54:54 @james-ubc Edge as in the one where you move the cube around? Apr 29 03:56:14 Kdog59, yeah Apr 29 03:58:16 @james-ubc, I don't believe there is, but you may be able to use something like lwjgl if you know how to get it to cooperate with android Apr 29 04:03:01 yeah i think the edge dude did did his entire game in GL Apr 29 04:04:33 @james-ubc, being that it's pretty much just cubes, colors and listeners, I would imagine so since cubes are hard to make from scratch Apr 29 04:04:55 *working useable cubes Apr 29 04:05:09 wait what Apr 29 04:07:09 @james-ubc it's simple to make a normal cube in java using the basic API. Making one that can be manipulated and worked with is a lot harder though Apr 29 04:08:14 @james-ubc so in most cases, you can assume games that use tons of cubes are using lwjgl. Minecraft is a perfect example since it is nothing but blocks it seems Apr 29 05:12:37 question, can you use the sdk and build apps with the java 6 jdk but have the java 7 runtime? Apr 29 05:13:52 Dayofswords: android apps don't run on the JRE, they run on dalvik Apr 29 05:14:17 Dayofswords: using the JRE 7 to run your IDE should not be an issue or at all related Apr 29 05:15:13 just make sure you're building with jdk6... Apr 29 05:17:29 so I'm getting back an intent from GCM which seems to be missing the message data. Or I'm not accessing the data properly. How do I print out the contents of the intent to see exactly what's in it? Apr 29 05:18:10 tdignan: does it being 32-but or 64-bit matter? Apr 29 05:18:15 bit* Apr 29 05:18:59 I see a key called "data" but can't tell if there's actually anything in it Apr 29 05:19:20 nesoi, why dont you just set a breakpoint and see fields in eclipse inspector? Apr 29 05:20:31 Mavrik: because this is a phonegap app and I don't think I can debug it like that Apr 29 05:20:35 or can I? Apr 29 05:20:56 why do you think you cant? Apr 29 05:21:05 you DO have a Java object don't you? Apr 29 05:21:18 dunno… never tried it you can't debug the javascript side that way Apr 29 05:21:22 so I do run or debug? Apr 29 05:22:49 Mavrik: how do I view the variable? I am at the breakpoint Apr 29 05:23:06 mouse over or right click 'watch' Apr 29 05:23:06 you have the contents listed in debug perspective Apr 29 05:23:12 look around a little c'mon Apr 29 05:23:13 yes Apr 29 05:24:07 variables is blank and doesn't accept input Apr 29 05:24:07 hm Apr 29 05:25:22 how do I view the variable? Apr 29 05:26:11 mouse over or right click 'watch' Apr 29 05:26:39 no variables appear in the variables panel Apr 29 05:27:07 so I can't mouse over them or click them … yet Apr 29 05:28:48 nesoi, thats because youre not suspended on the breakpoint Apr 29 05:28:54 or youre not running with debugger attached Apr 29 05:29:02 I was. it ran to the breakpoint Apr 29 05:30:25 maybe not. it just says [2013-04-28 22:29:11 - MainActivity] Attempting to connect debugger Apr 29 05:31:51 nevermind.... :) Apr 29 05:32:09 ok, so keyset is null Apr 29 05:32:51 I am sending gcm messages using 2 different implementations for testing, node and python. both produce the same result which is that the message goes through but is empty… what should I look for? Apr 29 05:35:00 Does using a 64-bit JDK matter? Or should I use 32-bit? Apr 29 05:35:30 nesoi, well, probably at format of the message you're sending to GCM server Apr 29 05:36:06 thing is, both of these implementations are producing the same results Mavrik, and they don't have issues posted complaining, so probably it's not the sending that's the problem Apr 29 05:40:47 hm found the data Apr 29 05:40:53 but not sure why I'm not getting it Apr 29 05:40:56 in the program Apr 29 05:47:46 hm. nevermind… working now! thanks! Apr 29 05:47:55 what was the solution Apr 29 05:48:37 damn it! how did you get it to work? Apr 29 06:20:38 does anyone know if there place when one can find programms or tool similar to what is go with bysybox, I mean not regular applications but precompilled binaries, for console, to use over ssh, preferrable for blutooth or wifi ? I don't want to deal with NDK and all that stuff compilling on my own, so maybe there is allready some web site with those programms ? Apr 29 06:33:46 JesusFreke: you? http://i.imgur.com/7tlLS2z.jpg :) Apr 29 06:35:19 elkng: I'm confused, what tools are you looking for exactly? Apr 29 06:35:48 console tools to use wifi or bluetooth Apr 29 06:35:56 g00s: bycicle ? Apr 29 06:36:39 Dayofswords: all those android apps from market require too much finger work on the screen, I need console ones to use them when connecting to phone over ssh Apr 29 06:37:18 similar to iwconfig for wifi or hciconf for bluetooth Apr 29 06:37:25 in regular linux Apr 29 06:37:53 actually, i think he uses a unicycle Apr 29 06:40:58 Good Morning :) Apr 29 06:57:25 g00s: hah :) Apr 29 06:57:35 I have one that's almost that big. (but no back wheel :p) Apr 29 06:58:18 it has a 36" wheel Apr 29 06:58:32 that one in the pic is probably like 42 or 45, if I were guessing Apr 29 06:59:37 And I suspect the reason for the big wheel is the same in both cases Apr 29 06:59:44 for speed :) Apr 29 06:59:58 i have to do a reskin of an app with entirely new assets, it will be almost identical but all graphic files (.pngs) will be different, anyone know a good way? I was thinking use same code base with a boolean and then simply use a .bat to set the different resource dirs or something Apr 29 07:02:08 JesusFreke: "for speed", is it really possible to drive that device fast ? Apr 29 07:02:18 20 mph ? Apr 29 07:02:57 stick unicycle racing into google images Apr 29 07:03:39 elkng: I dunno about the pictured penning farthing. but on my 36", 12-15 mph is a good cruising speed. I could probably get up to 20, but not for long :) Apr 29 07:04:09 right up to the moment when you go to 0 very fast Apr 29 07:04:59 Leeds: I've had very few accidents in my 10 years of unicycling :). something like snowboarding is so much more dangerous. I've had many more injuries in the 2 years I've been boarding :p Apr 29 07:05:06 do you have a freewheel on that thing? seems rather a bad idea not to at 20mpg Apr 29 07:05:20 presumably that's because you don't often get up to 20mph... Apr 29 07:05:22 alex_PP: you *can't* have a free wheel Apr 29 07:05:33 you have to have control of the wheel, to maintain balance Apr 29 07:05:38 i beleive you can Apr 29 07:05:47 a freewheel on a unicycle sounds terrifying Apr 29 07:05:59 alex_PP: no, you can't :) Apr 29 07:06:12 you press both forward and backward on the pedals to maintain balance Apr 29 07:06:43 if pressing in either direction doesn't correspond to actual force on the wheel, you're on the ground :) Apr 29 07:06:53 good old Darwin Apr 29 07:08:18 Can someone explain to me how it makes sense that getInputStream().read(byte[] buffer) returns an integer? I dont understand how I'm supposed to use that? Apr 29 07:08:33 alex_PP: unless you're talking about something like http://www.youtube.com/watch?v=uiaIzvBgRxo Apr 29 07:08:39 i watched someone go down a steep hill on a unicycle Apr 29 07:08:40 i was imperssed Apr 29 07:08:45 but that's a whole 'nother beast :) Apr 29 07:08:47 https://en.wikipedia.org/wiki/Unicycle#Other_variations last entry Apr 29 07:09:11 lite_: read returns the number of bytes read. the bytes are placed into the buffer you pass Apr 29 07:09:26 alex_PP: in that case, you use the brake to maintain balance, just like you would while riding a wheelie on a bike Apr 29 07:09:42 u appreciate how a unicycle works Apr 29 07:09:50 which isn't a great strategy for long term riding ;) Apr 29 07:09:56 i just forget to peddle enough going fast on a fixed gear bike Apr 29 07:10:12 that said, i suck Apr 29 07:10:32 try a unicycle :D Apr 29 07:10:40 i have Apr 29 07:10:47 apparently not long enough :) Apr 29 07:10:50 ha Apr 29 07:10:54 yeah Apr 29 07:11:04 i think i'll stick with 2 wheels for the time being Apr 29 07:11:09 takes aronud 15 hours of practice on average, for most people to be able to ride one initially Apr 29 07:13:30 i might give it another try Apr 29 07:15:44 * hackkitten doesn't really see the point of learning to ride a unicycle Apr 29 07:15:47 is that channel related to developing android itself or developing applications for android ? Apr 29 07:16:07 hackkitten: android is kinda like a unicycle XD Apr 29 07:16:12 elkng: this channel is for app development :) Apr 29 07:16:22 g00s: you keep falling on your snout? :3 Apr 29 07:16:29 haha Apr 29 07:16:40 hackkitten: if you don't see the point of it, then there probably is no point for you :) Apr 29 07:16:51 quite :) Apr 29 07:16:57 I commute to work on mine ;) Apr 29 07:17:14 * hackkitten sees no point in jumping from a perfectly structurally sound bridge or plane either Apr 29 07:17:21 :) Apr 29 07:17:29 I've done the plane Apr 29 07:17:40 I don't think I could make myself bungee jump though Apr 29 07:17:42 JesusFreke: can you do this (but code instead of paint?) http://2.bp.blogspot.com/_Eiwce13X738/SrYd0xV6ZXI/AAAAAAAAHLY/Z0RkVqHwi-k/s400/Chuck_Palmer_Unicycle_Painter.jpg Apr 29 07:17:47 yeah, same for me Apr 29 07:18:04 bungee jumping has to be the most insane thing, worse than base jumping Apr 29 07:18:19 probably with less bodily damage as well :D Apr 29 07:18:30 (base versus bungee jumping) Apr 29 07:18:34 g00s: I love how the balance is totally off in that picture :) Apr 29 07:18:41 XD Apr 29 07:18:43 kevinb, thanks Apr 29 07:20:13 and no one doing skateboarding ? Apr 29 07:20:51 i did that a long time ago; tony hawk board :) Apr 29 07:20:58 elkng: I did a lot of the similar style of riding. jumping up on stuff, pedals grinds/grabs, big drops, riding down stairs Apr 29 07:21:45 I'm too out of shape for that crap now :) Apr 29 07:26:45 if i have generated background name via concatenation of strings... how to make it aplicable to setBackground method? Apr 29 07:28:55 anyone? Apr 29 07:29:47 bueller ? Apr 29 07:29:59 ciurkut, getResources().getIdentifier() Apr 29 07:30:18 What will getApplicationContext() return when called from within a Service? Apr 29 07:30:45 the application context Apr 29 07:31:22 Which application? The Service was started by a broadcast receiver Apr 29 07:31:32 Activity != Application Apr 29 07:32:02 your Application Apr 29 07:32:08 Hmm Apr 29 07:32:09 Okay Apr 29 07:32:18 alex_PP is it safe to use it in listview getView or better outside to avoid calling it many times? Apr 29 07:32:27 i suggest you write in a way that doesn't care though Apr 29 07:32:46 why do you have a list view in a service? Apr 29 07:33:09 i dont ? Apr 29 07:33:24 sorry, mixed you two up Apr 29 07:33:27 hah Apr 29 07:33:39 you can call it where ever you want Apr 29 07:33:39 i have listview that needs to get populated by different backgrounds that are stored in drawable folder Apr 29 07:33:40 :< Apr 29 07:33:46 i'd do it once before the loop though Apr 29 07:34:09 mkay, thx Apr 29 07:34:16 sorry, no loop, you could do it in getView Apr 29 07:34:19 that'd be fine Apr 29 07:35:00 are you sure? :p Apr 29 07:35:17 yeah Apr 29 07:35:36 if you really wanted, you could do it before hand, but it might be a bit messy Apr 29 07:41:15 is setBackground on imageview available from api 16? O.o Apr 29 07:42:17 setBackgroundResource() Apr 29 07:42:51 setBackground replaces setBackgroundDrawable Apr 29 07:42:53 for some reason Apr 29 07:49:09 Exactly how is communication encrypted when using listenUsingRfcommWithServiceRecord ? Apr 29 07:49:15 listenUsingInsecureRfcommWithServiceRecord (String name, UUID uuid)* Apr 29 07:50:38 does setting background to an image tiles the image to fit automatically?:< Apr 29 07:57:58 ciurkut, stretch by default, to tile use a bitmapdrawable https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setTileModeX(android.graphics.Shader.TileMode) Apr 29 08:00:52 thx Apr 29 08:04:21 this will be more useful to you https://developer.android.com/guide/topics/resources/drawable-resource.html#XmlBitmap Apr 29 08:23:55 how to fix MODULE.HOST.STATIC_LIBRARIES.libbfd already defined ? Apr 29 08:26:37 Hey guys Apr 29 08:26:57 I want to create a custom settings screen embedded in a fragment Apr 29 08:27:20 unfortunately preference fragment is not working Apr 29 08:27:51 is there a way to work around this? Apr 29 08:32:20 anyone experienced with touch interceptors? Apr 29 08:33:21 I have a viewpager in a listview, and I need to block vertical scroll when user tries to scroll horizontally Apr 29 08:34:05 because when it goes off the x axis, just a little bit, the viewpager goes back to where it was Apr 29 08:36:28 please, someone help, any ideas would help Apr 29 08:41:09 stiggpwnz: are you sure that you want to implement it this way? Apr 29 08:41:21 stiggpwnz: sounds pretty unusual Apr 29 08:41:56 kl4q: yes, I need to insert a viewpager carousel as a listview's first element Apr 29 08:42:23 kl4q: I need it to scroll with my listview, not remain at the top all the time Apr 29 08:42:48 hello Apr 29 08:42:52 what do you have there? Apr 29 08:42:58 in that viewpager? Apr 29 08:43:02 who to fix build/core/base_rules.mk:130: *** prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/lib: MODULE.HOST.STATIC_LIBRARIES.libbfd already defined by prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/lib32. Stop. Apr 29 08:43:03 ? Apr 29 08:44:16 kl4q: so it needs to be a part of the listview, now I need to figure out how to block Y axis, when user starts to scroll in X axis, please let me make a screenshot for you Apr 29 08:45:02 wowdd1: it looks like #android-root would be better for you to look for help ;) Apr 29 08:45:06 kl4q: it's a news app: https://dl.dropboxusercontent.com/u/32772116/Screenshot_2013-04-29-12-43-53.png Apr 29 08:45:22 stiggpwnz: sure I get that Apr 29 08:48:47 stiggpwnz: https://groups.google.com/forum/?fromgroups=#!topic/android-developers/FO-NDXGUiGs looks like a solution Apr 29 08:49:11 you need to override onInterceptTouchEvent of your ListView Apr 29 08:50:58 goodmorning StingRay_ Apr 29 08:51:15 is it ? Apr 29 08:51:17 :) Apr 29 08:57:23 I have a progress bar next to a text view. The text view is right aligned and the progress bar left aligned. I want the width of the progress bar to fill out the space left by the text view. How? Apr 29 08:58:22 ah alright Apr 29 08:58:30 if you swap the order of how they are defined it works Apr 29 08:58:36 ridiculous Apr 29 08:59:17 or use layoutParams like your supposed to Apr 29 08:59:18 depending on the parent Apr 29 08:59:24 :) Apr 29 09:00:26 yes it is StingRay_ ;) Apr 29 09:00:32 somewhere ... probably Apr 29 09:18:54 Hello Apr 29 09:19:21 Can I ask some of you your opinion on developing Android apps in IntelliJ vs Eclipse? Apr 29 09:19:32 i need help with Android Home Widget... Apr 29 09:19:45 i create my home widget Apr 29 09:21:21 the widget is for android tablet only. When people use table with an external keyboard i'm not able to give the focus to the widgte Apr 29 09:21:40 Hi, has someone ever got a problem with giving a custom name to a picture but the name given at last is a timestamp (and not the custom name) ? I'm stuck with that Apr 29 09:22:36 is there a way to give focus to home widgets? Apr 29 09:23:24 samsung made a dick move. I can't update those pre-installed samsung software without creating a samsung account anymore. Apr 29 09:23:31 that's nice development from them. Apr 29 09:24:33 hokkaido: what do you have against samsung account? Apr 29 09:24:51 it comes in handy when you loose your device Apr 29 09:25:03 with the tracking features you didn't know you have Apr 29 09:25:13 why should I (or millions of others) need to register just to keep their software updated and "secure"? Apr 29 09:25:35 I do know samsung account has tracking feature. Apr 29 09:25:50 and that is a feature I really really really don't want to enable on my smartphone. Apr 29 09:26:10 I don't want some south korean company to track me :D Apr 29 09:26:21 you can always flash something else Apr 29 09:26:24 and be secure Apr 29 09:26:35 at least from samsungs spyware Apr 29 09:27:02 nope. my employers phone, so I can't void warranty on phone I don't own. Apr 29 09:27:38 oh yes, those evil south koreans Apr 29 09:28:17 anyway, it would make sense, that every phone would be able to update pre-installed software. Apr 29 09:28:18 well known for their love of plastic surgery, tasty tasty bbq, and America Apr 29 09:28:29 because I know many people won't create that samsung account. Apr 29 09:28:32 Leeds are you korean? Apr 29 09:28:34 and their phones will become insecure. Apr 29 09:28:41 kl4q: not last time I checked Apr 29 09:29:05 it wasn't an attack though Apr 29 09:29:06 and I don't have anything against south korea. I just don't like signing up for yet another account to have my phone seucre. Apr 29 09:29:08 *secure Apr 29 09:29:37 i created samsung account right away because I knew it's going to nag me 3x a day to create it Apr 29 09:29:40 doesn't it? Apr 29 09:29:49 hokkaido: you do realise that if they wanted to, someone at Samsung could watch everything you do on your phone? Apr 29 09:29:52 I know 6 people at the office and 2 friends with samsung galaxy s3 and none of them have samsung account. Apr 29 09:30:09 I mean, privacy is dead anyway - but in particular, your hardware and software vendor really own you Apr 29 09:30:30 if it's not samsung then it's your google account you have connected with it ;) Apr 29 09:30:34 Leeds: do you realize, that I can not covering my head with tinfoil. I am just saying, that requiring an account to keep default software updated is stupid. Apr 29 09:30:55 hokkaido: then get a motorola phone, and get tracked by Americans instead Apr 29 09:31:11 Leeds: wtf? can't you read or are you a bot? Apr 29 09:31:15 hokkaido: nexus, or gtfo :D http://www.geekwire.com/2013/wont-buy-subsidized-android-phone/ Apr 29 09:31:17 unless, of course, the spyware was put on the phone in China when it was made Apr 29 09:31:22 Leeds: but you sure have something against america Apr 29 09:31:33 hokkaido: you're the one who brought up the nationality of the vendor, not me Apr 29 09:31:34 I said: requiring an account to keep default software updated is not nice. Apr 29 09:31:55 Leeds: and I said that it is not about nationality. it wasn't too bright of me to mention it. let it go. Apr 29 09:32:19 okay, so you're happy for Google to track you - since you need a Google account to keep the Google apps up-to-date - but not Samsung? Apr 29 09:32:35 given that the both already have far more control over your phone than you do? Apr 29 09:32:47 I am not happy that I need google account and also a samsung account to keep my phone updated. Apr 29 09:32:48 alright, I'll let it go :) Apr 29 09:33:00 because before I DID NOT NEED THE SAMSUNG ACCOUNT Apr 29 09:33:09 this has been introduced some time ago. Apr 29 09:33:21 calm down hokkaido everyone's getting the point Apr 29 09:33:22 before I was able to update the default software without samsung account. Apr 29 09:33:24 not anymore. Apr 29 09:33:32 there's no explanation we're just discussing Apr 29 09:33:47 oh, there's absolutely an explanation Apr 29 09:34:01 well, sure Apr 29 09:34:03 Leeds: yes. they want to track us!!!! *shivers* Apr 29 09:34:09 but not the one we'd like to hear Apr 29 09:34:26 like: they want you to create that effin account Apr 29 09:34:29 Samsung want a direct relationship with their customers, not one which goes through Google - and if you believe some of the theories out there, it's because they want to be able to start moving people to Tizen at some point Apr 29 09:34:36 not like: it's necessary to function Apr 29 09:34:42 Leeds: yep. Apr 29 09:35:04 Leeds: that would be fine by me, if they'd remove google completely from their phones. Apr 29 09:35:20 hokkaido: then why are you using Android instead of Bada? Apr 29 09:35:23 now it is a bit stupid that they manufacture google phones claiming to be samsung phones. Apr 29 09:35:32 Leeds: I don't know what's Bada. Apr 29 09:35:35 maybe that's why. Apr 29 09:35:50 and my emplyer didn't give me Bada phone, because we make android software. Apr 29 09:35:52 i thought Bada was discontinued Apr 29 09:35:53 *employer Apr 29 09:36:10 g00s: yeah, pretty much :) Apr 29 09:36:26 Leeds: because nobody writes applications for bada, that's why Apr 29 09:36:36 I don't, that's for sure. Apr 29 09:36:36 g00s: because nobody wanted it ;) Apr 29 09:37:19 i don't remember during the SGS 4 launch, the word "Android" ever being spoken :D Apr 29 09:37:45 they are creating a services layer to be sticky Apr 29 09:38:45 even google stopped mentioning it unless it's a developing context Apr 29 09:38:49 but , we know how well sammy does software so ... Apr 29 09:39:01 i mean development* Apr 29 09:40:05 yeah, there's also a theory that Google prefers Now and Play as brands over Android Apr 29 09:43:19 wow, the only companies that can make 14nm parts are intel, sammy, tsmc, and GlobalFoundaries Apr 29 09:43:23 *Foundries Apr 29 09:43:40 tsmc got 14nm? and not IBM? interesting Apr 29 09:44:58 Howdy Apr 29 09:45:21 GlobalFoundries being AMD's old fab arm Apr 29 09:46:02 p_l|omoikane: i guess there is a alliance where IBM contributes research and GloFo / sammy implement Apr 29 09:46:10 Common Platform Alliance Apr 29 09:46:15 so they are in the mix somehow Apr 29 09:47:11 Hello, are there any experts of Android Home Widgets ? Apr 29 09:50:03 carlovv: no one of these shy expert devs are going to admit it, just give it a try Apr 29 09:50:11 whens my playbook getting bb10 :( Apr 29 09:52:14 StingRay_: when it does, you can send it to me :D Apr 29 09:52:57 we'll do a swap Apr 29 09:53:10 when my droid-1 gets updated from froyo to jelly bean, i'll send you that Apr 29 09:53:22 sound fair ? Apr 29 09:53:24 XD Apr 29 09:53:50 not worth selling or swapping Apr 29 09:53:55 wish it was Apr 29 09:53:57 :) Apr 29 09:53:57 I sold my playbook Apr 29 09:54:03 for beer money, pretty much Apr 29 09:54:28 my point exactly Apr 29 09:54:32 I seldom drink Apr 29 09:55:04 yesh, that is a problem Apr 29 09:55:20 (and yes, I did just type yesh by accident - 100% sober) Apr 29 09:58:09 if it could be used for bb10 dev, i't take/keep it Apr 29 09:58:21 maybe not the coolest gadget out, but meh Apr 29 09:58:51 it sucked with the old bbos , not sure how well it runs bb10 Apr 29 09:58:52 I never seem to get rid of any gagets Apr 29 09:58:54 current OS is pretty nice Apr 29 09:59:01 i just have a gadget graveyard in a drawer Apr 29 09:59:04 and it has an AMAZING screen Apr 29 09:59:05 my thought was that it would be easy enough to pick up another one, in the unlikely event of bb10 dev being something that mattered to anyone in any way Apr 29 09:59:29 yeah, i have mine too b/c i'm not sure how to securely wipe them. factory reset isn't a guarantee Apr 29 09:59:43 Dark-Side: you're going to show it to your grandson Apr 29 09:59:52 "Back in my day..." Apr 29 10:00:01 at the moment, there is no sign that bb10 dev will matter to anyone in any way Apr 29 10:00:06 We played Snake and we liked it Apr 29 10:00:45 I have a hard time selling something super cheap that I paid a lot for but Apr 29 10:00:46 i doubt any of the mobile OSs will matter Apr 29 10:01:04 s/but// Apr 29 10:01:06 they are all somewhere between gestural UI and NUI Apr 29 10:01:25 I'd rather keep it in my drawer Apr 29 10:01:54 I didn't pay for my playbook... Apr 29 10:02:04 g00s: NUI? Apr 29 10:02:12 * p_l|omoikane got some interesting ideas on how to expand that Apr 29 10:02:30 yeah, or give it to someone for free Apr 29 10:02:34 http://www.amazon.com/Brave-NUI-World-Designing-Interfaces/dp/0123822319 Apr 29 10:02:46 NUI / OUIs are the progression Apr 29 10:02:50 because I definitely don't need my old smartphone Apr 29 10:03:06 g00s: ... the title is ominous Apr 29 10:03:13 heh Apr 29 10:03:28 cli -> gui -> nui -> oui Apr 29 10:04:07 its hard to describe oui; its like when a physical object has the UI itself - not presented on a plane Apr 29 10:04:35 g00s: aka "plain old UI where UI designers are spanked with barbed paddles for having no idea" Apr 29 10:05:39 here is a public service announcement (sorry google) :D http://lifehacker.com/the-best-browser-extensions-that-protect-your-privacy-479408034 Apr 29 10:05:44 (related a bit to someone's report of a trip to abandoned factory and the display of user interfaces there) Apr 29 10:12:19 Hello, I'm pretty new to android dev. I'm trying to add items to a list view. Every item in ListView need to contain 3 strings. Which List should i use? Apr 29 10:13:17 I mean, list for eg. ArrayList etc. which needs to be attached to the adapter Apr 29 10:14:08 p_l|omoikane: do you use ABP, and if so, which blacklists ? Apr 29 10:14:11 Dattz: you need to override adapter Apr 29 10:14:31 and create your list item Apr 29 10:15:00 oh.... okay. I'll take a look at that Apr 29 10:15:59 g00s: pretty much defaults Apr 29 10:16:02 work well enough Apr 29 10:16:57 i wonder if DNTMe and the ABP's Eeasyprivacy list are redundant Apr 29 10:17:20 default EasyList, i added Easyprivacylist Apr 29 10:20:03 http://pastebin.com/310kxDcG i need to fit image in a area, it works but if i add java code to update image doesent works anymore, why? Apr 29 10:23:05 help plz Apr 29 10:29:58 xan_IT: maybe you should scale the bitmap Apr 29 10:30:05 before setting it on the imageview Apr 29 10:30:09 use layoutparams Apr 29 10:30:31 and bitmapfactory.createscaledbitmap Apr 29 10:30:36 something like that Apr 29 10:30:44 try it Apr 29 10:31:26 Bitmap.createScaledBitmap Apr 29 10:36:49 I'm trying to query all ContactsContract.Contacts-users who match a certain criteria (partial phone number) which is only available in ContactsContracs.People.Phones. How do I get access to select the contact based on the IDs from the Phones table? Apr 29 10:37:41 kl4q homepageBanner.setImageBitmap(Bitmap.createScaledBitmap(imageBitmap, LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, true)); Doesent works Apr 29 10:38:17 i create an application widget, i set the layout focusable = true but the widget hasn't the focus (blue square around) using a keyboard.is there a way to enable focus on widget? Apr 29 10:38:26 xan_IT not like that Apr 29 10:39:28 kl4q can write code for me? Apr 29 10:40:09 sorry, I can't Apr 29 10:40:32 where i wrong? Apr 29 10:42:29 LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT Apr 29 10:42:43 you should get the size of the imageview Apr 29 10:43:58 xan_IT: what are you tyring to achieve? Apr 29 10:44:09 xan_IT: also asking us to write your code is a good way to make sure we don't help ya Apr 29 10:44:41 bitmap set size of image view not otherwise Apr 29 10:44:58 what does that mean Apr 29 10:45:09 http://pastebin.com/310kxDcG i need to fit image in a area, it works but if i add java code to update image doesent works anymore, why? Apr 29 10:45:39 well depends on what the image is Apr 29 10:46:26 funkbox? Apr 29 10:46:49 xan_IT: define "doesn't work" Apr 29 10:46:54 xan_IT: we don't read minds Apr 29 10:47:18 does it not fit properly, or does it decimate the adult population of killer whales in the northern arctic waters? Apr 29 10:47:23 both are "doesn't work" Apr 29 10:47:52 lol Apr 29 10:48:03 That how you know you REALLY screwed up Apr 29 10:48:17 Hello all. I just want to say that I just release a new web utility for all android developers that I think that can be handy for all of us. Is an open source project that allow us to generate the hdpi, mdpi and ldpi versions of our project image resources, just uploading the xhdpi version. The project is on github and is released with the MIT license. The url is http://andresize.com . If you found some error, please create an Apr 29 10:48:18 issue on github. Hope it can help someone like it helped to me to launch my first android application http://bluecarlocator.com Apr 29 10:48:48 I found an error Apr 29 10:48:51 It's in some strange language Apr 29 10:48:54 ecentinela: goes straight to spanish for me Apr 29 10:49:13 ecentinela: does it do hinting nicely ? Apr 29 10:49:13 you can replace /es for /en Apr 29 10:49:34 what means "hinting"? Apr 29 10:50:14 doesent fit but it put in real size, i need to zoom image until width = match parent and height dinamics Apr 29 10:50:45 ecentinela: if you make a 2px border smaller by 50% then it may usually do it so that it's not sharp Apr 29 10:51:12 xan_IT: try centerCrop or centerInside Apr 29 10:51:13 ok funkbox Apr 29 10:51:22 at this time it only resize the images by a scale factor Apr 29 10:51:40 still handy Apr 29 10:52:00 funkbox if i use only xml and use a image in res it works, but i need to download image from web Apr 29 10:52:04 So it's basically android asset studio that I have to download Apr 29 10:57:13 so? Apr 29 10:57:54 SimonVT, android asset studio allows you to resize a bunch of images at once? I don't know how Apr 29 10:59:38 I don't know what yours does Apr 29 10:59:43 It was in spanish, so I closed it Apr 29 11:01:28 for the english version, yo can replace the /es for /en Apr 29 11:01:39 I don't know why you are being redirected to the spanish version Apr 29 11:02:37 well, maybe is because your browser language is giving me a language that I don't have registered Apr 29 11:04:32 I setted the default language to en now Apr 29 11:08:09 ecentinela: change "some seconds" to "a few seconds" Apr 29 11:08:12 it'd sound better imo Apr 29 11:08:19 ok, thank you Apr 29 11:08:54 donate button is in spanish in english version ;) Apr 29 11:09:11 my default is spanish but I get english version btw Apr 29 11:09:47 and I'll try it when I get home Apr 29 11:10:24 looks neat, but I wonder if just xhdpi images work as good for the whole resolutions Apr 29 11:10:32 i mean all of them Apr 29 11:18:47 hiho how to cast integer to charsequence so it works in toast? Apr 29 11:19:06 String.valueOf(int) Apr 29 11:20:27 Currently I have this code: Apr 29 11:20:28 AdRequest adRequest = new AdRequest(); Apr 29 11:20:28 adRequest.addTestDevice(AdRequest.TEST_EMULATOR); Apr 29 11:20:42 but I'm still getting normal ads (not testing ones) on the emulator Apr 29 11:37:42 i have list. when i click item in list it opens new activity. that activity is supposed to show toast with number of clicked item. instead it shows nothing. any idea why? Apr 29 11:38:24 i use putExtra(string name,string value) Apr 29 11:39:24 i mean toast works but its empty :< Apr 29 11:40:23 you have an assignment error on line 123 Apr 29 11:40:31 Heya, anyone here using og.likes? Apr 29 11:43:30 can I create a file with openFileOutput? Apr 29 11:45:08 Wuppy21_: can you read the docs ? Apr 29 11:45:23 cause I think after about word 10 of the description of that method Apr 29 11:45:24 it doesn't say anything about creating Apr 29 11:45:26 you would not need to ask Apr 29 11:45:31 "Open a private file associated with this Context's application package for writing." Apr 29 11:46:19 oh my bad Apr 29 11:46:23 well look at what it returns Apr 29 11:46:58 and about word 10 LOL "Creates the file if it doesn't already exist." Apr 29 11:47:27 ok well 11 or 12 Apr 29 11:47:31 but I was close Apr 29 11:47:54 the lesson remains the same, if your still not sure, read past the 1st sentence ;) Apr 29 11:48:06 it isn't there on the website Apr 29 11:48:23 Android refernence doesn't have that second sentence Apr 29 11:48:52 oh my bad, it only doesn't show where I was looking Apr 29 11:50:56 What is the CacheColorHint supposed to be for? Apr 29 11:55:06 yes... Apr 29 11:55:09 php-cgi binary for Android Apr 29 11:55:18 but it likely needs to be statically linked Apr 29 11:55:26 as I had to create a glibc toolchain for ARM Apr 29 11:59:06 goddamn og.likes Apr 29 11:59:10 fucking bullshit Apr 29 11:59:16 pardon my french Apr 29 11:59:27 but when the facebook sdk lets you down, you don't know what to believe anymore Apr 29 11:59:42 04-29 13:58:30.380: I/Navigator(9596): {Response: responseCode: 200, graphObject: null, error: {HttpStatus: -1, errorCode: -1, errorType: null, errorMessage: null}, isFromCache:false} Look at that beautiful and informative response Apr 29 12:00:03 Is it normal to get a FileNotFoundException from an URL? Apr 29 12:02:23 and now, a static version Apr 29 12:02:25 hope this works Apr 29 12:05:56 Wuppy21_ - I think that's a 404 Apr 29 12:06:13 Or something like that. It gets interpreted into a filenotfoundexception Apr 29 12:06:19 ah alright Apr 29 12:06:20 thanks Apr 29 12:09:47 Having a 4.2.2 SDK, means that I cannot try an app in a 4.0.0 USB Device? Apr 29 12:10:13 I downgraded the minSdkVersion to 15, but I get java.lang.SecurityException: Permission Denial: starting Intent Apr 29 12:12:04 sorry it was a manifext file problem :) Apr 29 12:15:33 YES! Apr 29 12:15:49 php-cgi working under Android with glibc Apr 29 12:17:05 how to open bitmap in drawables to tile it in background? Apr 29 12:17:07 How to enable process id in logcat? Apr 29 12:17:08 :< Apr 29 12:17:37 http://pastebin.com/310kxDcG i need to fit image as width match_parent and height as requires to mantain proportion. this code xml works but i need to add java code because i need to update image by web. So if i use image from res works if i use downloaded bitmap NOT. any help? Apr 29 12:23:22 Anyone willing to test the PHP binaries? Apr 29 12:24:37 I need a favorites list icon for my android app Apr 29 12:25:45 huehuehuehuehuehuehuehue... huehue:< Apr 29 12:27:05 Ankhwatcher: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html the Generic Icon generator works great Apr 29 12:27:08 How can I filter by label in logcat? Apr 29 12:27:30 BlackIce_: sounds promising, I suck at making icons Apr 29 12:30:52 BlackIce_: so how does this work? What does it do with images that I upload Apr 29 12:32:25 Ankhwatcher: Never tried uploading, but I usually pick an icon from the clipart section and a color/size. The tool will allow you to download a zip file containing the icon in all necessary sizes :D Apr 29 12:34:20 dont understand androids memory, if i go to and from a map view over and over my app will just crash with out of memory Apr 29 12:35:37 I'm trying to query all ContactsContract.Contacts-users who match a certain criteria (partial phone number) which is only available in ContactsContracs.CommonDataKinds.Phones. How do I get access to select the contact based on the IDs from the matches the Phones table? Apr 29 12:35:42 guys how to make resource from bitmapdrawable so that it works with setBackground instead of setBackgroundDrawable which is deprecated Apr 29 12:36:29 ciurkut - Just use setBackground Apr 29 12:36:36 ciurkut - Not setBackgroundDrawable Apr 29 12:36:47 but i have bitmapdrawable Apr 29 12:36:54 It takes a drawable Apr 29 12:37:05 but its from api 16? or smth? Apr 29 12:38:06 ciurkut - Yes, if you need to support older devices, either just use the deprecated function, or do a check for which version you are on. You cannot convert your bitmap into a resource. Apr 29 12:38:46 ok Apr 29 12:39:10 what would be the best way to implement a pin-lock to my app? derive all activities from a common PinCheckActivity and check in onResume() the last time the pin was entered? Apr 29 12:42:33 BlackIce_: I put this together with Drawing in Google Drive Apr 29 12:42:36 http://picpaste.com/ic_menu_favoriteslist.png Apr 29 12:45:15 Which eclipse version do you recommend, Indigo or Juno? Apr 29 12:45:47 newest Apr 29 12:45:52 so Juno Apr 29 12:45:57 crised: it might be best to use the one they provide with the dev tools Apr 29 12:46:18 beyond that, I'm with Wuppy21_ use the neweset Apr 29 12:47:49 Hello, this is my getView() overridden function of my base adapter: http://pastebin.com/MCyuyDqP Apr 29 12:48:38 I have three textViews in the layout, but only the first one is shown in the ListView Apr 29 12:49:38 Here's the item_layout.xml : http://pastebin.com/8WDgF4W2 Apr 29 12:50:07 the Internal storage doesn't get destroyed every time after starting an app right? Apr 29 12:50:48 Dattz: prefix them with a string "test:" cause they will be there I would think Apr 29 12:50:59 just your setting "" maybe ? Apr 29 12:51:32 Ankhwatcher: thx Apr 29 12:53:04 StingRay_: did that, but no luck. Apr 29 12:55:14 Here's the main layout btw, just in case: http://pastebin.com/eJztVKua Apr 29 12:55:46 Dattz: oh, your layout Apr 29 12:55:53 item/row layout Apr 29 12:56:10 horizontal ? asking all items ti fill_parent ? Apr 29 12:56:22 oh.... Apr 29 12:56:24 1. that means the 1st does it and the others are then off screen Apr 29 12:56:33 and 2 fill_parent is depreciated Apr 29 12:56:43 is it? Apr 29 12:56:50 match_parent Apr 29 12:57:14 oh.. alright. Thanks I'll try it out Apr 29 12:59:00 Alright, working :) Apr 29 12:59:11 Exception raised during rendering: com.android.ide.common.resources.ValueResourceParser.unescapeResourceString(Ljava/lang/String;ZZ)Ljava/lang/String; Apr 29 12:59:44 Any Idea about this in eclipse. I can't use Graphical Layout and there are no autocompletes/hints in .xml files Apr 29 13:00:00 It says, "The following classes could not be found: - RelativeLayout " Apr 29 13:00:39 I think my eyes are bent Apr 29 13:00:54 there is a straight line in my interface which looks round Apr 29 13:00:54 ... Apr 29 13:01:25 there are three items in the icon I just created which are aligned and look offset Apr 29 13:05:47 how to set bitmapdrawable to bitmap? Apr 29 13:06:04 should i get phone res and make my own bitmap via setting bitmap boundries? Apr 29 13:06:18 and than set normal bitmap Apr 29 13:06:21 as wallpaper? Apr 29 13:23:35 Anyone know why all the headphone manufacturers create their own "control" apps for Android. Is this a failure in the HW standardization for Android phones? It seems a lot has issue with either mic or volume controls. Apr 29 13:28:10 i have not seen thart Apr 29 13:28:14 how to generate new bitmap from tile bitmap and set it on wallpaper? Apr 29 13:28:20 any ideas? Apr 29 13:28:57 Like here https://play.google.com/store/apps/details?id=com.outsidesource.klipschcontrol&hl=en and here https://play.google.com/store/apps/details?id=se.jays.headsetcontrol and https://play.google.com/store/apps/details?id=com.philips.cl.headset - it seems so unecessary. Apr 29 13:31:09 snowpong: yeah; they probably act like a microphone and pulse some sort of command signal that way; there's no standard for hacks like that Apr 29 13:31:21 ciurkut: http://developer.android.com/reference/android/app/WallpaperManager.html#setBitmap%28android.graphics.Bitmap%29 Apr 29 13:31:29 I bet if you clipped some leads onto it and put it on a scope you'd see some sort of simple protocol Apr 29 13:31:35 snowpong: try #electronics Apr 29 13:32:20 sirolf i know how to set wallpaper but how to generate bitmap from tiled bitmapdrawable Apr 29 13:32:45 ah ;-) Apr 29 13:33:24 are there some documentation how to control android applications not using touch screen but some commands from console ? Apr 29 13:33:29 is it possible ? Apr 29 13:36:11 ciurkut .. maybe draw the bitmapdrawable to a canvas ? Apr 29 13:36:36 so i would have to make new bitmap with res of the phone res Apr 29 13:36:47 than set canvas on that bitmap Apr 29 13:36:54 and than draw bitmap drawable on that? Apr 29 13:37:04 and than save that bitmap Apr 29 13:37:06 I think that will work Apr 29 13:37:11 and than set to wallpaper Apr 29 13:38:32 let me know if it works ;-) Apr 29 13:41:06 http://pastebin.com/WRuBrXVF this code works but if i decomment the java row doesent works. in particular i need to catch image from internal storage and fit it. if i catch image from res works, if i catch image from internal storage doesent works, HELP PLZ!! Apr 29 13:42:41 xan_IT: https://www.google.co.uk/search?q=android+load+bitmap+from+sdcard&aq=0&oq=android+load+bitmap+from+sd&aqs=chrome.1.57j0l3.7298j0&sourceid=chrome&ie=UTF-8 Apr 29 13:42:43 google Apr 29 13:43:21 xan_IT: google again Apr 29 13:43:22 https://www.google.co.uk/search?q=android+load+bitmap+from+sdcard&aq=0&oq=android+load+bitmap+from+sd&aqs=chrome.1.57j0l3.7298j0&sourceid=chrome&ie=UTF-8#hl=en&gs_rn=11&gs_ri=psy-ab&tok=1Z0hz-7N-SuyDOP_JoLnwQ&pq=android%20load%20bitmap%20from%20sdcard&cp=27&gs_id=9&xhr=t&q=android+load+bitmap+from+internal+storage&es_nrs=true&pf=p&sclient=psy-ab&oq=android+load+bitmap+from+in&gs_l=&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=b Apr 29 13:43:23 645796,d.ZG4&fp=445bc46e3dbe418c&biw=1226&bih=1024 Apr 29 13:43:24 oops Apr 29 13:43:41 alot of questions here could be typed literally in google and will solve themselves ;-0 Apr 29 13:43:51 but neways, take like 2 seconds in google to search rather than waiting and re-asking here Apr 29 13:44:35 at least browse stackoverflow.com for a couple of minutes :) Apr 29 13:45:06 Hi, I'm trying to use a library dealing with GCM https://github.com/dondeng/gcm_on_rails at the bottom it has an example of how to make and send a notifcation, but it says I need the registration id, how do i get that? Apr 29 13:45:27 dragorn: Perhaps. I also see that some headsets send http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HEADSETHOOK while others send http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_NEXT directly. And volume is at http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_VOLUME_DOWN... I don't see why someone couldn't make a headset that sends these keycodes in a proper way - unless Apr 29 13:45:27 of course the protocol is proprietary for sending control signals :/ Apr 29 13:46:30 StingRay_ google use my sistem to catch image from internal storage Apr 29 13:46:37 Sirolf, i have made new bitmap that have same size as screen. and i have bitmap drawable that tiles my background bitmap. can you explain or show how to put bitmap drawable in my new bitmap using canvas cause i never used it Apr 29 13:46:41 WhereIsMySpoon ... sounds like you need to register @ GCM ;) Apr 29 13:47:13 xan_IT: what ? Apr 29 13:47:22 StingRay_ http://stackoverflow.com/questions/7593737/how-to-display-bitmap-from-internal-storage i do same Apr 29 13:47:31 and how to save that bitmap to put it as wallpaper later Apr 29 13:47:33 ciurkut .. bitmapDrawable.draw(canvas); ? Apr 29 13:47:42 Sirolf: http://pastie.org/7737691 i do this already in the app Apr 29 13:48:07 ciurkut PM ? Apr 29 13:48:08 Sirolf: i tried putting a Log.v("regid", regId) after that code but nothing shows Apr 29 13:48:13 mkay' Apr 29 13:48:46 snowpong: Don't know, haven't really looked into it Apr 29 13:50:29 StingRay_ so? Apr 29 13:50:50 so what ? Apr 29 13:51:01 xan_IT: so follow the instructions on that SO post if that's what you're doing? Apr 29 13:53:10 WhereIsMySpoon actualy already do that, and doesent works http://pastebin.com/WRuBrXVF Apr 29 13:55:08 Why dont you just use BitmapFactory#decodeFile(path)? Apr 29 13:55:12 xan_IT: what are you expecting when you load the path "BannerHomepage" ?? Apr 29 13:55:57 to fit it Apr 29 13:56:33 if i catch image from res it FIT, if i catch image from internal storage doesent FIT Apr 29 13:56:46 fit ? Apr 29 13:57:22 This is what working in tech support must be like Apr 29 13:57:32 "it doesn't work!" Apr 29 13:57:43 StingRay_ zoom Apr 29 13:58:21 zoom ? so it loads you just want to alter the size ? Apr 29 13:58:26 android:scaleType="fitCenter" this doesent works at all Apr 29 13:58:48 Is it bad if i don't do onStop for google analytics? Apr 29 13:59:12 Sirolf: you able to give me any more pointers on this reg id please? Apr 29 13:59:18 sorry Apr 29 13:59:29 I have no experience with that Apr 29 13:59:42 and a bit busy now Apr 29 14:00:13 Sirolf: ok Apr 29 14:00:30 so? Apr 29 14:00:52 * StingRay_ gives up Apr 29 14:01:22 xan_IT: loading an image from any source including internal storage is beyond my knowledge…sorry Apr 29 14:01:32 can anyone help me with google analytics? Apr 29 14:09:56 WhereIsMySpoon: you struggeling with push notifications? Apr 29 14:10:06 snowpong: somewhat Apr 29 14:12:00 WhereIsMySpoon: so what fails? Apr 29 14:13:52 snowpong: well at the moment everything :P I have this in my activity being called in onCreate: http://pastie.org/7737788 Apr 29 14:13:58 and this class http://pastie.org/7737787 Apr 29 14:14:19 but i dont get any log output of it succeeding Apr 29 14:14:20 solved Apr 29 14:15:33 Hello colleagues. Apr 29 14:15:37 WhereIsMySpoon: you should see some log output from GCMRegistrar if your device was properly registered for GCM notifications first of all - do you see anything from GCMRegistrar in your log? Apr 29 14:15:55 WhereIsMySpoon: and you need several lines in your manifset as well Apr 29 14:16:01 manifest I mean Apr 29 14:16:07 snowpong: i have those intent things in my manifest Apr 29 14:16:45 do you have internet permission? Apr 29 14:17:00 I am trying to find an RPC implementation for Android to connect to a J2EE server. Is there anything considered 'De-Facto Standard' for that? Apr 29 14:17:14 brx_: yes Apr 29 14:18:19 http://pastie.org/7737808 is my manifest Apr 29 14:18:24 well, the bits that matter for this Apr 29 14:18:48 WhereIsMySpoon: So - which class is actually receiving the GCM messages? You usually need a subclass of GCMBaseIntentService with a onMessage(...) Apr 29 14:19:00 snowpong: http://pastie.org/7737811 Apr 29 14:19:31 snowpong: i have a GcmIntentService that extends GCMBaseIntentService that has an onMessage Apr 29 14:20:45 snowpong: sorry i didnt get all the logcat output, http://pastie.org/7737815 Apr 29 14:21:27 WhereIsMySpoon: well, it seems not to be able to start that service Apr 29 14:21:41 WhereIsMySpoon: your service isn't named the right way Apr 29 14:21:50 timroes: what do you mean? Apr 29 14:22:03 WhereIsMySpoon: can you paste the manifest? (or the parts that pertain to the notifications?) Apr 29 14:22:08 snowpong: i did Apr 29 14:22:09 if you use their support libs, you must make sure to name the service GCMIntentService in your package class (com.me.erebus) Apr 29 14:22:21 and declare it the right way in your manifest Apr 29 14:22:34 * snowpong nods Apr 29 14:22:39 and you h ave the intent service in your .core subpackage Apr 29 14:22:52 it isnt even in teh core subpackage Apr 29 14:22:55 its in networking Apr 29 14:22:57 >_> Apr 29 14:23:22 so your manifest file is anyway wrong :D Apr 29 14:23:40 how do I make my java code select the right drawable for it's platform? Apr 29 14:24:07 so service android:name="networking.GcmIntentService" timroes? and then category android:name="com.me.erebus.networking" ? Apr 29 14:24:19 I have older style drawables in drawable-hdpi etc and v14 ones in drawable-hdpi-v14 etc Apr 29 14:25:24 WhereIsMySpoon: either call it GCMIntentService and put it in the root of your project, or re-implement your own GCMBroadcastReceiver that overrides getGCMIntentServiceClassName(...) Apr 29 14:25:24 WhereIsMySpoon: no Apr 29 14:25:33 what he said :) Apr 29 14:25:48 at the moment the v14 drawable gets used on 2.3 and 4.2 Apr 29 14:25:56 category must match your package name and yoru gcmIntentService need to be placed in that package or you need to use your own broadcast receiver Apr 29 14:25:57 snowpong: do i need to reimplement getGCMIntentServiceClassName or just override it? Apr 29 14:26:36 Why dont you get it working first before you start messing with that :p Apr 29 14:26:49 timroes: seems a bit odd to force people to reimplement this class if tjhey want to put it in a package Apr 29 14:26:52 :S Apr 29 14:27:23 WhereIsMySpoon: it's essentially the same - override means you're re-implementing a parents class function Apr 29 14:27:47 WhereIsMySpoon: this is just a support library Apr 29 14:27:59 if you want full flexibility, implement it yourself like described in GCM tutorial Apr 29 14:28:10 (NOT the getting started stuff) Apr 29 14:32:20 wtf Apr 29 14:32:44 public class GcmIntentService extends GCMBroadcastReceiver{ ... when i try to put the methods in that need to be overrided, it says to remove the @Override tag Apr 29 14:32:49 :S Apr 29 14:33:14 might be because your signature doesn't match? Apr 29 14:33:24 copy your method signature Apr 29 14:33:33 whoops Apr 29 14:33:37 extended wrong class Apr 29 14:34:23 Hello devs! Apr 29 14:34:35 ok i put the GcmIntentService class in the default package of my project now Apr 29 14:34:47 lets see if this works... Apr 29 14:35:30 Might I know how to get latest released android app, maybe from some rss? Apr 29 14:35:58 http://pastie.org/7737865 Apr 29 14:36:04 =/ Apr 29 14:36:56 I changed the manifest to and Apr 29 14:37:23 WhereIsMySpoon: mind the spacing of the java class as well is it Gcm or GCM? Apr 29 14:37:46 derp Apr 29 14:38:24 Gcm/GCM :P Apr 29 14:39:35 snowpong: fixed the typo, still get class not found error Apr 29 14:40:32 WhereIsMySpoon: I think it also needs to be decleared in the manifest as a service Apr 29 14:40:59 i have question when i set drawable bitmap as background of view. its normal. but when i set draw it on canvas and put it as wallpaper it gets bigger Apr 29 14:41:22 snowpong: i have in ... /> Apr 29 14:42:08 WhereIsMySpoon: maybe it needs to be or Apr 29 14:42:13 (notice the .) Apr 29 14:43:05 WhereIsMySpoon: how does your part look btw? Apr 29 14:43:41 snowpong: http://pastie.org/7737895 Apr 29 14:44:35 snowpong: tried both your versions for the service both still result in class not found Apr 29 14:45:07 WhereIsMySpoon: and what is the path to the file in the actual src? Apr 29 14:45:56 snowpong: projectdir/src/GCMIntentService Apr 29 14:46:11 so i guess it needs to be .GcmIntentService Apr 29 14:46:14 *.GCM Apr 29 14:47:16 no, it should be in src/com/me/erebus/GCMIntentService I believe - isn't there where most of your other stuff is? Apr 29 14:48:51 hello Apr 29 14:49:06 aha Apr 29 14:49:13 got my reg id :D Apr 29 14:49:19 snowpong: thanks a lot dude :) Apr 29 14:49:22 or dudette :) Apr 29 14:49:30 dude, sorry ;) Apr 29 14:49:34 haha Apr 29 14:50:18 SimonVT: could you help me out? I'm trying to use different icons in my menudrawer for above/below honeycomb, but it's only pulling in the v14 option Apr 29 14:50:53 WhereIsMySpoon: but nice it worked out - now you've just got the "nice" Notification APIs to figure out ;) Apr 29 14:51:06 snowpong: :( i dont like the way u put that in quotes Apr 29 14:51:14 hehe Apr 29 14:51:24 Hi Apr 29 14:51:54 how can I force to change language of device in application level? Apr 29 14:52:08 WhereIsMySpoon: it's not too bad actually, just takes a bit of experimenting to get right - I recommend you use the NotificationCompatBuilder so it works across APIs Apr 29 14:52:25 snowpong: ok thanks :) Apr 29 14:53:24 I'm having a problem with my application on devices that have a task manager Apr 29 14:54:15 if I clean the memory, it seems that the garbage collector cleans a lot of my objects Apr 29 14:54:50 is there a callback for that, or anything like it? Apr 29 14:56:10 snowpong: so if I now send a notification and put in my onMessage some log.v or similar, should that log fire? Apr 29 14:59:57 I want to have a list of 500 names connected to sentences for each name in my app. And for later versions I want to add more names or more sentences. If I was to add them just as strings it would be a bit inconvenient too look for duplicates when I want to add more. Any suggestions for how to do it? Apr 29 15:00:26 Quacked: you can define arrays in xml, or use sqlite Apr 29 15:00:30 a database ? Apr 29 15:00:33 WhereIsMySpoon: where do you send the notification from? a 3rd party server? you typically on a successfull regID from GCM register this ID also with your own 3rd party server Apr 29 15:02:18 Hi basically is there any push notification client application? Apr 29 15:03:05 but push notification is not about GCM Apr 29 15:03:15 huh Apr 29 15:04:59 hi! I try to debug a C++ app on an android device (nexus7). gdbserver is started with "adb shell run-as" and attached to the process. I have a problem that I end up with more than one gdbserver processes running and they are no killable. How could I terminate the gdbserver process when not needed? Apr 29 15:05:11 Ankhwatcher: I doubt it's using -v14 drawables below v14 Apr 29 15:05:17 guysss Apr 29 15:05:50 anyone have idea why my wallpaper made from bitmap drawable is 2x zoomed in than that drawable? Apr 29 15:05:59 SimonVT: it is, could it be because it's set in Java Apr 29 15:06:11 ciurkut: storing it in res/drawable/? Apr 29 15:06:13 Ge0rG: yeah, I was thinking sqlite because it would be easier when I want to add more sentences later Apr 29 15:06:20 nope Apr 29 15:06:31 i have tiles in res drawable Apr 29 15:06:33 than i open em Apr 29 15:06:39 make bitmap drawable Apr 29 15:06:41 tile it Apr 29 15:06:41 and then put the sqlite database file in assets Apr 29 15:06:43 set bounds Apr 29 15:06:52 apply to canvas on other bitmap Apr 29 15:06:54 It's not going to use -v14 drawables below v14.. You need to go back and double check your drawables, and clean your project Apr 29 15:06:56 ciurkut: so this is a yes. Apr 29 15:06:59 and set that bitmap as wallpaper Apr 29 15:07:00 but how should I read from that file? Apr 29 15:07:18 snowpong: i registered the regid with my server manually just for testing Apr 29 15:07:28 snowpong: so like here https://github.com/dondeng/gcm_on_rails Apr 29 15:07:32 in the example bit Apr 29 15:07:34 Quacked: store an xml or some other file you can easily parse, then insert all the data into the DB Apr 29 15:08:31 sqlite files not as easy to parse? Apr 29 15:08:55 Quacked: I never had to open sqlite from assets. Apr 29 15:09:14 dont think I follow you now Apr 29 15:09:24 SimonVT: ah there it is! it just needed to be cleaned Apr 29 15:09:32 why would you "parse" a "SQL"ite db ? Apr 29 15:09:44 SimonVT: once again your help proves invaluable Apr 29 15:09:56 StingRay_: how do I read from it? Apr 29 15:10:03 StingRay_: because you stored an SQL dump rather than a binary DB? Apr 29 15:10:13 Leeds: :) Apr 29 15:10:20 Quacked: read up on it Apr 29 15:10:24 all info in docs Apr 29 15:10:40 it's a database, and small or lite one, that is errr, SQL Apr 29 15:10:48 Really? Couldnt find it when I searched earlier Apr 29 15:11:04 Quacked: use the computer Apr 29 15:11:07 and google Apr 29 15:11:11 and you will find it Apr 29 15:11:11 I dids :P Apr 29 15:11:12 :) Apr 29 15:11:23 Quacked: it's just an SQL database, use sql quieries to read from it Apr 29 15:11:24 "sqlite android tutorial" Apr 29 15:11:26 maybe Apr 29 15:11:27 storing an sql dump is sensible indeed Apr 29 15:11:33 *queries Apr 29 15:12:21 WhereIsMySpoon: yeah, but need to find out how to execute those sql queries first :) Apr 29 15:13:02 http://stackoverflow.com/questions/3805938/executing-multiple-statements-with-sqlitedatabase-execsql http://stackoverflow.com/questions/5994506/how-do-i-run-this-sqlite-query-on-android-select-x-from-table-where-x-something Apr 29 15:13:05 :) Apr 29 15:13:10 google ftw Apr 29 15:14:10 anyone have idea why wallpaper is 2x smaller than bitmap its made from? Apr 29 15:14:12 Sure, but first I must read from the file :) Apr 29 15:35:55 WhereIsMySpoon: well, I suggest you just try. I'm not well versed on the server part on the GCM stuff. But, in onMessage, you should be receiving Intents and they'll have a "from" Extras field that is your GCM project id Apr 29 15:55:38 meh... I'm doing "System.exit(-1);", and the OS restarts my activity. Apr 29 15:55:45 anyone here know the main costs involved in launching a mobile app? ive got development costs, maintenance costs, salary and marketing costs Apr 29 16:07:18 good morning. I think I asked this question last friday, but since I had to run and my client didn't log anything (???), I need to ask it again: Apr 29 16:08:32 do you need any specific API to develop on 2.3.4, or you can confidently use the latest API with no issues (given, of course, that you do not use unsupported functionality in your project from later versions)? Apr 29 16:09:20 I'm asking because API 17 is being advertised as 4.2.2, and that confuses me a bit... Apr 29 16:10:52 Yep, you can use the latest api Apr 29 16:11:34 thanks! It is confusing, isn't it? Apr 29 16:12:11 Not really :p Apr 29 16:13:15 hm. Maybe I'm not reading the right books/articles... where is this bit explained to the users? Apr 29 16:14:50 You can read this: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Apr 29 16:15:10 or just ($RANDOM % 16) Apr 29 16:16:52 isn't it 17? Apr 29 16:16:52 "There's a lot of confusion in this area." <-- your very first words in the article :S Apr 29 16:18:16 The post was mainly about the manifest tags, confusion in that area is just caused by not reading the docs on them Apr 29 16:18:40 Or well Apr 29 16:18:50 what about an article summarizing the compatibility fallbacks introduced with different api levels? Apr 29 16:18:51 I guess both Apr 29 16:19:04 it is always surprising to see what happens if you bump targetSdkVersion Apr 29 16:19:13 Ge0rG: You mean this: https://developer.android.com/reference/android/os/Build.VERSION_CODES.html Apr 29 16:19:14 ? Apr 29 16:19:14 :p Apr 29 16:19:43 How do i add a header to a list fragment? Apr 29 16:19:48 SimonVT: not too bad, but is it comprehensive? Apr 29 16:20:10 * Ge0rG is explicitly missing the different drawable scaling behavior for res/drawable/ Apr 29 16:20:13 What's the preferred and correct way to check if an app is in the background? (I guess that means no activity is in resumed state) Apr 29 16:20:19 yawn Apr 29 16:20:22 What different scaling behavior? Apr 29 16:20:53 This is the best thing I've found so far: http://www.mjbshaw.com/2012/12/determining-if-your-android-application.html Apr 29 16:20:54 And is that really caused by targetSdkVersion? Apr 29 16:21:00 SimonVT: all drawables were mdpi before some release (1.6, 2.0? don't remember) Apr 29 16:21:18 SimonVT: also, it is missing the "no internet on UI thread" nugget Apr 29 16:21:39 it is always surprising to see what happens if you bump targetSdkVersion - what do you mean by that? Apr 29 16:22:03 WhereIsMySpoon: the android runtime changes in sublte ways if you increase targetSdkVersion Apr 29 16:22:26 well i guess it's using some newer under the bonnet stuff Apr 29 16:22:28 managedQuery was b0rked somewhere around honeycomb Apr 29 16:22:40 i see Apr 29 16:22:52 and then the logcat was all about leaking cursors Apr 29 16:23:02 o.o wat Apr 29 16:23:11 somebody should write down a list of these things Apr 29 16:24:24 and I should finish writing that customer-demanded feature Apr 29 16:26:25 Ge0rG: nah they dont need it ;) Apr 29 16:29:42 WhereIsMySpoon: probably not, but they want it Apr 29 16:29:51 Ge0rG: always teh way :) Apr 29 16:29:55 and I need to look good next time I go there ;) Apr 29 16:31:49 Ge0rG: haha :P Apr 29 16:37:28 Can any give me some advice please. I'm developing an app on my Axiom it looks great, everything falls in place with all the layouts but on my Motorola Electrify M the text input fields and buttons are out of wack and shifted. I'm using relative layouts for all the activities with dp to set and offsets. Thanks. Apr 29 16:37:56 Poesghost: why not using LinearLayout's with scaling? Apr 29 16:38:12 since your version of "out of wack" and mine maybe different Apr 29 16:38:14 hard to say Apr 29 16:38:38 I'll switch it to linear and see what that produces. Apr 29 16:38:41 thanks Apr 29 16:38:46 erm... Apr 29 16:38:51 that wont make any diff Apr 29 16:38:53 lol Apr 29 16:42:16 I have some async stuff that I kick off in a Fragment which, when it completes, manipulates view returned by onCreateview …question is: when in the fragment lifecycle should i be kicking off this async thing? Apr 29 16:43:58 How do you tell when your app is launched from the app drawer and not restarted using Android multi-tasking? Apr 29 16:44:22 You don't Apr 29 16:44:29 The result is the same Apr 29 16:44:37 I felt that might be the answer, thanks. Apr 29 16:45:55 SimonVT, isnt there launchedFromHistory though? Apr 29 16:46:00 in the intent flag Apr 29 16:49:03 Do you actually get a new intent tho? Apr 29 16:50:18 i think you might Apr 29 17:15:33 * snowpong found out the problem of control signals (volume, play/pause) and headsets with a mic and Android devices. It's two fold: 1) there are two HW designs on the 4 connector jack. OMTP (by Nokia) and CTIA (by Apple). 2) Apple has a patent on some extra control signals they send. It all makes for a great mess. Yay! \o/ Apr 29 17:28:48 I'm looking for a custom ROM for my Apex AP 708. Can't find something. Can u help? Apr 29 17:29:33 sup guys Apr 29 17:29:53 i have an imageview that will contain an image. The imageview is square in size (maxwidth/height 48dp) Apr 29 17:30:02 and I need the image assigned to it to fill the square Apr 29 17:30:10 while maintaing ratio Apr 29 17:30:12 linear layout doesn't correct it either. Apr 29 17:30:24 i googled and tried messing with all the props but cant seem to quite get it Apr 29 17:31:04 I have a problem with my Sony Xperia X10a; I let it die completely accidentally, and now when I try to charge it, it tries to go into flash mode, dies, charges a bit, goes into flash mode, dies...et cetera. Apr 29 17:31:25 I am thinking I just need to find someone with an unflashed kernel/rom and trade them batteries for a bit. Apr 29 17:34:18 this is what I'm getting now: Apr 29 17:34:24 https://dl.dropboxusercontent.com/u/478744/pics/imageview.png Apr 29 17:34:46 basically i want that greay image to fill the square and chop off any edges that flow out of it Apr 29 17:35:12 centerCrop? Apr 29 17:35:46 Gonad, scaletype centercrop is what you want :) Apr 29 17:36:11 did that Apr 29 17:36:14 still not doing anything Apr 29 17:36:28 hi Apr 29 17:36:36 would it be the max w/h ? Apr 29 17:37:58 I'm developing my first application using phonegap plugin and am using a torch with android native code. Could anyone tell me why this code works on a Torch devices and others not? Apr 29 17:38:53 Gonad, are you changing the picture before loading it into image view? Apr 29 17:39:05 Gonad, do you have sizes that are wrap_content? Apr 29 17:39:11 this code worked on a sony device. Tested on a motorola defy a quench and lg optimus 4x hd and these did not work Apr 29 17:40:46 Mavrik: the image loaded into imageview is loaded from remote sources Apr 29 17:40:51 am using best practices for background loading Apr 29 17:40:58 teh screenshot I showed is that of a placeholder image Apr 29 17:41:13 when the actual image loads, it does the same scaling as the placeholder Apr 29 17:41:40 Gonad, of course, since you have width and height set to wrap_content Apr 29 17:41:47 what would be the best method to get username and password for one time only Apr 29 17:42:01 Sharedpreferences ? ? Apr 29 17:42:21 Looney, "get password"? Apr 29 17:42:29 Mavrik: yes thers a variety of wrap_content layout Apr 29 17:42:38 or the way PayPal app saves user info in /data/data/com.paypal/appData Apr 29 17:42:54 basically if the authentication is successfull Apr 29 17:43:09 we save username for further authentication/sessions Apr 29 17:45:45 Mavrik Apr 29 17:45:48 here's the layout Apr 29 17:45:49 https://dl.dropboxusercontent.com/u/478744/pics/imageview_layout.png Apr 29 17:46:11 pretty much all content use wrap_layotu widths Apr 29 18:03:16 anyone mind looking at this? trying to use SharedPreferences to store 2 strings Apr 29 18:03:17 http://pastebin.com/LPniACtp Apr 29 18:03:35 if Strings are stored I want them to be disaplyed on startUp.. but right now when I try and 'set' the store text Apr 29 18:03:40 it just sets 'false' Apr 29 18:04:09 P3nnyw1se: getString(R.id.foo) is horribly wrong Apr 29 18:04:19 Ge0rG: I was just about to say that Apr 29 18:04:21 P3nnyw1se: also, you should not store prefs names in xml Apr 29 18:04:31 what if somebody compes up with translating them? Apr 29 18:04:58 one issue at the time please :D Apr 29 18:05:10 P3nnyw1se: throw it out, start over anew Apr 29 18:05:12 P3nnyw1se: it probably is all the same issue Apr 29 18:05:23 P3nnyw1se: this.name = getResources().getString(R.id.editProfileName) does not get the value of the edittext Apr 29 18:05:40 okay Apr 29 18:05:44 what does it get ? Apr 29 18:05:49 gibberish Apr 29 18:06:13 I'm shocked that it actually runs, to be honest Apr 29 18:06:16 getString() gets the value of one of the R.string. resources Apr 29 18:06:29 I am sure it freaks out over getString() Apr 29 18:06:40 well it just returns false actually Apr 29 18:06:44 *sigh* somebody please fix my android xmpp client Apr 29 18:07:14 I see the error now ofc r.string instead of R.i Apr 29 18:07:24 what was it you told me I wasn't suppose to do ? Apr 29 18:07:39 shouldn't store pref names in xml right Apr 29 18:07:50 so.. hardcode them ? Apr 29 18:08:07 introduce some Constants class, with static final String in it Apr 29 18:09:03 oddly, I've been debugging some jabber issues with gtalk, and have some ideas (if it's related ;-) Apr 29 18:09:05 If I were to write a custom BaseActivity with its own implementation of onResume and onPause and then extend it while writing a new Activity, if I don't put "@Override" before onResume/onPause will the code from BaseActivity still be run? Apr 29 18:09:26 jdawes: no, you have to call super.onPause / super.onResume (which you have to do anyway) Apr 29 18:09:47 evanc: Right...god sometimes I should think about things for a little bit before asking. Apr 29 18:09:56 Thanks. Apr 29 18:10:02 jdawes: :) Apr 29 18:10:19 kbs: probably not.. but if you have fun hacking on XMPP, feel free to join the yaxim project :) Apr 29 18:11:01 Ge0rG: ah -- sounds interesting :-) (Just a frustrated user though; not much for xmpp besides just getting it to work.) Apr 29 18:11:34 kbs: yeah, getting it to work is f*cking hard already Apr 29 18:11:39 George I'm putting this code in a data Handler class.. and a class just passing on the strings from the GUI.. would you still introduce another class with the constants or is having them in the dataHandler class fine enough ? Apr 29 18:12:15 P3nnyw1se: thats a matter of taste Apr 29 18:17:19 Any Android devs looking for work here? I need an iOS app converted to Android Apr 29 18:17:44 I can have it done in 5 minutes Apr 29 18:17:45 :P Apr 29 18:18:14 well your market is shrinking ;) Apr 29 18:18:18 10 .. probably depending on how long it takes to download the engine Apr 29 18:18:44 * Ge0rG needs an android app ported to ios Apr 29 18:19:08 i just installed my hackint0sh Apr 29 18:19:31 btw, anyone tested Xamarin stuff yet? Apr 29 18:19:46 is this the qt stuff? Apr 29 18:24:39 TechieShane: no recruiting in #android-dev, please Apr 29 18:24:49 oh ok Apr 29 18:24:54 sorry Apr 29 18:28:04 I've kinda wondered about how close ios/android really is, in terms of app-portability. The notifications/intents in android seem to lend themselves to alternate ways of apps working, than on ios Apr 29 18:28:50 kbs: depends on an app. Some applications can have huge chunks of logic portable nearly directly Apr 29 18:35:15 yea, quite likely. The notifications/widgets especially though, seem to invite other ways to interact with the product. anyway -- philosophical question I guess :-) Apr 29 18:44:52 I'm trying to make a keyboard but it doesn't show up in the list of available keyboards. Apr 29 18:45:08 I don't have a settings view for it but I don't think that's the problem. Apr 29 19:21:43 I just opened up my eclipse and all of a sudden, the log is showing me everything that is happening in my phone, how do i limit it to only log stuff about my app? Apr 29 19:25:20 Im reading from a db file and I grab a new row on click like this: http://pastebin.com/qEV2cg7J . I want the row to be randomly picked so I was thinking to just create a new Random with max value the number of rows and then just do cursor.moveToPosition(random); But I want it to go through all rows before showing one row twice. Any ideas? Apr 29 19:25:50 I'm thinking the progress needs to be saved in sharedprefs as well for the next time the user opens the app Apr 29 19:26:26 Quacked: wherefrom is the cursor? Apr 29 19:26:54 sqlite? Apr 29 19:26:58 yah Apr 29 19:27:17 you could just return it from sqlite in random order, then you will just need to take the next element eeach time a user clicks Apr 29 19:27:25 ORDER BY RANDOM() Apr 29 19:27:55 yeah, I thought about that Apr 29 19:28:38 but then save the whole db to sharedprefs? Apr 29 19:28:48 or wait.. the position Apr 29 19:28:50 hmm Apr 29 19:29:05 ids of the rows? Apr 29 19:29:15 yeah.. nevermind, hehe Apr 29 19:29:24 its a good idea, I think.. Apr 29 19:31:22 thanks Apr 29 19:31:34 you're welcome Apr 29 19:34:12 faster to put whole database into array or something instead of doing a new query btw? Apr 29 19:40:29 Quacked: how many rows are you going to have? Apr 29 19:44:19 Not sure yet but I'm thinking about 500 Apr 29 19:45:28 anyone here also works with phonegap? Apr 29 19:51:28 What tools are there to find memory leaks? Apr 29 19:55:13 konr: http://www.youtube.com/watch?v=_CruQY55HOk Apr 29 19:55:23 konr: Any memory manager and time. Apr 29 19:57:09 thanks! Apr 29 19:59:31 atm I do a check if database file exist with new File(DB_PATH + DB_NAME).exists(); . And if it exists it doesnt create it again. Any ideas how I can check for changes in it instead? Apr 29 19:59:49 When I publish new versions the database will be changed Apr 29 20:01:23 Quacked: this is all handled for you by SQLiteOpenHelper http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html Apr 29 20:01:25 is it better to store images in database or external sdcard? Is there any benefit from storing in database? Apr 29 20:02:59 codebutler: that is what Im using: http://pastebin.com/PdrnkQQ7 Apr 29 20:03:10 question, is there a way to automatically upgrade an app without having to to have it inside google play? Apr 29 20:03:48 if you've shipped your own product with your own app delivery infrastructure that manages its own push updates, then sure Apr 29 20:04:38 ctate: app delivery infrastructure? Apr 29 20:05:02 i.e. not really Apr 29 20:05:04 Make your own OS and your own play store, then you can have automatic updates Apr 29 20:05:12 crised: replacement for the Play Store Apr 29 20:05:28 SimonVT: So no easy way to upgrade firmware over the air? Apr 29 20:05:45 I rember embeded C devices having this feature :( Apr 29 20:05:57 codebutler: what must I change you mean? Apr 29 20:06:10 Then, Is there a way to have a private app on google play? Apr 29 20:06:12 crised: depends on what you mean by "easy" Apr 29 20:06:29 crised: you can create company internal accounts i you us google app engine Apr 29 20:06:40 company itnernal sections in google play Apr 29 20:06:44 only specific ppl can see Apr 29 20:06:55 Dat spelling Apr 29 20:07:06 so this is for a custom product? Apr 29 20:07:07 timroes: that sounds good Apr 29 20:07:13 ctate: yes it is Apr 29 20:07:23 for a company only, 20 mobile apps, then that's it Apr 29 20:07:53 crised: http://googleenterprise.blogspot.de/2012/12/a-new-way-to-distribute-your-internal.html Apr 29 20:08:03 yeah you could just write your own install-tracker app that runs with suitable permission to install the updates Apr 29 20:08:26 ctate: that sounds good Apr 29 20:08:27 it is not possible for *apps* to manage these self-updates; they don't have sufficient permission to do installs Apr 29 20:08:37 ctate: but you are not allowed to distribute that app via google play anymore, since the last change in the usage terms, aren't you? Apr 29 20:08:39 ctate: I can manage cyangemod on it Apr 29 20:08:44 timroes: so don't Apr 29 20:08:47 he said it's a private product Apr 29 20:09:01 ctate: yes it is Apr 29 20:09:07 et voila Apr 29 20:09:07 but thought he still wanted to deliver it via google play to the company Apr 29 20:09:11 ctate: any code snippet to write that? Apr 29 20:09:20 i read it as wanting to deliver it *somehow* to those phones :) Apr 29 20:09:21 timroes: if it's the only way to update it Apr 29 20:09:51 ctate: initially, I personally will install the app into the phone, so all privileges can be allowed Apr 29 20:10:07 ctate: so, I want to make changes on the app Apr 29 20:10:13 crised: i don't know of any offhand, but ofc it basically just boils down to the usual "decide when there's an update" + "download the update" + install the app once it's downloaded. Apr 29 20:10:29 each of which are reasonably straightforward. Apr 29 20:10:42 ctate: How do I decide if there is an update? Apr 29 20:11:11 up to you Apr 29 20:11:15 you could poll once a day Apr 29 20:11:37 ctate: ok polling daily, then there is an new apk Apr 29 20:11:53 what the Play Store etc do is manage a clever low-overhead persistent connection with the backend so that the play store backend can push the app, but that's a lot of work Apr 29 20:11:54 now, the mobile app would have to unistall the current app, then install a new one Apr 29 20:11:58 nope Apr 29 20:12:05 the package manager supports upgrade installs Apr 29 20:12:21 mmm ok Apr 29 20:12:22 e.g. look at what adb does with "adb install -r myfilename.apk" Apr 29 20:12:42 you never want to actually uninstall on update, because uninstall ==> removes the data, too Apr 29 20:12:55 anyway, "use the source, Luke!" Apr 29 20:13:09 ctate: :) Apr 29 20:14:45 If database file exists it is not created again on line 58 here: http://pastebin.com/PdrnkQQ7 . Any ideas how I can check for changes in it instead? I want it to overwrite database if I modify it. :) Apr 29 20:15:26 Quacked: dude, read lines 97-106. Apr 29 20:17:38 those are empty in other tutorials, hehe Apr 29 20:18:13 stop reading bad tutorials, read the documentation, and make an effort to understand what you're doing Apr 29 20:18:14 the answer is staring you in the face, mocking you. Apr 29 20:18:26 When you're bundling your own database, you have to figure out when it's time to upgrade Apr 29 20:18:29 or maybe it's just me mocking you. Apr 29 20:19:56 hmm Apr 29 20:20:30 You know at compile time what database version you bundled.. Now, how could you possibly figure out what version is currently on the device Apr 29 20:20:47 If only there was a place to save information like that Apr 29 20:25:21 SimonVT, how do you do that?!?! Apr 29 20:25:38 Fuck you, that's how! Apr 29 20:34:37 ctate: how can we poke the maintainers of the x86 images (intel?) to update it to newer revs? how is that communication handles (or not) ? Apr 29 20:34:55 ctate: but you are not allowed to distribute that app via google play anymore, since the last change in the usage terms, aren't you? Apr 29 20:34:57 i could be wrong Apr 29 20:35:05 but i think that if you're using the private channel on play, you can do a lot more Apr 29 20:36:25 Wont you still have to distribute updates to private apps through play store tho? Apr 29 20:36:46 canadiancow: yeah that was before i knew it was meant to be for a internal uisage (and so internal company play store) Apr 29 20:37:12 SimonVT, i wouldnt be surprised if the terms let you do it however Apr 29 20:37:19 but you'd need to read them Apr 29 20:37:25 tl;dr Apr 29 20:37:52 this new update thing is kinda sketchy; there is one camera app which queries a service at runtime with the type of phone to download some information on how to handle the camera's quirks … is this an update outside of store? clearly not if its just data, but what if its behavior encapsulated in a .class file ? Apr 29 20:39:19 that's an interesting point Apr 29 20:42:37 Wow, this is amazing. On a very basic activity that has 2 edittexts and a button, everything works fine on my debug build. Apr 29 20:42:55 *However*, the same activity throws a ClassCastException when I've signed it with the release key Apr 29 20:43:10 It is somehow assuming the EditText is a Button. Apr 29 20:43:53 I've double-checked and the IDs for all those widgets are unique across the app. Apr 29 20:44:04 Anyone got ideas as to what could be going wrong? :/ Apr 29 20:44:10 what are you using to create the signed build? Apr 29 20:44:18 ant release Apr 29 20:44:32 I've had trouble with IDEA in the past where it has randomly mixed up resource ids Apr 29 20:44:38 a clean build always fixed that Apr 29 20:44:51 I've tried doing an `ant clean` before doing a release build Apr 29 20:44:57 Nada, still the same Apr 29 20:46:06 okwat Apr 29 20:46:10 wat seriously Apr 29 20:46:17 what what Apr 29 20:46:26 If I do a debug build from `ant debug`, it throws the same ClassCastException Apr 29 20:46:33 BUT the builds from Eclipse are fine. Apr 29 20:46:34 :| Apr 29 20:47:15 Hmmmmmmmm... Apr 29 20:55:10 OK, no luck. No matter what I do, builds from ant throw the same exception. Apr 29 21:01:39 Hmm, how do I find out since when LongSparseArray is in the support-v4 lib? Apr 29 21:03:24 Just use the latest? ;d Apr 29 21:03:40 It seems that Sonatype Repo doesn't have r12 Apr 29 21:03:45 But only r6 and r7 Apr 29 21:03:51 IntelliJ cannot find the others. Apr 29 21:03:58 Ah, yeah.. Apr 29 21:04:09 I pushed r12 to my local repo Apr 29 21:04:19 I did the same thing Apr 29 21:04:21 very annoying Apr 29 21:04:22 I only recently started with IntelliJ, what do you do in this situation? Apr 29 21:05:05 Also, I'm not sure how this is supposed to work at all: https://github.com/lucasr/twoway-view/blob/master/pom.xml#L91-L102 Apr 29 21:05:08 before I started using maven I would usually have a 'libs' directory with these sorts of jars inside each project, in version control. now I converted that over to a local maven repository. has been working out so far. Apr 29 21:05:27 Isn't it com.google.android for groupId and support-v4 and not compatibility-v4? Apr 29 21:05:45 kakazza: this thing uses thato ther groupId: https://github.com/mosabua/maven-android-sdk-deployer Apr 29 21:06:23 thato ther? Apr 29 21:06:28 that other* Apr 29 21:06:41 ah Apr 29 21:07:05 But I don't see that used anywhere in their pom? Apr 29 21:09:01 How do I use their naming scheme? Local mvn repo? Or better yet, how do I import r12 myself, like you and SimonVT? Apr 29 21:14:56 hey guys, can someone point me in the direction of an open gl es tutorial that shows me how to render a mesh, and then, how to detect if a user has tapped the mesh? Apr 29 21:15:39 kakazza: you can use maven-android-sdk-deployer to install newer dependencies into your system (into ~/.m2/repository) Apr 29 21:16:58 Hmm, so maven-android-sdk-deployer basically works by adding a pom.xml everywhere? Apr 29 21:24:49 TIL install:install-file Apr 29 21:25:05 right that's basically all maven-android-sdk-deployer does Apr 29 21:29:16 Hi Guys - problem with Maps overlay in Android, and signing.... Apr 29 21:29:50 When I generate a release Android key for my app in Google API console, do I use the SHA1 from my certificate, or MD5? Apr 29 21:30:07 md5 Apr 29 21:30:08 Because the console says SHA1, but a lot of SO posts I see say to use MD5. Apr 29 21:30:23 I remember I used md5 for that Apr 29 21:30:55 Sirolf: Thanks for the clarification. Hrmmph. Sadly the Google API console mentioned only SHA1, so I was totally lost. Thanks I'll switch to MD5 and see if this works Apr 29 21:32:54 Damn. Sirolf: If I use MD5, Google API console tells me the input is invalid. Apr 29 21:36:42 Anyone use Sublime Text 2? Apr 29 21:36:52 I want it to do java Autocompletion Apr 29 21:37:22 I found this Apr 29 21:37:24 https://github.com/quarnster/SublimeJava Apr 29 21:42:43 Better ask about this in ##java Apr 29 21:43:15 can someone explain to me what an intent-filter category is? Apr 29 21:43:32 for example, when setting up a gcm broadcast receiver, why do I need to set the category android:name to my package name? Apr 29 21:43:38 I've read http://developer.android.com/guide/components/intents-filters.html but im dumb and don't get it Apr 29 21:43:44 shigeru: similar to an Apr 29 21:43:55 just another string to key upon Apr 29 21:44:02 i think i get how actions work Apr 29 21:44:22 some app broadcasts that its gonna do an action and other apps can subscribe to do things when that action is broadcasted Apr 29 21:44:30 but category?? Apr 29 21:44:38 i dont really see how that works Apr 29 21:45:02 when you say its a string that is key'd upon Apr 29 21:45:04 can you give an example? Apr 29 21:47:18 for example, if you want an activity to get an automatic shortcut in home's "all apps" display, you give it a filter that matches the 'MAIN' action string *and* the "LAUNCHER" category string. Apr 29 21:47:28 both must match for the filter to match Apr 29 21:55:57 Is it true that even if I have the Android signed APK, and use a release keys Android API key, I will still not see the MapView till I upload to Google Play Store??? Apr 29 21:57:05 @ctate why are both necessary? Apr 29 21:57:15 that is how intent resolution is defined Apr 29 21:57:34 * ctate | Note that for an IntentFilter to match an Intent, three conditions must hold: the action and category must match, and the data (both the data type and data scheme+authority+path if specified) must match. Apr 29 21:57:37 yaraju: not to my knowledge, no Apr 29 21:57:39 http://developer.android.com/reference/android/content/IntentFilter.html Apr 29 21:57:49 evanc: I've seen that mentioned on a couple SO posts - while trying to figure out why I only see grey tiles under my map overlays. That's why I was asking. Apr 29 21:58:03 interesting.. im just trying to understand the api designers motivation for doing it that way Apr 29 21:58:18 i feel like i could imagine a world where the category field was not necessary Apr 29 21:58:18 which also links to http://developer.android.com/guide/components/intents-filters.html Apr 29 21:58:30 yaraju: assuming your API key matches the signature your app is signed with, I don't see why it would Apr 29 21:58:55 shigeru: yes, category _could_ be eliminated, but that would just make actions a lot more complicated and crazy and unnecessary Apr 29 21:59:33 evanc: Thanks. I'll just take another closer look at my keys to see what I might be getting wrong. :-/ Apr 29 22:00:00 yaraju: if it works with your debug keys, it should work with your release keys (assuming you swapped your API key accordingly) Apr 29 22:00:29 so like in ctates previous launcher example, what kinds of things would go wrong if the 'MAIN' action string was all that was required to have an app show up in the launcher screen? Apr 29 22:00:29 evanc: It doesn't work with my debug keys. All over SO posts, I saw it told that it never works with debug keys - I'm glad to hear u say it should Apr 29 22:01:09 yaraju: I haven't used the new maps API, but it worked with the old ones (and should definitely work with your debug key) Apr 29 22:01:10 evanc: If I see grey tiles even with my debug keys - that would indicate something wrong in my code? Where should I look in that case? Apr 29 22:01:15 unless that's changed with the new maps API Apr 29 22:01:32 yaraju: it indicates that you're using an invalid maps API key Apr 29 22:03:11 SimonVT: thanks for the pointer on onUpgrade for the database.. works fine now Apr 29 22:03:24 evanc: Ok. Thanks. Will try to get it working on debug mode first then Apr 29 22:04:09 evanc: on the array vs new sqlite query.. I'm thinking 500 rows in the the db Apr 29 22:04:19 Quacked: don't put that in an array Apr 29 22:04:48 new sql queries will be fine? Apr 29 22:05:03 wonder how long those really take.. hmm Apr 29 22:05:35 Ill guess I'll find out if its too slow :) Apr 29 22:06:56 Quacked: I have no idea why you're saying "new sql queries" Apr 29 22:09:54 I'm gonna put probably 100 entries (from one column) in a listview where click on the entry lets you show 5 different strings from another column Apr 29 22:11:07 I'll populate the listview onCreate but I'm not really sure how or when I should get the values for every item in the list Apr 29 22:11:21 if I should do a rawQuery onClick for instance Apr 29 22:13:32 I know this an android dev channel, is there someone here I can maybe PM with a problem I am having with some badic Java stuff? I am just starting to learn. Banned in #java for a stupid reason Apr 29 22:15:21 how do I make a code torch for greater compatibility between devices? Apr 29 22:16:31 this is my plugin torch phonegap http://pastebin.com/zac19Feh Apr 29 22:17:06 it works on sony device already in motorola and lg not work Apr 29 22:21:49 yaraju: I just made a new project and followed the maps "getting started" guide Apr 29 22:22:14 maps definitely works without being published, no matter what your signature is (assuming you use the right API key) Apr 29 22:23:23 Is it ok to use static references to MainActivity from my two fragments in NAVIGATION_MODE_TABS? Apr 29 22:24:14 It's never ok to keep a static reference to an activity Apr 29 22:25:01 yeah, I switched to using intent for another app but I wasnt sure about fragments Apr 29 22:25:16 ^ that sentence scares me Apr 29 22:25:22 :D Apr 29 22:25:55 just overlook it, it should be rephrased :P Apr 29 22:26:24 Quacked, you always have getActivity() available to get reference to fragment parent Apr 29 22:26:38 and no, you should never hold references to another (non-visible) activity Apr 29 22:26:44 thats a fast way to outofmemoywille Apr 29 22:27:41 and other more subtle problems Apr 29 22:29:06 evanc: That is interesting indeed. I put my AndroidManifest.XML up at http://pastebin.com/GVgfX6EW. Could u please take a look and see if I'm doing anything terribly wrong? Apr 29 22:29:17 Really appreciate the help you're providing! Apr 29 22:29:54 yaraju: btw, watch logcat. When it fails to load, it craps out the reason why Apr 29 22:30:07 I was thinking of reading from database in the Activity and then get the Cursor in each fragment, but perhaps I should read from database with a receiver instead? Apr 29 22:30:15 usually tells you to check API console to make sure you're using the right API key and package name Apr 29 22:30:17 evanc: Aah. Good hint. Let me try that and see what error it gives. Apr 29 22:31:51 yaraju: something like this: http://pastebin.com/aCuV4k2M Apr 29 22:32:34 evanc: I'm definitely not getting that error in my logcat.. I'm getting something different... just putting it in a pastebin... Apr 29 22:32:51 yaraju: that manifest looks on the level, btw. I'll need to see logcat Apr 29 22:36:34 evanc: here's how it looks: http://pastebin.com/3CwC6BTg Apr 29 22:38:27 The Google Directions API complains - till it finally gives a successful result for the route. Apr 29 22:38:58 That is, I think those warnings are related to the Directions API call - but I could be wrong Apr 29 22:41:53 yaraju: yeah, those look like directions problems. I would get a static MapView showing a map before you mess with directions Apr 29 22:42:34 evanc: Hmm. Ok. I'll just make a simple MapFragment and test. Apr 29 22:43:35 yaraju: that's all I did :) If you get a MapFragment working and still break directions, let me know and I'll update my test case to see about that Apr 29 22:44:06 evanc: Sure. :) I think that won't take too long. Apr 29 22:55:23 hey so I got a notification to work, but it's not launching my app when tapped… can anyone take a look and tell me what I'm doing wrong? Apr 29 22:55:24 https://gist.github.com/anonymous/d9ef14df971e66e2a08f Apr 29 23:00:16 evanc: Sorry - taking some time as I hit an issue finding MapFragment. Trying to find the right library to add to fix it. Apr 29 23:01:08 yaraju: google play services Apr 29 23:01:27 yaraju: through step #3 here: http://developer.android.com/google/play-services/setup.html Apr 29 23:01:46 well, I guess the following 1 & 2, too Apr 29 23:01:54 evanc: Awesome, thanks. :) Apr 29 23:07:47 evanc: google play complained about not being able to resole android-8, so I'm installing the Android 2.2 SDK Apr 29 23:09:40 "The tag dispatch system uses the TNF and type fields to try to map a MIME type or URI to the NDEF message." <--- I don't understand this part Apr 29 23:10:03 map a MIME type or URi to the NDEF message specifically Apr 29 23:14:01 anyone Apr 29 23:14:44 Does anyone know if there are any problems with drawing outside a given canvas in a View's onDraw method? Apr 29 23:15:30 draw outside the box, my art teacher always said Apr 29 23:15:38 so no hwrd|work , there are no problems Apr 29 23:16:10 CocoStorm: Great explanation. Thanks uch. Apr 29 23:16:13 *much Apr 29 23:16:40 You're very welcome :) Apr 29 23:17:30 CocoStorm: As for your question, you are having problems parsing the NDEF data to whoever can handle the uri Apr 29 23:17:41 I don't know enough about your problem to help you more Apr 29 23:18:01 (and I probably didn't help you very much) Apr 29 23:19:15 evanc: be praised! Finally got the MapFragment to show up. Now, trying the route again to see if all that setup made any difference. :) Apr 29 23:19:43 hwrd|work, I was having more of a problem with understanding how the tag dispatch system works rather than the programming part. It says it tries to map a MIME type or URI to the NDEF message, not sure what they mean Apr 29 23:22:41 evanc: Still no go if I switch back to my activity with routes. :( I get the route overlay, but I only get grey tiles again. Apr 29 23:23:55 Also - I should note - I don't have a layout xml for my RoutePath activity with itemized overlays - I presumed that since the grey tiles show up, the Map layout is indeed getting layed out already in the Java code. Apr 29 23:24:08 (And that's what the code seems to indicate) Apr 29 23:24:16 evanc: Where do u suggest I go from here? Apr 29 23:28:06 evanc: What I'm doing now, is digging deeper into the code I sourced from http://asmncl.blogspot.in/2012/04/android-draw-route-map-between-two.html to see if I can extract the routepath laying logic, and use it on the MapFragment that I now know works. Apr 29 23:29:02 If you think of any better way to debug it as-is, pls do suggest me - as it'll save time - and might eliminate something that could be problematic with the routing code itself. Apr 29 23:29:19 suggest to me* Apr 29 23:47:07 "The tag dispatch system uses the TNF and type fields to try to map a MIME type or URI to the NDEF message." <--- I don't understand this part Apr 29 23:48:42 is that a really retarded way of saying it uses the TNF and type fields to identify the type of the message Apr 29 23:48:49 doesn't the TNF do that anyway Apr 29 23:49:01 the type fields even Apr 29 23:57:02 "The tag dispatch system uses the TNF and type fields to try to map a MIME type or URI to the NDEF message." <--- I don't understand this part Apr 30 00:13:14 stop what you are doing, and enjoy the cuteness of golden retrievers! http://i.imgur.com/UMHsPJn.jpg Apr 30 00:17:00 hi, anyone knows how to implement seek bar similar to the one android uses while changing volume? Apr 30 00:17:11 it has to be popup and nonintrusive Apr 30 00:17:50 not like the whole dialog Apr 30 00:20:27 when an app is started as a pendingintent from a notification, how can the app know it was started that way? Apr 30 00:27:01 onUpgrade in my DataBaseHelper I overwrite existing db if version number is increased. But this time I got SQLiteLog saying (11) database corruption at line 50987 of [....]... and the app crashed. When I tried to open the app again it had the new database working fine. Any ideas? Apr 30 00:28:38 hello guys :) Apr 30 00:30:23 i am calling textview toSet twice. it is overriding the first value, is there any way I could see both value in a same textview Apr 30 00:30:25 ? Apr 30 00:31:49 hello guys, do you know hot convert string into jsonobject? Apr 30 00:32:54 greeting.setText(getString(R.string.hello_user, user.getFirstName())); Apr 30 00:32:55 Daejeo: you mean setText(someString + someOtherString) ? Apr 30 00:33:15 greeting.setText(getString(R.string.hello_user, user.getFirstName())); Apr 30 00:33:17 greeting.setText(getString(R.string.hello_user, user.getLastName())); Apr 30 00:33:24 Hook em up with + instead of comma Apr 30 00:34:17 greeting.setText(getString(R.string.hell_user) + getString(user.getLas... or something Apr 30 00:35:51 Quacked: ah thank you bro. :) Apr 30 00:39:21 Quacked: I am integrating Facebook SDK in app for sharing my app experience. is it good idea for promotion ? do user like it ? Apr 30 00:55:07 nomo: if you're still wondering, JSONObject has a constructor that takes a valid json string and uses it to get the key/value mappings Apr 30 00:55:36 JSONObject mObj = new JSONObject(validJSONString); Apr 30 00:56:01 it throws a checked JSONException Apr 30 00:56:08 *can throw Apr 30 00:56:55 Daejeo: depends on your user base, but it's worth a shot. The Facebook SDK isn't too hard to set up and use Apr 30 01:04:46 sampullman thanks, is there a way to validate json string ? Apr 30 01:05:11 yeah, try creating the object, and it will throw an exception if the string is invalid Apr 30 01:05:29 i c thanks Apr 30 01:19:08 should the android targetSdk that i set in the manifest always be the same as my eclipse build target? Apr 30 01:29:09 MODULE.HOST.STATIC_LIBRARIES.libbfd already defined how to fix? Apr 30 01:44:09 don't define it again Apr 30 01:52:31 http://pastebin.com/yihNdrRD Apr 30 01:52:44 can you please look at this snippet?\ Apr 30 02:40:52 Just bought an HTC One from Sprint Apr 30 02:41:17 It's cool Apr 30 02:42:47 :) Apr 30 02:43:58 Ologn: so, a question I've been wanting to ask an actual owner... while mine is on the way somewhere... Apr 30 02:45:02 on the One X and other LCD screens, as opposed to AMOLED ones, if you turn the screen brightness all the way down, you can generally see some bleed onto the screen from the backlight Apr 30 02:45:45 any sign of that on the One? Apr 30 02:46:18 hmm Apr 30 02:49:43 just seems that all the reviews talk about maximum brightness, and direct sunlight, but never mention using the screen in the dark, when you want it to be dim but clear Apr 30 02:55:02 Well.. Apr 30 02:55:12 Ologn: why didn't you go with a nexus ? Apr 30 02:55:43 It doesn't look like there's severe backlight bleeding like you sometimes see on things Apr 30 02:56:32 There might be a little backlight bleeding toward the top and maybe on the right side, but it is not that noticeable Apr 30 02:56:45 okay, thanks :) Apr 30 02:57:07 also, are the speakers really - as I saw one reviewer say - "hilariously loud"? :) **** ENDING LOGGING AT Tue Apr 30 02:59:58 2013