**** BEGIN LOGGING AT Thu Jul 26 02:59:58 2012 Jul 26 03:04:59 ie9 ads are proof ms has more money than they know what to do with Jul 26 03:13:53 http://mattgemmell.com/2012/07/23/closed-for-business/ Jul 26 03:15:30 reading an article like that - which can be summed up as "because you can sideload apps on Android, it's a haven for piracy" - gives me a similar feeling as reading US gun-control discussions (not something to discuss here) Jul 26 03:16:20 it's just such a different worldview that there is an essential disconnect at the language level, and lower - words are used to mean different things, such that you can't actually have a discussions Jul 26 03:22:22 heh Jul 26 03:22:30 OH NO YOU CAN DOWNLOAD SOFTWARE FROM ANYWHERE? Jul 26 03:22:36 so... then windows must suck too Jul 26 03:22:43 i guess no one will develop paid software for it Jul 26 03:29:29 Is there a repository in the sdk or online for basic icons to do such tasks as share / copy to clipboard / settings etc? Jul 26 03:29:58 yes Jul 26 03:30:10 go into yoru sdk directory Jul 26 03:30:13 then platforms Jul 26 03:30:20 then whichever one you want styled icons for Jul 26 03:30:26 so, for example, android-16 for JB style Jul 26 03:30:32 then data, res Jul 26 03:30:43 and you have all your drawable-whatever directories Jul 26 03:30:53 also http://developer.android.com/design/downloads/index.html Jul 26 03:31:24 thanks both of you, on the note of data/res why are some drawables that are in h/m/xh dpi non existant in ldpi? Jul 26 03:31:38 cause ldpi is balls Jul 26 03:31:44 i dont include any ldpi assets in my apps Jul 26 03:32:02 ryanm that page only has holo-styled stuff though i think Jul 26 03:32:12 so if you want to look consistent on 2.x as well, you might want other assets Jul 26 03:32:29 canadiancow: I think you're right. I was merely offering it as an additional source of assets :-) Jul 26 03:32:37 is it a bad design idea just to do all holo for >= 2.1? Jul 26 03:33:29 canadiancow: I've never once had a user make a point to tell me they were disappointed I used Holo in 2.x Jul 26 03:33:33 i just made my own action bar for anything < 3.0 and use all the drawables from > 3.0 Jul 26 03:33:55 well EddieRingle for like a notification icon or something Jul 26 03:33:59 where you NEED a different style Jul 26 03:34:10 true Jul 26 03:34:39 awesome they even have an icon for tagging Jul 26 03:40:17 Leeds: that dude is kinda contradicting himself in this and in his piracy article Jul 26 03:41:20 ensi: you say that like you expect bloggers to be consistent :) Jul 26 03:41:55 Leeds: heh, i dont really read blogs actively, regardless the dude has a point in the piracy thing Jul 26 04:00:35 I want to draw something on the screen, then save what has been drawn as image (bitmap), using surfaceview for the drawing, but cannot save Jul 26 04:01:26 hoangtran: so what are you really asking?? Jul 26 04:06:01 My question: which class should I use for such task? Canvas, a custom View, or something? Jul 26 04:06:36 I've found this, as a proof that surface view should not be used in this case: http://goo.gl/gT0ZZ Jul 26 04:16:36 hoangtran: use SurvaceView Jul 26 04:17:22 and how about the saving-to-file requirement? Jul 26 04:17:36 what about it?? Jul 26 04:17:56 * DataTracer waves Jul 26 04:18:23 if you are trying to save what is on has been drawn on the screen then you a canvas. You can then later get a bitmap from that. Jul 26 04:19:49 <--- waves back to DataTracer Jul 26 04:20:04 Hi dlaroche :-) Jul 26 04:20:11 hey Jul 26 04:20:23 Anyone familiar with wifi direct? Just starting to look into it. Jul 26 04:20:40 DataTracer: I've seen a failed demo of it :) Jul 26 04:20:51 I'm looking over the sample code right now Jul 26 04:21:00 I haven't worked with it yet. Don't have a newer phone yet :) Jul 26 04:21:16 Trying to figure how a simple way to just pass strings from one handset/tablet to another Jul 26 04:21:22 Looks interesting though. Had a few ideas spurred off the demo Jul 26 04:21:41 what is your version requirements? Jul 26 04:22:09 Probably have to use 4.0. Not sure when WiFi direct started Jul 26 04:22:44 yeah it started at 4.0, what about bluethooth? Jul 26 04:23:45 not an option? Jul 26 04:23:59 ^DataTracer Jul 26 04:24:09 Possibly Jul 26 04:24:52 I'm just starting to work with anything remote. Proably should do some reading before I attempt, lol Jul 26 04:24:59 for anyone who cares, apparently the N7 16GB is in stock at walmart.com :) Jul 26 04:25:21 I Jul 26 04:25:39 m guessing either Bluetooth or WiFi would work, but WiFi might give better range Jul 26 04:26:39 how far do you need? bluetooth isn't that bad Jul 26 04:26:44 Yeah you would have better range with wifi, however, I'm not sure you want to limit your app just to 4.0+ just yet. It will be a while before the device usage picks up for them versions. Jul 26 04:27:27 and bluetooth, depending on the device hardware, has pretty good range too Jul 26 04:27:48 Not too far, like maybe 100 feet Jul 26 04:28:05 Just trying to send a message across a large room Jul 26 04:28:23 100 feet *has to* be wifi Jul 26 04:28:41 if you want that sort of range reliably, you might even look into pushing through GCM or something Jul 26 04:28:50 Leeds: I figured. I'm not worried about mass adoption just yet Jul 26 04:28:56 if the devices are data enabled then you could use Kyros library to send serialized objects or strings to a server that would then relay it. Jul 26 04:29:16 It also needs to be able to work where no internet connection is avail Jul 26 04:29:39 Could possibly used in open rural areas where no cell coverage exists Jul 26 04:29:41 then you are only limited to Wifi Direct or bluetooth Jul 26 04:30:13 Not sure how far wifi would work with no obstructions in open air Jul 26 04:30:22 in theory, miles :) Jul 26 04:30:26 it will definetly cover a room Jul 26 04:30:28 In theory Jul 26 04:30:38 and outside the room :) Jul 26 04:31:05 Well, maybe I could check for what's avail and use bluetooth for a start, and if range is needed, roll over to wifi direct? Jul 26 04:31:11 I'm not sure if wifi direct has the same range as wifi from an AP Jul 26 04:31:13 it sounds like wifi direct is what you are needing but remember the user base for 4.0+ Jul 26 04:31:23 I'm fine with a small user base Jul 26 04:31:47 depending on hardware you can expect the same range as a laptop Jul 26 04:32:07 So who wants to write this thing for me, lol? Learning all this code hurts my brain :- Jul 26 04:32:10 :-/ Jul 26 04:32:22 whos paying??? :) Jul 26 04:32:31 How much would you need? Jul 26 04:32:58 I would if I could. I don't have any 4.0+ devices yet Jul 26 04:33:00 sorry Jul 26 04:33:03 or I would Jul 26 04:33:27 I looked at freelancer.com today, but I don't think that's the way to go. Was going to do it myself, but it's taking me forever to get up to speed/ Jul 26 04:34:14 dlaroche: Where are you located? Jul 26 04:34:54 Got my start in C & Perl. Java/android is a whole different animal. Jul 26 04:35:09 US Jul 26 04:35:17 I'm in Los Angeles Jul 26 04:35:49 South Dakota Jul 26 04:35:56 bah, westerners Jul 26 04:36:05 bah, Americans Jul 26 04:36:09 I'm not FROM L.A., I just live here Jul 26 04:36:11 damn it Leeds don't start in now Jul 26 04:36:17 you were all quite :) Jul 26 04:36:25 From Georgia, bah, Southerners :-P Jul 26 04:36:29 if you're looking to learn more about Java, Effective Java is an excellent book Jul 26 04:36:31 dlaroche: I'm planning to take this contract from you :P Jul 26 04:36:54 though it's more of a best-practices book than a learn-Java book. Jul 26 04:36:55 take it, I don't have the devices or I would have jumped on it Jul 26 04:37:50 I've been reading "Learn Java for Android Development" from Apress and "Beginning Android 4 Application Development" from Wrox Jul 26 04:38:37 I actually do have a couple of wifi direct devices here... as it happens Jul 26 04:39:04 Leeds: figured you would. Help the man out then. Jul 26 04:39:05 Don't jump up and down too much guys, I'm just a broke tinkerer, but I wouldn't mind shelling out a little bit of cash for something simple that got the job done Jul 26 04:39:19 hmm... with another one on the way :) Jul 26 04:39:51 Leeds: sacrifices bro Jul 26 04:39:57 I have a 2.2 handset and a Galaxy S2/T-Mobile. Girlfriend has the S3 Jul 26 04:40:04 DataTracer: so what do you actually want to do, anyway? Jul 26 04:40:25 DataTracer: the S3 can be rooted, and flashed a custom rom that is 4.0+ Jul 26 04:40:25 I might be willing to have a quick fiddle, just to see how wifi direct actually works... Jul 26 04:40:34 erm... the S3 already runs 4.0 Jul 26 04:40:38 Establish a connection between 2 handsets and send messages between them, sort of like a chat room Jul 26 04:40:46 yeah I want to play with it also. I have a few ideas for it. Jul 26 04:41:00 I stand corrected then Jul 26 04:41:09 Don't go stealing my idea and making a million dollars, lol :-P Jul 26 04:41:22 your idea of... a simple 1-to-1 wifi direct chat app? Jul 26 04:41:28 I'm sure it's been thought of a million times before though Jul 26 04:41:38 Leeds: exactly Jul 26 04:41:50 Yeah. If you check google play good you might find something....lol Jul 26 04:42:02 Maybe, but where's the fun in that? :-) Jul 26 04:42:10 damn market is flooded with apps now Jul 26 04:42:37 yeah, too many apps! let's all get wp7 phones instead, then we won't have the burden of choices! Jul 26 04:42:45 hah hah Jul 26 04:42:52 DataTracer: so you get excitement out of paying someone to make something for you??? I'm lost now Jul 26 04:42:59 Nokia N808! 41MP camera, woo hoo! Jul 26 04:43:09 thinking about going iOS Jul 26 04:43:17 got a few devices to test with Jul 26 04:43:30 just dread the objective-c syntax Jul 26 04:43:32 dlaroche: Well, I'm assuming the source would come with it. I would certainly learn from studying it :-) Jul 26 04:43:40 hmm... actually, I thought the S2 had wifi direct anyway, although before Android had official APIs Jul 26 04:43:52 I have a WP7 phone. I just don't have a cell plan for it :-) Jul 26 04:43:58 My S2 with 4.0.3 has it Jul 26 04:44:08 with Wifi Direct, I wonder if there is any Intents for it???? Jul 26 04:44:47 http://developer.android.com/guide/topics/connectivity/wifip2p.html is the docs home for wifi direct Jul 26 04:44:52 they just call it wifi p2p Jul 26 04:45:05 Yeah, I was already reading that :-) Jul 26 04:45:55 from reading the docs it seems pretty straight forward Jul 26 04:46:14 it even has discovery Jul 26 04:46:49 there is even a section for sending data, your "bitmap" Jul 26 04:46:57 Yeah, I may just dive into it tonight. Thanks for chatting guys. I'll be back to let ya know how it goes :-) Jul 26 04:47:12 yeah that is interesting stuff Jul 26 04:47:22 enjoy Jul 26 04:47:33 * DataTracer waves bye :-) Jul 26 04:47:47 <---- Gives the finger Jul 26 04:48:38 if i had the devices, i could have knocked that out in an hour for him Jul 26 05:36:27 so try as i might, i'm unable to see my 4.03 device under ddms. Jul 26 05:36:37 it used to show up, but it's suddenly ... not there anymore! Jul 26 05:37:06 what OS, bjorkintosh ? Jul 26 05:37:14 ics Jul 26 05:37:20 on ubuntu 12.04 Jul 26 05:37:21 nono, for the host Jul 26 05:37:23 hmm Jul 26 05:37:31 it showed up at 5pm. Jul 26 05:37:45 or some such time. and then all of a sudden, it was gone. Jul 26 05:38:08 does it show up when you do "adb devices"? Jul 26 05:38:53 does not. Jul 26 05:39:06 driver issue Jul 26 05:39:51 how dlaroche? it worked for approximately a minute. Jul 26 05:40:00 and then as soon as i breathed again, it went away. Jul 26 05:40:08 what would i need to d/l? Jul 26 05:40:12 then check your cord/cable Jul 26 05:40:17 just did. Jul 26 05:40:35 the device knows it has been plugged in. Jul 26 05:40:45 it shows the little droid and the usb symbol. Jul 26 05:40:47 that's why im saying driver Jul 26 05:40:57 so i asked, what would i need to d/l? Jul 26 05:40:59 what OS? Jul 26 05:41:04 ubuntu 12.04 Jul 26 05:41:13 don't work with it Jul 26 05:41:20 what doesn't work with it? Jul 26 05:41:30 I don't work with Ubuntu Jul 26 05:41:43 windows? Jul 26 05:42:04 i though you were on windows, and that lead me to driver issues Jul 26 05:42:09 ^thought Jul 26 05:42:10 right. no. Jul 26 05:42:56 what a device? Jul 26 05:43:22 it used to be a nookcolor. Jul 26 05:43:29 [30118.304979] usb 1-3: USB disconnect, device number 10 Jul 26 05:43:29 [30147.584065] usb 1-1: new high-speed USB device number 11 using ehci_hcd Jul 26 05:43:39 see, that was me unplugging and plugging it back in. Jul 26 05:43:58 so ubuntu knows its there, the nook knows its been plugged in, but ddms does not? Jul 26 05:44:24 try to use usb_modeswitch Jul 26 05:44:31 just seeing the device doesn't mean Ubuntu knows what to do with it Jul 26 05:44:39 i'm using this version of java Java(TM) SE Runtime Environment (build 1.7.0_05-b05) if it matters. Jul 26 05:45:40 Ubububu, how precisely? Jul 26 05:47:04 i use this build: http://aur.archlinux.org/packages.php?ID=50404 Jul 26 05:47:22 for my huawei phone Jul 26 05:50:20 what did you do with usb_modeswitch? Jul 26 05:57:07 hell, it even shows up under devices: P: Vendor=18d1 ProdID=2d03 Rev=02.16, S: Manufacturer=bn,S: Product=NookColor Jul 26 06:01:52 i wonder. Jul 26 06:02:30 could it be that it is seeing it only as a media device? Jul 26 06:04:27 and that's what it was. Jul 26 06:05:39 aha! we're in business again. Jul 26 06:07:40 the stupid thing wasn't supposed to be on MTP! Jul 26 06:07:45 live and learn. Jul 26 06:21:15 Hah, great when you find the solution to your problem while you are still connectind to #android-dev . Don't mind me, please continue whatever you were doing. ^^ Jul 26 06:22:59 Hello guys Jul 26 06:23:55 loading animation in Gmail App in HOLO has looks like it has two spinners rotating in two different directions ? Jul 26 06:24:02 is that how it's done? Jul 26 06:24:58 i'm all alone here? Jul 26 06:25:02 no Jul 26 06:25:04 what's up Jul 26 06:25:46 I am just trying to figure out how HOLO spinner's are done? Spinner as in the loading animation. They look like two image one on top of another and both being rotated in two different directions? Jul 26 06:26:04 HOLO? Jul 26 06:26:12 holo theme Jul 26 06:26:15 oh Jul 26 06:26:17 couldn't tell ya Jul 26 06:26:22 I'm just a programmer Jul 26 06:26:28 like in GMail's theme. Jul 26 06:26:34 i mean Gmail's app Jul 26 06:26:55 its built in Jul 26 06:27:07 @saltmiser ok since you're a programmer, how will you show a spin-wheel loading animation? Jul 26 06:27:29 not a progress dialog.. just a spinner rotating silently at a corner of screen. Jul 26 06:28:06 sudarshanpbhat:                 setSupportProgressBarIndeterminateVisibility(true); Jul 26 06:28:23 remove the support if you arent using the support library Jul 26 06:29:04 f2prateek: And how can i decide the location of this progress indicator? Jul 26 06:30:30 sudarshanpbhat: what platform am I showing a spin-wheel loading animation on? Jul 26 06:30:37 You don't. It's default UI. Jul 26 06:30:55 (unless you want to use it outside of the actionbar, then you can place it wherever you want) Jul 26 06:31:38 (Or if you want to irritate your user. Then you can put the spin-wheel in a custom view and put that one in the ActionBar wherever you want) Jul 26 06:33:36 ok cool. what I'm doing right now is a relative layout with two imageviews overlapping one on top of another. When I've to make it rotate i start a rotate animation on these views. One of the view will be rotated clockwise and another anti-clock. Jul 26 06:34:08 I have this problem that my app used to have a hardware button menu that had different things enabled when you opened it depending on things that could change any moment. When I converted it to ActionBar(Sherlock) I now have the Problem that the menu gets inflated on activity start. What's the best way to have different things enabled in the overflow when you open it? Jul 26 06:34:12 where does the actionbar come in that? Jul 26 06:34:36 sudarshanpbhat why are you doing this? what is your goal? Jul 26 06:34:52 UnbertKant: look into onPrepareOptinsMenu? Jul 26 06:35:03 *onPrepareOptionsMenu Jul 26 06:35:22 it is like a search app. I search something. And by the time everything's pulled from server, I have to show a small rotating wheel animation inside the EditText field itself. Jul 26 06:35:25 I thought when you use actionbar, this only gets called once, since the menu is visible all the time? Jul 26 06:35:47 sudarshanpbhat what's wrong with using the default android loading indicator? Jul 26 06:36:27 maybe i'm stubborn and I want to have this wheel exactly where I want it... Jul 26 06:36:37 Also, if you really have to make a custom one: Android is open source, you can check it out from github, copy the loading indicator and customize it to your needs. That would be simpler than starting from scratch. Jul 26 06:36:38 Sorry if that sounded rude :P but my boss wants it that way :) Jul 26 06:37:29 UnbertKant: maybe try invalidating the actionbar? Jul 26 06:37:38 and then do the loading Jul 26 06:38:08 Ok I will check it out. Jul 26 06:40:46 UnbertKant: i think that will work, call invalidate the actionbar menu, so it gives a call to onPrepareOptionsMenu/onCreateOptionsMenu so you can change it Jul 26 06:49:50 UnbertKant, yes it was getting quite annoying. Jul 26 06:50:17 i'm currently trying to setup intellijIdea to use instead of eclipse. Jul 26 07:01:02 bjorkintosh: i tried your way, but I switch back to eclipse Jul 26 07:02:29 edwinkcw, why's that? Jul 26 07:07:17 anyone ever had a similar problem? once in a while when im compiling my application on eclipse, i notice the filesize has dropped by 30-40kb and the application will crash on startup, failing to launch some class Jul 26 07:07:28 rebooting eclipse and compiling again fixes this Jul 26 07:25:58 hi guys, I'm using "ant install" to pack a project to an apk file, but i always get the error: "ant\build.xml:1261: No message" , does anyone has experience dealing with that? Jul 26 07:26:19 what's line 1261 Jul 26 07:29:02 Anyone here know about display mirroring over wifi? Jul 26 07:40:15 Where should I look to understand Dialogs styled with Actionbarsherlock? One of the examples is a holo-looking dialog regardless of android version but looking at the example package source doesn't really give me an idea of how to use it. Jul 26 07:40:26 Google either has little to tell me or i'm searching about it wrong. Jul 26 07:40:28 :/ Jul 26 08:12:39 Is anyone good with deciphering logcats? Jul 26 08:12:59 hello, anyone aware of an app that posts annoying ads in the notification bar - i need a screenshot of such a thing :) Jul 26 08:13:56 Pinas: http://www.airpush.com/ Jul 26 08:14:27 I have a test build of 4.1 JB for the Motorola Photon 4g that I need someone to check out my logcat. I get stuck on boot. Jul 26 08:14:33 thx appell Jul 26 08:23:22 appell sorry if I ask again. Do you by case even know an app that uses this airpush stuff ? I just need a screenshot from my phone when this is used, so i don't really want to code an app myself :) Jul 26 08:28:49 Pinas: droid-blog have a seri of posts about ads income on android, you may find some from these posts, http://goo.gl/bW96v Jul 26 08:30:28 Hello everyone, have anyone tried to make a customNavigationLayout in honeycomb and used nine patch images as background to a button? for me it is not working. it get invisible Jul 26 08:45:06 Hey guys, I've tested my app on 200 devices and for about 5 or so,one imageview is always blank. The devices are different types, what's the general approach to take for something like this? Jul 26 08:45:17 all different types* Jul 26 08:45:30 you have 200 devices? Jul 26 08:45:33 you must be rich Jul 26 08:45:57 www.appthwack.com Jul 26 08:46:03 far from rich ;) Jul 26 09:03:17 why doesn't nine patch images works in actionbar on honeycomb?! Jul 26 09:06:34 Hey guys, I've tested my app on 200 devices and for about 5 or so,one imageview is always blank. The devices are all different types, what's the general approach to take for something like this? Jul 26 09:07:32 you said that Jul 26 09:11:51 i wonder: does android maybe have some utility classes to make reading from input streams into strings more comfy? Jul 26 09:12:22 something like String foo = readTheWholeDamnThingYesIHaveEnoughMemoryThankYou(inputStream); Jul 26 09:17:38 @Snuffel people come and go, no need to be rude Jul 26 09:17:46 tapas: I dont think there's any method like included Jul 26 09:18:13 *like that Jul 26 09:35:26 piraya: apache commons has one though :D Jul 26 09:35:59 Hi. Is it possible to change the textDirection of an EditText in XML? I wasn't able to find anything, and android:textdirection="rtl" produces an error in the XML Document Jul 26 09:44:42 I made a perl script to show the commits between two head (for example development and releace branch) for an android-tree, given a manifest and the two heads to compare, anyone interested in such a tool ? Jul 26 09:56:18 i was just surprised to find out that on the samsung galaxy s2 the cache directory for an app doesn't get deleted when the app gets uninstalled Jul 26 10:08:31 ` Jul 26 10:12:38 hello Jul 26 10:12:59 ladies and gents Jul 26 10:13:02 i'm using android 2.3.3, is there a way for my device to always search for open wifi networks and then try connecting to them? Jul 26 10:13:23 anyone here using jmonkeyengine for android game dev? Jul 26 10:24:11 hi, does anyone know what the default kernel config is called in the Galaxy S3 kernel sources? Jul 26 10:26:59 does actionbar sherlock support 1.6? Jul 26 10:27:02 (api lvl 4) Jul 26 10:29:01 obviously not. Jul 26 10:29:57 why are you supporting 1.6 Jul 26 10:32:05 spobat: http://jakewharton.com/actionbarsherlock-a-love-story-part-1/ Jul 26 10:32:24 ixc just found the same :P Jul 26 10:32:31 thanks Jul 26 10:32:39 supporting 1.6 is like supporting i.e. 4 Jul 26 10:32:44 IE 4 Jul 26 10:33:17 hm.. Jul 26 10:33:22 1.6 has 0.4 % market share Jul 26 10:33:29 probably not neccessary Jul 26 10:33:35 neccesary Jul 26 10:33:43 2.2 minimum i personally support Jul 26 10:33:44 necessary Jul 26 10:33:51 once that's down to 5%, ill move to 2.3 Jul 26 10:33:59 its currently at ~13% Jul 26 10:34:10 we (need) support from api7 :( Jul 26 10:34:19 for what reason Jul 26 10:34:34 office rules Jul 26 10:34:36 api7 is bad Jul 26 10:34:46 theres such a gap between 7 and 8 Jul 26 10:34:50 yes Jul 26 10:34:59 which is why i dumped 7 and went to8 Jul 26 10:36:29 Hello guys, can anyone help me with my SIP API problem? Whenever I try to register a SipProfile, it fails with the error message "0" or "registration timed out". Here are the details: http://stackoverflow.com/questions/11659834/sip-registration-failure Jul 26 10:49:50 Hello all. Anyone know any way I can install Clockworkmod recovery? I tried with app "Rom Manager" but didn't worked. (vodafone 858) (vodafone smart) (huawei u8160) Jul 26 10:50:16 Ygr1kas: see topic please Jul 26 10:50:39 Sorry. Jul 26 10:51:03 #android-root Jul 26 10:51:40 Ya, asked there already :D Jul 26 10:51:51 so? Jul 26 10:52:41 Nothing :D Jul 26 10:55:37 bummer Jul 26 11:12:07 morning is there an easy way to switch between repo branches ? Jul 26 11:12:12 e.g. (ics and jellybean) Jul 26 11:20:34 d1b: you mean the source code of android? Jul 26 11:20:49 yep Jul 26 11:20:55 apparently i can 'repo init' again? or something Jul 26 11:22:30 d1b: did you try git branch ? Jul 26 11:22:36 edwinkcw: erh Jul 26 11:22:36 or repo branches Jul 26 11:22:42 repo branches returns nothing Jul 26 11:22:50 http://s.android.com/source/version-control.html Jul 26 11:22:51 id need to do a forall Jul 26 11:23:43 edwinkcw: that document is of no help to me afaik Jul 26 11:32:14 @rockupied: http://www.youtube.com/watch?v=tcOC_Hd1RSo#t=1m30s Jul 26 11:48:33 which activity's event will be called if a dialog is closed in front of it? Jul 26 11:48:44 onResume? Jul 26 11:50:12 It seems not to get called, though :/ Jul 26 11:53:33 spobat: none, I think, but you can use an onDismissListener Jul 26 11:53:55 HDroid yep, I also eventually decided to do so :) Jul 26 11:54:07 (/ onclicklistener) Jul 26 11:57:27 Hey guys, I've tested my app on 50+ devices and for about 5 or so,one imageview is always blank. The devices are all different types, what's the general approach to take for something like this? Jul 26 11:58:33 Guys, I have an activity stact A->B->C->D Jul 26 11:58:39 when I do a new intent for B Jul 26 11:58:41 Well, what _do_ they have in common? Jul 26 11:58:46 it creates a new activity Jul 26 11:58:55 Not the best situation to be in, though :o Jul 26 11:59:05 how do I make it resume B from the existing task Jul 26 11:59:23 Nothing in common spec-wise really! 3 of them are nexus devices though... Jul 26 12:07:50 I'm finishing up my soundboard, 9 imagebuttons that play 9 different sounds. I use MediaPlayer to play them, because I need the setOnCompletionListener. In the activity (code:https://gist.github.com/3181675) I can add up to 7 setOnCompletionListeners, and everything works fine. If I try to set up button 8 & 9, I keep getting a fatal exception ( NullPointerException): https://gist.github.com/3181676.. Jul 26 12:08:09 Why is this, and what can I do to fix this? Jul 26 12:08:43 what's MainActivity.java:231 Jul 26 12:10:06 snuffel: mp8.setOnCompletionListener(new OnCompletionListener() { Jul 26 12:10:24 so mp8 is null Jul 26 12:11:11 good thing they invented debuggers! Jul 26 12:11:19 I declare mp8 on line 41: final MediaPlayer mp8 = MediaPlayer.create(this, R.raw.snap); Jul 26 12:11:37 the same way as I do the rest.. I checked different samples, that will load on earlier buttons Jul 26 12:11:58 it returns null in this case Jul 26 12:12:15 yes. but why? Jul 26 12:12:34 is there a max amount of MediaPlayer objects I can set? Jul 26 12:12:36 couldn't tell ya Jul 26 12:13:20 Also, mp8 is used in line 223 for the first time, without the null exception Jul 26 12:13:53 then mp8 is not null? Jul 26 12:14:22 that line isn't executed Jul 26 12:14:30 it's on anoutchlistener Jul 26 12:14:42 an ontouchlistener Jul 26 12:15:30 ahh ok, yeah it's not being called in onCreate, so line 231 is mp8's first instance.. Jul 26 12:15:51 the docs do say this: "If not released, too many MediaPlayer instances will result in an exception." Jul 26 12:15:52 hi, i'm trying to dump a yaffs2 android and then to mount this yaffs2 image in linux (debian squeeze). is it a chan where i can ask for some questions ? Jul 26 12:16:09 for some reason, it doesn't give a number Jul 26 12:16:57 Try checking if mp8 is null if you comment out the other mediaplayers Jul 26 12:17:03 Then you'll know if it's cus of too many Jul 26 12:18:09 i don't know jack about multi-media, but the idea of creating a media player for every sound file seems very bizarre Jul 26 12:18:10 yeah, it works without all the others.. Jul 26 12:18:29 There you go, don't create so many Jul 26 12:18:43 wong: I started with a soundpool, but I needed the setOnCompletionListener Jul 26 12:19:10 Simon: Less sounds all together? Or do I have to split it up somehow? Jul 26 12:19:46 I don't know Jul 26 12:19:54 Like wongk, I know nothing about this Jul 26 12:20:07 we're useless :P Jul 26 12:20:13 But creating N mediaplayers for N sounds seems wrong Jul 26 12:20:16 hos is the proper way of updating a notification in APi 16? Jul 26 12:20:34 And apparently it is :p Jul 26 12:21:43 jakob|: you pass a tag and an id when you notify Jul 26 12:22:03 "You can prepare Mediaplayer asynchronously and store them in a collection." Jul 26 12:22:16 :( There goes my afternoon :P Jul 26 12:23:23 wongk: yeah, but am I supposed to create a new builder each time i want to update the progressbar? Jul 26 12:23:51 anyone kenn tell me what zoneid=6462 means ??? Appears in the network traffic of an app :) Jul 26 12:24:03 hmmm, seems like that'd be a special case, but i've never messed with a progress bar in a notification Jul 26 12:25:05 jakob|: http://united-coders.com/nico-heid/show-progressbar-in-notification-area-like-google-does-when-downloading-from-android/ Jul 26 12:27:02 wongk: yeapp, and the jelly bean has an API for progressbar in the notificaton Jul 26 12:27:21 yes, JB has significantly expanded notifications Jul 26 12:27:40 oh, you are targetting JB Jul 26 12:27:55 i am not longer useful to you :P Jul 26 12:28:52 is there a non-blocking version of GCMRegistrar.getRegistrationId or should i just use a task for that bad boy ? Jul 26 12:32:49 hello Jul 26 12:33:03 ahh yes, i found how i can prepare and prepare async files for mediaplayer, so you'll only need 1 mediaplyer Jul 26 12:33:14 and 1 setOnCompletionListener.. Jul 26 12:33:15 #winning Jul 26 12:33:36 anybody know how to implement groupchat in android application? Jul 26 12:34:20 chat server? online forum? Jul 26 12:37:48 (how) can I have table cells fill the available space of the table? Jul 26 12:38:06 wongk: its for me? Jul 26 12:38:26 jagruti_: it is Jul 26 12:39:21 in my application i have use the smack api and i can do the one to one user message but now i want to create the group and then send message to all Jul 26 12:44:11 wongk: r u there? Jul 26 12:44:18 i am Jul 26 12:44:51 can you help me as i have explain my requirement? Jul 26 12:45:16 the only thing i can offer you is what i've said before Jul 26 12:45:32 sorry? Jul 26 12:45:54 i have nothing new to contribute to the conversation Jul 26 12:46:25 but what you mean by chat server? online forum? Jul 26 12:46:49 those are technologies that can be used to provide a group chat in an app Jul 26 12:47:04 if I have a listView where each row contains an image that I'm loading over the internet. How do I best handle this, to only load the ones that are currently shown (and if I scroll very swiftly, *not* keep loading old images) Jul 26 12:48:20 ecraven: before set adaptor in listview clear the adaptor and then setadaptor in listview Jul 26 12:48:28 ecraven: the first part is fairly easy, the second part more difficult Jul 26 12:48:50 wongk: exactly my problem :) i've solved the first, but if i scroll fast, i can see old images being loaded, then overwritten by new ones Jul 26 12:48:55 android only inflates view for items that are currently displayed Jul 26 12:49:23 well, you need to be able to cancel the existing downloads based on what views ar ebeing swapped Jul 26 12:49:37 so there needs to be some association Jul 26 12:49:41 that sounds like a lot of work :-/ is there anything to support this? Jul 26 12:49:46 code? :P Jul 26 12:49:59 yes, it will be a fair amount of work Jul 26 12:50:25 ecraven:i had same problem of scroll fast and replace with old image but it is solved by as i have said Jul 26 12:50:49 jagruti_: if i clear the adapter, i'll have to reload all items, that won't work well Jul 26 12:51:12 jagruti_: the problem is not the speed of the scrolling, but the fact that i'm loading images that are connected to rows that have gone out of view again Jul 26 12:51:43 but wherever you fill the data only at that place clear before fill Jul 26 12:52:15 jagruti_: i'm only filling it once Jul 26 12:52:47 in oncreate or onresume()? Jul 26 12:52:58 neither, when a button is tapped Jul 26 12:54:10 okay then its different from me,mcz i am also filling once but in oncreate() and i have face same problem so much time Jul 26 12:54:30 if you dont mind then at least try once for clear Jul 26 12:56:23 anybody know about how to use the smily symbols in chat through code? Jul 26 12:56:48 You don't necessarily have to cancel downloads once the view goes of screen Jul 26 12:56:52 They might scroll back Jul 26 13:00:15 true, you can just disassociate the task from the view Jul 26 13:00:32 but that will cause the new views to be populated more slowly Jul 26 13:01:10 another thing you can do is just start downloading all images when the thing is created Jul 26 13:01:14 and cache the results Jul 26 13:03:59 always cache Jul 26 13:07:34 is there a way to have the actionbar split only for the context version? Jul 26 13:07:45 like entering context mode -> bottom bar shows up Jul 26 13:07:55 no Jul 26 13:19:00 can I make Log.d() somehow automaticaly visible only in debug build? Jul 26 13:19:54 i prefer to make it a user option, off by default.. this allows your users to collect and submit that information in the event they find a bug Jul 26 13:19:59 if (BuildConfig.DEBUG) Log.d(..) Jul 26 13:20:08 I have an actionbar tab that i need to control 2 fragments at once, can this be done? how would i modify my tablistener to account for two fragments? Jul 26 13:21:29 I got this code from a tutorial on playing audioclips: https://gist.github.com/3182014.. I cant get setDataSource working, I get a "Cannot make a static reference to the non-static method setDataSource(FileDescriptor, long, long) from the type MediaPlayer" for line 3 Jul 26 13:21:34 Anybody any ideas? Jul 26 13:21:51 ThomQ: learn java. Jul 26 13:22:02 go ask in #java Jul 26 13:22:42 interesting, you make 2 calls on the object correctly, and 1 incorrectly Jul 26 13:24:51 @ lov: Hard to learn java, when most tutorials are obsolete / incorrect, but thanks, i'll go to that channel Jul 26 13:26:00 ThomQ: the tutorial on the java website is incorrect or obsolete? Jul 26 13:26:49 since setContentView fails from a thread, what's the way to do it? Jul 26 13:27:22 you must do it on your UI thread Jul 26 13:28:09 im not sure how i'd do it, im just calling a callback from my second thread atm Jul 26 13:28:58 ThomQ: those aren't JAVA tutorials, they're ANDROID tutorials. Jul 26 13:29:03 Android is a framework, not a programming language. Jul 26 13:29:08 The error your getting is specific to Java, not Android Jul 26 13:29:17 you're trying to call a member method from a static method Jul 26 13:29:25 you need to learn about OO programming and scope Jul 26 13:29:54 actually wait what the hell Jul 26 13:29:56 I just looked at your code Jul 26 13:30:04 does android throw some pulses or anything, so i can check whether my thread is ready? Jul 26 13:30:06 change line 3 from MediaPlayer to mp Jul 26 13:30:28 you need to call setDataSource on the object instance you just created Jul 26 13:30:30 not the class Jul 26 13:30:31 lil_Toady: yes, android will hurl green peas at you all day... wtf? Jul 26 13:30:39 ThomQ: http://docs.oracle.com/javase/tutorial/java/index.html Jul 26 13:30:44 i have wrote the code like String text = edittextbox.getText().toString(); if (text.equals("") || text.equals(null)) { } else { message send}. when i press the enter in edittextbox then it will always go in else part.so how can i prevent to go in else part ? Jul 26 13:30:46 ThomQ: http://docs.oracle.com/javase/tutorial/essential/index.html Jul 26 13:30:53 ThomQ: I VERY strongly recommend that you read those. Jul 26 13:31:02 Those are JAVA (not Android) tutorials, and they are most definitely correct. Jul 26 13:31:09 eh Leeds? pulsing is quite a general method of doing things Jul 26 13:31:20 Ahh, yeah, dumb mistake on my part.. Jul 26 13:31:34 ThomQ: right, but you blamed Android instead of your syntax. Jul 26 13:31:39 you need to learn what's Android and what's Java Jul 26 13:31:45 jagruti_: look at TextUtils.isEmpty() Jul 26 13:31:57 jagruti_: text.equals(null) <- that makes no sense Jul 26 13:32:23 jagruti_: when, pray tell, would .equals(null) ever return true? Jul 26 13:32:24 it's pretty awesome though Jul 26 13:32:27 is there an attribute that allows me to set the way in which radiobuttons are aligned in a radiogroup? i.e. 3 buttons in a horizontal line, instead of below each other? Jul 26 13:32:42 but i have declared the string variable as null thats y i have compare] Jul 26 13:33:05 Heard of nullpointerexception? Jul 26 13:33:06 jagruti_: what happens when you try to call a method on a null variable? Jul 26 13:33:15 hint: equals() is just a method. Jul 26 13:33:22 IOExceptions, also Java error, right? Jul 26 13:33:31 yes, although what throws them may be Android related Jul 26 13:33:40 but odds are you pointed to a file that doesn't actually exist Jul 26 13:33:56 seriously, just look at TextUtils.isEmpty() Jul 26 13:34:31 lil_Toady: checkout AsyncTask Jul 26 13:34:33 CallumTaylor: but what is TextUtils.isEmpty() in my code bcz i need to check the edittextbox value Jul 26 13:34:43 .... Jul 26 13:34:47 I'm not even going to answer that Jul 26 13:34:49 jagruti_: you need to learn to program first. Jul 26 13:34:51 flat out. Jul 26 13:34:51 I was thinking using a linear Layout and aligning them side by side, but can I use a linearLayout INSIDE of a radiogroup? Jul 26 13:35:00 see the links that I pointed ThomQ to? Jul 26 13:35:04 You should read them too. Jul 26 13:36:19 lov: i got it Jul 26 13:36:58 lov: yes, thanks. Esepcially the essential classes I knew nothing about Jul 26 13:37:49 we need a !howtoandroid factoid: "Step 1: learn to program, preferrably in Java. Step 2: d.android.com" Jul 26 13:38:04 idd Jul 26 13:38:39 this channel needs a bot to answer FAQs tbqh Jul 26 13:38:48 word Jul 26 13:38:50 call it staticContext Jul 26 13:39:16 or a #android-n00b channel Jul 26 13:39:31 well, this is #android-n00b Jul 26 13:39:35 it's ok if you're new to android Jul 26 13:39:40 but you should at least have a good grasp of java Jul 26 13:39:46 if you don't, you should be in #java Jul 26 13:40:00 I'm up for an #android-n00b Jul 26 13:40:20 CallumTaylor: TextUtils.isEmpty( text) i have used this but still it will go in else paret Jul 26 13:40:25 part* Jul 26 13:40:34 then your text isn't empty Jul 26 13:41:30 so what is the input in edittextbox when i press just enter key Jul 26 13:42:06 Did you try using the debugger to check the value? Jul 26 13:42:14 lov: basicly I made this app so I could check out different appstores and ad networks for the mobile ports of a game we've build in unity.. I underestimated how big of a step Unity javascript to straight java was :) Jul 26 13:42:19 i would assume null. and you might get an error when trying to call toString() on text which is null Jul 26 13:42:32 however I'm new to android dev as well, not sure about this Jul 26 13:42:39 I have an actionbar tab that i need to control 2 fragments at once, can this be done? how would i modify my tablistener to account for two fragments? could anyone help me out with this? or point me in the right direction? all the examples control one fragment per tab. Jul 26 13:44:22 i think it may be new line? Jul 26 13:45:15 ya i got when i press the enter then it will consider as new line Jul 26 13:48:53 anyone knows about this: https://groups.google.com/forum/?fromgroups#!topic/actionbarsherlock/QFz4Tck5af8 ? seem to have the same problem Jul 26 13:49:11 switched over to actionbar, progressbar used to work now it's always on, calling the visiblilty option doesn't help Jul 26 13:49:17 ( yes i do it from ui thread ) Jul 26 13:51:39 Anyone have a solution for this? I'm trying to horizontally align radiobuttons, but I cannot find an option. Putting another Layout in there causes a problem too, because the Radiobuttons have to be immediate children of the radiogroup in order to be grouped together... Jul 26 13:53:21 ThomQ: Javascript has nothing to do with java. You must understand this. Jul 26 13:53:35 Javascript was named with "java" for marketing reasons. Jul 26 13:54:07 hmm, weird.. i have a line like": BufferedInputStream bis = new BufferedInputStream(getAssets().open( Jul 26 13:54:10 getString(R.string.sqlite_db_name))); Jul 26 13:54:19 which succeeds.. Jul 26 13:54:43 then later on i read from that input stream.. which works on all devices except for my LG p500 Jul 26 13:55:14 lov: Great way to create confusion Jul 26 13:55:35 ThomQ: he *said* it was marketing - what's the difference? Jul 26 13:55:47 http://pastesite.com/40420 Jul 26 13:55:50 here's the trace.. Jul 26 13:56:27 .join #android-root Jul 26 13:56:40 and here the relevant code snippets.. Jul 26 13:56:41 http://pastesite.com/40421 Jul 26 13:56:48 i have no idea why this could fail.. Jul 26 13:56:49 leeds: i don't follow Jul 26 13:57:10 you're complaining it's confusing - he already said it was marketing - what's the difference? Jul 26 13:57:11 usb storage is off.. the sqlite file is in the assets.. it works on all devices.. Jul 26 13:58:49 open doesn't throw an IOException Jul 26 13:58:53 reading from the asset does.. Jul 26 13:58:54 hmmm Jul 26 13:59:07 Ow, im not complaining. Sorry if you got that impression Jul 26 13:59:26 "Great way to create confusion" sounds like a complaint... whatever Jul 26 14:01:39 oh man.. might this be the problem that assets have a file size limit if compressed? Jul 26 14:02:26 hey guys Jul 26 14:03:16 is "new File(url).listFiles()[0]" the only way to get the first file in a directory directly? Jul 26 14:03:58 i got a crappy problem: I am setting a textview's text with setText(cursor.getString(...)); but always get returned that "resource was not found" ? but cursor.getStrign should return a string - shouldn't it? when using it without .setText it works perfectly... (i get the value returned without any issue) Jul 26 14:04:03 Blou_Aap: nope. tjere's millions more :D Jul 26 14:04:20 Blou_Aap: there might be no simpler though Jul 26 14:07:14 rofl.. you can't .setText() on a textview if android:text isn't specified in xml.. narf Jul 26 14:07:53 what? Jul 26 14:08:08 yup, give's resource not found error. Jul 26 14:08:16 (without ' ) Jul 26 14:08:19 then the view wasn't found Jul 26 14:08:22 Eh, something else is wrong then Jul 26 14:08:27 Because you can Jul 26 14:08:54 but with setting android:text="" it works.. Jul 26 14:14:45 can anyonehelp with a sim error? Jul 26 14:15:36 * Leeds wonders if that's sim as in 'emulator' or sim as in SIM card Jul 26 14:15:55 as in sim card Jul 26 14:16:07 seems highly unlikely :P Jul 26 14:16:12 (that we can help Jul 26 14:16:43 haha..bugger Jul 26 14:17:04 what's the error? Jul 26 14:17:25 hello all Jul 26 14:19:18 hi there Jul 26 14:20:38 ok.. 1st - not really application development i know. but nowhere/noone else has been able to help! 2nd - obviously im way out of my depth here! 3rd.. every night between 11pm and midnight my htc one xl suddenly displays no signal, "emergency calls only" and 'No Sim' symbol. Was reading the log out of curiosity and saw this line "07-26 23:51:36.568 D/PhoneStatusBarPolicy( 620): isCdma():false hasService:false mSimState=ABSENT Jul 26 14:21:44 trumble, sounds like you have a damaged SIM card Jul 26 14:21:47 the GCM tokens, are they always of a specific format? Jul 26 14:21:51 do you have a card cloner? Jul 26 14:22:08 good morning or good night... for all Jul 26 14:22:23 have tried three new sims, all with the same result.. No, no cloner... Jul 26 14:22:42 you have to wonder why ImageColumns.WIDTH and ImageColumns.HEIGHT only appeared in API16 while ImageColumns.ORIENTATION is there since API 1.... Jul 26 14:22:46 do you know some open source project of a tool to crop a image in android Jul 26 14:23:09 anyone ever see this w/ unity: Jul 26 14:23:09 java.lang.NoSuchMethodError: no method with name='' signature='(Landroid/app/Activity;)V' Jul 26 14:23:31 ooooh, nvm, in the example it's a simple class, not an activity Jul 26 14:23:53 i need no a code to crop but a tool such us activity to set wallpaper in android, tool to select a portion of image Jul 26 14:24:30 what the fuck, my google maps view is working even when i take the key out completely Jul 26 14:24:43 yeah Jul 26 14:24:55 since v3, afaik Jul 26 14:26:03 also, is this a void return in JNI: ()V Jul 26 14:26:21 for a method that takes no arguments and returns void Jul 26 14:27:33 and if i call in JNI i can expect to get back an object, that i can rep as the fully qualified name like (Lcom/example/SomeClass;)V yes? Jul 26 14:28:32 this JNI wrapper for c# for unity is confusing Jul 26 14:28:48 in the example it puts an activity as the return type for a non-activity class :\ Jul 26 14:29:12 the return type for a class? Jul 26 14:29:31 hello all... does anyone know how to change the default package name from "com.example.appname" to my domain? Jul 26 14:29:58 dingurt: in the manifest Jul 26 14:30:07 not that simple... at all Jul 26 14:30:15 You should do that while creating the project. doing so later might result in chain errors, because some things depend on the package names Jul 26 14:30:23 dingurt: right click on the project in eclipse and look under Android Tools Jul 26 14:30:25 once you reated the project, you're kind of stuck with the package names Jul 26 14:30:26 wongk: I was assuming he was just starting the project Jul 26 14:30:26 I mean for future projects Jul 26 14:30:36 * wongk meeting Jul 26 14:30:50 sam, the JNI call implies that the return type for for a regular class is an android activity in this example project Jul 26 14:30:53 as in, I want to change it once to "com.foo" and it autopopulates with that every time I create a new project Jul 26 14:30:54 is that right? Jul 26 14:31:07 for future projects: Just enter your domain as the package name in the project creation wizard. if your domain is me.com, you would do com.me.myproject Jul 26 14:31:43 I get that... is there any way to make it come up as com.foo every time, instead of me having to change it manually every new project? Jul 26 14:32:51 change it from what? Jul 26 14:33:00 com.example.$projectname Jul 26 14:33:05 i assume Jul 26 14:33:38 weird default Jul 26 14:34:08 it is the default though, i can confirm that Jul 26 14:34:26 When I click New... > Android Application Project, the field that comes up, Package Name... It fills with com.example.applicationname... When I follow those steps, I want it to come up with com.foo.applicationname Jul 26 14:34:31 name your project MyApp, and the automated name for the package will be com.example.myapp Jul 26 14:35:02 i've already begun to despise the JNI wrapper for C# Jul 26 14:35:23 in what world would this make sense: (Ljava/lang/String;)Z <--- the hell? Jul 26 14:36:01 Makes for much more pleasant coding with all the smileys Jul 26 14:37:01 you might have to dig through the settings files where you installed eclipse and see if the template is defined there. it might also be defined in some jar though, in which case you would hve to recompile the android plugin, which i would definitely NOT recommend Jul 26 14:38:05 yeah, IRC was step one... guess I gotta dig Jul 26 14:41:13 any1 experined a "java.lang.IllegalStateException: Hardware acceleration can only be used with a single UI thread" on JB? Jul 26 14:43:57 no but it sounds like and awesome Exception Jul 26 14:44:46 only Android is full of surprises with awesome RuntimeException's thrown randomly Jul 26 14:45:06 most of which undocumented of course Jul 26 14:47:02 is anyone else using just mdpi and xhdpi due to the similarity with iOS/retina? Jul 26 14:48:48 nope Jul 26 14:49:44 Is it possible to move shared code that adds a view to a layout from individual activities to another class, or would I have to write it into an activity that I inherit other activities from? Jul 26 14:57:22 hm; is there a way to programatically determine if a device supports 5ghz? I'm not finding it in wifimanager Jul 26 15:01:38 any unity developers here today? Jul 26 15:03:32 Hi, anyone familiar with ViewPager and replacing fragments Jul 26 15:03:45 https://github.com/JakeWharton/Android-ViewPagerIndicator can you guys help me how to use this with ant and CLI? I used `android update project --path ... --library ...`. now when I do `ant debug`, I get ".../build.xml:570: Invalid file: .../build.xml". So... how can I use it without build.xml? Jul 26 15:04:10 ant uses build.xml for its build instructions Jul 26 15:04:17 you need to have a build.xml to compile w/ ant Jul 26 15:04:36 Android-ViewPagerIndicator is a maven project. Why not use maven ? :) Jul 26 15:04:39 kaneda^: but it's missing in the library, there are just files for maven Jul 26 15:04:57 BenoitB: because rest of my project use ant Jul 26 15:05:11 <3 maven Jul 26 15:05:35 so you need to create a build.xml for that project I guess Jul 26 15:06:18 Pitel_laptop: you need to android update project on viewpagerindicator as well Jul 26 15:06:23 There's no build.xml included.. Jul 26 15:06:53 SimonVT: with what params? Jul 26 15:07:01 Whatever it tells you to include Jul 26 15:07:29 Probably path Jul 26 15:07:38 yeah, path is required Jul 26 15:07:39 I've been noticing in the samsung kernel tree that they periodically update the powervr ddk. Can someone let me know where I also can get the powervr ddk? Or do you have to be a partner with imgtec or have some sort of special developer account with them? Jul 26 15:08:02 Sorry for repeating, anyone familiar with fragment switching ? especially in ViewPager ? Jul 26 15:08:52 SimonVT: thanks, it solved it :) Jul 26 15:09:25 Is there still an issue with geo fix in the 2.3.3 emulator? Mine keeps crashing (revision 20). Jul 26 15:09:51 anyway to turn offthe ability for someone to hit enter and make a new line in a edittext? Jul 26 15:10:21 limit it to 1 line ? Jul 26 15:10:28 trying that now yeh Jul 26 15:10:54 you can do that in the xml changing the type :) Jul 26 15:11:16 hmm Jul 26 15:11:20 yeh 1 line liit doesnt work Jul 26 15:11:28 type isnt in eclipses gui? grr Jul 26 15:11:33 btw anyone got a solution for some weird debugger cursor placement : http://stackoverflow.com/questions/2552568/whats-wrong-with-debugging-in-eclipse-on-android?rq=1 ? Jul 26 15:12:28 try that : android:singleLine="true" it may be deprecated Jul 26 15:12:40 or android:maxLines="1" Jul 26 15:13:26 or android:inputType="you need to choose the appropriate one" Jul 26 15:13:36 thanks Jul 26 15:14:17 still nobody with ViewPager fragment switching knowledge? Jul 26 15:15:56 Lots of knowledge, no questions to answer Jul 26 15:18:02 ok :) Jul 26 15:18:24 So I can't find a proper way to switch fragments in my viewpager Jul 26 15:18:44 i have A, B, C ,D as fragments in my viewpager Jul 26 15:19:16 when i'm on B I would like to click on a menu item in the action bar and switch that fragment to Fragment X Jul 26 15:19:41 and when I'm done with it I can click on another menu item and get back to Fragment B Jul 26 15:19:49 You need to make your own adapter Jul 26 15:19:53 and then again I can go to fragment X with the same thing Jul 26 15:19:56 I did Jul 26 15:20:17 i manage to switch from B to X, X to B, but then when I try to switch again from B to X is crashes Jul 26 15:20:53 it tells me the child is already linked to a parent and I need to remove it from the parent Jul 26 15:21:09 thus "my" method of switching fragment is buggy Jul 26 15:22:03 Basically you gotta perform the remove fragmenttransaction on the old fragment Jul 26 15:22:12 Override getitemposition, return the right position Jul 26 15:22:16 Call notifydatasetchanged Jul 26 15:22:25 Make sure instantiateItem adds your new fragment Jul 26 15:23:15 yes my getItemPosition returns POSITION_NONE if i'm changing fragment Jul 26 15:23:28 it does not return a position but says that it has changed.... Jul 26 15:24:02 I don't have anything in instantiateItem it's managed by the support v4 lib Jul 26 15:24:07 maybe I should do it... Jul 26 15:24:39 i call notifydatasetchanged that's when I get the crash when i switch fragment a 3rd time Jul 26 15:24:48 The fragmentpageradapter in the support lib is really only good for a static list Jul 26 15:24:54 ok Jul 26 15:25:01 You cna base your own adapter on it Jul 26 15:25:08 ok Jul 26 15:25:29 any open source one ? Jul 26 15:25:37 None that I know of Jul 26 15:25:44 ok Jul 26 15:25:53 then I got some work to do :) Jul 26 15:26:15 thx Jul 26 15:29:37 hi guys, my app uses this code to draw a couple of boxes on my widget, but with the latest JB update it has stoped working, now the boxes are just blank, any idea why? http://paste2.org/p/2083691 Jul 26 15:41:54 The Escape buttong on my Android tablet automatically "finishes" the video in my HTML5 WebView. Does anyone know what event the Escape button fires? Jul 26 15:43:24 escape? Jul 26 15:44:02 backpress probably Jul 26 15:44:13 onBackPress Jul 26 15:49:34 escape button heh Jul 26 15:50:35 i was wondering what events the gas pedal and gear shifter on my tablet fired, because i want to put it into reverse and navigate backward in my app Jul 26 15:50:38 * oGMo runs Jul 26 15:57:38 No, on Ice Cream, there are three buttons on the lower left bar. Back,Home,Recent Apps. I'm not talking about those. Then there are four hardware buttons on the edge of the tablet. Power,Menu,Volume, and one that apparently is an "ESC" button of some kind. I don't really know, but I would like to trap the event that occurs when it is pressed. Jul 26 15:58:02 Jonathan_Eyre: interesting. is this the n7 or something else? Jul 26 15:58:05 Jonathan_Eyre: adb shell getevent Jul 26 15:58:10 watch that while you press the button Jul 26 15:58:12 and, that _^ Jul 26 15:59:12 Dear Google AdSense Publisher, We've noticed that you're running multiple ad networks on WEBSITE, but you're not taking advantage of Google's free ad serving solution, DoubleClick for Publishers (DFP) Small Business. Jul 26 15:59:18 but...im NOT running multiple ad networks :S Jul 26 16:04:08 how do i get the application class from in a broadcast receiver? Jul 26 16:13:17 I have a new project, the layout for this project contains a linear layout with an imageview. do you know why the image would display on the VM but not on the device? Jul 26 16:28:48 where is the compiler logs kept for exporting signed apps ? Jul 26 16:29:35 im trying to have a table that takes up all the space accept for a button underneath it. What is the best layout for that? Jul 26 16:30:12 mbrevda: vertical linearlayout with some layout_weight applied correctly Jul 26 16:32:03 close, but no cigar: http://pastebin.com/wZFrv8gq Jul 26 16:32:39 GridLayout would be your friend here Jul 26 16:33:04 JakeWharton: is it really that hard to do as is? Jul 26 16:33:16 * mbrevda is exhausted from trying & learning Jul 26 16:33:21 I have never, nor will I ever, use a TableLayout so I have no idea what you're trying to do Jul 26 16:33:44 what picking method would you guys recommend? Jul 26 16:33:46 ah - so maybe evancharlton can make what I have work Jul 26 16:33:56 you can't trust that evancharlton Jul 26 16:34:25 I know, right? Jul 26 16:41:07 he's obviosuly trolling Jul 26 17:21:16 https://developer.android.com/guide/topics/resources/string-resource.html#StringArray in the planets examples, how can I reference it to localized string? Jul 26 17:21:33 R.string.string_name Jul 26 17:21:38 I'm having trouble with the Google Android bluetooth tutorial. Could anyone point me to a better resource? Jul 26 17:21:42 CallumTaylor: i mean, in xml Jul 26 17:21:48 @string/string_name Jul 26 17:23:06 thx Jul 26 17:29:21 hiya, i'm trying to think how to create a 'Settings' activity for my app, i want it to look as close to the settings activity from sdkmin=froyo right up to ics. is there a sample or a page on developer.android.com that explains me how to create a good canonical settings activity? Jul 26 17:29:39 is the new eclipse version "juno" (4.2) good for android-development or will i face problems? Jul 26 17:30:06 ultrixx, it has been stable for me Jul 26 17:30:33 it works for me too Jul 26 17:30:34 hexmasta: good to hear, thanks. so the adt-plugins work well, too? Jul 26 17:30:43 with 4.2 Jul 26 17:31:16 Younos: check out PreferenceActivity Jul 26 17:31:22 I haven't tried the 4.2 portion but 2.2 works fine for me Jul 26 17:32:05 hexmasta: oh i meant eclipse 4.2. they play well with the adt-plugins? Jul 26 17:32:15 Oh yeah Jul 26 17:32:17 it does Jul 26 17:32:20 good Jul 26 17:32:52 wongk: thanks, that was what i needed Jul 26 17:38:16 I just got a $1 charge from Google on my statement...does this have something to do with signing up for a Play Store dev account? Jul 26 17:39:01 dev account is $25 Jul 26 17:39:10 You probably have to go to your merchant account and enter the exact value somewhere Jul 26 17:39:19 usually it's a deposit... Jul 26 17:39:22 So they can send money to you Jul 26 17:39:34 and it's several cents Jul 26 17:39:38 not a dollar Jul 26 17:39:44 Oh Jul 26 17:39:49 I read what I want to read Jul 26 17:40:08 $1 is atypical Jul 26 17:40:13 You probably bought an app then Jul 26 17:40:13 hmm Jul 26 17:40:21 what?? Jul 26 17:40:22 just got a coupon for a free $100 in adwords. Anybody had experience with ads campaigns? Jul 26 17:40:22 no Jul 26 17:40:24 ugh Jul 26 17:40:24 yeah, most likely an app, or some other google service you've paid for Jul 26 17:40:38 i paid $10 for gvoice credit..that's all Jul 26 17:40:45 so confused.. Jul 26 17:41:16 anyone ever heard about the Galaxy Note haviing 30 steps for volume (eg max volume) but AudioMananger.getStreamVolume(AudioManager.STREAM_MUSIC) returning 15 (the Android default) ? Jul 26 17:41:17 http://support.google.com/googleplay/bin/answer.py?hl=en&answer=105940 Jul 26 17:41:19 ahhh Jul 26 17:41:19 Go to google wallet and check your transactions Jul 26 17:42:41 bubbleguuum: awesome. Jul 26 17:42:46 they're just trying to verify my card, apparently Jul 26 17:44:18 lov: I can't confirm it myself since I do not have a note but from a user report I have strong supiscions... Jul 26 17:47:10 in the sample code i see addPreferencesFromResource(R.xml.nameofpreferencesxmlfile); but i have no idea how to make R.xml.something in eclipse? Jul 26 17:47:30 i do have the xml file in place at the right location Jul 26 17:47:38 what would cause an app to not fully export correctly like everything exports except the app icon and the values directory Jul 26 17:52:33 [13:40:22] just got a coupon for a free $100 in adwords. Anybody had experience with ads campaigns? Jul 26 17:52:37 didnt work well for me Jul 26 17:52:39 i let them set it up for me Jul 26 17:52:43 becuase "we're the experts" Jul 26 17:54:41 I had a friend who used the free adwords once Jul 26 17:54:46 he put out an ad for DropBox Jul 26 17:54:52 and used his referal link Jul 26 17:55:02 within hours he had maxed out his bonus capacity Jul 26 17:55:03 Younos: the R file is autogenerated. If you have a something.xml in your res/xml dir, and build your project, you'll get an R.xml.something Jul 26 17:55:10 hah nice CurlyBrace Jul 26 17:59:17 I did that as well :d Jul 26 17:59:28 With free adwords money Jul 26 17:59:55 what would cause an app to not fully export correctly like everything exports except the app icon and the values directory Jul 26 18:03:05 droidbuster: no idea. clean and rebuild. Jul 26 18:03:25 lov: have so many times already its not funnt Jul 26 18:03:28 finny* Jul 26 18:05:02 i think i know now i have extra unused files in my raw directory Jul 26 18:10:47 Every now and then, when I start my app, the Android Wifi settings screen pops on automatically, and when I hit "Back", I'm in my application, in the correct activity, but the layout is not loaded -- almost as if onCreate() was bypassed. Has anyone experienced this before? It's incredibly frustrating because I have no way to deliberately trigger this. Jul 26 18:12:27 PeteS: this should be easy to repro with the emulator Jul 26 18:13:13 explicitly enter the state that your app launched the wifi screen (i'm assuming your app is coded to do this), hit home, kill your app process (adb shell kill) and then return to it by holding home and pressing the app icon. Jul 26 18:13:39 nope -- my app does not launch the wi-fi screen anywhere Jul 26 18:13:59 the system, or maybe some other app that I have installed that I'm forgetting about, has to be doing it Jul 26 18:14:04 PeteS: ah, well, there is this really goofy task bug that's plagued android for quite a while now Jul 26 18:14:08 you might be experiencing that :) Jul 26 18:14:27 quick question - does the deprecated Sensor.TYPE_ORIENTATION *not* use the rotational matrix to correct for device rotation? Jul 26 18:14:32 when that state happens, try adb shell dumpsys activity and save the log. might contains oemthing useful Jul 26 18:14:34 boo :-/ heh well for now I'm going to move my initialization to onResume() and use a flag to make sure it happens once Jul 26 18:14:47 PeteS: i don't think that's the right response. Jul 26 18:15:05 so long as you are complying properly with the android model, you should not need to make changes even if there is a bug here. Jul 26 18:15:15 if you work around it, and it is a platform bug, it's just going to bite you when google fixes it upstream Jul 26 18:15:36 hm… but it seems like I can't guarantee that onCreate() is going to get called. isn't this kind of a critical assumption? Jul 26 18:15:46 PeteS: onCreate is definitely being called. Jul 26 18:15:48 that much is certain Jul 26 18:16:50 my best guess is that your application contains logic that can trigger the behaviour you're seeing even with onCreate being invoked, but of course i cannot see your code to analyze it Jul 26 18:17:09 keep in mind though, the task bug that causes the settings screen to show is almost assuredly not your bug. Jul 26 18:17:14 i've seen this for ages in android Jul 26 18:17:29 tasks just get reparented inexplicably Jul 26 18:17:58 but the rest of the process and app model is unaffected from my observations Jul 26 18:18:20 So I'm trying to take a screenshot of a view that is a scrollable area. It's a custom view that is based on a FrameLayout. I'd like to take a shot of the entire scrollable area which is contained in a RelativeLayout that also contains a SlidingDrawer. I'm having problems with this. If I try to capture using the scroll area, I don't get the entire view. If I try to do it on the view that Jul 26 18:18:20 the scrolling area contains, I get a NPE on Bitmap.createBitmap(view.getDrawingCache()); Jul 26 18:18:21 could it be a reasonable solution to check in onResume() to see if a layout has been set, and if not, restart the activity? Jul 26 18:18:42 PeteS: if you erally want, try some assertion debugging to prove what i'm saying. for example, have a boolean that is set true in onCreate. in onResume, test it for being false, and throw an IllegalStateException("WTF") Jul 26 18:19:02 good idea… I'll try a few things, thanks jasta! Jul 26 18:19:03 that way you can prove that your analysis is correct (you won't prove it though, because your analysis is definitely not correct *grin*) Jul 26 18:19:38 PeteS: making changes to your code without validating the hypothesis behind them is the absolute worst thing you could do in any piece of code, on any project, for any reason. Jul 26 18:19:40 If this was a platform bug, it should happen in more apps than yours :p Jul 26 18:19:49 jasta: haha yeah I'm sure it's not. I too would assume that onCreate gets called, but somehow I wind up back in the activity with nothing rendered Jul 26 18:19:52 it reduces programming to chaos. Jul 26 18:19:57 And if I try to go on the RelativeLayout, I get issues using view.measure() since I need to call measure() and layout() so that getDrawingCache() will work properly. But I used MeasureSpec.UNSPECIFIED like most folks told me, but it complains that SlidingDrawer can't use unspecified Jul 26 18:20:58 SimonVT: I'm quite certain I'm doing something wrong somewhere… but at the same time I like to dream that Android would do SOME reasonable sanity check every once in a while to avoid undebuggable scenarios like this one. Jul 26 18:21:29 Jouva: don't use unspecified Jul 26 18:21:32 :) Jul 26 18:21:36 you probably want AT_MOST instead Jul 26 18:21:44 Try hierarchyviewer next time it happens, just for fun Jul 26 18:21:50 romainguy: What do I pass for values then? Jul 26 18:22:03 the max size you want to allow Jul 26 18:22:22 and if you are trying to screenshot a view taht's already on screen Jul 26 18:22:24 romainguy: i'm disappointed by how not awesome the tiling strategy is for webview :) Jul 26 18:22:31 just use EXACTLY and the view's width and height Jul 26 18:22:39 Ok. Jul 26 18:22:45 jasta: and yet it works great :) Jul 26 18:22:59 no, it really doesn't. when you peel back the layers a bit it's got a lot of bogus problems. Jul 26 18:23:22 like zooming out quickly revealing large blank tiles. that doesn't need to be the case. Jul 26 18:23:52 romainguy: Well first, why do I need to use View.measure() to use View.getDrawingCache() properly? Jul 26 18:23:54 yeah it's a known "issue" Jul 26 18:23:58 the tiles i think should be organized in a tree Jul 26 18:24:03 Jouva: you don't if the view is already on screen Jul 26 18:24:14 so the "low res" stuff wouldn't be a special case, but rather a function of the tree structure Jul 26 18:24:26 That's the thing. It is but if I DON'T call it, then getDrawingCache returns null Jul 26 18:24:30 then, if there are no leaf node tiles, you can just walk up the tree and find something that can cover the area you're looking for Jul 26 18:24:53 and you can actually ensure that at any given time at least two layers of the tree are in cache (a low res one higher up and the current zoom level) Jul 26 18:24:58 Let me make sure I'm not doing something blatant here and let me try something first Jul 26 18:25:11 then flinging and zooming out would, i think, work much more reliably and cleaner. no special casing. Jul 26 18:26:19 romainguy: also, while i have your attention, have you looked at google image search lately on the android browser? swiping images slowly left/right is very choppy on android. Jul 26 18:26:34 the images stutter back and forth by large pixel margins Jul 26 18:26:56 it seems a lot of folks in the community are complaining about this. Jul 26 18:27:14 (the more general problem, as can be seen in jquery mobile as well) Jul 26 18:29:02 romainguy: http://pastebin.com/iHTyCTLV Jul 26 18:29:19 romainguy: allegedly (i havent verified), this problem only occurs with the hardware accelerated draw path in webview Jul 26 18:29:36 I get null from the v.getDrawingCache() Jul 26 18:32:49 I've seen a lot of comments on StackOverflow saying that to use getDrawingCache that you have to use View.measure() and View.layout() or it won't work and you'll get null. Jul 26 18:36:05 what would cause an app to not fully export correctly like everything exports except the app icon and the values directory Jul 26 18:37:26 wow i made some 13sp text on my n7 Jul 26 18:37:27 it looks like ass Jul 26 18:37:29 i cant read it Jul 26 18:39:05 droidbuster: Do you not see it if you browse inside of it with a .zip viewer, or does the app fail to load the resource? Jul 26 18:39:37 yes the values directory and the app icons Jul 26 18:39:52 That still didn't answer my question :) Jul 26 18:40:16 If you load it in a .zip file viewer, can you verify that the files are not in there? Jul 26 18:40:21 I'm struggling a bit with FileDescriptor & AssetFileDescriptor. I am correct that an AssetFileDescriptor essentially is a FileDescriptor, but for raw asset files, right? Jul 26 18:40:33 Or is the issue just that the app said the resouce wasn't found? Jul 26 18:40:34 yes i have checked Jul 26 18:40:39 Ok Jul 26 18:41:09 If it's not in there, for gits and shiggles, maybe check file permissions and ownership? That's my only guess Jul 26 18:42:12 ownerships im on windows :/ Jul 26 18:42:14 Also, does the filename contain any characters other than alphanumeric or the character _ and . ? Jul 26 18:43:16 sorry was on the phone for a second. but here is the problem my app for the last month has not exported with an app icon.... i posted a stackoverflow question and looked into the problem Jul 26 18:43:19 If you unzip you wont find values/, ever Jul 26 18:43:36 as i looked into the apk as a zip file the values directory is never there Jul 26 18:43:36 SimonVT: Ahh good to know, so that's a bad test then :) Jul 26 18:43:54 The icon will be in whatever drawable folder you put it Jul 26 18:43:54 droidbuster: So your app is getting a resource not found error? Jul 26 18:44:02 SimonVT: ok that answers that question Jul 26 18:44:26 no errors at all the apk exports with no errors at all just no app icons Jul 26 18:44:43 droidbuster: What version of android are you running this on? Jul 26 18:45:05 hi all Jul 26 18:45:12 ive been googling for countless days about my error or a way to check the export logs why the icons not being added Jul 26 18:45:19 min is 7 Jul 26 18:45:35 i have an activity hosting a VideoView Jul 26 18:45:35 no target... i suppressed one lint warning Jul 26 18:45:37 Well what version is it being ran on when you se this Jul 26 18:45:41 Where did you put your icon Jul 26 18:45:48 And what is the name of the folder you put it in Jul 26 18:46:07 I want the playback to be as seamless as possible when the orientation changes, just like in the YouTube app Jul 26 18:46:09 i let the asset website make all my icons for it so they are all in the correct folders Jul 26 18:46:35 or so you think. Jul 26 18:46:36 Ok well that scratches off all of my guesses then Jul 26 18:46:40 Jouva: im running this on 4 test devices runs perfectly no errors Jul 26 18:46:42 right now the video has to restart and be prepared again Jul 26 18:46:57 But none of them have the icon? Jul 26 18:47:08 karakuri: handle orientation change manually Jul 26 18:47:17 it just wont fucking export with an app icon and its pissing me off for a month i put this on the back burner to work on other projects revisiting this problem Jul 26 18:47:32 droidbuster: ok, hold on. Jul 26 18:47:34 Jouva: none of the ones i exported export with an icon Jul 26 18:47:34 What does your manifest point to for an icon? Jul 26 18:47:34 wait. Jul 26 18:47:40 lets define some things. Jul 26 18:47:47 1) Does the app crash when you try to launch it? Jul 26 18:47:54 Afternoon all! Jul 26 18:47:56 android:icon="@drawable/launcher" Jul 26 18:47:56 android:label="@string/app_name" > Jul 26 18:48:15 sorry :O but each of the icon folders have that app icon Jul 26 18:48:28 2) Do ANY of your resources appear? Is it only drawables that aren't working? Is it only SOME drawables that aren't working? Jul 26 18:48:37 3) You keep mentioning export. Does this work correctly if you just press run? Jul 26 18:48:40 i was under the impression handling orientation changes manually is not good practice Jul 26 18:48:52 karakuri: generally Jul 26 18:48:53 karakuri: Generally it isn't Jul 26 18:48:56 How do I "import" a bundle for use with a URI? Jul 26 18:48:59 karakuri: it depends on your use cases. Jul 26 18:49:03 so is this an exceptional case? Jul 26 18:49:06 If you have special requirements, like this, it definitely is Jul 26 18:49:08 lov: this works perfectly on a tablet and three different phones Jul 26 18:49:14 if you are, say, just displaying a video, it seems like it's ok to handle it yourself. Jul 26 18:49:34 karakuri: It's bad practice because people use it as a way to "fix" crashes on orientation changes Jul 26 18:49:45 ok, so i would override onConfigurationChange and just have a no-op? Jul 26 18:50:04 You don't need to override that method unless you want to do something Jul 26 18:50:08 Just define it in your manifest Jul 26 18:50:09 and in the emulator although soundpool on an emulator it gets the wait or force close cause the emulator is so slow Jul 26 18:50:12 karakuri: no, you'll need to rotate the UI yourself Jul 26 18:50:26 (if you want to rotate Jul 26 18:50:26 ) Jul 26 18:50:41 What? Jul 26 18:50:47 would that just be setContentView(R.layout.foo); ? Jul 26 18:50:59 but 4 test devices... and no problems its just exporting it. on all of the devices the icon appears perfectly Jul 26 18:51:00 there's nothing else in the ;ayout Jul 26 18:51:03 The ui will rotate just fine Jul 26 18:51:30 droidbuster: so to be clear, this ONLY occurs when you export via eclipse, not when you run in debug mode. Jul 26 18:51:37 droidbuster: what happens if you build via ant? Jul 26 18:51:38 I am integrating facebook with android but not succeeding Jul 26 18:51:49 If I first run handler.sendMessageDelayed(msg, long_delay); followed by handler.sendMessageDelayed(msg2, very_short_delay); What will be executed first? Jul 26 18:51:55 the app is crashing Jul 26 18:52:01 ive never built via ant :/ i should try Jul 26 18:52:17 okay, i'll give this a shot Jul 26 18:52:26 any body knows here using facebook sdk Jul 26 18:52:27 ?? Jul 26 18:52:28 aagam94: cool story bro. Jul 26 18:52:35 aagam94: why don't you attach the debugger, or look at the logcat output Jul 26 18:52:41 i tried Jul 26 18:52:46 but not succeeding Jul 26 18:52:49 :( Jul 26 18:53:12 aagam94: http://developer.android.com/tools/debugging/index.html Jul 26 18:53:13 aagam94: Welp, start with the stack and then look at what's wrong Jul 26 18:53:24 07-26 23:33:58.745: E/AndroidRuntime(971): java.lang.NoClassDefFoundError: com.facebook.android.R$drawable Jul 26 18:53:38 that error comes Jul 26 18:54:17 com.facebook.android.R ? uhhhhh Jul 26 18:54:27 Is there a library they're making availabl? Jul 26 18:54:29 Did you try clean project? Jul 26 18:54:53 alsyes Jul 26 18:55:05 also in ya Jul 26 18:55:11 sorry Jul 26 18:55:18 lov what file should i use to build with ant ive never used it Jul 26 18:55:22 Jouva, yes they are using a library Jul 26 18:55:44 droidbuster: http://developer.android.com/tools/building/building-cmdline.html Jul 26 18:56:02 omg it worked Jul 26 18:56:04 Jouva, i added that library but still it does not show in dependancies Jul 26 18:56:06 thats awesome Jul 26 18:56:13 aagam94: Oh ok. I was confused as to why you'd be referencing com.facebook resources OR giving your app a com.facebook namespace, but that explains it Jul 26 18:56:23 thanks everybody Jul 26 18:57:14 if i am using the sample app by android it is working fine.. Jul 26 18:58:06 aagam94: http://stackoverflow.com/questions/3563593/android-facebook-sdk-doing-error-java-lang-noclassdeffounderror Jul 26 18:58:59 Problem is that they're using a .jar and my understanding is that resources don't work very well through the .jar files Jul 26 18:59:03 Or at all Jul 26 18:59:25 i noticed something else im running java 1.7.0 :/ but my other projects compile correctly Jul 26 19:00:36 any one of you have used facebook sdk?? Jul 26 19:00:44 for android Jul 26 19:01:40 Jouva, not able to understand Jul 26 19:01:59 aagam94: Well the answer's right there Jul 26 19:02:40 Make sure you've included the library properly. If it's a jar file though, you MIGHT need to jump through some hoops, unless somebody else here says otherwise Jul 26 19:03:34 Ok, well, I got to try one more time (lov, i asked repeatedly in #java & been reading docs for the last 3 hours:) ).. I keep getting this IOexception when using setDataSource: https://gist.github.com/3183818 .. I'm almost completely sure that I referenced the FileDescriptor "sample1"correctly in line2, but thats also where the IOexception keeps happening.. Jul 26 19:04:08 Is it possible that the AssetFileDescriptor in line 1 does actually fail to get a filedescriptor, but that that doesn't show up in the error log somehow? Jul 26 19:04:42 When i select the facebook library than it is not added to dependancies Jul 26 19:05:13 If it's a jar, you just put it in libs/ Jul 26 19:05:14 the only line from the docs on setDataSourche (FileDescriptor) that I don't get is "The FileDescriptor must be seekable (N.B. a LocalSocket is not seekable)." Jul 26 19:05:15 Nothing else Jul 26 19:05:31 I have a custom view, and within that view I need to draw a few bitmaps -- each of which are loaded asynchronously on a non-ui thread. Is there a way to post a message back to the custom view in such a way that only the newly loaded bitmap needs to be drawn? (eg: just calling postInvalidate() forces redraw of the entire canvas) Jul 26 19:07:58 say you have a layout with 10 edit boxes in a vertical line. when you click on the first one, then hit enter you will be brought to the next one. the last one, on the otherhand will remove focus, and hide the keyboard. is there an easy way to have every edittext do this? Jul 26 19:07:58 will code after a finish() call still be called? Jul 26 19:08:32 of course Jul 26 19:08:48 ok Jul 26 19:10:39 eppo: There's settings to tell the IME to display "Next" and "Done" instead of an Enter button. From there, you can also hook onto the IME entry in a callback Jul 26 19:11:59 eppo: I'm not entirely sure how to hook onto physical keyboard input though. But the IME stuff is probably what you're looking for Jul 26 19:12:35 Thanks Jouva, I think that would be the easiest route to go. Jul 26 19:12:55 eppo: Be sure to try and test it on multiple IMEs though, as I personally have experienced bugs in 3rd party IMEs where the button returned a different code than expected or displayed different text Jul 26 19:13:09 That is, if you have more than one. Jul 26 19:13:24 indeed.. soft keyboard handling on android is both obtuse and inconsistent.... Jul 26 19:13:33 I think the one I had issues with was the keyboard in LastPass Jul 26 19:14:38 the sdk manager has this weird bug on mac where it leaves the progress bar around & animating even when the package list has been loaded or after the files have been downloaded. it goes away if you click on the app (anywhere) Jul 26 19:14:59 I'll give it a shot. the other option would be to set up an onKeylistener for each edittext... which I dont want to do. Jul 26 19:15:28 eppo: Hmmm... Jul 26 19:16:45 Grr, I can't easily find if there's such a call, but I know you can set the attribute of the next focusable item as an attribute Jul 26 19:16:58 But I don't know if that gets handled automatically if you set the IME to use Next or not Jul 26 19:17:51 Or if not, how to easily jump focus like that. And you could just map them all to the same listener and just check if it's the last one and do your thing from there, otherwise jump focus as expected Jul 26 19:19:49 Ahh Jul 26 19:19:57 eppo: http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions Jul 26 19:20:54 eppo: So it'll automatically jump it looks like. Then just trap the Done on the last one and do what you need to do when it gets triggered Jul 26 19:21:27 Thanks, your help is much appreciated. Jul 26 19:23:05 I was just looking through the API reference and this class/package caught my eye, does anybody have any idea what it's for? http://developer.android.com/reference/android/support/v13/dreams/BasicDream.html (just out of interest) Jul 26 19:23:35 Can anyone help me with the ADK and HID events? Jul 26 19:23:47 Stew, what version was this? Jul 26 19:23:53 I think that was the old easter egg code Jul 26 19:24:11 At least, in ICS its commented out near the easter egg code\ Jul 26 19:27:25 romainguy: Not sure if you're still there but it looks like there's a limit on how much I can request from getDrawingCache() or it returns null Jul 26 19:28:53 romainguy: My view is in a scrolling area and is sigificantly larger than the viewable screen size. I can take what I can of the viewable area (based on the scrolling view I have) and increase it so I get some graphics that aren't on screen. But if I keep pushing it more and more, it just returns null Jul 26 19:33:29 hi guys, my app uses this code to draw a couple of boxes on my widget, but with the latest JB update it has stoped working, now the boxes are just blank, any idea why? http://paste2.org/p/2083691 Jul 26 19:40:53 cool. http://www.h-online.com/open/news/item/Android-and-Nokia-smartphones-hijacked-via-NFC-1653632.html Jul 26 19:41:31 if i attended a black hat conference, i would probably leave all my electronics at home :) Jul 26 19:42:45 even my watch :P Jul 26 19:44:30 I assume that when the guy talks about the insecure versions of android, he means pre-ICS, right? Jul 26 19:46:27 what is the path to Music folder on internal storage Jul 26 19:46:40 and what permission do I need to write into it? Jul 26 19:46:49 stiggpwnz: dont think it has one defined Jul 26 19:47:22 jakob|, so where should I create one? Jul 26 19:48:11 jakob|, /Music/ is alright? I mean for music players to find music inside it Jul 26 19:48:18 You don't have write permission to anything but your own apps data folder Jul 26 19:48:35 stiggpwnz: use the external storage? getExternalFilesDir(Environment.DIRECTORY_MUSIC) Jul 26 19:48:38 You should probably put them on external storage if you want it to appear in music players Jul 26 19:49:48 SimonVT, but when it's unavilable, like when the device has 16 GB internal, where should I save music files? Jul 26 19:50:25 Like what devices? Jul 26 19:50:48 SimonVT, nexus 7 Jul 26 19:50:55 stiggpwnz: if its like the galaxy nexus, it will still redirect to the correct folder by using the api Jul 26 19:51:16 Pretty sure nexus 7 has external storage Jul 26 19:51:27 External storage doesn't mean it has to be an sd card Jul 26 19:51:48 Nexus 7 has "external storage" Jul 26 19:52:01 you can basically pretend it has an SD card Jul 26 19:52:12 unless you're doing really weird stuff Jul 26 19:52:26 I don't believe music files in your apps private storage will get picked up Jul 26 19:52:31 So, external storage it is Jul 26 19:53:00 so there's no point in downloading, when there's no external, thanks! Jul 26 19:53:02 So I know this isn't a dev question but I feel like devs would have the answers I need. I'm looking to bail on my terribad DX2 and pickup a new 4G phone from Verizon. I'm looking at either a Droid Razr or a Galaxy Nexus. I like the whole no bloat thing with the Nexus, but the Razr is like $100 cheaper on Swappa.com. Any inputs? Jul 26 19:53:34 Get a nexus Jul 26 19:54:31 Is the ROM/tweak community that much better for the Gnex than the Razr? I've been trolling through both's forums on xda as well Jul 26 19:54:33 hey, please test my new game: https://dl.dropbox.com/u/6559846/taptwice1.apk Jul 26 19:54:41 It's pretty awesome, I think :) Jul 26 19:55:13 Im basically looking for crashes / bugs, etc. Jul 26 19:55:28 3 Screenshots (http://www.troubi.com/img/android-apps/android1.png http://www.troubi.com/img/android-apps/android2.png http://www.troubi.com/img/android-apps/android3.png ) Jul 26 19:57:28 gcm tokens, anyone have a good validator? Jul 26 19:58:22 i have /^[a-z0-9_\-]{140}$/i but i don't think it's good enough Jul 26 20:00:15 whats the correct of showing the indeterminate progress bar? first requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); before setContentView, and then setSupportProgressBarIndeterminateVisibility(Boolean visibilty); to toggle it on and off right? all I'm doing is request the feature, without the setSupportProgressBarIndeterminateVisibility, but its still displaying the progress bar. Even if i do setSupportProgressBarIndete Jul 26 20:02:19 code is up here, the progress stuff is commented https://github.com/f2prateek/Device-Frame-Generator/blob/master/src/com/psrivastava/deviceframegenerator/MainActivity.java Jul 26 20:04:23 its suing the palit actionbar if that helps Jul 26 20:04:26 *split Jul 26 20:04:30 *using Jul 26 20:11:07 lololol Jul 26 20:11:08 http://www.thestar.com/business/article/1232207--buckyballs-magnetic-toys-banned-in-u-s-after-children-hurt Jul 26 20:11:13 Her mom says while Sabrina was twisting her tongue with the balls in her mouth, she accidentally swallowed them. Jul 26 20:12:00 wtf Jul 26 20:13:29 you'd thinkg if they had such a strong reaction to this, they would also take gun laws a little more seriously... Jul 26 20:13:42 no forget that Jul 26 20:13:44 just read the quote Jul 26 20:13:48 out of context Jul 26 20:13:56 thanks. Jul 26 20:13:58 thanks for this. Jul 26 20:14:02 why are you posting this in -dev Jul 26 20:14:12 it came up while i was devving? Jul 26 20:14:15 :D Jul 26 20:17:20 haha Jul 26 20:20:51 I has a question: I have an SQLite DB which is encrypted and I decrypt it during runtime. Decrypted bytes are stored in a byte array. How do I construct an in-memory SQLite DB from those bytes? Jul 26 20:24:15 o_O Jul 26 20:24:28 that's a good question. I'm not sure if there's a public api for that. Jul 26 20:24:48 indeed... Jul 26 20:24:54 looks kinda impossible tho Jul 26 20:25:42 Kulverstukas: https://guardianproject.info/code/sqlcipher/ maybe... Jul 26 20:25:50 tried it Jul 26 20:25:57 but it looks very bloated actually Jul 26 20:26:05 the APK gets as big as 6MB Jul 26 20:27:42 bj.com Jul 26 20:37:19 Is the only difference of res/drawables in hdpi/ldpi/mdpi etc just size? I look at their respective resolutions and they are all the same 72x72 ppi Jul 26 20:41:18 lasserix: no, they're definitely not all 72 ppi Jul 26 20:41:36 I don't think I've seen an android device with that low screen density Jul 26 20:42:00 ryanm: i think he's using the gimp/photoshop save dialog as his guide :) Jul 26 20:42:09 I bet he's talking about printer density Jul 26 20:42:10 ah. that would do it. Jul 26 20:42:13 lasserix: that's just maths telling you that it's 72x72 dpi. Jul 26 20:42:22 the image itself has no idea what density it is going to be displayed at Jul 26 20:42:42 that's not even maths. that's just it going "Hey there's no metadata I'm gonna assume it's 72dpi" Jul 26 20:43:00 ryanm: yes but if you, for example, changed it to 144x144 dpi, it would double the pixel dimensions. Jul 26 20:43:18 not if you change just the dpi Jul 26 20:43:25 lasserix: you are encouraged to ignore the number you are looking at and focus only on pixel dimensions. read the design guidelines for android to know what pixel dimensions to target. Jul 26 20:43:26 and 72 dpi is the "old computer default res because neither Windows nor Mac had variable DPI support" Jul 26 20:43:59 please do NOT focus on pixel dimensions on android. use DP instead. Jul 26 20:44:51 ryanm: hehe you're right, i'm surprised that it's just meta data. Jul 26 20:44:55 that's even dumber! Jul 26 20:46:11 so… going back to my bug from before. I have an Activity where all of my content is loaded. getCurrentFocus() shows everything I expect to be there, the window decor root view is all normal. Everything is there. But nothing is actually rendered on the screen. Anyone know what I could poll to detect this weird blank state? Jul 26 20:46:47 PeteS: hierarchyviewer should be able to tell you Jul 26 20:47:00 for example, if something is set invisible Jul 26 20:47:38 or your layout is broken Jul 26 20:48:00 jasta: I'll see if I can get that set up, but in my recent experience it has been incredibly difficult to get running on my computer. and I know for 100% certain that nothing is invisible. 19/20 times the application starts fine; when the wi-fi screen intercepts it and it gets back to my code, what else could have happened to it? it's the same exact startup process Jul 26 20:48:36 and I checked a few elements for their visibility, and they're all noraml Jul 26 20:48:51 PeteS: you don't know anything for certain, so don't make that assertion. Jul 26 20:49:16 if you are using hierarchyviewer on a production phone, special steps are required. google for viewserver Jul 26 20:49:28 don't avoid setting it up because you're too dense to realize how valuable it is Jul 26 20:49:47 it is almost assuredly going to tell you where your problem is, if you know how to look Jul 26 20:50:01 jasta: actually, in this case I can't use a production phone. this is a locked phone and there's no way to use a production phone Jul 26 20:50:31 what is the difference between a locked phone and a production one in your mind? Jul 26 20:51:18 wow sorry I did not read those words carefully, haha. yes, this IS a production phone Jul 26 20:51:56 and I've tried view server, and it runs fine but then takes a long time to connect and then eventually times out Jul 26 20:52:14 well then spend your afternoon figuring that out Jul 26 20:52:20 lucky me Jul 26 20:52:25 this is how complex problem solving skills work in mammals. Jul 26 20:52:32 crows can do this. Jul 26 20:52:35 so can you Jul 26 20:52:47 crows would not have made such a ridiculously convoluted development environment Jul 26 20:53:27 for some crows, computers are really hard to understand. Jul 26 20:53:30 :) Jul 26 20:55:26 i'm working on an application using my actual device. Yesterday i ran the thing in debug mode, and ever since, the application always shows 'waiting for debugger to attach' any time i launch it, i've cleaned the project in eclipse, i've uninstalled the app, i've diabled debugging in the manifest, i've even turned off USB debugging on my phone, but it still sits there when i open the app Jul 26 20:55:27 i think the way a crow would handle this, is they would take the phone and drop it in the intersection and wait for a car to run it over Jul 26 20:55:41 g00s: that's a different species, iirc Jul 26 20:55:42 when traffic clears, they pick up the important pieces Jul 26 20:56:53 g00s: scavange and fiddle .. sounds like how some people write code ;) Jul 26 20:57:05 romainguy_: wow, somehow ios' webkit implementation is much worse :) theirs seems to suffer from all the same problems but they don't do the low res aggressive prefetching Jul 26 20:57:57 Stew-a: even when you invoke the app from the home screen instead of launching automagically by eclipse? Jul 26 20:58:04 jasta: even then Jul 26 20:58:21 check the developer settings, there's some junk in there about debugging apps Jul 26 20:58:37 i am not confident it is the culprit, but it's worth looking Jul 26 20:59:19 yeah, I was thinking the same thing. see if it's set as the debug app on the device. Jul 26 20:59:39 or just disable all the developer settings. Jul 26 20:59:44 it's a gingerbread device, the only options under dev settings are 'enable usb debugging', 'allow mock locations' and 'stay awake while charging' Jul 26 20:59:50 i've never had this problem before Jul 26 20:59:51 oh Jul 26 21:00:04 Stew-a: neither have i, and i've used android a LONG time ;) Jul 26 21:00:07 have you rebooted the device? Jul 26 21:00:12 Stew-a: i'm just trying to narrow it down a bit Jul 26 21:00:21 probably should try that /facepalm Jul 26 21:00:23 Stew-a: btw, i meant options about acutally debugging apps (like, attaching the debugger) Jul 26 21:00:31 if you are on ics or less, i believe you have to access it from the dev tools Jul 26 21:00:36 i forgot about that Jul 26 21:00:58 devtools is, i dunno, somewhere in the sdk probably Jul 26 21:01:12 i forget these things snice ive been on ics for so long now ;P Jul 26 21:01:50 i've been trying to talk myself out of buying a nexus 7 for the last week, and i'm failing miserably :P Jul 26 21:02:08 galaxy nexus all the way. if you don't have one of those, start there :) Jul 26 21:02:31 i'm beginning to think i can actually get away with using nothing but nexus series phones. Jul 26 21:02:41 the last 3 have been perfectly spaced for my purchasing cycle Jul 26 21:03:09 i've had a desire HD since christmas '10, rather disappointed that it's not getting ICS after HTC promised back in march Jul 26 21:03:35 Stew-a: respond with your checkbook. Jul 26 21:03:53 * p_l|home can't help but think that TRWTF is expecting a phone over a year old to get updates Jul 26 21:03:54 jasta: ahh thanks, I was actually just doing some editing for stuff via gimp which is why i was asking Jul 26 21:03:56 like i said i've been looking at a nexus 7 :P Jul 26 21:04:46 p_l|home: but but.. iphones! Jul 26 21:05:14 for some apps I use my own psuedo-action bar since it is easy enough, but have to manually set the height, I was having some problems since mdpi icons are too small for the height of the psuedo aciton bar on phones Jul 26 21:05:23 SimonVT: don't have budget models Jul 26 21:05:24 p_l|home: I wouldn't have expected it, except that HTC announced back in march they were going to do it in july/august, and then this week changed their mind Jul 26 21:06:15 Oh, so I guess my question is: if I am making a set of drawables for mdpi.hdpi etc how do I make sure they have correct resolution? Jul 26 21:06:42 well the reboot seems to have fixed it, thanks. probably should've thought of that, but i rarely have to reboot the thing it just didn't occur Jul 26 21:07:02 If you did it right, your icons should be the same physical size on all densities Jul 26 21:07:34 Same with the actionbar Jul 26 21:07:36 == success Jul 26 21:08:09 lasserix: check if your graphics program can do preview at physical side with specified DPI Jul 26 21:08:30 then grab the list of DPI values used and check your icons Jul 26 21:08:31 Hmm, well the reason I ask is because i take some the drawables from the icon pack or the platform/res drawables, and usually I have to make my own focused icon (eg just adding a blue tint) so hopefully they keep the correct resolution Jul 26 21:08:39 ahh ok Jul 26 21:09:13 lasserix: if you didn't modify the size, it should be alright unless you mix them up :) Jul 26 21:09:34 SimonVT: i figured out a problem but do not know a solution are you knowledgable in the AudioPolicyManager Jul 26 21:10:32 I am not Jul 26 21:10:37 ok :( Jul 26 21:13:13 anyone had reports of flickering ListView on Nexus S running Android 4.1.1 ? Jul 26 21:13:24 for ListView not using custom background Jul 26 21:16:53 Is there any major difference between a dialog and a popup? Jul 26 21:18:54 bubbleguuum: There's a new setting in the developer options that can make that happen. Jul 26 21:19:53 billjings: thanks for the info. I got a report from a user, I doubt he's a developper and it would happens in every app, right ? Jul 26 21:29:17 hello, been having a problem with C2DM for the past day or so. Our connections were working fine but now suddenly they are getting 401 (not authorized) responses from the android.apis.google.com server Jul 26 21:30:45 if anyone has an insight (or an e-mail address for the appropriate support) it would be greatly appreciated Jul 26 21:32:34 since the guide on custom account types says to not store the password, and then don't try to come up with a secure method yourself, does anybody know where i could find some articles on how to do it well from someone that IS a security professional (as the guide suggests)? Jul 26 21:33:27 has anyone got the AndroidBillingLibrary from robotmedia working? Jul 26 21:38:58 why does hardware acceleration has to have that gradient? Jul 26 21:39:37 huh? Jul 26 21:40:05 SimonVT: if you enable hardware acceleration, the ui gets a gradient background from bottom to top Jul 26 21:40:23 You mean the default holo dark background? Jul 26 21:40:31 Has nothing to do with hw accel Jul 26 21:41:07 SimonVT: yeap it has, if i turn hw off the background is solid black, if i turn it on, it gets the holo gradient Jul 26 21:41:17 I doubt it Jul 26 21:41:22 well try it Jul 26 21:41:38 i bet $3 million Jul 26 21:42:56 I'll handle the escrow for that Jul 26 21:43:09 ahh yeah, after 8 hours i finally figured out my bug.. Using ogg's instead of mp3's.. Jul 26 21:43:33 oggs are supported by android arent they? Jul 26 21:44:08 yeah, and mp3 up from 2.3.. Jul 26 21:44:43 Oh, guess you're right Jul 26 21:44:47 Still the default background Jul 26 21:45:05 Problem I was having was that I could only set up 7 mp3 files, to play with MediaPlayer.. Anything above that, and I'd get a nullpointerexception Jul 26 21:45:27 Just override it Jul 26 21:45:27 Tried so many options, till I thought of trying a different audio format Jul 26 21:45:55 SimonVT: could do Jul 26 21:47:09 I did learn a lot though thanks to my 8 hour search.. :) Jul 26 21:57:47 since the guide on custom account types says to not store the password, and then don't try to come up with a secure method yourself, does anybody know where i could find some articles on how to do it well from someone that IS a security professional (as the guide suggests)? Jul 26 21:58:12 Hi guys, i am new to android world, not to programming, any book to suggest? Jul 26 21:58:20 thank you in advance Jul 26 22:04:17 :> Jul 26 22:44:29 hello Jul 26 22:44:46 hi Jul 26 22:59:09 I notice in the Android Designer's Holo Icon pack there is no xhdpi, is it safe to use hdpi for those? Jul 26 22:59:38 lasserix: are you sure? i have xhdpi.... Jul 26 23:01:06 Ahh hmm I am pulling from platform/ Jul 26 23:01:17 that is why Jul 26 23:01:38 i got mine from the design site Jul 26 23:03:17 Ahh yeah i like the look of one in particular, but it is ic not holo spec Jul 26 23:03:21 hmm will have to redo Jul 26 23:04:11 I am attempting to launch a DialogFragment when my Activity is launched for a file, conditioned on the current state of the app, unfortunately calling DialogFragment.show from onNewIntent is throwing "IllegalStateException: Can not perform this action after onSaveInstanceState", any ideas? Jul 26 23:04:34 robb_www: yeah you can't do that.... Jul 26 23:05:00 what would the correct approach be then? Jul 26 23:05:46 robb_www: not sure what the best way to do it is actually, soembody will have a good idea though Jul 26 23:06:17 I just need to suggest a file is saved before opening the next one :) Jul 26 23:06:47 robbwell dialogs should be used really rarely anyways, if its just information, consider using a toast Jul 26 23:07:00 its a confirmation dialog Jul 26 23:07:37 i.e. current file is modified, do you want to dismiss changes? [y/n] Jul 26 23:07:58 robb_www: ah ok Jul 26 23:10:54 hm, i see someone on SO stored the intent and then used it in onResume Jul 26 23:12:28 robb_www: i just remembered i made a timer app that does that shows a dialog from background, let me see how i did it Jul 26 23:13:01 robb_www: onNewIntent is called before onResume.. So can't do that Jul 26 23:13:20 thats precisely why I /can/ do that, onNewIntent provides the intent, i then use it from onResume Jul 26 23:13:37 I was only replying to your first message :p Jul 26 23:13:44 Rest was tldr Jul 26 23:13:49 ahh I see, thanks :D Jul 26 23:14:02 But yeah, use the intent in onresume Jul 26 23:14:23 I wonder if getIntent returns the new intent? Jul 26 23:15:10 robb_www: ah i actually had a seperate activity for the dialog so that woudln't work for you Jul 26 23:15:21 f2 fair enough Jul 26 23:16:34 * robb_www crosses fingers and toes Jul 26 23:17:18 getIntent does not return the new intent Jul 26 23:17:27 it returns the intent that created the activity Jul 26 23:17:27 good, to be honest Jul 26 23:17:44 $81 for a new battery for my UPS...sigh Jul 26 23:17:47 how much is a new UPS Jul 26 23:17:51 on SO the guy used setIntent onNewIntent, which I assume would override that behaviour Jul 26 23:17:54 $60ish? Jul 26 23:19:46 well not quite Jul 26 23:19:55 but an equivalent one, 5 years newer than mine, is like $175 Jul 26 23:19:57 i would just save the state in some appropriate construct and check for the condition in onResume Jul 26 23:20:16 you didn't speicy how good of a UPS :P Jul 26 23:20:21 specify Jul 26 23:21:05 for my purposes entry level is adequate Jul 26 23:21:07 wongk, done that exactly, works a charm, thanks guys Jul 26 23:22:00 so, I hear zynga stock keeps going down, down, down Jul 26 23:22:22 wongk-home: $60 sounds like one that lets you survive occassional <1s loss of power and (usually) burns first in case of power surge Jul 26 23:22:43 though things could have changed Jul 26 23:22:43 p_l|home: they've always worked for me? Jul 26 23:22:47 pragma-, so it's a great buy right now, right? Jul 26 23:22:54 that's the spirit Jul 26 23:23:41 wow, down 40% today Jul 26 23:23:45 that's impressive Jul 26 23:24:01 Zynga breaks all records Jul 26 23:25:08 Ahh no wonder my tablet is mdpi fucking Jul 26 23:25:14 http://www.reuters.com/finance/stocks/ZNGA.O/key-developments/article/2579974 Jul 26 23:25:22 technically it was yesterday Jul 26 23:26:10 there's a limit to how much you can clone, if it's organisms or games at some point you're going to be left with something no body wants to play around with Jul 26 23:27:13 plus fb's user interface axiom is homogenous so while they try and implement custom user expeirence + formatting with attempts like timeline they're working against their own mo Jul 26 23:37:25 how do i prevent an image view background from stretching due to padding? Jul 26 23:39:24 is there something can execute within a phonegap plugin when the class is destroyed? Jul 26 23:41:32 lasserix: ScaleType Jul 26 23:48:58 anyone in here develop with anything other than java? Jul 26 23:49:05 for android i mean Jul 27 00:03:51 you mean the NDK Jul 27 00:04:26 its either java or the NDK with c/c++ Jul 27 00:05:28 hi room Jul 27 00:05:34 i get 07-27 02:03:42.570: E/AndroidRuntime(25483): Caused by: java.lang.NoClassDefFoundError: org.apache.http.entity.mime.MultipartEntity Jul 27 00:07:42 You should probably fix that Jul 27 00:07:44 Is there any good way to dynamically set the height of a popupwindow with a listview? Jul 27 00:08:24 :lasserix layout_height="wrap_content"? Jul 27 00:08:34 always fills parents Jul 27 00:08:43 *fills parent Jul 27 00:08:56 you should use match_parent…. fill parent is deprecated Jul 27 00:09:52 No i mean, it always behaves as if matching the parent Jul 27 00:10:00 It never wraps the height, always fills Jul 27 00:10:28 hard to help you without seeing your xml Jul 27 00:12:00 http://pastebin.com/pYjFCZne Jul 27 00:12:29 Add I'm initializing the popupwindow as Jul 27 00:12:29 mMenuWindow = new PopupWindow(mLayout, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT); Jul 27 00:12:29 Jul 27 00:12:29 Jul 27 00:12:33 woops* Jul 27 00:13:56 listview and wrap_content doesn't really work Jul 27 00:14:16 So I should set a height for the listview? Jul 27 00:14:34 You could do that Jul 27 00:14:49 you also shouldn't need android:layout_alignParentTop="true" Jul 27 00:15:20 Is there any way to dynamically do this? Just so it's not a tiny square on a tablet and just large enough on a phone Jul 27 00:16:06 I haven't been paying attention, but if you're using DIPs that's not a problem Jul 27 00:16:32 if you're describing your layouts in pixels...don't :-) Jul 27 00:17:17 Trying to install Android Support package but it's missing in my SDK manager. Is there some secret trick I'm missing? Everything else is seemingly up-to-date. Jul 27 00:17:25 Always using dp except text sp, just the popup window is always filling height no matter what i do Jul 27 00:17:37 PeteS its a separate download Jul 27 00:17:52 Petes make sure you update eclipse>new software Jul 27 00:18:02 I couldn't find it the other day because my sdk version was out of date Jul 27 00:18:59 hm… yeah I updated everything I could get my hands on. SDK, Eclipse tools, etc. not a sign of it anywhere Jul 27 00:21:28 if i need an AVD; would i typically just 'make one' or would i download something, or what Jul 27 00:21:37 i am trying to go through https://github.com/jberkel/android-plugin/wiki/getting-started Jul 27 00:21:50 and it says to tab through my avds; but there are none apparently Jul 27 00:22:10 so i am trying to make, or get one Jul 27 00:23:49 You'd 'read the docs': http://developer.android.com/tools/devices/index.html Jul 27 00:24:18 PeteS, have you actually downloaded it? Jul 27 00:24:51 stupid question, disregard Jul 27 00:25:46 SimonVT: yeah. i have been reading docs, but its true not all of them Jul 27 00:25:49 still trying to get to hello world Jul 27 00:26:01 so toast notifications, trying to figure out if to show the Jul 27 00:29:26 robb_www: I'm assuming this is supposed to be downloaded through the SDK Manager… is that right? Jul 27 00:29:44 thats what it says here http://developer.android.com/tools/extras/support-library.html Jul 27 00:30:35 its listed within a folder called "Extras" in the SDK Manager Jul 27 00:30:44 in theory, at least :-) Jul 27 00:30:49 has anyone seen decent apps that use phonegap? Jul 27 00:30:49 Petes: I got it through the sdk manager, but like I said it wasn't there until I upgraded the sdk Jul 27 00:31:06 thanks guys Jul 27 00:31:08 and/or gals Jul 27 00:31:20 PeteS, do you have "Installed" packages hidden by any chance? Jul 27 00:32:10 nope… apparently it was something that needed to be upgraded, and then still didn't show up until Eclipse was restarted. all's well now Jul 27 00:53:43 I've got a webview, it's throwing an error when i try to open it to a url, any url, and i've no idea why. error code -12, "The page could not be opened because the URL is invalid.", with failingurl = "http://www.google.com/" Jul 27 00:53:59 crap nevermind, forgot to add permission internet Jul 27 00:54:24 got distracted by the 'invalid url' message >.< Jul 27 01:39:51 hello Jul 27 01:40:19 anyone can help me about signing problem Jul 27 01:42:11 When building a project from command line, how do I add a .jar to the build path? (IE, the v4 support library) Jul 27 01:42:21 Put it in libs/ Jul 27 01:42:52 just a symlink will suffice I assume? Jul 27 01:43:04 No idea Jul 27 01:43:13 i had a problem when signing my aplication using jarsigner, my step is iam already have certifcate from old developer. and then i import that certificate to my keystore, after i got keystore with certifcate added, then i would like to signing using jarsigner..after i run jarsigner i got error that Certificate chain not found bla..bla bla Jul 27 01:45:42 in my getView customAdapter, I try to load an external image like this: new LoadImage(holder.imgIcon).execute(); Jul 27 01:46:20 it works, but when I scroll down, then back up, I see wrong images for a few seconds and then I see the correct one Jul 27 01:47:11 actually if i scroll anywhere, it takes a few seconds until the correct image gets rendered Jul 27 01:47:19 Reset the image in getview Jul 27 01:47:33 Make sure a loaded image is only set on the view if the view is in the same position Jul 27 01:48:10 ya that's what I need Jul 27 01:48:14 ok here are the 2 functions Jul 27 01:48:14 http://pastebin.com/eWzqnGF8 Jul 27 01:48:21 getview and the loadimage.exec Jul 27 01:48:46 line 27 I need to a check there Jul 27 01:48:57 line 61 as well, im not sure yet what Jul 27 01:49:38 Also, cache the images on storage Jul 27 01:49:46 Using the network every time is slow Jul 27 01:50:44 what do you mean by this: SimonVT> Make sure a loaded image is only set on the view if the view is in the same position Jul 27 01:52:20 That if the imageview is at position X when you start loading, don't set the image if it's at position Y when loading finishes Jul 27 01:52:57 hmm not sure how to do this Jul 27 01:53:36 Then you have something to spend your time on tonight Jul 27 01:54:46 ya trying to find a basic exampel Jul 27 01:54:49 example* Jul 27 01:57:40 good article : http://android.amberfog.com/?p=296 Jul 27 01:57:42 I think Jul 27 01:59:17 shit I get what it's doing Jul 27 01:59:23 it is using item 11 as item 1 Jul 27 01:59:34 what exactly is the "promo text"? Jul 27 01:59:36 thats why item 11 has item 1's image for like a second Jul 27 01:59:53 SimonVT: is that the secret Jul 27 02:00:25 If you don't know how listviews work, watch "the world of listview" from google io 2010 Jul 27 02:00:35 It's no secret that it reuses views Jul 27 02:01:25 ya, this is day 6 of android-dev Jul 27 02:01:42 7 days ago I never had eclipse installed Jul 27 02:01:56 or android sdk, or a android device Jul 27 02:02:43 I'll check that out from google io Jul 27 02:04:24 SimonVT: I think I'll go watch that :) Jul 27 02:16:27 SimonVT, once its actually live on play, your in the credits for RefMaster, meant to ask you before publishing, hope that is OK Jul 27 02:16:41 oO Jul 27 02:16:43 What'd I do Jul 27 02:17:00 just as a "thanks to", you helped with my ListView issue the other day, and im sure there was something else recently Jul 27 02:17:16 ah yer, the onNewIntent issue Jul 27 02:17:21 Hehe Jul 27 02:17:23 That's fine Jul 27 02:22:52 SimonVT: you haven't even tried out the app and you're letting him attach your name to what may potentially be a very crappy app that will ultimately destroy your reputation? Jul 27 02:23:28 My reputation as? A hobbyist developer? Jul 27 02:23:38 firstly, fair point, secondly, thanks for the vote of confidence ;) Jul 27 02:25:37 its a BibTeX reference manager, like a cut-down version of JabRef Jul 27 02:46:19 oi oi oi Jul 27 02:46:50 AUSSIE AUSSIE AUSSIE Jul 27 02:54:57 Hi everyone Jul 27 02:57:21 So lonely out here... **** ENDING LOGGING AT Fri Jul 27 02:59:58 2012