**** BEGIN LOGGING AT Tue Aug 28 03:00:03 2012 Aug 28 03:02:53 Hello. Aug 28 03:03:01 I am looking for help on ADB Aug 28 03:03:17 I am trying to push using ADB to multiple devices simultaneously Aug 28 03:03:45 but ADB seems to only detect 4 devices eventhough I have a USB hub capable of supporting 32 Aug 28 03:03:59 is there a limit to how many instances of ADB there can be? Aug 28 03:05:32 IIRC, you can do ADB over IP Aug 28 03:06:20 sorry I dont quite understand Aug 28 03:06:52 you could use a network connection rather than USB Aug 28 03:07:02 is that more stable somehow? Aug 28 03:07:48 might make more sense versus connecting lots of devices to a hub Aug 28 03:08:14 but anyone know the limit to how many instances of ADB you can use? Aug 28 03:08:45 *sorry. not use. what i meant is how many instances of ADB can be active at the same time Aug 28 03:08:56 is there a difference between ADB running on linux and windows? Aug 28 03:09:15 preferabbly i would like windows since it is already set up but if need be, linux Aug 28 03:10:00 funny, windows Aug 28 03:10:28 lol, i didnt set this up Aug 28 03:10:34 im just trying to work with what i have Aug 28 03:10:39 praveen: from what i understand, 1 instance of adb can connect to multiple devices Aug 28 03:11:06 just run adb help and read it Aug 28 03:11:12 look for the connect and devices commands Aug 28 03:11:22 I am trying to do this --> http://pastebin.com/vmhBxESn essentially replace normal text with "glowing" text Aug 28 03:14:03 Do I need to setup the ask in order to make goggle campaign tracking works? in the doc, I don't know where to put the api Aug 28 03:15:46 edwinkcw: I don't think many people here use google analytics, so if you keep asking the same questions, you won't get much of an answer... Aug 28 03:16:08 Leeds: ok…I may contact google Aug 28 03:20:47 clever: will do. thanks Aug 28 03:21:11 but generally, linux will be better than windows for ADB? Aug 28 03:21:25 s/for ADB// Aug 28 03:23:17 Leeds: huh? Aug 28 03:29:13 hello Aug 28 03:35:15 I have a string called helloDude Aug 28 03:35:26 I want to set the value of helloDude to a variable Aug 28 03:35:41 so I did public string hiMan = R.string.helloDude; Aug 28 03:35:45 but it's saying it's an int, not a string. Aug 28 03:35:50 Which I understand that it is. Aug 28 03:35:58 Is there a method to get the string value? Aug 28 03:40:19 String string = getString(R.string.hello); Aug 28 03:40:46 wangsta Aug 28 03:40:52 http://developer.android.com/guide/topics/resources/accessing-resources.html Aug 28 03:40:55 read the bloody docs Aug 28 03:45:20 Thanks guys Aug 28 03:46:45 Have a question about setting up a merchant account Aug 28 03:48:01 Can you change your business name later on after you've completed setup? Aug 28 03:48:02 Lil_ole_Me: you'll need to ask that there question before anyone can make a stab at... either at you, or at answering it Aug 28 03:48:37 ah, you mean your developer name? yes Aug 28 03:49:13 erm, play developer name, or wallet merchant name? Aug 28 03:49:25 And edit website to, since i don't have one yet? Aug 28 03:50:04 if you mean your play store account, yes, you can change that stuff Aug 28 03:50:16 Public contact info, business name, co. Website Aug 28 03:50:28 where did readme go to :| Aug 28 03:54:54 anyone wanna buy a car? Aug 28 03:55:27 [23:39:51] read the bloody docs Aug 28 03:55:32 rtbd doesnt have quite the ring to it Aug 28 03:55:35 as rtfm Aug 28 03:55:41 more British though Aug 28 03:56:18 canadiancow: its crazy, but i think i remember you buying the car in 2010 or 11 ? Aug 28 03:56:53 btw, this is the puppy that reminds all to RTFM http://i.imgur.com/NrnIL.jpg Aug 28 03:58:34 http://www.networkworld.com/news/2012/082712-ipad-261956.html Aug 28 03:59:09 google , patent ! Aug 28 03:59:09 zzzzzzzzzzzzzzzz Aug 28 03:59:20 hehe, i had 2 patent ideas today :D Aug 28 04:00:49 i have to find those orange glasses - read about them before Aug 28 04:04:10 I got tabhost layout, one tab has a list of button to play mediaplayers, if I go to another tab and try to play a video, the mediaplayer is still playing and I cant stop it unless I make it global, is that correct? Aug 28 04:54:31 heh, no way i'm paying $10 to rent a movie in itunes, wat da fuq Aug 28 05:05:14 your off topic meter is consistently cranked to eleven Aug 28 05:06:33 everything i do is cranked to 11 Aug 28 05:07:07 speaking of which, I wonder what happened to the gay porn floods we used to get every now and again Aug 28 05:07:16 O.o Aug 28 05:08:11 the java 7 docs look like their an MSDN site Aug 28 05:08:17 they're Aug 28 05:08:52 and the java 6 docs look like they're from 1994 Aug 28 05:09:25 fitting Aug 28 05:10:17 lacking any semblance of search Aug 28 05:10:52 typical java developers, spitting out static HTML and shrugging their hands in the air Aug 28 05:42:55 How do I check if a broadcast receiver has been registered? Aug 28 05:43:48 you send a broadcast and put a breakpoint inside your listener Aug 28 05:43:51 or a log Aug 28 05:44:30 I mean programatically Aug 28 05:45:07 has anyone used GCM? I've been trying to get it to work with my app but it gets stuck after the onrecieve of com.google.android.gcm.GCMBroadcastReceiver gets called Aug 28 05:45:27 brownballa55: queryBroadcastReceivers thought would do it but now luck Aug 28 05:45:28 im not sure if you can programmatically but why wouldnt a log inside your broadcast listener work? Aug 28 05:45:30 no* Aug 28 05:45:57 brownballa55: because I want some other piece of code to test it.. its not for me... Aug 28 05:46:14 oh Aug 28 05:46:46 android emulator just suddenly started segfaulting when i create a new activity and access the file system Aug 28 05:46:51 how bizzare Aug 28 05:47:16 even more bizzare, it works fine if i disable gpu emulation and/or don't access the file system in the new activity Aug 28 05:48:07 specifically 4.0.3, jb and gb are unaffected Aug 28 05:48:20 odd because it was working fine for weeks, must have been some software upgrade Aug 28 05:48:26 curses Aug 28 06:06:39 Guys, is there any good VPS hosting on the west coast of USA? Aug 28 06:11:29 totic: its not possible Aug 28 06:11:41 g00s thanks Aug 28 06:25:57 wow, someone ported JB to the original droid Aug 28 06:26:02 \o/ Aug 28 06:28:20 g00s: That shit must be slow as fuck Aug 28 06:28:32 http://phandroid.com/2012/08/27/original-motorola-droid-gets-new-life-with-functional-jelly-bean-rom-video/ Aug 28 06:28:33 I barely run CM7 on that bitch, I can only imagine what JB does to it. Aug 28 06:28:43 they said it wasn't so bad, but yeah 256 mb Aug 28 06:29:48 it actually looks smoother than froyo from the video Aug 28 06:30:06 doesn't look too bad in that vid at all Aug 28 06:30:23 launching stuff is kinda slow, but things like animations/swiping look really smooth Aug 28 06:30:35 yeah Aug 28 06:31:20 e.g. that settings listview scrolling is really smooth Aug 28 06:31:35 far better than a modern samsung device on gingerbread Aug 28 06:31:59 g00s: I remember ICS was ported to G1. Aug 28 06:32:37 I can't wait for JB to be ported to that old cunt. Aug 28 06:33:22 hehe Aug 28 06:33:38 i guess now i don't have to get a n7 XD Aug 28 06:35:22 hm, is there some good layout element to indicate a number between 0 to 5 Aug 28 06:35:26 kind of like rating style Aug 28 06:36:01 not exactly ratingbar or seekbar Aug 28 06:36:33 anything similar or should i just create a customstyle for one of those Aug 28 06:36:52 youre not supposed to be able to adjust the value yourself, i just want a cooler layout for indicating a number from 0 to 5 Aug 28 06:41:03 When do release build, the code is obfuscated. My question is, what bout crash logs users will send? Will I be able to see in which method on which line the crash happened? Aug 28 06:43:18 https://developer.android.com/tools/help/proguard.html#decoding nevermind :) Aug 28 06:57:58 Does anyone here have any experience with custom account types? I've got some questions about what I really need vs. what the docs suggest I do. Aug 28 06:58:56 Specifically, do I really need a custom implementation authenticator service? How should that service call out to UI if it is needful, just via kicking off an intent for a result if it needs new credentials? Aug 28 07:03:28 saludos Aug 28 07:48:11 Guys, I've seen some MDM vendors claiming they do device encryption Aug 28 07:48:24 is there any way to encrypt sdcard as of now ? Aug 28 07:57:33 so it looks like S2 and S3 do have something in the name of sdcard encryption is it a native android feature? Aug 28 08:01:04 has anyone been able to get more than one RFCOMM BT connection at the same time ? Aug 28 08:26:54 Guys, how to make widget width maximized? I mean, I need to make widget, which fill all width of screen Aug 28 09:04:17 Hi I am doing client server and have doubt on activity code which when sends a message to server gets the message delivered to itself instead Aug 28 09:04:36 Hmm that is peculiar, heh. Aug 28 09:08:52 hi Aug 28 09:09:02 should i get a tablet now Aug 28 09:09:23 yes, immediately! Aug 28 09:09:50 leeds can you suggest a good one Aug 28 09:10:02 N7 Aug 28 09:10:11 too small Aug 28 09:10:43 thrive 13" Aug 28 09:10:55 asus tf700 Aug 28 09:11:02 Is awesome Aug 28 09:11:15 does gps works? Aug 28 09:11:20 on tf700 Aug 28 09:11:23 I'm at a point where I'd seriously advice against anything Samsung. Aug 28 09:11:30 As far as tablets are concerned. Aug 28 09:12:02 I have no idea if the gps works Aug 28 09:12:10 It's a tablet.. I use it for tablet-y stuff, not navigation Aug 28 09:12:18 HDroid: why? Aug 28 09:12:37 i haven't heard of any nexus - 10 rumors lately Aug 28 09:12:45 maybe you could try Aug 28 09:12:59 spacepluk: the tab 2 series is a disappointment on specs, and they seriously pissed me off with the tab 10.1 and 8.9 upgrade path. Aug 28 09:13:20 Also their shell around Android isn't that great Aug 28 09:14:06 Which all would have been ok if they weren't asking premium prices. Aug 28 09:14:42 I'll probably try Asus' offerings (and get an N7) but they have me leaning towards an ipad right now. Aug 28 09:15:22 yeah, the ipad is nice, but apple sucks Aug 28 09:15:33 ipad is slick enough, but the whole developing thing is a pain Aug 28 09:15:51 Tab 10.1's jerkiness in ICS is worse than on honeycomb and I'm getting all sorts of artifacts, and I'm not confident that Samsung will ever release a firmware update for this device again. Aug 28 09:16:02 In the meantime my 8.9 tab still hasn't even updated. Aug 28 09:16:27 I'm leaning towards the N7 but I haven't settled yet Aug 28 09:16:31 HDroid: thanks for the summary :) Aug 28 09:17:04 I'm getting an N7 for sure if it becomes available here, but the size will make it a secondary device to a fullsize tab for me. Aug 28 09:17:17 i thought from this court stuff going on, it became apparent that samsung hasn't sold shit in the way of tablets; they probably abandoned the damn things Aug 28 09:17:30 I tried a 7" tablet.. Not my thing Aug 28 09:17:32 i mean, on one level any how Aug 28 09:17:48 I just think "large phone" instead of tablet Aug 28 09:17:50 g00s: hm, the tabs sold decently... nowhere near ipad numbers, but still. Aug 28 09:17:51 I'm wondering why ASUS isn't selling 32GB TF700Ts outside US :\ Aug 28 09:18:10 HDroid: i thought they were 1/10 of what was 'pushed' to stores Aug 28 09:18:34 this would be my first tablet so I don't know what I like best yet, heheh.. But I find the ipad too heavy Aug 28 09:18:35 I think there was some mixup between global sales and US sales, wasn't there? Aug 28 09:18:36 whatever #s were originally floating around were what was sitting in the supply chain Aug 28 09:18:37 Maybe in US? Aug 28 09:19:29 spacepluk: yeah it is, kind of... I find that my 8.9 is much more convenient to hold. But on the other hand, the 10.1 inch screen size does make a difference for me when browsing, etc. Aug 28 09:20:10 And I rarely take either out of the house... hoping I'll take the N7 with me on the road. Aug 28 09:20:48 I might even slap a second N7 on the wall as a home automation controller. Aug 28 09:21:31 from this, samsung sold 1.43 million android tablets since q4 2010 Aug 28 09:21:45 which, blows chunks Aug 28 09:21:49 US or global? Aug 28 09:22:01 seems globasl Aug 28 09:22:03 *global Aug 28 09:22:09 Hm hard to imagine Aug 28 09:22:20 I see too many of them in the wild for that. Aug 28 09:22:49 they did much better whith their phones :) Aug 28 09:22:55 Definitely Aug 28 09:23:56 i'm slightly disappointed with the android phone market. HTC has dropped off on high-end, but on the other hand, huawei have got low end covered Aug 28 09:24:42 HDroid: this is where i got those #s btw http://allthingsd.com/20120809/apple-vs-samsung-trial-forces-companies-to-open-up-the-books/ Aug 28 09:24:43 I dunno, I have an HTC One X, it can definitely compete with the SIII (and, though I'm probably biased, it's probably the better phone) Aug 28 09:25:03 g00s: ooh thanks Aug 28 09:25:13 Yeah, but looking a little lower down the chain, what do you have? Aug 28 09:25:21 One S :) Aug 28 09:25:42 HDroid: how is your wifi? Aug 28 09:25:44 But yeah, HTC is probably the only one left. Aug 28 09:25:54 htc isn't doing so well Aug 28 09:26:02 Snuffel: fine for the most part, haven't encountered the "squeeze bug" at all. Aug 28 09:26:07 and their phone was pretty kick ass Aug 28 09:26:23 Yes, it's a strange phenomenon. Aug 28 09:26:44 I have no idea why the SIII sells so massively better than the Ones. Aug 28 09:26:45 HDroid: I am still pondering whether I should get mine checked or not, such a hassle. I lose connections sometimes, but squeezing doesn't help Aug 28 09:27:08 HDroid: resetting the wifi does, though, so I just do that then Aug 28 09:27:43 Snuffel: only issue I have (which seems to be more of an Android issue, since my SII did it as well) is that when I move out of a wifi zone, it sometimes takes 5-10 minutes before it switches to mobile. Aug 28 09:28:23 But other times it's instant. Aug 28 09:28:50 Mine had a flickering display when I bought it but firmware upgrades fixed that completely. Aug 28 09:31:00 I really like what they did with Sense, it's much better than it used to be. Aug 28 09:32:05 I'm looking for a way to save to android_assets/somewhere Aug 28 09:32:21 I download a file from the Internet with my app and I don't want to save it to the sdcard Aug 28 09:32:45 ho hum, read the bloody docs Aug 28 09:32:47 http://developer.android.com/guide/topics/data/data-storage.html Aug 28 09:32:54 I am on that page Aug 28 09:33:02 but I didn't scroll down, sorry Aug 28 09:33:08 I preferred to ask here first Aug 28 09:34:22 hopefully it's a small file you want to save Aug 28 09:34:33 no, it's videos Aug 28 09:35:04 then don't do that Aug 28 09:35:15 put it on external storage, handle the case where it's not available Aug 28 09:35:43 you see the app downloads videos when the users pays for the video and I don't want the video to be available to the user in a way that they can copy it and distribute it Aug 28 09:35:52 bong! wrong Aug 28 09:35:58 it isn't the way I would do it, but I am working on something for someone else Aug 28 09:36:01 of course it's wrong Aug 28 09:36:06 don't do it Aug 28 09:36:07 but what can you suggest to work around it Aug 28 09:36:09 it don't do Aug 28 09:36:12 don't it do Aug 28 09:36:15 loll Aug 28 09:36:19 put the video on the SD card, live with it Aug 28 09:36:33 encrypt it if you think anyone is going to care enough to rip it off Aug 28 09:36:45 1. root 2. some devices doesn't have a lot of internal memory Aug 28 09:37:21 the reasons are as my esteemed virtual colleague has enumerated Aug 28 09:37:23 on emulater on left half there is number pad...how to hide it since its taking half of the area and not rendering my controls Aug 28 09:37:37 lol Leeds Aug 28 09:37:39 quite eloquent Aug 28 09:37:54 the guy I'm telling this to isn't getting it..the app is crap to begin with anyways Aug 28 09:38:11 and he isn't selling anything specific in the app, it's just video clips..random content Aug 28 09:38:26 I *hope* they're his video clips Aug 28 09:38:33 they are, yea Aug 28 09:38:50 it's 2012, who's going to download an app just to pay for random video clips that will already exist on youtube or on the internet Aug 28 09:38:59 I wouldn't, and I'm the one writing it\ Aug 28 09:39:26 well, make your objections known, take the cash, and make sure you're not the one responsible for customer/technical support Aug 28 09:39:34 Security through ignorance :p Aug 28 09:40:24 has anybody tried luaj on android? Aug 28 09:44:29 Where is the best place to ask about HTML rendering issues in the default Android browser ? Aug 28 09:47:10 amews_aj-work: have you seen the sencha scorecard? if you are having any issues, you may compare notes with what theh have observed Aug 28 09:47:29 pre ics it was pretty horrible compliance wise. html4/5 Aug 28 09:47:43 its gotten much better in jb Aug 28 09:48:10 but most vendor builds have their own modified browsers, chrome is... chrome... etc Aug 28 09:50:44 It's the default browser on samsung galaxy tab 10.1 Aug 28 09:51:06 I have ListView and in it I add strings then it displays as text and radio button. I select a button and then do getSelectedItem it return null. Aug 28 09:55:08 You probably have to use CHOICE_MODE_SINGLE Aug 28 09:57:46 hello, I have a question about sliding drawer. Can I specify the animation duration of the drawer? I think it is too fast for me Aug 28 10:07:53 I cant get the camera intent to save the image. Im creating a new file and putting the uri of the file into the intent, but after i finish taking the picture the picture is not saved in that file Aug 28 10:09:47 can anyone help me Aug 28 10:09:53 no Aug 28 10:09:55 i mean hi Aug 28 10:10:09 hi Aug 28 10:26:26 can someone help me please? http://stackoverflow.com/questions/12123220/infinity-and-continuos-image-slide Aug 28 10:27:30 hi all Aug 28 10:27:39 how can I grab screen in android Aug 28 10:27:49 into framebuffer? Aug 28 10:28:26 SoulEdge: use 2 view; one actual image and next image Aug 28 10:30:42 so u can reuse these views Aug 28 10:31:03 if you out of images, just go to ur list begining Aug 28 10:36:09 ixc: the image is the same; I need just to "scroll", to "slide" image from right to left in a continous and infinite way Aug 28 10:36:20 and without interruption Aug 28 10:37:00 You probably need a custom view to handle that Aug 28 10:37:01 hi, i was able to crosscompile libcurl with ssl-support, so i have libcurl.so, libcrypto.so and libssl.so. i'm using curl in the native-part of my application and everything works fine (ndk-build, libs are in the apk, ...) until i want to load libcurl via System.loadLibrary("curl") in the java-code. Aug 28 10:37:15 ava.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1314]: 152 cannot locate 'ENGINE_get_next'... Aug 28 10:37:32 sure, before i load libcurl, i'm loading libssl and libcrypto Aug 28 10:39:28 SimonVT: I've already a custom view "scroll", "slide", image with touch Aug 28 10:39:38 can that help me? Aug 28 10:39:43 I have no idea Aug 28 10:39:57 Guys, how to make widget, which fits on screen and fill all width of screen? Aug 28 10:40:03 could you please explain me with words what I need? Aug 28 10:40:14 some keywords...to search with google Aug 28 10:41:48 I have no idea what to google for Aug 28 10:41:59 But you need to learn how to draw a drawable in your view Aug 28 10:42:03 Then how to animate it Aug 28 10:42:12 So.. google that Aug 28 10:52:26 hi. I have created a custom home screen and mit it a home screen activity in the manifest. When I press the home button the phone asks me to choose the right app. Launcher2 vs. MyOwnLauncher.. What I want is that my app is started without any user intervention. Is it possible? Aug 28 10:53:18 'made it a home screen activity'.. Aug 28 10:57:05 i wonder what patent this would be http://www.androidpit.com/google-vs-apple-android Aug 28 11:01:11 initially my textview text and its laid out in linearlayout horiz so may be other label take the area but when I add some text to the label it does not show up in screen. how do I render it visible ? Aug 28 11:01:50 s/initially my testvew text/initially my textview text is empty Aug 28 11:02:33 should I use " " as placeholder ? Aug 28 11:06:50 mephju: The user has to press home and then select yours as default Aug 28 11:09:37 i have been neglecting my children of this channel Aug 28 11:09:39 i am sorry Aug 28 11:09:55 http://stackoverflow.com/questions/10163763/aysnctask-cancelling-itself-still-calls-onpostexecute any idea about this? I am calling cancel(true) in doInBackground(), because I get an exception, and the onCancelled() method is not called, but onPostExecute() is. Wtf? Android 2.3.5, ICS and JB works as expected. Aug 28 11:10:28 i would like a new phone Aug 28 11:12:33 Pitel_laptop: Maybe it's just broken on 2.2 Aug 28 11:12:37 Or they changed the implementation Aug 28 11:13:14 Either way, I'm not sure what the question is.. Since you know it happens, work around it Aug 28 11:13:14 hmm, calling cancel(false) instead fo true seems to "fix" it. Aug 28 11:13:42 Pitel_laptop: cancel is mostly bogus anyhow Aug 28 11:14:42 all it really does is call FutureTasj.cancel(), which is also bogus Aug 28 11:14:52 its bogus all the way down :) Aug 28 11:20:43 Pitel_laptop: so, if you are seeing different behavior with AsyncTask.cancel() on different versions of android, its likely because you are blocking in a thread, but the semantics of checking interruption are different somehow Aug 28 11:21:10 maybe you are blocking in some socket read() , which has a bug one one version but not another Aug 28 11:21:45 i was able to crosscompile libcurl with ssl-support, so i have libcurl.so, libcrypto.so and libssl.so. i'm using curl in the native-part of my application and everything works fine (ndk-build, libs are in the apk, ...) until i want to load libcurl via System.loadLibrary("curl") in the java-code, because then an exception gets thrown: Java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1314]: 152 cannot locate 'ENGINE_get_next'... sure, bef Aug 28 11:21:46 ore i load libcurl, i'm loading libssl and libcrypto. when the openssl-libs get statically linked during curl-compilation, the lib gets loaded and is working correctly... does somebody have any hints or suggestions ? Aug 28 11:22:36 mikedg: what phone are you thinking about ? Aug 28 11:23:55 i want a note Aug 28 11:24:06 wish the original would drop in price Aug 28 11:27:07 mikedg: here you go http://www.gizmag.com/ownfone-cellphone/23875/ Aug 28 11:28:09 cool Aug 28 11:34:45 transparent windows all over the place++ Aug 28 11:41:16 SimonVT, thx for answering. What do you think...is there another way to intercept the home button event? Aug 28 11:52:15 Guys, I can't understand, why my widget doesn't fit normaly: https://dl.dropbox.com/u/28057478/5556Android41_2012-08-28_15-50-57.png Aug 28 11:52:30 It has big padding from top and bottom :/ Aug 28 11:53:10 but widget_provider.xml: http://pastie.org/4603214 Aug 28 11:53:28 widget_layout.xml: http://pastie.org/4603215 Aug 28 11:53:31 :/ Aug 28 11:54:44 It won't fit at top and at bottom. Has a big padding :/ Aug 28 12:02:39 HELLLOOOO Aug 28 12:02:44 Can anybody help me??? Aug 28 12:02:54 650+ persones on channel Aug 28 12:03:00 hiiiii Aug 28 12:03:03 don't ask to ask Aug 28 12:03:06 ever heard of that Aug 28 12:03:26 I can't understand why my trouble so stupid... :( Aug 28 12:03:42 which reason, widget don't want to fit like other widgets Aug 28 12:05:27 http://developer.android.com/guide/practices/ui_guidelines/widget_design.html there's some info about automatic margins there, maybe it's that? Aug 28 12:05:49 Also check that the background doesn't have its own padding. Aug 28 12:06:06 HDroid: thanks! I'll try Aug 28 12:09:55 HDroid: thank you man! link helps! Aug 28 12:10:01 Ahh good Aug 28 12:11:06 but little question... auto-margins added only to Android 4.x ? but what with < 4? :) Aug 28 12:11:35 I need add margins manually? and then make few versions of widget for other devices? Aug 28 12:11:41 never work with Google.Play Aug 28 12:13:12 I tried to make my first Android app with Eclipse following the instructions except I called it "CowShed" instead of "MyFirstApp", but even after having made no changes it already fails: The method onTabReselected(ActionBar.Tab, FragmentTransaction) of type MainActivity must override a superclass method Aug 28 12:13:26 Not sure if it works that way, but you could store the padding values in http://developer.android.com/guide/topics/resources/more-resources.html#Dimension and switch your resources by appending an api level (values-v14 to set to zero for 14 and up, for instance). Aug 28 12:14:07 M0TRN_th1: following which instructions, exactly? Aug 28 12:14:29 HDroid, the ones here: http://developer.android.com/training/basics/firstapp/creating-project.html Aug 28 12:15:06 except it had a step in the wizard for adding an Activity which I did Aug 28 12:15:20 ie. a tab/swipe view Aug 28 12:15:38 Is your API level > 11? Aug 28 12:16:18 ALso, your activity should implement TabListener, I think. Aug 28 12:24:49 Can i match multiple values in my content provider URL? content://my.provider.authority/resource/1/data/12 Aug 28 12:25:41 s/Can i/Is it a BadIdea(tm) to/ Aug 28 12:26:54 HDroid, Minimum api is 10 and build api is 16 Aug 28 12:27:02 do I need to change that? Aug 28 12:27:46 Hm build 16 should be enough... unless they hide classes that require a higher build level nowadays, could try setting minimum to 11. Aug 28 12:28:13 how can I change it after I already created the project? Aug 28 12:28:29 M0TRN_th1: in AndroidManifest.xml Aug 28 12:28:57 saik0: you can do what ever you want in your content provider url Aug 28 12:29:09 some things are easier than others Aug 28 12:31:03 saik0, it has "15" as both Minimum and Target SDK version in that file Aug 28 12:31:12 not sure why when I put 16 and 10 in the wisard Aug 28 12:35:27 mikedg, yeah I have a test provider in which I'm parsing my url's that way, just making sure there wasn't some pitfall ahead Aug 28 12:39:07 can I pragmatically determine an activity layout? Aug 28 12:43:29 I have this code here for a plugin, what I want to do is just use File functions to rename a file saved on external storage, but I only want to do that after the intent started on line 81 is finished Aug 28 12:43:32 http://pastebin.com/rb8qdsXa Aug 28 12:44:24 http://stackoverflow.com/questions/5065722/how-do-you-put-a-border-around-a-listview .... I tried to use the second answer with 8 points for my listview but then in program I add listitems and their default font was white so as I made the list background white the listitem text is not visible. how can I change the item text to be black color in the main.xml ? Aug 28 12:46:35 how do i add resources to a project without using eclipse/adt -which generates and updates gen/R.java automatically Aug 28 12:47:15 mms_: list items have their own layouts Aug 28 12:48:01 saik0: as per that url I thought of giving a border and now I need to think of how to change font of items...I will just change broder color instead to simplify Aug 28 12:50:19 Hi, I have RESTful http API. Do you know any mechanism to ensure request comes from app? Aug 28 12:50:55 certificates? Aug 28 12:51:10 public private key signing Aug 28 12:51:20 two-way SSL? Aug 28 12:51:25 also funny thing is as I scroll the list it flashes old background Aug 28 12:51:31 Guys, quesiton: Can I implement horizontal scroll of content of widget? Aug 28 12:52:15 its sort of related to mouse enter Aug 28 12:53:22 Snuffel, jkbbwr, Hodapp thanks for the ideas, I will make some research on this. Aug 28 12:53:58 we basically all said the same thing Aug 28 12:55:09 Ony one concern with this method, after decompilation, if "hacker" get the public key from the apk, he can imitate my app, any way to prevent that? Aug 28 12:56:31 aganov: Uh, if the 'hacker' has the APK then how is it any different from him just running the app? Aug 28 12:57:14 Running the app vs. implementing a multithreaded scraper desktop/server app that steals all your 10 million pages in a couple of huors? Aug 28 12:57:51 a public key wouldnt be public if you tried to make it private Aug 28 12:58:04 mikedg: that's crazy talk right there. Aug 28 12:58:24 The reality is, your app is never safe on an Android device. Aug 28 12:58:38 The other reality is, no app ever is safe. Aug 28 12:58:44 What is 'safe'? Aug 28 12:58:48 have the server throttle users if they try to steal shit Aug 28 12:58:48 Regardless of the platform. Aug 28 12:58:51 nothing is safe Aug 28 12:58:51 aganov: the one truism of client/server development is that you should always assume that the client is compromised. Aug 28 12:59:00 aganov: your security MUST NOT depend on any kind of client secret Aug 28 12:59:34 i like to randomly insert fun words like "titties" and "I'v got crabs" into data when I suspect that someone is using it against the TOS Aug 28 12:59:48 aganov: if you believe that someone has taken your APIs and is using them inappropriately, you should ban that IP, or resort to legal based protections. Aug 28 12:59:49 mikedg: that was you? Aug 28 13:00:20 Didn't work so well for my porn site vs. medical advice vertical. Aug 28 13:00:37 aganov: aren't you the guy that's the scrap metal company that asked this question like 6 months ago? Aug 28 13:00:50 lov: he still hasnt solved it! Aug 28 13:00:52 lov, no, i'm not :D Aug 28 13:01:03 thank god; you might be willing to take a hint then Aug 28 13:01:11 "Don't steal our virtual scrap metal" Aug 28 13:01:13 the other guy was just abominable Aug 28 13:01:23 does anyone here build android apps without eclipse or intellij? Aug 28 13:01:25 HDroid: World of Warcraft is serious business. Aug 28 13:01:28 can't I do "startActivityForResult()" for this kind of intent? intent = new Intent(Intent.ACTION_VIEW); Aug 28 13:01:36 Hm true Aug 28 13:01:37 :D ok, thanks guys Aug 28 13:01:43 Sicp: you can but it's pretty vague. Aug 28 13:01:53 you're probably not going to match anything with that intent Aug 28 13:02:10 hmmm, it just displays the video player and plays some video, when that video is done I want to do something Aug 28 13:02:32 Sicp: and? Aug 28 13:02:41 Sicp: have you defined onActivityResult? Aug 28 13:02:52 yea Aug 28 13:02:53 well I deleted my project and created it again with Min API 15 (that I have on my phone) and Target API 16 Aug 28 13:02:55 are you not getting any result from it? You should always get at least SOMETHING for startActivityForResult Aug 28 13:02:58 now it worked that time... Aug 28 13:03:03 even if that something is a cancelled result or something Aug 28 13:03:10 I have, but there is nowhere that the result is being actually set, it should be inside the activity being called that the result is set Aug 28 13:03:41 but in this case there is no activity Aug 28 13:04:09 huh? Aug 28 13:04:14 Try again, this time make sense Aug 28 13:05:09 http://pastebin.com/rb8qdsXa <-- that's the code I'm using, it's a plugin Aug 28 13:05:18 If I am getting rid of an activity (i.e. I don't want it on the stack and I want its state gone), is the convention to call onDestroy() or is there some other way? Aug 28 13:05:24 M0TRN_th1: the short answer is... use ActionBarSherlock. Aug 28 13:05:41 ...finish()? Aug 28 13:05:53 HDroid: thanks Aug 28 13:06:08 Hodapp: call finish() Aug 28 13:06:19 lov: sorry, HDroid won the cash prize for first answer. Aug 28 13:06:23 never call onDestroy or the other lifecycle methods directly (unless you really, really know what you're doing) Aug 28 13:06:53 i was able to crosscompile libcurl with ssl-support, so i have libcurl.so, libcrypto.so and libssl.so. i'm using curl in the native-part of my application and everything works fine (ndk-build, libs are in the apk, ...) until i want to load libcurl via System.loadLibrary("curl") in the java-code. An exception gets thrown: Java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1314]: 152 cannot locate 'ENGINE_get_next'... sure, before i load li Aug 28 13:06:53 bcurl, i'm loading libssl and libcrypto. when the openssl-libs get statically linked during curl-compilation, libcurl gets loaded correctly and it is working then... does somebody have any hints or suggestions on how i can compile these libs as shared libs and load them in java correctly? Aug 28 13:08:20 lov, usually startActivityForResult() takes request code and activity. Inside that activity being called, the setResult() is called to set the result code, you go back to where the startActivityForResult() was called and write an onActivityResult() method that checks for the result that was set Aug 28 13:08:27 in this case, there is no other activity being called Aug 28 13:09:04 Still not making sense Aug 28 13:09:28 If you're calling startActivityForResult.. You're starting an activity.. Aug 28 13:09:42 ok, but where can I set the resultcode? Aug 28 13:09:50 to be able to check for it in onActivityResult? Aug 28 13:10:15 In the activity you start Aug 28 13:10:26 listview item is not showing selected when I do so in code... Aug 28 13:10:51 intent = new Intent(Intent.ACTION_VIEW); Aug 28 13:10:51 intent.setDataAndType(uri, "video/*"); <--- and then I call, this.cordova.getActivity().startActivityForResult(intent, PLAYED_REQUEST_CODE); Aug 28 13:10:55 api says when in touch mode it will not show selected though will position correctly Aug 28 13:10:59 that intent is the activity that I start Aug 28 13:12:45 any idea? Aug 28 13:13:09 Intent != Activity Aug 28 13:13:13 exactly! Aug 28 13:13:45 how come startActivityForResult() is working, the video player shows up and everything Aug 28 13:13:52 Any activity which defines an intent filter for action_view (and something else probably) can be started with what itnent Aug 28 13:14:01 s/itnent/intent/ Aug 28 13:14:17 That activity can then call setResult, and set the result code Aug 28 13:14:30 so what can I do now to set the resultcode to something? Aug 28 13:14:39 the only file that I am working with is the one linked to above Aug 28 13:14:42 If the activity you start isn't yours, you can't Aug 28 13:22:56 when oh when will copy and paste finally really work again?> Aug 28 13:24:21 SimonT ? Aug 28 13:24:23 lol Aug 28 13:24:31 any one knows how to get the listitem highlighted...when I populate list I want indication that first item is selected...it seems if I added background to the list the default selection is not appearing Aug 28 13:24:46 \o Aug 28 13:25:14 SimonVT, you heard what I was doing, a while ago..what do you think the solution to that would be? the companies get a content protection right over their videos/etc.. so that you won't be able to copy the videos from the device and share them? Aug 28 13:25:14 o/ Aug 28 13:25:53 cause this guy wants to download the file, rename it and save it, and on playing name it properly again, then when done..rename it back and save it...... Aug 28 13:26:09 it's epic facepalm-worthy Aug 28 13:26:53 I have no idea Aug 28 13:28:01 He can't stop users from copying the file from the device Aug 28 13:28:04 So that one's out Aug 28 13:28:44 even if the video is renamed to something strange, the user can copy that file to say Windows, show file extensions and remove the garbage... Aug 28 13:28:47 it's so stupid Aug 28 13:30:32 Well, he's the one paying Aug 28 13:30:36 Give him what he wants Aug 28 13:30:43 You've raised your concerns Aug 28 13:30:47 yea Aug 28 13:32:05 hi Aug 28 13:32:31 is there any way to control the audio stream of the call Aug 28 13:32:45 something like playing some file to the caller Aug 28 13:33:01 you want to create an answering machine? Aug 28 13:34:36 I am unable to get log4j.properties working with android Aug 28 13:37:23 wow, they really don't want to permit modal AlertDialogs Aug 28 13:38:22 though I suppose I really don't need modal here Aug 28 13:38:35 and I've had more than my share of problems with developing with and using modal dialogs... Aug 28 13:42:05 android httpclient; is there a way to disable cookies and how? Aug 28 13:42:17 Good afternoon/Morning Aug 28 13:43:59 what u mean with disable? Aug 28 13:44:04 u just dont save and resend Aug 28 13:45:43 ugggh, fucking buggy Eclipse... it generates blah.out.xml which has errors in it and then I can't delete it because it has a lock on the file even though it is nowhere open in the editor Aug 28 13:45:47 and then the project won't build Aug 28 13:46:44 Hodapp: Eclipse works like Windows. trying restarting it and the probalem is likely to go away. Aug 28 13:47:55 ewww eclipse Aug 28 13:48:05 i've been using mono for android Aug 28 13:48:10 ixc, Ive been requested by the server dev to try disabling cookies, I figured that maybe android has automated cookie managment or if Im using the defaulthttpclient without doing anything special it is cookieless Aug 28 13:48:12 and have srsly fallen in love with monodevelop Aug 28 13:53:11 ClockworkAnt: http://developer.android.com/reference/java/net/CookiePolicy.html#ACCEPT_NONE? Aug 28 13:53:38 ixc anything for api 8? Aug 28 14:01:09 guys you ever get a problem with the androidmanifest.xml where even though you put in let's say a tag eclipse doesn't seem to see it? i'm having that irritating strict mode android block guard policy and it seems to be ignoring the for android.permission.INTERNET…. ? :) Aug 28 14:02:12 Strict mode isn't about permissions Aug 28 14:02:18 It's about doing things the wrong way Aug 28 14:03:24 ok fair enough. Aug 28 14:05:46 hmm, i wonder how to achieve the following: let's say i have 5 views which i want to position on the right side of the screen in landscape mode.. Aug 28 14:06:07 each one should take 1/5th of the screen height and resize its width such that it's square.. Aug 28 14:06:08 afaik it worked 'the wrong way' last release…. i don't have time to rework this code so i'll prob have to change the threadpolicy to ThreadPolicy.LAX and just go with that Aug 28 14:07:22 That it works doesn't make it right Aug 28 14:07:29 I'm just gonna guess you're doing networking on the main thread Aug 28 14:07:52 You're blocking anything from happening on the main thread while you do that Aug 28 14:07:55 i'm not disputing what you're saying at all - i agree with it in fact. but this guy's bad code was fine until i got my hands on it and now i look like i screwed it up. Aug 28 14:08:04 yeah i know. async is the way to go off the main thread. Aug 28 14:08:09 No touchevents, no drawing, nothing Aug 28 14:08:14 yep =` Aug 28 14:08:15 =[ Aug 28 14:08:17 After 5 seconds or so, user gets an ANR dialog Aug 28 14:08:30 it's a login screen. Aug 28 14:08:35 And they shut down your app and leave you a 1 star review Aug 28 14:09:49 The reason it works fine when you test is probably because you're always on wifi Aug 28 14:09:59 And not on mobile network somewhere with bad reception Aug 28 14:10:09 So listen to strict mode and fix your app Aug 28 14:10:43 what Simon said Aug 28 14:10:53 if you're doing networking on the main thread, it might block for minutes. Aug 28 14:11:16 take your phone and go find the ass-end of nowhere where you have 2G coverage, if that. Aug 28 14:11:20 test. Aug 28 14:12:00 good points. thanks. Aug 28 14:12:12 will do it properly instead of being lazy. Aug 28 14:12:13 ;] Aug 28 14:14:01 hi anyone thr.. Aug 28 14:15:29 I hv small issue to play video stream from VLC to android.. any expierenced developer who tried that before. thx for helping Aug 28 14:16:08 my S2 says that cant play the video aftr 5 seconds delay Aug 28 14:16:46 nplus, got a min ? Aug 28 14:17:31 durapix: we don't support apps here, we help developers Aug 28 14:17:39 durapix: are you writing an app to stream video from VLC? if not this is the wrong place. Aug 28 14:18:47 nplus: to be fair, we sometimes insult would-be developers as well Aug 28 14:18:50 my multi-pane layout is composed by a list fragment and a map fragment. ( code http://pastebin.com/YvaTVzx1 ). list fragment has android:layout_weight="3" and map fragment android:layout_weight="7". i'd like to add a new fragment on the right of the map fragment when user clicks on a list item but with FragmentTransaction i can't specify a android:layout_weight for the new fragment and change the android: Aug 28 14:18:51 layout_weight for the map one. Is there a trick for do something like this? Aug 28 14:19:37 Leeds: heh, I'll give you that one Aug 28 14:20:32 hmmm, TextView.setError says it displays the given error 'when the TextView has focus'... just how does a TextView go about getting focus? Aug 28 14:20:44 nplus, saik0, yeah correct, I am developing an App to play video stream frm my PC to Android, yeah I am not talking abt a Market App.. Aug 28 14:21:16 nplus, saik0, I hv tried this SO tutorial > http://stackoverflow.com/questions/5335731/android-video-streaming-example Aug 28 14:22:15 durapix: well first of all, i don't know why you decided that I should/can help you. Secondly, post some code or error logs Aug 28 15:04:58 hey guys, is prebuilt/linux-x86/ a pre-existing directory? Aug 28 15:07:20 the file where you keep the