**** BEGIN LOGGING AT Mon Aug 27 02:59:58 2012 Aug 27 03:21:24 biatches! Aug 27 03:22:32 monday will be interesting. i guess samsung will appeal? not a friend of samsung, but the jury didn't seem to put due diligence into things Aug 27 03:23:59 frankly I am so fed up with apples bs, I want to get my message out there big time Aug 27 03:24:14 they'd choose to make a few million more and win by bs Aug 27 03:24:19 vs actually producing a better product Aug 27 03:24:32 they'd rather stifle innovation than encourage it Aug 27 03:24:40 they are definitely the largest violator imo Aug 27 03:26:10 something legit like a crazy ass algorithm to improve encryption or somethign thats one thing Aug 27 03:26:15 the jury didn't consider any of samsung's claims of prior art Aug 27 03:26:25 they are the largest vibrator in the world Aug 27 03:26:39 I'd like to see how this google vs apple shit is going to fair Aug 27 03:26:57 honestly the fact samsung didnt fair better in that judgement I'd almost think the jury was just complete idiots Aug 27 03:27:03 or there was a conspiracy Aug 27 03:27:18 ron_frown: presumably you've read some of the stuff which has come out about the jury over the weekend? Aug 27 03:27:23 no Aug 27 03:27:49 i remember as a kid, we had this movie projector for showing film slides. when you pulled it too far, a white leader would come out and it kinda sprung back up - kinda like what we see in this over-pulling animation patent. i can't believe how anyone can get a patent for this shit Aug 27 03:27:52 I just hope wayland/weston gets is shit together soon Aug 27 03:27:59 because I am so ready to dump all my apple hardware Aug 27 03:28:09 another being pinch to zoom; how can somebody patent what i can do with my fingers? bs Aug 27 03:28:10 things like the foreman holding a dodgy patent himself (effectively, on a Tivo), and giving the jury a lecture on what it's like to be a patent holder wanting to defend your invention Aug 27 03:28:24 g00s sun had an os that did that for embedded devices in the mid 90s Aug 27 03:28:31 Leeds: yeah, that too Aug 27 03:28:50 the fact that apparently the jury had 'decided' that there was infringement after the first day Aug 27 03:28:57 mis trial that shit Aug 27 03:29:10 I wonder if doing legit business will ever be the "in" thin Aug 27 03:29:15 700 questions in 2 days, i think working 16 hours per day it came down to around 2 minutes per question Aug 27 03:29:26 while google has a LOT of data they could do a lot with, I do believe google has good intentions Aug 27 03:29:49 ron_frown: not with companies like IV; its out of control Aug 27 03:29:52 the fact that they definitely made some mistakes on their decision - things like awarding damages for a product they had found not to infringe... Aug 27 03:30:46 Personally all this patent stuff has got way out of control. Aug 27 03:31:04 the fact that they apparently set the damages at a level considered to be 'painful' to Samsung, against explicit instructions from the judge to base damages on actual losses, rather than on any desire to punish or teach Aug 27 03:31:05 definitely agree Aug 27 03:31:08 there's more Aug 27 03:31:19 Leeds: they also assigned damages incorrectly Aug 27 03:31:26 p_l: they did Aug 27 03:31:35 i think years ago, USPTO people stopped looking for prior art because they were shifted to a quota based system and were very overworked. you then had all this BS get through Aug 27 03:31:37 Anybdoy know of a working GPS app that takes NMEA data and feeds it over a TCP port on JB? Aug 27 03:31:53 and decided to not use the earlier prior art, and concentrated on Apple's pic of "before and after" Aug 27 03:32:30 apple innovated and now they are losing it big time Aug 27 03:32:38 and they gotta pull the patent cards on bs patents Aug 27 03:35:24 if i update an apk and soon after that upload another apk will the store show show immediately the new one when it refreshes, or will it show one first and then show the other? Aug 27 03:35:45 In the end of the day I think this patent stuff will hurt the consumer in the way of features on devices. It looks to the uninformed (ie: me) that Apple wants to stop anyone else from being remotely similar to anything they have/are and will do at any time in the past/future. If the other manufacturers get big enough they will do the same too. In the end of the day it is the end consumer that misses out on tech becau Aug 27 03:35:45 se no one can agree to play nice Aug 27 03:36:14 I have an idea. What if somebody paies Qualcom under the table to refuse to deal with apple? Aug 27 03:36:19 Qualcomm Aug 27 03:36:33 they get no more CDMA chips then yeah. No Verizon or sprint iphones Aug 27 03:36:52 doubt that will happen tho Aug 27 03:37:11 I say dissolve all software patents and make them all release it all under open source ;) Aug 27 03:37:24 Mechdave: ah, good to see opinions firmly rooted in reality Aug 27 03:37:37 *Nobody* can pay Qualcomm enough to refuse to deal with Apple. Aug 27 03:37:47 Leeds, LOL yeah I think that pigs might fly as well :) Aug 27 03:37:59 CDMA is better then GSM IMO Aug 27 03:38:04 I do wonder if Samsung might not jack up the prices heavily Aug 27 03:38:04 and $1b isn't exactly enough to stop Samsung from dealing with Apple either - they make a lot more than that out of the deal Aug 27 03:38:15 pclov3r: good that both are dead and on the way out, isn't it? Aug 27 03:38:30 what is going to replace it? Aug 27 03:38:41 pclov3r: GSM was replaced long ago Aug 27 03:38:59 not really. Alot of contries still use it Aug 27 03:39:00 it's only a fallback or in low-quality areas now, at least in Europe Aug 27 03:39:00 I think Apple is scared by Android and is trying to claw back market share. Aug 27 03:39:05 pclov3r: UMTS != GSM Aug 27 03:39:13 oh UMTS Aug 27 03:39:17 Hello, if I have an image view which need to update frequently, what is the best way to do that? I set a bitmap to an image view, I invalidate the view on every on touch event. But I track the time, update the image view need 60 - 100ms, I think it is too slow and block the main thread. How can I improve it? Aug 27 03:39:20 based on GSM tho isn't it? Aug 27 03:39:40 pclov3r: the othername for UMTS is WCDMA :> Aug 27 03:39:41 edwinkcw: use something like a SurfaceView instead Aug 27 03:40:23 pclov3r: they use related protocols above physical layer, though Aug 27 03:40:39 Leeds, use surface view to update the load an image? Aug 27 03:40:44 I do have a 4G phone but cant use it lol. Aug 27 03:40:51 edwinkcw: something like that, yes Aug 27 03:40:54 Verizon MVNO doesn't have WiMax Aug 27 03:40:59 pclov3r: 3.9G ;) Aug 27 03:41:02 which sprint is killing anyway in the years to come Aug 27 03:41:18 Leeds: have I create a thread for reload the surface in background? Aug 27 03:41:22 3G is fine for me Aug 27 03:41:39 I don't agree with allowance of calling HSPA and the original LTE '4G' ;) Aug 27 03:41:59 * p_l still sticks to "it was LTE-A that fulfilled the 4G requirements" Aug 27 03:42:09 As far as i'm aware Aug 27 03:42:15 LTE isn't 4G by standards Aug 27 03:42:31 pclov3r: LTE-A was accepted as 4G Aug 27 03:42:48 and as final nail to CDMA's coffin Aug 27 03:42:53 or rather, CdmaOne Aug 27 03:42:55 oh Aug 27 03:43:06 i thought cdmaone is obselte now? Aug 27 03:43:09 and was a long time ago Aug 27 03:43:27 thought cdma2000 replaced it Aug 27 03:43:41 pclov3r: afaik there's less difference between CdmaOne and Cdma2000 than between GSM and UMTS Aug 27 03:44:23 Sprint is killing iDEN i suppsoe you know? Aug 27 03:44:27 edwinkcw: http://developer.android.com/guide/topics/graphics/2d-graphics.html#on-surfaceview is probably a good place to read Aug 27 03:44:34 yo that shit's old Aug 27 03:44:36 its all abotu the 5G Aug 27 03:45:06 is shutting down iDEN Aug 27 03:45:06 cause like HSPA is 4G amirite? so LTE must be 5G? Aug 27 03:45:11 Leeds: ok, let me try Aug 27 03:45:13 going to clear spectum for sprint? Aug 27 03:45:19 pclov3r: iDEN is something that I never seen in practice. Since Valve didn't respond past asking about relocation, I'm not going to USA ;) Aug 27 03:45:20 Leeds: thanks for your advice Aug 27 03:46:13 edwinkcw: good luck :) Aug 27 03:46:24 LTE Costs to much IMO Aug 27 03:47:20 I used Nextel for a few years. It was nice, since everyone else in my family also used it. Aug 27 03:47:31 so you used iDEN i guess? Aug 27 03:47:33 pclov3r: because it's not compatible with either hw, so you need to put a whole new BTS for each cell Aug 27 03:47:40 Yeah. Aug 27 03:48:18 JakeWharton: you around? Aug 27 03:48:28 you think LTE will come down in price? Aug 27 03:48:35 or MNVO's will get it Aug 27 03:48:43 MVNOs have LTE. Aug 27 03:48:49 MetroPCS does, anyway. Aug 27 03:48:59 I though MetroPCS ran there own network? Aug 27 03:49:05 I thought metropcs was a regional carrier, not a MVNO? Aug 27 03:49:08 even tho they are garbage lol Aug 27 03:49:51 I could have sworn they were a MVNO. Researching.. Aug 27 03:49:55 I'm pretty sure MetroPCS runs there own network Aug 27 03:50:17 did they start off as a MNVO? Aug 27 03:50:32 Wikipedia agrees they have their own network. Interesting. Aug 27 03:50:58 I would beleive sprint runs their own... they are the only carrier that has like 0 coverage here Aug 27 03:51:15 sprint and metropcs are probly the worst in the bunch Aug 27 03:51:37 I like verizon coverage but att's availabilty of new trendy phones Aug 27 03:51:53 AT&T and Verizon seem the best here Aug 27 03:52:00 T-Mobile CS SUCKS horribly Aug 27 03:52:00 I like my phones to work away from wifi hotspots. Aug 27 03:52:02 and it seems like the 4g I get with verizon is a SHITTON better that att 4g here Aug 27 03:52:20 Re, FaceTime: AT&T seems to want to charge for access to their wifi hotspot database. :P Aug 27 03:52:29 I love the commerical 35 thousahnd towers and counting Aug 27 03:52:29 folks, #android? or #UScarrierssuck? Aug 27 03:52:38 does that channel exist? Aug 27 03:52:52 pclov3r: if you join it... they will come. Aug 27 03:53:35 anyone done anything with rss feeds? Aug 27 03:53:42 programmatically Aug 27 03:53:58 I guess nobody knows of an app to feed nmea data over a tcp port that works on jb Aug 27 03:54:05 ron_frown: yes... Aug 27 03:54:06 make it Aug 27 03:54:19 i dont know java :( Aug 27 03:54:25 leeds is there something in the feed that tells you how often its updated? consuming it is quite easy Aug 27 03:54:26 but in a very specialised single-use way :) Aug 27 03:54:54 but just want to know how to avoid making too many requests, and yet stay as up to date as I can Aug 27 03:55:00 i tired to ask the dev about one program and he said gb apps are compatable with jb Aug 27 03:55:14 or jb is backwards comaptbale with gb Aug 27 03:55:20 and it should work Aug 27 03:55:26 ron_frown: I think you're meant to use the etag (or whatever it's called) HTTP stuff for that Aug 27 03:55:31 apps are feature specific Aug 27 03:55:33 er Aug 27 03:55:41 features may/may not be backwards compatible Aug 27 03:55:43 which does rely on the server generating it correctly Aug 27 03:55:57 pclov3r just depends on target/minsdk Aug 27 03:56:06 vbabiy: for 60 seconds Aug 27 03:56:16 yeah i think i'm just going to have to wait for somebody to do it Aug 27 03:56:22 JakeWharton quick help with http://stackoverflow.com/questions/12136016/styling-the-shareactionprovider Aug 27 03:56:29 I am sure I am missing something Aug 27 03:57:04 ahh this one says update base, updatefrequency and update period Aug 27 03:57:27 hi.. what path do I need to include to have STL with the ndk? Aug 27 03:57:32 i'll look and answer later Aug 27 03:57:45 thanks Aug 27 03:58:56 just looking at one of my saved examples of the feed I parse, there's nothing programmatic in there about update frequency or when it was last updated Aug 27 03:59:12 the update time *is* in the body of the feed, and I do parse that, but that's feed-specific Aug 27 03:59:45 yah Aug 27 04:02:50 halp! Aug 27 04:02:55 ? Aug 27 04:03:01 I need help with my Motorola Devour Aug 27 04:03:14 we cant read your mind. Aug 27 04:03:24 hmm, there seems to be a pubDate element... Aug 27 04:03:35 I installed titanium backup and in the midst of browsing through the bloat ware i accidentally uninstalled two of the motoblur files Aug 27 04:03:40 Riptyle: I'm going to read your mind and guess you want to be in #android-root Aug 27 04:03:42 yup, I was right Aug 27 04:03:48 ty Aug 27 04:03:50 :) Aug 27 04:03:51 whelp Aug 27 04:03:56 just pushed out code Aug 27 04:03:59 boy is it shitty Aug 27 04:04:04 this week is all about bug fixes Aug 27 04:09:54 always nice, something I forget - you can feed vim a URL to open rather than a filename, and it just works :) Aug 27 04:35:51 hm, so once i have a cool thing prototyped with arduino, now i have to figure out how to mass produce it :| Aug 27 04:36:02 niceeeeeeeeee Aug 27 04:37:18 i have … no idea. need to find some people who have good experiences working with manufacturers Aug 27 04:37:57 g00s: should start by just taking the arduino out of it if you want to minimize costs Aug 27 04:38:11 g00s: bare avr with arduino bootloader, bare everything else, no shields Aug 27 04:39:19 My dad is a manufacturing engineer. He explained some stuff about molding to me. If you dont need molds, I dont know Aug 27 04:39:31 :) Aug 27 04:39:52 * Leeds sings... "China, China China, China China China, China!" Aug 27 04:40:07 http://www.pcb-experts.com/PCB-mass-production.html Aug 27 04:40:12 clever: yeah, getting the BOM down is important; i just have a bunch of sensors that need BT connectivity to the phone Aug 27 04:40:18 Yea.. you can use alibaba and go through china Aug 27 04:40:25 idkau: ok, thx Aug 27 04:40:37 i can do PCB design :) Aug 27 04:41:07 single layer, maybe double layer would be sufficient Aug 27 04:42:22 i wonder if Make magazine has any articles on turning designs into mass production Aug 27 04:42:59 g00s: eevblog on youtube has some great stuff Aug 27 04:43:00 My dad helped design this -> http://web.ebscohost.com/ehost/detail?sid=dd1429b4-1165-4b4e-a8c8-ea0c55084096%40sessionmgr15&vid=1&hid=19&bdata=JmF1dGh0eXBlPWdlbyZnZW9jdXN0aWQ9bnMxODY0NTcmc2l0ZT1laG9zdC1saXZlJnNjb3BlPXNpdGU%3d#db=f5h&AN=85965 Aug 27 04:43:07 Ill ask him tomorrow for you. Aug 27 04:43:16 I know a guy here who was working on a website/service which was somewhere between that and kickstarter - the idea was that you could get funding, *and* make contact with people over the border who could help with actual manufacturing Aug 27 04:43:54 idkau: cool! Aug 27 04:44:00 unfortunately for that, they sort of got hung up on the second thing they made as a proof of concept, and seem to have pivoted into a 3D-printer company now Aug 27 04:44:01 yeah, kickstarter. hmm Aug 27 04:44:28 it wasn't so much on the funding, as putting together your suppliers and potentially getting investments Aug 27 04:44:30 :) Aug 27 04:44:34 clever: thanks, i will look into it Aug 27 04:44:51 hey guys, any easy way to uninstall an app from adb (with the emulator) ? Aug 27 04:44:59 g00s: one of the videos you should see is panelization Aug 27 04:45:20 ESphynx: erm... "adb uninstall foo.bar.packagename" Aug 27 04:45:52 Leeds: That gives me a failure :| Aug 27 04:46:01 what sort of failure? Aug 27 04:46:08 "Failure" type of failure Aug 27 04:46:24 leave out the "" Aug 27 04:46:36 oh look at that, that works Aug 27 04:46:44 sorry... was typing the wrong name Aug 27 04:46:46 thanks! Aug 27 04:46:49 LOL Aug 27 04:46:56 ah, so now we know the point of failure :P Aug 27 04:47:03 pebkac Aug 27 04:47:31 right. between the chair and the keyboard. Aug 27 04:47:57 it's pretty cool, I got the whole process figured out now :P Aug 27 04:48:24 oh btw, how does one install 'debug' app so taht you don't require signing? Aug 27 04:48:38 oh you need to activate debugging in your phone for that though, right? Which I don't need to if I use jarsigner? Aug 27 04:50:29 anyone know if you can have a single device acting as a Bluetooth 4.0 host connect to multiple Bluetooth 4.0 low-power slaves? Aug 27 04:50:38 is there some issue with enabling debugging? Aug 27 04:51:08 HorizonXP: android doesn't support bt4 lp Aug 27 04:51:21 (out of the box) Aug 27 04:54:06 g00s: nexus 7 apparently has it? Aug 27 04:54:15 i don't have devices to test with :/ Aug 27 04:54:19 i have a nexus 7 tho Aug 27 04:54:30 HorizonXP: ? Aug 27 04:54:48 i don't have Bluetooth 4.0 devices to try connecting to Aug 27 04:54:54 ics does not have bt 4 LP support from what i can tell Aug 27 04:55:00 to see if a) it supports 4.0 b) if I can do more than 1 Aug 27 04:55:05 the hardware supporting it does not mean android does. Aug 27 04:55:17 oh, you keep saying LP Aug 27 04:55:20 that might be true Aug 27 04:55:42 for android to support it, there need to be kernel drivers, and APIs t talk to the kernel from apps Aug 27 04:56:36 Leeds: nah just thought it'd be easier to test-run something on anyone's Android device if you don't need to :P Aug 27 04:57:56 SpeedEvil: any technical why a BT host couldn't connect to say, 7-10 different BT slaves devices? Aug 27 04:58:02 SpeedEvil: outside of driver issues Aug 27 04:59:08 it may require multiple radios. Aug 27 04:59:32 I have not investigated the spec to see how many can attach. Aug 27 04:59:56 SpeedEvil: yea, i'm trying to dig through to figureit out Aug 27 05:00:15 plus, the spec is one thing. Aug 27 05:00:34 then you have what actual vendors radio devices support. Aug 27 05:00:52 Cambridge silicon radio for example Aug 27 05:00:54 SpeedEvil: yeah i know :-/ Aug 27 05:01:02 i may have to revert to Wifi for this Aug 27 05:02:35 what're you trying to do? Aug 27 05:05:20 SpeedEvil: I'm trying to create a network of sensors that can be connected to by any smartphone/tablet Aug 27 05:05:45 Bluetooth LE seemed to provide the advantage of low-energy usage, so the sensors could be powered for weeks on a single charge Aug 27 05:05:49 ah Aug 27 05:06:10 Bluetooth LE, is it part of BT 4? Aug 27 05:06:13 Or separate? Aug 27 05:06:28 General_Crespin: supposed to be a core part of BT4 Aug 27 05:06:38 Cool. Aug 27 05:06:41 low power to a node, then WiFi? Aug 27 05:06:57 SpeedEvil: yeah, that was a thought too Aug 27 05:07:09 just increases hardware/deployment costs Aug 27 05:07:40 SpeedEvil: but then even with a node, how many bluetooth chips/radios would i need? Aug 27 05:11:11 maybe ZigBee... Aug 27 06:13:34 is there a way to list contacts ordered by addition time? Aug 27 06:13:54 i don't see a creation_time field in the contacts table on android, but i could be looking in the wrong place Aug 27 06:26:36 guys, what to use for updating some info for my app/widget? I have central server where stored new data, and I want to send 'update notification' to my app. Do it with simple timer and send check of new updates I don't want. Aug 27 06:27:15 I heard about some type of push notification.. sended from google to device Aug 27 06:27:18 GCM Aug 27 06:27:27 oh.. thanks Aug 27 06:28:04 but GCM works with Anroid 2.x+ ? Aug 27 06:28:14 sure Aug 27 06:28:18 ohh.. nice! Aug 27 06:28:21 thank you!! Aug 27 06:31:49 is there a way to list contacts ordered by addition time? Aug 27 06:46:19 where application classpath? Aug 27 06:46:21 what is it? Aug 27 06:46:24 which dir? Aug 27 06:46:32 src ? Aug 27 06:47:20 google ! Aug 27 06:48:04 :/ Google, but.. hmm.. can't find Aug 27 06:51:03 dammit ( Aug 27 06:51:59 oh.. 'libs' ? Aug 27 06:52:29 dibs Aug 27 06:57:33 GCM required google account ? (on customer device) ? Aug 27 06:57:35 :/ Aug 27 06:59:04 yes Aug 27 06:59:37 :(( Aug 27 07:01:58 Leeds, I mean, my clients, when install my app on their devices, must have google account for GCM work? Aug 27 07:02:10 as far as I know, yes Aug 27 07:02:22 are you expecting to have lots of clients who don't want their devices to work properly? Aug 27 07:02:42 Okay. Thank you man! ... yes... this app for blondes... :) Aug 27 07:03:08 not for geeks Aug 27 07:03:55 and blondes don't use the market? Aug 27 07:04:21 how are you planning to distribute your app? Aug 27 07:05:28 hm.. you right.. But I planning distribute not only with market. But Okay. Aug 27 07:30:44 anyone know a tutorial of how to make a good looking background Aug 27 07:36:20 Any people having experience with interfacing with a django backend? (And more specifically using OpenID to log into that Django backend) Aug 27 07:43:21 hi Aug 27 07:44:11 i'm trying to make an EditText focusable and selected in the same click, but i don't understand why, although it works, it requires 2 clicks: http://pastebin.com/Zr4YXnZs Aug 27 07:44:40 balachmar: I've experience with interfacing django backend, but haven't using openID though Aug 27 07:44:43 it doesn't become selected (and the keyboard pops up) until the second click Aug 27 07:45:10 i've tried altering the order of instructions but still won't budge Aug 27 07:45:28 can anyone illuminate me plz ? Aug 27 07:46:53 I have a fragment that I use in 2 different activities, In a ViewPager and an Activity... How can I tell from inside the fragment which Activity called me? Aug 27 07:47:28 @vavirta I want to retrieve some page that require login. What cookies or header information do I have to send along with those requests? Aug 27 07:47:31 Omar: any way to send the context (this) with the arguments? Aug 27 07:50:43 balachmar: don't know, but can't you test that with browser? Aug 27 07:52:13 @vavirta Your stuff didn't require any login then? I have tested it a little bit and I thought it only required a sessionid cookie, but I get some page back in the phone that an OpenID transaction is in progress Aug 27 07:52:46 yeah, it didn't Aug 27 07:54:29 vavirta ok, bummer...i'll keep looking then... It doesn't help that I also use OpenID, not too many people doing that... Aug 27 07:55:21 yeah, are you using some library in django to give you openid support? Aug 27 07:56:07 @vavirta I am using django-openid-auth Aug 27 08:17:52 what is the reason to create an android application project as a library in eclipse? Aug 27 08:25:20 To use the library in another app Aug 27 08:25:28 like achartengine for instance Aug 27 08:25:39 errr..actionbarsherlock Aug 27 08:25:48 not achart. Aug 27 08:27:41 i'm trying to make an EditText focusable and selected in the same click, but i don't understand why, although it works, it requires 2 clicks: http://pastebin.com/Zr4YXnZs does anyone know how i can achieve this with only 1 click ? Aug 27 08:28:04 Hello all, I have a problem about bitmapDrawable. I create a bitmapdrawable from a bitmap. But when I draw the bitmapdrawable, it is strange. The image shifted half to the left within the bound, why it that? Aug 27 08:28:11 I set the gravity to be center Aug 27 08:29:25 idkau: is the library in binary format already when it is called, let say by startAction? Aug 27 08:30:10 guys, is there a way to return multiple lists from AsyncTask? Aug 27 08:30:18 in my case i have 4 Aug 27 08:31:14 taljurf: return List> Aug 27 08:31:41 pboos: gr8 thnx :) Aug 27 08:31:42 taljurf: or make your own class, that contains 4 lists. Aug 27 08:32:08 I dont think it used the binary. I think it uses all the src files in the library. Aug 27 08:32:39 There are like 30 .java files in it Aug 27 08:33:02 idkau: so this is an eclipse trick, not a runtime linkage Aug 27 08:33:46 idkau: this said, it is a static library not a dynamic one Aug 27 08:34:03 I honestly dont know. I know it still imports the library into your project. Aug 27 08:34:22 idkau: in this case is static. thanks! Aug 27 08:34:31 ok sweet hehe Aug 27 08:35:07 For some reasone with achartengine, you can just import the jar and it does it for you. Aug 27 08:35:50 oh…the problem occurs when I set the tileY to repeat, but what I can do.. Aug 27 08:36:02 idkau: my problem is to find a convenient way to launch inside an activity another one, downloaded as an apk file. i've done that but still have to confirm the installation through a dialog box, which is annoying Aug 27 08:36:46 idkau: i was thinking that a library could do the job, but as it's not binary ... Aug 27 08:37:12 you want to launch an activity inside another activity? Aug 27 08:37:30 or move from one activity to another? Aug 27 08:37:37 idkau: yes. and i've done it from an apk file Aug 27 08:37:51 oh wow ha Aug 27 08:38:52 idkau: no, i want just to launch in a new thread. as i said, i did it but nw i want to get rid of the dialog boxes (i have 2 - one for allowing installation, the other to open the new activity) Aug 27 08:41:25 oh ok Aug 27 08:42:49 idkau: i have set in the calling app manifest the permission INSTALL_PACKAGES but it still asks for installation permission. Aug 27 08:45:08 I wouldnt think that it would allow it. I know that I wouldnt want an apk installed without asking me. That could easily spread bad things. ;) Aug 27 08:48:01 read this https://groups.google.com/forum/?fromgroups=#!topic/android-developers/FqfSv5AAG9c Aug 27 08:55:31 idkau: it depends on what you want to use it for. thanks for the link, i disagree with the article's polemics but is useful to learn about Aug 27 08:56:03 yea, there are a few articles about it Aug 27 09:00:59 some one able to understand why I am unable to get clean build from this error http://pastebin.com/eSst0Arp Aug 27 09:18:29 how to prevent log4j related warnings when doing build for android app ? Aug 27 09:54:26 hi folks Aug 27 10:09:57 "Samsung Electronics Co. (005930) plunged the most in almost four years, wiping out more than $12 billion in market value, on concern some devices may be banned in the U.S. after a jury said it violated Apple Inc. (AAPL) patents." Aug 27 10:09:59 doh Aug 27 10:10:30 look at their year-to-date performance though Aug 27 10:16:29 guys, how to setText for textview in Widget? Aug 27 10:35:05 Hi good folks! Does anyone know anything about a way to force android built in soft keyboard in an app? I need to disable 3rd party soft keyboard vendors due to an requirement we need to fullfill. (My other action to solve this is to make an in-app keyboard) Aug 27 10:42:33 why would anyone require to disable other soft keyboards? An app that doesn't allow me to use my swype keyboard would fly off instantly, it seems like something not very smart to do Aug 27 10:57:37 sonOfRa: It is because of security reasons, they don't trust users at all. And they don't want any soft keyboards to send input data to a server like a key logger Aug 27 11:02:37 I'm not too much into android security, but i doubt the keylogging would take place on the soft keyboard itself, but rather in a background task of some sorts Aug 27 11:02:51 There Aug 27 11:03:00 s no way to intercept the keys from a background task. Aug 27 11:03:09 At least not without root or an exploit. Aug 27 11:03:32 If a user installs a 3rd party soft keyboard with "key logger" bundled, you would have a security risk Aug 27 11:03:34 It is, however, quite trivial to do it from a soft keyboard. Aug 27 11:04:22 I can see the concern. Aug 27 11:05:07 Not sure if the keyboard is the part to focus on, though, if this is about consumer devices. Aug 27 11:05:40 It is about consumer devices Aug 27 11:06:02 Your software had better be pretty damn special if it makes me use your hackjob keyboard :P Aug 27 11:06:10 perhaps keyboard events could be accessible via the HID stack and the key codes a little like in X, then translated to characters. Aug 27 11:06:49 Disabling keyboards just seems like a really bad way to go to be honest. It severely impairs the usability of your application Aug 27 11:07:16 It is a quite spesial app, it is for authentication use only Aug 27 11:08:08 I don't see the business value... I mean, mobile devices aren't that special compared to Windows or MacOS and those 2 make installing keyloggers along with other software quite trivial. Aug 27 11:08:23 I really don't want to make a in-app keyboard, and I don't want to use 3rd party keyboards either Aug 27 11:08:38 Combine that with the number of users that will actually install a 3rd part keyboard... and even a malicious one at that... Aug 27 11:09:17 Anyway, why should Android dev questions have always to do anything with a market and making money? why can questions not be related to pure experimentation/research/fun or even art? Aug 27 11:09:25 HDroid: I know and belive me, I've tried my best to tell the customer that. Aug 27 11:11:57 SirKro: well, the inputmanager has a few methods that allow you to query the current keyboard, I guess you could try and detect the built-in keyboard but it's going to be world of hurt (there isn't even anything like the "stock keyboard" as manufacturers can install their own variants or even ship with e.g. swype as the default choice). Aug 27 11:13:02 And even then it's easy for a keyboard to mimic the stock keyboard, if I was making an input method I'd copy the stock one and intercept the keys in the code. Aug 27 11:13:46 I guess you could copy the stock keyboard and try to make an authentication mechanism so you can be sure it's your keyboard that's selected. But that's pretty much it. Aug 27 11:13:54 HDroid: Yes I'm looking into that. And I know that it would not be easy. Right now I'm looking into KeyboardView Aug 27 11:14:19 I hope you're getting paid plenty for this one :P Aug 27 11:14:24 I would most definitely bail out. Aug 27 11:15:35 julianoliver: 1) Android isn't fun 2) gotta pay the bills :P Aug 27 11:16:22 HDroid: yes, I'm researching right now and trying to find as many reasons as possible to use default android functionality Aug 27 11:17:26 I'm not sure if your client has a desktop app as well, but that might make him reconsider. Aug 27 11:17:50 Or even a website. Aug 27 11:18:06 hello Aug 27 11:18:12 Hi Aug 27 11:18:23 can i ask a question about opengl es? Aug 27 11:18:30 Why not Aug 27 11:18:38 i object! Aug 27 11:18:40 i have a deltaTime system in my game Aug 27 11:18:42 Not that I'd be able to answer. But I'm not the only one in this channel. Aug 27 11:19:01 but it's accuracy is not very good Aug 27 11:19:22 how can i implement a good deltaTime system for my game Aug 27 11:19:34 they got a java-applet and iOS app. The iOS app does not have an in-app keyboard. The reason: "Apple do extensive testing before releasing to App Store" Aug 27 11:20:20 I have my whole question here http://stackoverflow.com/questions/12139857/how-to-measure-deltatime-in-opengl#comment16239655_12139857 Aug 27 11:20:34 can somebody help me about that? Aug 27 11:20:51 SirKro: client is somewhat right about iOS, but only because it doesn't allow 3rd party keyboards at all. Aug 27 11:22:01 HDroid: yes Aug 27 11:23:52 just dont let them login with a keyboar Aug 27 11:23:55 just have a bunch of buttons on screen Aug 27 11:23:55 Hi folks. Is it possible to use an NFC reader in conjunction with the simulator to test NFC functionality? Aug 27 11:24:04 eudicot: nope Aug 27 11:24:50 you could concievably create a test bed or something using external libs and some tcp trickery, like how some people used to test sensor data Aug 27 11:24:58 but nothing biult in Aug 27 11:25:13 Thanks :) Aug 27 11:25:15 mikedg: that would solve the 3rd party keyboard problem, but it may add add some issues with accessibility Aug 27 11:32:26 Thanks for the input :) Aug 27 11:32:55 bunch of buttons on screen is a problem with some password types Aug 27 11:33:20 but i presume if this is an internal tool you know what passwords are allowed Aug 27 11:33:32 mysup3securep455wordwithspecialchars;:!_$ Aug 27 11:33:33 can someone help me about game programming? Aug 27 11:33:39 with android opengl es? Aug 27 11:34:48 sonOfRa: Yes, and I've to asume that all chars are allowed. Aug 27 11:35:09 sonOfRa: And I won't even think about ldpi devices Aug 27 11:36:07 i guess you are probably best off with writing your own softkeyboard and forcing it on the application Aug 27 11:36:33 there is no way to detect if the keyboard the user is using is stock-keyboard, i think someone said that already. Aug 27 11:40:59 sonOfRa: yes, but I hope we don't get to that :) Aug 27 11:46:55 hey, does anyone have any experience using Sherlock with a MapView? Aug 27 11:48:39 MapActivity* Aug 27 12:03:42 'ello Aug 27 12:04:35 guys, what way would u recommend to view pdf inside a fragment Aug 27 12:04:53 Quick question related to spaces in filesystem paths. If I'm saving a file to /myfolder//myfile and is 'untitled album', will the app yell at me? Aug 27 12:05:12 what i was looking for is webview, and a javascript but couldnt find one Aug 27 12:05:29 i do have a server on which i wanna put the pdf Aug 27 12:05:39 any idea anybody? Aug 27 12:12:19 Can't understand, how to make Widget clickable :/ Aug 27 12:12:46 I need to setOnClick for LinearLayout (I mean click on widget once) Aug 27 12:14:13 http://pastebin.com/4z96phBM Aug 27 12:14:21 but nothing happends when I tap on widget Aug 27 12:19:31 saludos Aug 27 12:25:27 how to make ImageButton at top of layout? Aug 27 12:25:33 absolutely positioning? Aug 27 12:25:48 I need to fill whole layout with clickable area (for widget) Aug 27 12:26:36 Giving a weight to the scalable portion of your layout usually makes more sense. Aug 27 12:28:04 oh thanks!!! Aug 27 12:28:54 hello all Aug 27 12:29:23 can someone provide some information about this new (Jelly Bean) copy protection feature ??? Aug 27 12:45:39 Pinas: similar to applications on SD card, afaik, with app coming encrypted with per-device key Aug 27 12:46:56 * alankila wonders if the android store signs the apks that users get Aug 27 12:47:17 I guess not Aug 27 12:48:56 not that it would help any against piracy. As long as people can turn off the checks via settings, there's not much you can do about it. Whether signed or not, it can be cracked and resigned with these checks turned off. Aug 27 12:49:07 or rather re-signed Aug 27 12:49:59 I imagine apple-style control where you have to generate a provisioning profile that authorizes your developer key to run specific application(s) on specific device(s) would be seen as too evil Aug 27 12:54:04 guys, I need to implement Opening web uri by tapping on widget... Tapping works fine and send Broadcast to my 'onReceive' Aug 27 12:54:14 but how to startActivity() from onReceive? Aug 27 12:54:30 alankila: it prevents "casual piracy", I guess Aug 27 12:54:36 LVL was very easy to crack, though Aug 27 12:54:46 http://stackoverflow.com/a/2201999 like here Aug 27 12:55:24 oh.. context.startActivity() Aug 27 12:55:30 sorry. Alright. Aug 27 12:55:34 I played with cracking LVL-secured apps when I wanted a bit longer demo period (I have bad experience with canceling VISA transactions, and 30 minutes is waaaay too short) Aug 27 12:55:58 (disclaimer: I have no cracked apps - all the ones that were worth it were bought, the rest removed) Aug 27 13:00:04 LVL without CRC checks s not very useful Aug 27 13:01:36 bubbleguuum: and those are easy to circumvent as well if you are editing apps' code Aug 27 13:02:00 p_l: you can make it hard to remove them through Aug 27 13:02:09 * p_l would simply hunt down the checking routine and make it always return true Aug 27 13:02:12 discouraging wanabee cracker Aug 27 13:02:45 there can be many checking routines Aug 27 13:06:39 I imagine most people will just do the LicenceCheckerCallback thing. Difficult to hide that, it probably compiles into fairly specific-looking sequence Aug 27 13:07:17 that's why you do not hide it and add hard to find crc checks Aug 27 13:07:22 so there's a licencechecker's checkAccess() or something being called, and despite the naming is obfuscated, the code sequence that runs must be recognizable, and it can be reduced to simply calling allow right away on the callback Aug 27 13:07:46 you suggest analyzing the apk file from somewhere in the code? Aug 27 13:08:22 * alankila is not sure if you can access any runtime info such as the validated dex files. Aug 27 13:08:29 making crc checks at random times in hard ton find places in the code Aug 27 13:08:36 crc on the apk itself Aug 27 13:09:12 bubbleguuum: well that's a difficult programming problem. To embed the "CRC" in the code, you need to know the "CRC" of the final APK. Aug 27 13:09:49 that's whyyou do not store it in the apk :) Aug 27 13:09:55 well how do you store it then? Aug 27 13:10:04 or rather, distribute it to user device? Aug 27 13:10:12 download it from the internet & check the apk is the right apk? Aug 27 13:10:17 yup Aug 27 13:10:46 requires some infrastructure Aug 27 13:10:54 Hmh. Well, fair enough, but sounds like it's not much additional code to comment out. Aug 27 13:11:14 it has to be found first Aug 27 13:11:32 would be much easier to just lock shit down such that user simply can't mess with the apk at all Aug 27 13:11:44 it cannot be pacthed out with automated tools like Lucky Patcher Aug 27 13:12:32 hmh, right. There's of course autocrackers because as I said the code sequence is very recognizable that performs the license check Aug 27 13:13:07 also sensitive strings must be obfuscated Aug 27 13:13:24 proguard won't do it Aug 27 13:17:35 Guys, please help. How to open url in browser, from Widget? Aug 27 13:19:01 woozly: would that not be just startActivity with Intent ACTION_VIEW and the URL? Aug 27 13:20:40 woozly: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout Aug 27 13:20:59 you cannot add a webview to an app widget Aug 27 13:21:13 oh sorry... open url in browser... Aug 27 13:41:00 Guys, how to make text centered? vertical and horizontal Aug 27 13:41:02 (for widget) Aug 27 13:41:02 http://pastie.org/4597300 Aug 27 13:41:12 My text centered horizontal only :( Aug 27 13:44:09 Hey I need some help setting up my Android device for development on Linux. Aug 27 13:44:59 xstyle: did you read the documentation about setting up for development on linux? Aug 27 13:45:03 Yes Aug 27 13:45:08 I've set up the udev rules Aug 27 13:45:08 ok, what's the problem Aug 27 13:45:29 but when i do adb devices Aug 27 13:45:35 i get List of devices attached ???????????? device Aug 27 13:45:42 adb kill-server; adb devices Aug 27 13:45:49 if you still see ???????????????? then adb kill-server; sudo adb devices Aug 27 13:45:54 tried that, doesn't work :( Aug 27 13:46:03 tried as root too Aug 27 13:46:06 huh. Aug 27 13:46:10 That's unexpected. Aug 27 13:46:17 Close eclipse if it's open, and try again. Aug 27 13:46:29 the ADT might be re-establishing the connection if you aren'tq uick Aug 27 13:46:37 anything weird about your device? Aug 27 13:46:50 Yeah, is this a cheap chinese knockoff or a well known device with google play? Aug 27 13:46:59 (and why do people not just say what their device is???) Aug 27 13:47:02 Huawei U8110 Aug 27 13:47:03 you also have USB Debugging enabled, right? Aug 27 13:47:07 Leeds: it generally doesn't matter Aug 27 13:47:23 lov: it generally doesn't hurt to say, and it *can* matter Aug 27 13:47:24 yes, usb debugging is enabled Aug 27 13:47:40 hmph Aug 27 13:47:43 it's worth mentioning that I can control the device through adb if I don't specify any id Aug 27 13:47:48 like i can adb shell into it Aug 27 13:47:57 http://stackoverflow.com/questions/5695915/unable-to-connect-huawei-u8110-via-adb Aug 27 13:48:00 or adb install stuff onto it Aug 27 13:48:11 yeah Aug 27 13:48:14 see the stackoverflow post Aug 27 13:48:34 1 sec Aug 27 13:48:52 lov: good thing the device doesn't matter, huh? ;) Aug 27 13:49:12 also, it would have been good to mention upfront that adb actually did work... Aug 27 13:50:20 adb does work from the command line, yes, but I can't set up, for example, eclipse Aug 27 13:50:34 because when it asks me to select a device to install the app on it just shows ??????? Aug 27 13:51:02 i can install it from the command line though without providing the id of the device Aug 27 13:52:04 woozly: I'm pretty sure you want android:gravity to align text within the TextView and android:layout_gravity to align the TextView within the parent Aug 27 13:52:58 http://www.canonical.org/~kragen/tao-of-programming.html Aug 27 13:55:06 xstyle: yeah, you'll need the patch mentioned in the stackoverflow post, or another device; I've never heard of a device not actually having a serial number and causing that strange ???????????? behavior by default. Aug 27 13:56:11 interesting if you can pass CTS with a 'bug' like that Aug 27 13:56:35 I somehow doubt that the device had/has market. Aug 27 13:58:02 hmm, maybe not Aug 27 14:00:59 Good morning... How many of you use TDD for Android? Aug 27 14:01:35 doc_savage: can you edit my pastie? please. Can't understand where to make changes Aug 27 14:03:47 woozly: while it would take me roughly 10s to do that, it wouldn't be helping you in the slightest, you'll simply have this problem again the next time Aug 27 14:03:54 doc_savage: thanks! Im done! :) Aug 27 14:03:58 I mean I do it Aug 27 14:04:04 *did Aug 27 14:04:05 :) Aug 27 14:04:24 now make sure you understand it Aug 27 14:12:14 hi, is there any ways to check a ssl certificate before or after loading an url in a webview ? Aug 27 14:25:53 rgvneil: I don't but I should. Aug 27 14:26:04 TDD is kind of strange when it comes to the application layer, instead of the service layer. Aug 27 14:27:48 lov: in other words, since a lot of android is UI stuff it's hard to use the same approach? Aug 27 14:28:04 hi I am getting this error when I install my android app. can one help me resolve it http://pastebin.com/eSst0Arp Aug 27 14:28:59 rgvneil: well, it depends. Aug 27 14:29:16 rgvneil: for the UI layer it might be a little awkward, but you can absolutely use it when developing your backend/services for your app Aug 27 14:29:24 it's totally possible, however. Aug 27 14:29:45 mms_: O_O Aug 27 14:29:52 mms_: you may wish to talk to the person who makes that plugin./ Aug 27 14:30:14 lov: its related to log4j errors Aug 27 14:30:21 let me paste some details also Aug 27 14:30:21 ?hm one question - is there a list of all permissions that are only granted to system apps ? Aug 27 14:30:44 Pinas: yeah, I forget where it lives however. You'll need to grep the android source for it. Aug 27 14:32:14 http://pastebin.com/fMz9BWFK ... here are more details which show errors for log4j and then see at end it has some error related to jdk class. Aug 27 14:32:58 I have copy paste from dos window so some of the lines might be incomplete Aug 27 14:33:44 who do I need to do to get log4j working ....my android app is using an api which uses sl4j, log4j. Aug 27 14:34:29 Ill-advised or mistaken usage of a core class (java.* or javax.*) Aug 27 14:34:31 when not building a core library. Aug 27 14:34:33 YESSSS Aug 27 14:34:36 You got THAT error Aug 27 14:34:40 read from that line on; it's awesome Aug 27 14:35:07 ok thx lov Aug 27 14:36:40 lov: I read but I am not sure how to reslove it Aug 27 14:37:05 lov: I told you its related to some java class...qname Aug 27 14:37:15 javax/xml/namespace/QName.class Aug 27 14:37:17 yeah. that guy. Aug 27 14:37:30 You're trying to compile in some core libraries Aug 27 14:37:35 lov: but its coming from probably log4j Aug 27 14:37:39 as in not just referencing them but compiling them into your app. Aug 27 14:37:50 why is httpsurlconnection giving me some ssl exception when I try connecting to https://testpbx3.ipex.cz ? chrome says the certificates are ok. Aug 27 14:37:54 I have no idea what your project layout is like, so I really can't help you with this. Aug 27 14:38:22 if you see its running fro that log4j errors Aug 27 14:38:23 Pitel_laptop: the device might not trust all elements in the cert chain. Aug 27 14:38:38 mms_: I really cannot help you with this. Aug 27 14:38:46 mms_: You need to fix your project build setup Aug 27 14:38:59 lov: it compiles fine in eclipse ide Aug 27 14:39:02 if you're not sure what to do, head over to #maven or something Aug 27 14:39:47 lov: well, it trust the topmost certifivate (equifax), so it should trust the others (geotrust, rapidssl, our wildcard certificate), right? Aug 27 14:40:05 Pitel_laptop: I honestly don't know. Aug 27 14:45:03 Pitel_laptop: is that web server including the intermediate certificates? Aug 27 14:45:21 Pitel_laptop: in general you should use some SSL checker tool instead of using a web browser Aug 27 14:57:15 lov: do you have any hint how I could grep for this list (the string I could search for) - until now I am not very lucky Aug 27 15:01:41 Pinas: grep for a permission that you know you can't acquire. Aug 27 15:02:50 ok so do you now any system permission (i tried the brick permission but I did not found anything) Aug 27 15:05:57 lov: got it thx :) Aug 27 15:11:51 lov: btw you find the list under /frameworks/base/core/res/AndroidManifest.xml :) Aug 27 15:14:38 so wtf is with the kindle fire expecting a HUGExHUGE app icon Aug 27 15:14:50 how the fuck are you supposed to have one build tha tworks on kindle + everything else Aug 27 15:15:12 canadiancow: ~Amazon~ Aug 27 15:15:28 says the guy... Aug 27 15:16:01 who's had to deal with Amazon daily for the last year. Aug 27 15:16:15 s/deal with/work for/ Aug 27 15:16:19 * lov shrugs Aug 27 15:16:23 Amazon is a BIG company. Aug 27 15:16:30 yea i get that Aug 27 15:16:30 I work for a subsidiary, not even Amazon proper Aug 27 15:17:07 but i dont even get this Aug 27 15:17:18 it says it wants 114x114 for the "desktop of the mobile device" Aug 27 15:17:27 which looks like the "bottom" part of the launcher? Aug 27 15:17:41 but then whats the big ass one in the carousel Aug 27 15:19:04 I don't know. Aug 27 15:20:14 whoa Aug 27 15:20:20 https://developer.amazon.com/sdk/fire.html Aug 27 15:20:24 the screenshot has words with friends Aug 27 15:20:33 im like 95% sure we dont have a landscape version of our splash screen Aug 27 15:20:59 or at least not on "large" devices Aug 27 15:21:23 Maybe you do on kindle fire :p Aug 27 15:21:34 kindle on fire? Aug 27 15:21:34 i swear to god if we made a totally custom build... Aug 27 15:23:35 The icons on Kindle Fire are dynamically pulled from the Amazon Appstore for Android. Side-loaded apps cannot use this feature. Once you've submitted your app and it's live in the Amazon Appstore, your app's appropriate icon will automatically be displayed. Aug 27 15:23:36 oh Aug 27 15:23:45 good to know Aug 27 15:47:07 08-27 11:46:21.102: E/AndroidRuntime(9569): Caused by: java.io.FileNotFoundException: /mnt/sdcard/InAppSDK-SandboxData.json (No such file or directory) Aug 27 15:47:09 wtf Aug 27 15:47:15 i dont want to sandbox Aug 27 15:52:58 canadiancow: beatbox instead Aug 27 16:07:46 hey all, I'm struggling with parsing json and handling in-app billing in my android app (mostly, determining if an in app purchase has been made). Is there a decent tutorial somewhere? Aug 27 16:15:25 Howdy Aug 27 16:15:51 One of my long-lived cursors is being closed and I think it's because a database update is happening on another thread Aug 27 16:16:19 Do cursors get closed during write operations, and if so how should one detect and recover from that scenario? Aug 27 16:20:01 I use this `Environment.getExternalStorageDirectory().getPath() + "/download";` to save to /mnt/sdcard/download directory; I want to be able to save to android "file:///android_asset/www/videos/" Aug 27 16:20:56 is it getRootDirectory() or getDownloadCacheDirectory()? Aug 27 16:40:44 git view staged changes Aug 27 16:41:10 hey, this is'nt where i left my browser Aug 27 16:41:29 Hi. I've implemented streaming media player into service, everything works fine, but I don't know how to dismiss progressDialog inside activity from which servise was called. Any ideas would be welcome. Thanks.:) Aug 27 16:41:48 your service and activity need to communicate Aug 27 16:41:59 handlers? Aug 27 16:42:09 LocalBroadcastManager if you don't care about your activity missing a broadcast Aug 27 16:42:30 binding the service and registering a listener Aug 27 16:43:43 could someone help me please? http://stackoverflow.com/questions/12123220/infinity-and-continuos-animation Aug 27 16:43:53 mikedg: thanks. :) Aug 27 16:47:59 I need to do a loop sliding a imageview with an image Aug 27 16:53:37 Whoa, I didn't know this was a real channel. Awesome! Aug 27 16:57:07 any tips how I can build Bionic libc? Aug 27 16:59:02 diki: this is an app development channel Aug 27 17:04:05 can nobody help me? Aug 27 17:04:19 I am trying to do something with OpenGLES2 and am getting the error that gl2.h and gl2ext.h "no such file or directory" What is the trick, there has to be at least 10 copies of this file in the ndk Aug 27 17:04:29 wongk:trust me, what I am doing, will benefit all. Aug 27 17:04:44 Trust me, this is the app dev channel Aug 27 17:04:48 diki: fantastic, but that's irrelevant Aug 27 17:31:10 hi all Aug 27 17:32:52 is there any real difference, if you don't need authentication, between having a syncadapter and just having a long-running service that hits a server every X minutes? Aug 27 17:33:28 (where the service kicks off the request in a sep thread) Aug 27 17:33:35 you don't want a perpetual service, you want AlarmManager and PendingIntent Aug 27 17:33:43 why? Aug 27 17:33:46 battery Aug 27 17:34:03 but it's not running most of the time Aug 27 17:34:16 it's still using cycles Aug 27 17:34:30 even when it's asleep? Aug 27 17:35:09 not w/o a wake lock Aug 27 17:35:11 You're making the assumption that Android won't just reap your service. Aug 27 17:35:15 and yeah that Aug 27 17:35:21 you have to keep the device physically awake to use a service Aug 27 17:35:33 You seriously want to use AlarmManager if you want to do something periodically like this Aug 27 17:35:49 or SyncAdapter? Aug 27 17:37:05 so, a Service will be stopped if the phone goes to sleep? Aug 27 17:37:15 not necessarily stopped Aug 27 17:37:24 but when the phone goes to sleep, the entire A processor may be turned off Aug 27 17:37:45 since there's no CPU to run your service code, it doesn't matter what it does. Aug 27 17:37:52 "A processor" Aug 27 17:37:56 ? Aug 27 17:38:00 The application processor, as opposed to the radio processor Aug 27 17:38:04 modern smartphones have two processors Aug 27 17:38:05 ah Aug 27 17:38:12 /w 6 Aug 27 17:38:18 The A processor is what Android runs on top of. Aug 27 17:38:23 there's also a chance android could kill the process Aug 27 17:38:23 Don't worry about the radio processor. Aug 27 17:38:47 so, how does anything (Alarm, SyncAdapter, etc) work if the A processor is off? Aug 27 17:41:17 Basically AlarmManager sends something over the RIL saying "hey at time XYZ, wake me up for a bit" Aug 27 17:41:31 It's an implementation detail; it's not important. Aug 27 17:41:49 so, SyncAdapter vs AlarmManager ? Aug 27 17:43:25 is it important that your service run exactly once an hour? Aug 27 17:43:27 if so, AlarmManager. Aug 27 17:44:21 If you're ok with this running about once an hour, and not running at all while the phone is off (user went to sleep for the night, etc), sync adapter should be fine. Aug 27 17:44:48 if the phone is off, nothing's going to happen i imagine :) Aug 27 17:45:13 actually, the sync adapter takes care of the when and the how, iirc Aug 27 17:45:19 everything just kind of magically happens Aug 27 17:45:42 supposedly you can specify the frequency Aug 27 17:45:47 with a syncadapter Aug 27 17:46:49 the real problem i'm having is that, on some phones, when the phone is "asleep", it doesn't receive C2DM push notifications Aug 27 17:47:16 so i figured i needed to sync manually occasionally to deal with that Aug 27 17:49:02 which is kind of a bummer Aug 27 17:49:24 cuz i'd rather just let C2DM do it's thing Aug 27 17:49:32 but it doesn't always get through Aug 27 17:50:44 huh, well that completely defeats the purpose of c2dm Aug 27 17:52:01 does it get the c2dm when it wakes up? Aug 27 17:52:16 for example, i have my nexus 7 configured to shut down its wifi when the screen is off Aug 27 17:52:25 because i dont want it to use battery Aug 27 17:52:57 battery use on properly power saving WiFi net is small. Aug 27 17:53:10 well under a percent an hour. Aug 27 17:54:30 that's good to know Aug 27 17:55:02 battery use due to ram in suspend is probably comparable Aug 27 17:55:21 i remove my app in the task-manager and then some seconds or minutes later it starts again. i can't see why this is so. return values indicate the workerthread has stopped. what is the best practice for allowing a user to simply stop it forever, Activity.finish() on a button event? Aug 27 17:55:52 I have been unable to do proper tests, as I can't put it down long enough :-) Aug 27 17:56:10 anyone else experience not getting C2DM notifications when the phone is asleep? Aug 27 17:58:21 julianoliver: finish your activities, stop your services. Aug 27 17:58:35 julianoliver: it's generally an antipattern to attempt to force-kill an application, and "task manager" apps haven't helped. Aug 27 17:58:54 lov: cheers Aug 27 17:59:11 also, i just found out that apparently C2DM is deprecated! Aug 27 17:59:18 Euler: it's GCM now iirc Aug 27 17:59:25 yea Aug 27 17:59:32 just kinda ircs me Aug 27 18:00:12 you are irc'ing indeed Aug 27 18:00:22 heh Aug 27 18:00:30 i mean, c2dm is only 2 years old Aug 27 18:02:10 lov: Annoyingly, though, I have needed to force-kill some applications to get them to STFU. Aug 27 18:02:37 SpeedEvil, battery use becasue gmail keeps pinging my device when an email comes in... Aug 27 18:02:49 hasn't happened on my Nexus 7 yet Aug 27 18:02:52 s/gmail/a bunch of apps/ and s/email/something/ Aug 27 18:03:26 fair enough. YMMV with apps. Aug 27 18:03:37 I hate unconfigurable apps. Aug 27 18:05:40 Hodapp: file them under misbehaving Aug 27 18:05:57 Conclusion Aug 27 18:05:57 The Amazon In-App Purchasing API was created to make in-app purchasing straightforward and easy to implement. As we've shown, the Amazon IAP API version of the Dungeons App removed 708 lines of code and 8 files from the solution, while only adding 62 lines of code to the App itself. Aug 27 18:06:08 i love how amazon tries to make their whole tech guide say "we're better than google" Aug 27 18:06:36 lov: I don't know how much was the app and how much was the tablet and/or ROM it was running. It would happen with things like Chrome or Opera. Aug 27 18:06:57 * lov shrugs Aug 27 18:17:08 lov: The last tablet that exhibited this problem for me flew out a 3rd-story window onto pavement, so meh. Aug 27 18:22:26 hackkitten! Aug 27 18:22:34 where? Aug 27 18:22:39 in here! Aug 27 18:22:56 hackkitten in #AndEngine Aug 27 18:25:33 Hodapp: that's a decent strategy Aug 27 18:25:53 lov: even more decent when you consider that the pavement in question is a busy road. Aug 27 18:35:12 is creating one activity per layout pretty conventional? Aug 27 18:44:37 Hi, if I am using a library project for my app Aug 27 18:44:52 can I read data from the app and use it in my library project? Aug 27 18:52:37 From a convention standpoint: When do I make a new Activity? For a separate part of a GUI? Or do I use something else for that? Aug 27 18:53:33 separate part as in on the same screen as another? Aug 27 18:54:07 You make a new one when you want to go to another screen. Aug 27 18:54:17 more or less a separate screen, I suppose Aug 27 18:55:44 Basically for a separate screen. Aug 27 18:55:54 calvinchan: I don't see why not. Aug 27 18:56:14 lov: How can I do cross reference? Aug 27 18:56:32 because library project is supposed to be the "reference" class? Aug 27 18:56:42 basically my app plays videos Aug 27 18:56:51 calvinchan: I'm not sure what you mean. Aug 27 18:56:53 and the library project implements the behaviour of the mediaplayer Aug 27 18:57:01 calvinchan: App A includes library B Aug 27 18:57:08 yes Aug 27 18:57:10 A can inject things down to B Aug 27 18:57:22 B can declare interfaces that A can provide concrete implementations of Aug 27 18:57:39 I can't any examples on the internet that does that Aug 27 18:57:54 then perhaps you'll have to think of a solution instead of finding one to copy paste? :( Aug 27 19:00:59 I'm inflating a layout in code and inserting into a ViewFlipper however, the child view doesn't get displayed.. Hierarchy viewer shows the view is there with height/width set to 0, any ideas? Aug 27 19:01:29 the layout_width/height is set to fill_parent on the child view Aug 27 19:01:30 preds_: does it look good in the previewer? Aug 27 19:02:14 lov: what I meant by cross referencing is Aug 27 19:02:23 I include library project into my app Aug 27 19:02:39 can I include my app into library project? Aug 27 19:02:52 but then I would have 2 libraries Aug 27 19:03:27 marcab, I'm not sure what you mean, it's set to visibility gone and height/width: 0 in the previewer Aug 27 19:03:40 do I need to explicitly draw() it or something? Aug 27 19:07:13 calvinchan: uh Aug 27 19:07:16 .... Aug 27 19:07:17 no. Aug 27 19:07:23 I'm gonna just say that you can't Aug 27 19:07:36 oil….. thanks anyway Aug 27 19:08:55 is anybody able to help me with in app billing and restoring transactions? I don't know how to tell my code to remove ads if my app had been previously purchased. Aug 27 19:11:35 bleh ViewVlipper.setDisplayedChild() Aug 27 19:11:51 if only I could tell the me from 2 hours ago that Aug 27 19:22:55 hi Hodapp :3 Aug 27 19:32:08 hey all, if i wanted to make an application that acts as a broadcaster for another device, is this a) allowed in android without root and b) possible to do with the SDK? Aug 27 19:32:24 is there an ios-dev or an apple-dev as well? i have the same question for them but i dont see a related chan Aug 27 19:32:52 I'm not sure what you mean by "a broadcaster" Aug 27 19:32:58 but I don't see why not Aug 27 19:33:09 #iphonedev Aug 27 19:33:19 basically take a broadcast address and push packets to it at intervals Aug 27 19:33:29 then i'd have a receiver somewhere else on the network listening to the broadcast address Aug 27 19:33:33 f2pratek, ty Aug 27 19:34:09 is it like pinign an ip address? Aug 27 19:34:12 *pinging Aug 27 19:34:19 f2pratek, it would be pushing some kind of info Aug 27 19:34:46 maybe it's just a 'i'm alive' kind of a thing Aug 27 19:35:33 Hi Aug 27 19:35:39 kaneda^: in theory it should be possible. Aug 27 19:35:48 lov, excellent, without rooting the device? Aug 27 19:35:56 kaneda^: android is going to just act like a jvm on top of linux here, so you should be able to send udp packets, etc. Aug 27 19:36:03 I'm loading and checking my bitmap file like that Aug 27 19:36:04 lov, perfect Aug 27 19:36:04 itmapFactory.Options options = new BitmapFactory.Options(); Aug 27 19:36:04 options.inPreferredConfig = Config.RGB_565; Aug 27 19:36:04 Bitmap bitmap = BitmapFactory.decodeStream(in,null,options); Aug 27 19:36:04 Log.d("a", fileName+" "+bitmap.getConfig().name()); Aug 27 19:36:09 teksTurkey1: please use a pastebin. Aug 27 19:36:16 hmm okey Aug 27 19:36:24 teksTurkey1: use pastebin Aug 27 19:36:46 kaneda^: Do you normally need to run as root/su to send packets to broadcast addresses? You're just sending to .255 or something right? Aug 27 19:36:50 * lov is terrible at networking Aug 27 19:37:14 looking at this, doesnt seem like you need root http://stackoverflow.com/a/11525981 Aug 27 19:37:21 lov, i dunno, but if you want to do some arp poisoning or anything from the device you need to root it Aug 27 19:37:22 lov: no, of course not. Aug 27 19:37:23 *does Aug 27 19:37:24 O have a code like that to load my bitmap and check its config Aug 27 19:37:24 http://paste2.org/p/2160196 Aug 27 19:37:31 f2pratek, that's waht i figured, but i'm being cautious :) Aug 27 19:37:51 kaneda^: at worst you use the ndk to make straight up C layer networking calls. Aug 27 19:37:51 I'm sure about my file is RGB565 but string always returns as ARGB8888 Aug 27 19:37:55 although the root is more of a backup thing i guess Aug 27 19:38:01 lov, i'd prefer not to, that's why i asked about the SDK :D Aug 27 19:38:11 heh Aug 27 19:38:23 i've actually done networking in C from scratch Aug 27 19:38:26 for a course, many yeasr ago Aug 27 19:38:27 never again Aug 27 19:38:31 I don't know what flags are required for sending a broadcast. Look at the java.net stuff, I guess. Aug 27 19:38:37 yah Aug 27 19:38:52 any idea about my problem? Aug 27 19:39:16 lov, so long as i CAN do it, i'm sure the rest will come ;) Aug 27 19:39:24 i just didnt want to walk into this meeting with my pants down Aug 27 19:40:07 is it just me, or is the SyncAdapter stuff overly complicated? Aug 27 19:40:25 teksTurkey1: not offhand. Aug 27 19:40:32 try StackOverflow Aug 27 19:41:04 offhand? Aug 27 19:41:22 I tried it already Aug 27 19:41:32 Are ContentProvider permissions tobal to provider or unique to uri match? Aug 27 19:41:43 s/tobal/global/ Aug 27 19:42:34 Euler: it's not that hard really, just a bit tedious Aug 27 19:42:43 Euler: especially the part that you need to have a content provider Aug 27 19:42:52 which is a bit annoying if you don't have one already Aug 27 19:42:55 yea, i don't need one Aug 27 19:43:06 well, you do if you want to use a syncadapter ;) Aug 27 19:43:10 i already have a mechanism to actually do the syncing Aug 27 19:43:18 heh Aug 27 19:43:21 that content provider, however, does not need to actually do anything Aug 27 19:43:45 it just needs to exist :P Aug 27 19:43:49 right Aug 27 19:44:08 same dealie with authenticator Aug 27 19:44:15 and apparently there's something about ContentResolver that I can use to set the frequency Aug 27 19:44:25 yes Aug 27 19:44:35 when you have the sync adapter in place it works IMHO pretty well Aug 27 19:44:39 but it's not super clear where I'd do that from Aug 27 19:46:38 i don't have access to my code which sets that, but iirc i set it basically when the account is created Aug 27 19:51:07 it's a little frustrating that ContentResolver has insert/update/query but no replace method Aug 27 20:03:23 how can i "re"inflate a Fragment's view? Aug 27 20:04:00 Remove the fragment, add it again Aug 27 20:04:10 ouch. Aug 27 20:04:14 i'll just call show() hide() on views Aug 27 20:04:19 What are you trying to do Aug 27 20:04:40 listen to network changes within the Fragment, and change it when switching from 3G to Wi-Fi and vice versa Aug 27 20:13:49 Rockmaninoff, why can't you just manipulate the fragment's view's children accordingly Aug 27 20:14:07 hi Aug 27 20:14:51 anyone can help? im trying to make a class extending from ListActivity and work with Lists inside Aug 27 20:15:56 im doing it like: List var; // eclipse gives me a warning saying: List is a raw type. References to generic type List should be Aug 27 20:15:56 parameterized Aug 27 20:16:21 and im following this tutorial word by word: http://androidresearch.wordpress.com/2012/01/21/creating-a-simple-rss-application-in-android/ Aug 27 20:16:25 hehe Aug 27 20:16:28 anyone? Aug 27 20:16:45 it's a warning, not an error, what's the problem? Aug 27 20:17:24 well, then i run the app and it closes itself Aug 27 20:17:26 :S Aug 27 20:17:46 Hmm, I'm finding working with the Android APIs in Java to be perhaps even cleaner than working with Qt & C++ Aug 27 20:18:05 Qt goes a long way to making it less of a clusterfuck but the C++ roots do come out in annoying ways sometimes Aug 27 20:18:55 KBZoiD, I don't think your error is related to your app closing itself. Have you checked if it's crashing using the eclipse debugger? Aug 27 20:20:01 is anybody able to help me with in app billing and restoring transactions? I don't know how to tell my code to remove ads if my app had been previously purchased. Aug 27 20:20:24 Does it matter when super.onDestroy is called? Aug 27 20:20:46 Or should it always be the _first_ thing done when overriding onDestroy? Aug 27 20:21:32 super is always the first call you make Aug 27 20:21:41 in general Aug 27 20:23:05 What? doesn't it make sense to call it last Aug 27 20:25:02 hwrd|work: the important thing is that you call it, more than when you call it. Aug 27 20:25:09 it doesn't have to be first. Aug 27 20:26:00 kaneda^: preds_ lov: I see. Thanks. Aug 27 20:26:49 Look at what Activity does in onDestroy Aug 27 20:26:59 Does it do anything that might mess up what you want to do? Aug 27 20:27:02 Then call it last Aug 27 20:28:58 JakeWharton: with Otto, do @Producers also need to be unregistered? Aug 27 20:29:19 that depends highly on what you're using them for Aug 27 20:29:27 providing "last-known" NetworkInfo Aug 27 20:29:33 is there a channel here for developers to promote their apps? Aug 27 20:29:34 i'm currently placing it in my subclassed Application Aug 27 20:29:45 (the @Produce method, that is) Aug 27 20:32:24 if it's in the Application then probably not Aug 27 20:32:41 is there a channel here for developers to promote their apps? Aug 27 20:32:44 we never unregister our Singletons Aug 27 20:32:50 fair Aug 27 20:34:02 KeynesS: No Aug 27 20:34:54 thanks Aug 27 20:38:04 fucking amazon iap Aug 27 20:38:11 the jar they distribute is fucked Aug 27 20:38:13 so it breaks proguard Aug 27 20:38:46 KiwiPurchaseResponseCommandTask extends KiwiBaseCommandTask Aug 27 20:38:47 KiwiBaseCommandTask extends AbstractCommandTask Aug 27 20:38:52 AbstractCommandTask is not in the jar Aug 27 20:38:57 i dont know how this even runs Aug 27 20:39:42 canadiancow: must be somewhere in your classpath Aug 27 20:40:12 or the class is never used Aug 27 20:41:20 canadiancow: maybe try this http://www.dependency-analyzer.org/ Aug 27 20:42:24 is there a way to list contacts ordered by addition time? Aug 27 20:51:57 g00s looks like it works if i remove the two classes from the jar Aug 27 20:51:58 *sigh* Aug 27 20:53:01 https://developer.amazon.com/sdk/in-app-purchasing/sample-code/code-obfuscation.html Aug 27 20:53:02 ffs Aug 27 20:53:05 look at amazon's bullshit Aug 27 20:53:24 basically they talk about proguard support Aug 27 20:53:35 then say to turn off obfuscation for amazon and optimization for your whole app Aug 27 20:53:37 good one Aug 27 20:54:07 uh Aug 27 20:54:22 A) they need you to turn off obfuscation for amazon namespace stuff because of their own in-app billing and drm Aug 27 20:54:27 same as w/ google?????????? Aug 27 20:54:36 google tells you to keep like one receiver Aug 27 20:54:42 not keep com.google.** Aug 27 20:54:43 B) they say lower optimization to 1, not remove it entirely Aug 27 20:54:45 * lov shrugs Aug 27 20:54:53 lov, they say lower to 1 or remove entirely Aug 27 20:54:55 Go tell amazon what jerks they are. Aug 27 20:54:55 we have it set to 10 Aug 27 20:55:07 i wold put it at 11 Aug 27 20:55:10 lol Aug 27 20:55:18 * hd1 was at amazon Aug 27 20:55:55 im not even sure you need any keep rules for google in app billing anymore Aug 27 20:55:59 sinc ethey have the dynamic proguard config Aug 27 20:58:28 if you dont understand proguard you shouldnt be releasing third party SDKs Aug 27 20:58:33 android SDKs* Aug 27 21:00:46 I am test my app on a 2.3.4 DROID3, onRestoreInstanceState does not seem to be run, yet onSaveInstanceState is and I put a string into thew bundle, as well as call super. Aug 27 21:01:22 is this a problem with 2.3.4, or do I still need to find my error? Aug 27 21:01:40 kyconquers: on my 2.2 device I get onRestoreInstanceState called. Aug 27 21:01:51 I suspect there's an error. Aug 27 21:02:47 kyconquers: how are you trying to trigger onRestoreInstanceState? I find rotating it to be a good test. Aug 27 21:03:30 marcab, I was just exiting and restarting, but I will try that. Aug 27 21:03:44 kyconquers: exiting and restarting won't call onRestoreInstanceState Aug 27 21:04:21 if you want to save data beyond exiting/restarting, you probably want SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html Aug 27 21:04:43 (or a DB, or some other means of persistent storage) Aug 27 21:05:53 onRestoreInstanceState is only called when there is actually state to restore Aug 27 21:06:26 marcab, so onRestoreInstanceState is for screen rotations (fields that the user is filling out) or something like that. Aug 27 21:07:07 but I need to use a DB or something for something like accounts? Aug 27 21:07:28 *db or SharedPreferences Aug 27 21:08:28 oh yeah Aug 27 21:08:47 definitely can't persist account info in the bundle. Aug 27 21:09:17 kyconquers: fwiw, the "fields a user is filling out" should take care of themselves. Aug 27 21:09:54 each View with an ID should have its input state automatically transferred via its own bundling Aug 27 21:10:19 i.e. fill out a form in your app and rotate -- it should keep all View data (again, if the view has an id) Aug 27 21:14:33 say i want free and multiple paid versions of an app i'm developing, but want to maintain security and (as impossible as it seems) thwart piracy to some extent Aug 27 21:14:46 use in-app billing Aug 27 21:14:48 not separate apps :( Aug 27 21:14:54 hrm Aug 27 21:15:06 i was thinking of packaging a password in the R.strings. of each "child" app Aug 27 21:15:14 then hashing that and checking the hash in the library Aug 27 21:15:20 that's easy to thwart Aug 27 21:15:30 yeah they can always decompile and just remove the check right? Aug 27 21:16:01 Hi, can I call a function from an app to a library project? Aug 27 21:16:30 I have an app that has a library project, I want to pass data from my app to the library project Aug 27 21:17:08 calvinchan: yes, that is the point of library projects. Aug 27 21:17:21 oh lov……..hahahaha Aug 27 21:17:54 Rockmaninoff: Use the NDK to put some obfuscated string stuff down in a C library. That will gain you serious time. Aug 27 21:17:57 so if I have an int that I wanna pass to the library Aug 27 21:18:13 how can I do that? Aug 27 21:18:15 ..... Aug 27 21:18:20 I have no fucking clue Aug 27 21:18:23 +1 Aug 27 21:18:30 MyLibraryClass.passAnInt(intValue); ? Aug 27 21:18:33 lov, as an @ you should know everything Aug 27 21:18:35 int x = 123; ...yea Aug 27 21:18:37 I have no idea what your library is, what the classes are, etc. Aug 27 21:18:37 i thought it was a rule Aug 27 21:18:38 lov: my thoughts exactly Aug 27 21:18:50 lov / Rockmaninoff, its not even worth the effort imo Aug 27 21:18:52 pirates are pirates Aug 27 21:18:55 they ahve your client code Aug 27 21:18:55 The point is that when you have an android library, you can treat its contents as if they were compiled directly into the parent app Aug 27 21:18:57 they can bypass checks Aug 27 21:18:59 canadiancow, arrrr indeed Aug 27 21:19:07 canadiancow: it depends on two things Aug 27 21:19:14 make it hard enough that i cant just do adb pull /data/app/whatever.apk and adb push onto another device Aug 27 21:19:14 canadiancow: 1) Is it worth their time and effort to crack your app Aug 27 21:19:17 but past that, i wouldnt bother Aug 27 21:19:20 2) How long can you delay your app being cracked Aug 27 21:19:33 umm Aug 27 21:20:17 calvinchan: um what? There's nothing magical about libraries. Aug 27 21:20:23 I honestly don't understand what the disconnect is here. Aug 27 21:20:31 If you have Library L which contains class C Aug 27 21:20:35 and you have App A that includes L Aug 27 21:20:44 yes Aug 27 21:20:45 then A can just call C's methods as it normally would if C were part of A Aug 27 21:20:52 I literally don't understand what your mental block is Aug 27 21:21:09 I call call anything in C Aug 27 21:21:22 but I can also call anything in A using C? Aug 27 21:21:36 not directly. We've been over this. Aug 27 21:21:40 Interfaces, use them Aug 27 21:21:47 You need to declare an interface at the library level, and have something in your app implement that interface Aug 27 21:21:54 you then pass that concrete instance down to your library level Aug 27 21:21:59 and have your library call methods against your instance Aug 27 21:22:15 public Interface I { public void foo(); } Aug 27 21:22:31 public class C implements I { public void foo() { Log.i("foo", "bar"); } } Aug 27 21:22:34 C lives in your app layer Aug 27 21:22:37 I lives in your interface layer Aug 27 21:23:05 public class IUser { public static void acceptI(I iface) { iface.foo(); } } Aug 27 21:23:10 IUser lives in your library Aug 27 21:23:15 s/interface layer/library Aug 27 21:23:31 oic....... Aug 27 21:23:34 In your app class, you can call IUser.acceptI(new C()); Aug 27 21:24:23 hi, how to join a regular contact with the me contact in ICS? Aug 27 21:24:55 that soudns like a dev question if i ever heard one Aug 27 21:25:07 mark06: #android-dev Aug 27 21:25:18 oh wait Aug 27 21:25:20 that's where we are Aug 27 21:25:24 derp... Aug 27 21:25:25 oO Aug 27 21:25:43 * marcab was thrown off by canadiancow's response... nothing to see here. Aug 27 21:26:18 marcab, I have a LinearLayout with the "android:id" attribute declared, when ever I rotate or activate my keyboard the field becomes blank. Aug 27 21:26:36 the linearlayout becomes blank? Aug 27 21:26:45 ah Aug 27 21:26:53 kyconquers: you're populating it dynamically? Aug 27 21:27:25 marcab, I'm not sure, what would that mean? Aug 27 21:27:33 Yes, to specify I mean things like input widgets will restore their state. Aug 27 21:28:08 kyconquers: Well, populating it statically would be pulling the LinearLayout and its children in from an xml file Aug 27 21:28:08 so a text field will return to the state it was in when first loaded? Aug 27 21:28:14 kyconquers: yes Aug 27 21:28:44 populating it dynamically would be having your Java code insert items into the linearlayout. Aug 27 21:28:57 statically Aug 27 21:29:01 cool Aug 27 21:29:12 that view gets set in onCreate? Aug 27 21:29:25 (that is, the linearlayout and all its children are put in during onCreate?) Aug 27 21:29:31 though dynamically sounds awesome to do. Aug 27 21:29:41 well... Aug 27 21:29:47 not unless you have a reason to Aug 27 21:30:08 yes it is set in onCreate. Aug 27 21:30:12 hrm... Aug 27 21:30:18 not sure why it wouldn't be restoring then. Aug 27 21:32:29 found it. Aug 27 21:33:08 I thought that onRestoreInstanceState would reenter the information when a user navigates away from the app and then back/ Aug 27 21:33:14 SimonVT Aug 27 21:33:30 so I had a setText in it. Aug 27 21:33:47 It is working now. Aug 27 21:33:55 SimonVT: not a question but I wanna tell u something Aug 27 21:33:56 canadiancow: how to join a regular contact with the me contact in ICS from within an app, yes a dev question Aug 27 21:34:09 Hellow fellow devs.. I’m in the process of designing my app’s communication layer and I’m stuck in understanding how to properly handle localservice-to-activity callbacks. Aug 27 21:34:18 I read in numerous places that an broadcast receiver should be registered by the activity to process the callbacks in onResume and unregister in onPause(), but what if an async completion callback fires (e.g service broadcasts an intent) before the activity resumes? I don’t want to miss callbacks. Aug 27 21:36:02 kyconquers: awesome Aug 27 21:36:28 Is it a secret? Aug 27 21:36:36 will the .apk file be redownloaded entirely, when i upgrade the application? Aug 27 21:37:05 SimonVT: lol no, i modified ur calendarview and added events to it :) Aug 27 21:37:14 Nope, just the diff Aug 27 21:37:22 cool :) Aug 27 21:38:00 SimonVT: and directly from my google calendar :) Aug 27 21:40:05 SimonVT: i made it draw the day numbers which contain events in a different color (hardcoded cyan) Aug 27 21:40:09 in my case Aug 27 21:40:40 and ontapped would open a dialog containing event info ^^ Aug 27 21:47:55 I have figured out some other ways. now I just want to pass data from one project to another, do I just include them? Aug 27 21:58:16 Asmooh: interesting (regarding the other channel conversation) Aug 27 21:58:41 Asmooh: I'll confess ignorance -- I haven't used anything in file:///android_asset/ Aug 27 21:58:44 its a html5 app, all the pictures and some files are in assets/www/* but when i try to access them it doesnt work Aug 27 21:59:37 webview.loadDataWithBaseURL ? Aug 27 22:00:04 i use euhm Aug 27 22:00:19 cordova to support Aug 27 22:00:31 * marcab doesn't know Aug 27 22:21:25 ? Aug 27 22:21:49 ! Aug 27 22:22:06 grrrr i hate android Aug 27 22:22:08 :( Aug 27 22:23:22 yes, its look wired and it is evil! Aug 27 22:25:54 Juno ssuuucckkkss Aug 27 22:28:19 never used it. still on 3.8 Aug 27 22:37:53 anyone knows why this doesnt work? Aug 27 22:40:47 "Russian intestines are about five feet longer than those of, say, Italians." :O wat Aug 27 22:41:08 and canadiancow probably has a few extra stomachs too :) Aug 27 22:41:30 Asmooh: do u use WebView.loadDataWithBaseURL? Aug 27 22:42:02 euhm, if i knew how that worked... just tried to export my bb app to android Aug 27 22:42:10 that webview, is that js? Aug 27 22:42:55 its android Aug 27 22:43:12 hm Aug 27 22:43:20 i saw something like Aug 27 22:43:21 http://stackoverflow.com/questions/5320288/displaying-android-asset-files-in-a-webview Aug 27 22:47:38 How do I tell whether getExternalStorageDirectory returns the internal storage or sdcard? Aug 27 22:47:54 Well, it always contains the internal storage, but how do I tell if it has an SD card? Aug 27 22:48:03 And what the directory for that is and if I can use it. Aug 27 23:00:58 g00s wat Aug 27 23:18:07 hi, does anybody know any ways that I can pass data without using intent? Aug 27 23:18:37 Could put it in a common db Aug 27 23:18:44 Could put it in sharedpreferences Aug 27 23:19:14 how can I use shared preferece? Aug 27 23:19:53 You search the dev site for shared preferences, and do what it tells you Aug 27 23:19:57 ALoGeNo: http://lmgtfy.com/?q=android+sharedpreferences&l=1 Aug 27 23:20:01 ah Aug 27 23:20:04 calvinchan: http://lmgtfy.com/?q=android+sharedpreferences&l=1 Aug 27 23:20:31 haha, thanks Aug 27 23:20:40 Is there any way to hide the vertical ellipses menu button on the bottom of the screen in an Action Bar Sherlock implementation if I'm using Theme.Sherlock.ForceOverflow? Aug 27 23:21:21 Don't use forceoverflow Aug 27 23:21:27 set your target sdk to 14+ as well Aug 27 23:21:38 +1 to not using force overflow Aug 27 23:21:45 it'll be going away in future versions :) Aug 27 23:21:59 \o/ Aug 27 23:33:35 Wait, what? So I shouldn't use ForceOverflow? I'm about to release my app, and I'm currently using it to make the experience consistent. Also need the app to work back to API level 8. Aug 27 23:33:53 No other way to just hide the bottom menu button? Aug 27 23:35:56 The overflow button is shown on devices which does not have a menu button Aug 27 23:36:14 Providing there are menu items in the overflow menu Aug 27 23:36:50 And on But since (or well, has anyone used DexGuard? Aug 27 23:44:49 it costs $$$ Aug 27 23:45:31 yea just noticed Aug 27 23:45:36 but it looks good Aug 27 23:46:20 see i wonder about things like that Aug 27 23:46:25 if it was like $25, id probably buy it for perosnal use Aug 27 23:46:27 but its like $300 Aug 27 23:46:49 hopefully the regular proguard doesn't 'stop working' :) Aug 27 23:50:15 lol g00s Aug 27 23:50:29 dexguard looks like it has some nice options, like being specifically for android and stuff Aug 27 23:50:33 and the "encryption" features Aug 27 23:50:37 google should just buy them :P Aug 27 23:51:51 I have a bunch of image views inside a scrollview and I'm trying to display them accordingly to the user's phone size therefore I'm doing weightSum Aug 27 23:52:04 But I want to display them accordingly both verically and horizontally Aug 27 23:52:18 but I don't see how to do it vertically Aug 27 23:53:08 I have it working for horizontally which is : http://pastebin.com/a7easvzL Aug 27 23:53:19 SimonVT: Thanks. Is there no way to say on HC+ devices that the menu button should be hidden? Aug 27 23:53:25 How would I also make it so each collum takes up x amount of percent in my scrollview? Aug 27 23:53:43 Chronax: no Aug 27 23:53:46 Thanks. Aug 27 23:53:52 Why is ForceOverflow going away? Aug 27 23:53:53 I tried adding the weightSum to just the uppder linearlayout and then layout_Weight to the lower ones but number one it didn't work and number two it said I shouldn't nest weights Aug 27 23:54:10 Because, devices with a menu button doesn't have an overflow button Aug 27 23:54:16 T-Dub: eclipse? Aug 27 23:54:22 Yeah Aug 27 23:54:26 Yeah, I ignore the don't nest weights message :/ Aug 27 23:54:36 Oh lol Aug 27 23:54:44 Well it still didn't work reguardless of ignoring the message Aug 27 23:54:46 Just don't nest them too deep. and if you see performance issues doing your layout, you know why Aug 27 23:54:52 ah Aug 27 23:55:03 * marcab isn't sure Aug 27 23:55:10 hmm Aug 27 23:56:03 hey guys, I am loading a HTML file and putting it into a string since I have to dynamically change some values for large or small screens Aug 27 23:56:11 but then its CSS / Images dont load. Aug 27 23:56:16 but if I load the HTML directly it does load… Aug 27 23:56:28 loadDataWithBaseURL Aug 27 23:58:56 Does doing layout_weight="blah" on a LinearLayout do anything? Aug 27 23:59:14 google, please patent a rectangular piece of glass with transparent display so apple can't Aug 27 23:59:25 i call it, the coffee table Aug 28 00:00:08 yeah, but the coffee table has legs Aug 28 00:00:21 thats an accessory Aug 28 00:00:23 think different Aug 28 00:00:37 g00s: a leg is a positive-length not-leg. Aug 28 00:00:47 To set color format I use this command getWindow().setFormat(PixelFormat.RGBA_8888); but how can I determine which format is currently in use? Aug 28 00:00:49 i prefer to hang the coffee table from the ceiling anyhow, yeah Aug 28 00:01:09 that's a different accessory Aug 28 00:06:18 so how can I get pixelformat of a window? Aug 28 00:08:30 http://stackoverflow.com/questions/12151188/how-can-you-use-weightsum-to-both-scale-vertically-and-horizontally-mine-doesn Aug 28 00:17:48 Do notification themes ever change? Aug 28 00:17:57 Like would there ever be black text on a white background? Aug 28 00:21:37 Maybe Aug 28 00:22:04 But if it does, it'll check your targetSdk before using the new style Aug 28 00:23:34 Does anyone know how to scale an image vertically and horizontally? Aug 28 00:43:40 Hi. I have a quick panel installed,and it has green icons is it to hard to change them to orange ? I am good with the Photoshop,so the color change is not a problem,but how to extract the icons ? Aug 28 00:45:01 Also i want to change the color of some other parts,like icons in the statusbar,or the lines in settings,the one between each option. Aug 28 00:48:57 Anyone ? :P Aug 28 00:52:18 If you created the app, you should know how to change it. If you didn't, you're in the wrong channel Aug 28 00:53:37 Anyone know the best scaling for android wallpapers? Aug 28 00:53:47 Yeah. Sounds like you don't have the assets and don't know how to change them even if you did... :/ Aug 28 00:55:08 Emulator/Eclipse question. I need to make sure the Emulator is SENDING messages. How can I view messages sent from the emulator? (Sending messages TO the emulator from DDMS in Eclipse is working perfectly) Aug 28 00:57:20 I'm trying to use RelativeLayout to position a small search button alongside an edit-text. The goal is to make the imagebutton a fixed size, while the edit-text expands to fill the remaining space. I'm not able to coax it. I've put the edit-text as layout_alignParentLeft="true", and layout_width="fill_parent". The imagebutton is layout_toRightOf="@id/the_edittext" and layout_alignParentLeft="true". This makes the imagebutton disappear alt Aug 28 00:58:37 SimonVT: They told me from #android-root to ask here. Aug 28 00:58:47 They were wrong Aug 28 00:58:59 somebody was actually alive in android-root :P ? Aug 28 00:59:14 Ah, i see. Aug 28 00:59:40 So you know how to,but you still won't let me know because i am in the wrong channel. Aug 28 01:00:30 Ok,you have every right to. Thanks . Aug 28 01:05:08 ah... for anyone in the same boat as me -- relativelayout first lays out fixed width positions, so putting the fixed width imagebutton ahead of the edit text, and changing the edittext to be layout_toLeftOf="@id/the_imagebutton" does the trick. Aug 28 01:08:21 Hi all, I am working on a simple torch with onResume() to place it in the last state the user left it. should I open the camera globally so that onResume() or when onCreate() is run and use a new instance of Camera.open for onResume()?? Aug 28 01:10:08 hey Aug 28 01:10:28 using paint.setTextSize(14) gives me different results if i change the size of the view it's on, is that normal? Aug 28 01:16:56 Could someone point me in the right direction to put text below a ToggleButton with the contents of android:textOn and android:textOff? Aug 28 01:28:26 Mechdave, ./ApiDemos/res/layout/switches.xml Aug 28 01:29:10 Mechdave, also - ./SipDemo/res/layout/walkietalkie.xml Aug 28 01:29:28 from android-16 samples Aug 28 01:36:40 Ologn, Thanks :) Aug 28 01:39:03 Ologn, can this be used with relative layout as well? Aug 28 01:40:09 Hi all Aug 28 01:40:53 having some trouble with datepickerdialog spinners - calendar sets to the init date, but spinners are always at epoch Aug 28 01:40:58 anyone else seen this? Aug 28 01:45:57 I'm using a GridView to display a bunch of thumbnails, but after about my 20th image I get out of memory error Aug 28 01:46:06 is there any way to free up more memory? Aug 28 01:46:25 The tumbnails are mega small so I don't see how it's using up much memory Aug 28 01:48:26 T-Dub: are you re-using grid item views? Aug 28 01:48:41 It's my first initial launch of the application Aug 28 01:48:45 Ologn, That is really cool, but I need to write text to the screen below an image ToggleButton which describes the state of the ToggleButton. That is if it is on then On is printed below the ToggleButton Aug 28 01:48:50 therefore i've only called them once wabz Aug 28 01:49:03 are you scrolling through the list though? Aug 28 01:49:19 not yet, there isn't even enough loaded to scroll yet Aug 28 01:49:38 are you sure you're loading in thumbnail size images? Aug 28 01:49:38 that does seem odd t-dub, any idea if the app is being created with a set mem limitation? Aug 28 01:50:07 I'm not sure if I am, I'm copying android's example basically word from word Aug 28 01:50:12 http://developer.android.com/guide/topics/ui/layout/gridview.html Aug 28 01:50:22 only thing that I changed was my class name and the images being loaded Aug 28 01:52:50 wabz has a good point -- how big are the images you are using (in kb or mb)? Aug 28 01:53:25 both Aug 28 01:53:37 I'm currently resizing them all to be around 600width and w\e scaled height that is Aug 28 01:53:44 some were desktop resolutions though Aug 28 01:55:18 ya if the dpi is high these could still be big Aug 28 01:55:43 oh fail Aug 28 01:55:48 I'm sorry for wasting your time Aug 28 01:55:58 it appears I'm not running out of memory completely Aug 28 01:56:02 two things happened Aug 28 01:57:12 lol np Aug 28 01:57:23 one, I only added 13 images apposed to my 40 images I have. So when I only saw some of my images I assumed the rest exceptioned out. And I thought that because of my 4th image. My 4th image was the only one that truely outOfMemoryError exceptioned out and that is because it is to big. At 3000 x 2233 resolution it auto exceptions out aparently lol Aug 28 01:58:00 So... anyone seen the problem with datepickerdialog spinners only showing initial date of jan 1 1970 (epoch)? Calendar shows my initialized date just fine, but spinners never change Aug 28 02:02:05 How can I make my thumbnail image bigger in a GridView? Aug 28 02:02:35 nobody? or is this a well known bug with datepickerdialog? Aug 28 02:03:06 No idea jenvander, never touched that before and nvm I figured it out Aug 28 02:04:35 I really think it is a bug in android, it is as though the spinners never receive the init() Aug 28 02:04:56 too bad really, for my app the spinners would have been quite ideal, calendar will be much clunkier Aug 28 02:05:28 not sure how to file a bug with android, still new to the android dev environment Aug 28 02:05:43 b.android.com Aug 28 02:05:52 then wait 2 years for it to trickle down to devices ;/ Aug 28 02:06:36 heh, thanks dragorn Aug 28 02:06:49 sounds about right :) Aug 28 02:08:19 It'll hit google devices fairly quickly but don't hold your breath on other vendors Aug 28 02:10:27 wonder if google will start making their devices with motorola now that they own them... or if they only just bought them for the plethora of patents Aug 28 02:13:25 Anyone familiar with GridView? Aug 28 02:14:15 jenvander: afaik all the public statements have been that moto is an independent company and won't be making google nexus-style devices. It was a patent thing. Aug 28 02:14:23 familliar enough to not use it =) Aug 28 02:15:00 they already flexed their patent muscles after the purchase Aug 28 02:15:10 suing apple to prevent them from being able to sell any smart device in the us Aug 28 02:15:21 that would be seriously awesome if they succeed Aug 28 02:15:28 beat apple at their own fucked up game Aug 28 02:15:46 not done much with gridview t-dub, what's up? Aug 28 02:16:27 On my onClickListener I want to pass the image the was clicked to another activity Aug 28 02:16:36 so how do I get the int resource of what was clicked Aug 28 02:16:45 I was thinking v.getBackground() Aug 28 02:16:49 but that's a drawable not an int Aug 28 02:17:05 implement public abstract Object getItem (int position) Aug 28 02:17:22 http://pastebin.com/Kcu69U95 Aug 28 02:17:29 also I think you want onItemClickLIstener Aug 28 02:17:44 oh.. youdid Aug 28 02:17:45 oh ya my bad it is item not click Aug 28 02:17:53 so what exactly does the position mean? Aug 28 02:17:54 ya onItemClickListener Aug 28 02:18:00 it's just returning 0 1 2 3 etc Aug 28 02:18:23 I mean I could set up a switch case and hard code if position = 0 do R.drawable.blah Aug 28 02:18:31 but that seems inefficient Aug 28 02:19:08 you copied that example right? Your adapter has private Integer[] mThumbIds Aug 28 02:19:32 so implement public abstract Object getItem (int position) in your adapter, and use that from the onItemClickListener Aug 28 02:20:16 lunch, back later Aug 28 02:20:23 you can override getItem and getItemId Aug 28 02:20:35 oh yeah Aug 28 02:20:42 i can corespond it to the already set up array Aug 28 02:20:44 legitttt Aug 28 02:20:49 lets see how I do, thanks Aug 28 02:20:56 or implement, not override I mean Aug 28 02:23:29 interesting, datepicker does not have this bug, only datepickerdialog Aug 28 02:24:28 well, I should say, datepicker as created by an xml layout entry -- didn't know if you created datepicker in xml it automatically set to current date Aug 28 02:26:35 awww Aug 28 02:26:48 I was unsuccessful Aug 28 02:27:06 Wait Aug 28 02:27:24 I'm not sure but you may need to do your own mapping with a private data structure to that class Aug 28 02:27:38 I got it Aug 28 02:27:40 map positions to the objects Aug 28 02:27:45 I had to change the bundle string Aug 28 02:27:52 copy and pasted from a different class, forgot to update Aug 28 02:28:05 I just created a new method in my imageadapter class that returned the array Aug 28 02:28:15 public static int getImageResourceId(int indexPosition){ Aug 28 02:28:15 return mThumbIds[indexPosition]; Aug 28 02:28:15 } Aug 28 02:28:30 in getView Aug 28 02:28:36 ah Aug 28 02:29:02 yep that's what I was thinking, cool now I hope I'll remember when I'm trying it heh Aug 28 02:29:15 super simple Aug 28 02:29:22 Lol Aug 28 02:32:45 Hello, I have a question about setting up the google campaign tracking. I followed the guide https://developers.google.com/analytics/devguides/collection/android/devguide#google-play-tracking. But I wonder where can I see the information (who is the referral of my app)? Aug 28 02:32:50 in the GA? Aug 28 02:41:10 using a different irc client -- web based one was terrible Aug 28 02:41:26 AndChat seems pretty nice Aug 28 02:49:11 anybody has experience in google campaign tracking? Aug 28 02:50:17 not me edwinkcw, sorry Aug 28 02:53:24 In main.xml can I have more than one TextView? Aug 28 02:53:50 Mechdave: sure Aug 28 02:55:05 Do you know of an example you could point me towards please? Aug 28 02:55:22 Mechdave: have you worked through the getting started stuff on d.android.com? Aug 28 02:56:40 Yeah I have, and also searched quite a bit but unless I have missed it... :( Aug 28 02:58:09 down at the bottom of http://developer.android.com/training/basics/firstapp/building-ui.html **** ENDING LOGGING AT Tue Aug 28 03:00:03 2012