**** BEGIN LOGGING AT Sun Jul 08 02:59:58 2012 Jul 08 02:59:59 Where do you get NFC? Did I forget to remove that? Jul 08 03:00:44 hah, I left the title in my project file. Jul 08 03:00:45 Nice. Jul 08 03:01:06 Yeah, I was going to try to do something with NFC, but it turns out that SL4A doesn't support NFC yet. Jul 08 03:37:29 hmm.. does anyone know what the html color value of Theme.Holo.Lights background color is? Jul 08 03:38:51 colorzilla - http://tinyurl.com/4q4fdjb Jul 08 03:39:52 Nice link... but I am colorblind. :-P Jul 08 03:40:42 bovv: me too :P Jul 08 03:42:44 drpenguin: you ever notice how color pickers appear to have the same band of colors repeating over and over? Jul 08 03:43:04 bovv: honestly, no, becaus I dont use color pickers Jul 08 03:44:24 drpenguin: I sometimes have to use color. Typically to highlight something, I try to choose yellow --- so I encounter color-pickers often enough. Jul 08 03:44:58 bovv: ahh.. I see.. yeah I just started to really use colors, trying to make my app much better so maybe ppl will download it Jul 08 03:46:33 drpenguin: what is your app? Jul 08 03:47:01 agargiulo: ehh.. honestly id rather not even say at this point Jul 08 03:47:03 im embarassed of it Jul 08 03:47:13 fair enough Jul 08 03:47:29 It's not another bloody fart app, is it? Jul 08 03:47:35 no it isnt Jul 08 03:47:36 I'm just starting to learn deving for android as it is. Jul 08 03:47:42 effing fart apps lol Jul 08 03:48:51 drpenguin: what tools do you use to support your development? Jul 08 03:49:00 bovv: whatcha mean? Jul 08 03:49:22 I realized today that I could totally dev an app for my phone from my phone using ssh for coding and downloading the apk from my web server Jul 08 03:49:55 That's a lot of extra work if you're still just learning it. Jul 08 03:50:04 drpenguin: Like, do you use Eclipse? Do you use anything else along with it? Jul 08 03:50:06 I'm not going to do it Jul 08 03:50:12 but it's possible Jul 08 03:50:24 bovv: oh its eclipse Jul 08 03:51:06 drpenguin: Anything else? Jul 08 03:51:31 bovv: svn for version control Jul 08 03:52:11 why not git? Jul 08 03:52:27 agargiulo: because I know svn not git? Jul 08 03:52:37 svn is nice, too. Git is nice, hg is okay, it's all good :) Jul 08 03:52:42 I like github Jul 08 03:52:48 That's the only reason I ever use git. Jul 08 03:53:02 can i get some testers? Jul 08 03:53:05 drpenguin: good point Jul 08 03:53:11 parco: testing what? Jul 08 03:53:17 manchicken: github is pretty sweet Jul 08 03:53:22 agargiulo: i call it, Gearbox Jul 08 03:53:31 What does it do? Jul 08 03:53:38 virtually anything Jul 08 03:53:46 just gotta write the gear Jul 08 03:53:52 will it do my homework Jul 08 03:53:56 Got a link? Jul 08 03:53:57 depends Jul 08 03:54:05 I'll help test. what device does it work on? Jul 08 03:54:10 will it get me a girlfriend Jul 08 03:54:37 >2.2 Jul 08 03:54:57 drpenguin: you're a charming guy, you should have no problems Jul 08 03:55:21 agargiulo: market link doesnt work yet, i can send you a .apk link Jul 08 03:55:22 parco: lol, you funny Jul 08 03:55:33 that works Jul 08 04:24:16 is there an easy way to save android debug logs? Jul 08 04:25:10 adb logcat > logs.txt Jul 08 04:25:32 thanks Jul 08 04:25:48 you'll have to kill that after a few seconds since it'll just tail forever Jul 08 04:25:53 but give it about 5 seconds to complete Jul 08 04:26:31 now that has a backlog of all messages Jul 08 04:26:42 or just ones since i started it Jul 08 04:27:38 It may be since boot. read the help for logcat Jul 08 04:27:48 It dumps the whole log Jul 08 04:28:00 acra may help - http://tinyurl.com/6orbn7k Jul 08 04:30:42 how long does it usually take for an app to publish to the play store? Jul 08 04:32:44 It's random Jul 08 04:33:05 last question: if i have an ide up that is showing the logs, will 'adb logcat > text.txt' contain the same stuff, or will it be "competing" for the logs? Jul 08 04:34:37 It'll contain the same Jul 08 04:37:19 ok, thanks Jul 08 04:44:06 I have a 2 column GridView of images, and I want to set each item to be square. The GridView seems to take care of the width, but how can I set the height (ignoring scaling issues, for now)? Jul 08 04:44:36 override onMeasure in whatever container and force it to be square Jul 08 04:45:03 child container Jul 08 04:45:19 Cool, makes sense. Jul 08 04:47:23 if I have a menu item that is just going to load up an about screen, that screen needs to be it's own activity, right? Jul 08 04:53:57 JakeWharton, excellent, it's working. Thanks for all of the help tonight. Jul 08 05:03:41 Yes! https://play.google.com/store/apps/details?id=com.demarco.gearbox Jul 08 05:05:07 needs a description Jul 08 05:05:15 parco: I Jul 08 05:05:22 I'm* liking the JARVIS App Jul 08 05:06:48 JakeWharton: thanks, im on it Jul 08 05:06:58 agargiulo: glad you like it! Jul 08 05:08:08 i cant believe it only took like 30 minutes, thats awesome Jul 08 05:13:20 Is it safe to specify your own shareUserId in a production app? Jul 08 05:14:13 *sharedUserId Jul 08 05:21:22 JakeWharton: given my understanding, yes Jul 08 05:31:26 saves me a stack overflow question, thanks Jul 08 05:31:32 it's too late for us anyways Jul 08 05:31:47 it's 0731 Jul 08 05:32:00 0131 here =] Jul 08 05:32:09 0531 in one true timezone Jul 08 05:32:17 well, 0532 now ;) Jul 08 05:50:40 parco: Where do we learn about creating gears for this? Jul 08 06:07:09 manchicken: currently writing that up Jul 08 06:07:17 Righto. Jul 08 06:22:53 manchicken: market's taking a bit to update, but for now http://pastebin.com/iTbjkh3k Jul 08 06:23:58 hey guys i am trying to convert an array of objects of a custom class to parcelable so that i can send it to another activity Jul 08 06:24:35 can anyone please tell me how can i do that ? Jul 08 06:24:51 i am getting classcastexception in it Jul 08 06:25:32 sunny_slls: need to see code Jul 08 06:25:50 Okay, so you're just packaging SL4A? Jul 08 06:25:53 show us where you are implementing Parcelable (your custom class) and how you are sending the parcel in your intent Jul 08 06:26:38 QubeZ, the custom class is not parcelable Jul 08 06:26:55 manchicken: sort of, its a front end for PY4A Jul 08 06:27:00 QubeZ, its a serializable class which is have getters and setters Jul 08 06:27:12 when you are creating an array of objects from your custom class than that class needs to implement Parcelable Jul 08 06:27:29 ok Jul 08 06:27:38 let me get you a tutorial Jul 08 06:27:50 QubeZ, can't i cast this serializable object to Parcelable object ? Jul 08 06:27:55 ok Jul 08 06:27:59 parco: You're linking to SL4A. Jul 08 06:28:01 http://shri.blog.kraya.co.uk/2010/04/26/android-parcel-data-to-pass-between-activities-using-parcelable-classes/ Jul 08 06:28:16 sunny_slls: I've never used Serializable.. in Android I just use Parcelable directly Jul 08 06:28:24 because its very easy to do Jul 08 06:28:34 ok Jul 08 06:28:37 thanks QubeZ Jul 08 06:28:41 manchicken: SL4A >> PY4A >> Gearbox Jul 08 06:28:43 np Jul 08 06:29:01 Good guy QubeZ Jul 08 06:29:20 parco: I got that. Jul 08 06:29:22 manchicken: so yes, you're right Jul 08 06:29:30 SimonVT: Thanks :) Jul 08 06:29:39 parco: You might have a licensing issue. Jul 08 06:31:31 manchicken: The SL4A License. Like the Android platform, SL4A is open source and is released under the same Apache. License Version 2.0 Jul 08 06:31:46 Which your app is not in compliance with. Jul 08 06:31:55 how so? Jul 08 06:33:18 Do you have a link to the Apache License 2.0 in your app or a NOTICE file? Jul 08 06:36:24 god damn it Jul 08 06:37:38 manchicken: i do have it within the source, should i add it so it is UI accessible? Jul 08 06:39:03 Yeah, probably. I might even link to it from your marketing copy. Jul 08 06:40:40 I think those are a good idea - I use SL4A myself - but I worry about inexperienced people getting themselves getting into trouble. Jul 08 06:40:45 Do you support eggs? Jul 08 06:40:59 I'm trying to add NFC support into SL4A. Jul 08 06:41:40 i'm going to post in the SL4A just to be safe Jul 08 06:41:50 i dont want to step on any toes Jul 08 06:42:00 Well, and at the very least it's respectful, yeah? Jul 08 06:42:07 absolutely Jul 08 06:42:56 The JARVIS idea is neat. Jul 08 06:43:50 is this an official channel, or just defacto? Jul 08 06:43:53 I need to figure out how to get Perl modules to cross-compile here. Jul 08 06:44:16 whats up Gambit--- Jul 08 06:44:47 manchicken: thanks, my idea is too integrate the two Jul 08 06:44:49 rootlicker: It's IRC, that's all I know. Jul 08 06:44:50 g00s, crappy nvidia chipset causes dead system hang when I use chrome. Jul 08 06:44:51 to* Jul 08 06:45:04 Gambit---: MBA ? Jul 08 06:45:05 Is JARVIS a native app or PY4A? Jul 08 06:45:11 g00s, MBA? Jul 08 06:45:12 thats native Jul 08 06:45:29 Gambit-: macbook air or macbook pro retina ? Jul 08 06:45:31 Righto. Jul 08 06:45:36 macbook pro from a few years ago. Jul 08 06:45:43 yeah, i had that problem too Jul 08 06:45:50 try disabling GPU compositing Jul 08 06:45:55 chrome://flags Jul 08 06:46:45 GPU Compositing is currently disabled. Jul 08 06:47:08 :( dunno then. the latest chrome has been fucking terrible Jul 08 06:47:15 actually, it's ironic Jul 08 06:47:26 this is the /second/ program that will consistently dead-hang the box. Jul 08 06:47:27 Hey folks, I am using the Android support library and ActionBar Sherlock.. Now I wonder where I can best put them in my VCS to make sure that it's easy for other users to get started with the development and so that they don't break the paths every time they import the project into eclipse.. I'm sure there is a best practice Jul 08 06:47:36 is it possible to unpublish without losing all the information? Jul 08 06:47:53 the first is a game written years ago that uses a totally deprecated set of system calls. Jul 08 06:49:58 parco: I think people would be okay with you just updating it. Jul 08 06:51:33 parco: You don't lose any information when you unpublish Jul 08 06:51:58 It just disappears from market. Reappears when you click publish Jul 08 06:52:06 perfect thanks Jul 08 06:53:35 My first build of SL4A, wish me luck! Jul 08 06:54:03 :( dunno then. the latest chrome has been fucking terrible <----- same for me Jul 08 06:54:11 good luck! Jul 08 06:54:28 GpuProcessHostUIShim: GPU Process Crashed. Jul 08 06:54:38 check the gpu info @ chrome://gpu-internals Jul 08 06:55:10 you can see if accelerated compositing is turned on or not Jul 08 06:55:18 SWEET! Jul 08 06:55:26 My build worked Jul 08 06:55:37 Now that I can build it, I need to build NFC. Jul 08 06:55:38 manchicken: nice work Jul 08 06:55:59 NFC? near-field comm? Jul 08 06:56:52 UnknownzD: "Accelerated 2D canvas is unstable for NVidia GeForce 9400M on Lion" wtf Jul 08 06:57:30 well blame Chromium dev for it :P but you can always enable it as you may want Jul 08 06:58:07 add --ignore-gpu-blacklist to chromium Jul 08 06:58:29 Yeah Jul 08 06:58:49 I'm trying to build a facade for SL4A implementing NFC Jul 08 06:59:27 g00s try to add --enable-accelerated-2d-canvas as well Jul 08 06:59:47 UnknownzD: thanks :) Jul 08 07:00:48 g00s, crappy nvidia chipset causes dead system hang when I use chrome. <------ did you update to latest dev version? Jul 08 07:01:01 latest dev version of what? Jul 08 07:01:04 "This version fixes a small sync problem (Issue: 134715) and contains a fix for Mac hardware with the Intel HD 4000 graphics chip (e.g. the new Macbook Airs), in order to prevent a resource leak which is causing a kernel panic on that hardware. This is a temporary change while we work on fixing the root cause of the issue." Jul 08 07:01:14 http://googlechromereleases.blogspot.com/ Jul 08 07:01:21 try to get the dev channel used Jul 08 07:02:17 but tbh after that fix, chrome doesn't work well in Windows, especially with my 2000+ chars parameters Jul 08 07:02:41 UnknownzD, actually, I'd rather figure out how to disable alll of the hardware accelerating Jul 08 07:02:56 uh secs Jul 08 07:03:42 I'm wondering if it is possible to throw "uses-feature" in at runtime. Jul 08 07:03:44 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; Jul 08 07:03:51 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; Jul 08 07:04:05 so add --disable-accelerated-2d-canva and --disable-accelerated-compositing then Jul 08 07:05:40 may be you could try --blacklist-accelerated-compositing and --blacklist-webgl as well Jul 08 07:06:23 ah silly me lol Gambit- you can just use this Jul 08 07:06:24 disable-gpu Jul 08 07:06:28 --disable-gpu Jul 08 07:07:16 well, it says webgl unavailable, and webgl multisampling hardware accelerated Jul 08 07:07:23 so hopefully it will do the trick. Jul 08 07:07:38 hey QubeZ , i am trying to make custom parcelable class like this Jul 08 07:07:39 http://pastebin.com/8y0DPeLa Jul 08 07:07:55 thanks for the tricks, UnknownzD Jul 08 07:07:56 I should probably go to bed. Jul 08 07:08:21 next time if you want to disable / enable something Jul 08 07:08:24 checks here Jul 08 07:08:25 http://src.chromium.org/svn/trunk/src/content/public/common/content_switches.cc Jul 08 07:09:56 :) Jul 08 07:10:06 QubeZ, http://pastebin.com/4xvwkfcN here is the where i am making objects Jul 08 07:10:16 can you please have a look at it Jul 08 07:10:58 sunny_slls: You need to write and read your values Jul 08 07:11:12 In writeToParcel and the constructor Jul 08 07:12:50 SimonVT, actually i am writing 2 different values in 2 different places Jul 08 07:13:05 if you see there is correctID() and wrongID() Jul 08 07:13:52 I see an empty writeToParcel(Parcel, int) and an empty DMVQuestionAttempt(Parcel) Jul 08 07:14:07 Meaning you didn't fully implement the parcelable interface Jul 08 07:15:09 SimonVT, when does this writeToParcel() gets called ? Jul 08 07:15:43 When the class instance is parceled Jul 08 07:16:43 e.g. when you pass it in an intent Jul 08 07:16:50 ok Jul 08 07:19:14 SimonVT, but then in my case only the last value will be written in the parcel Jul 08 07:19:28 that will happen when i pass it in an intent Jul 08 07:19:41 but i wan't to write an array of objects to the parcel Jul 08 07:20:19 Before you start worrying about passing objects in intents, you need to finish implementing the parcelable interface Jul 08 07:20:24 Those are two seperate issues Jul 08 07:21:53 anyone managed to get Andriod 4 (ICS) working on the "Samung Galexy S Advance (i9070)) ? Jul 08 07:23:47 SimonVT, http://pastebin.com/vwKM32eC check this out Jul 08 07:24:29 yay :) Jul 08 07:24:56 SimonVT, One Question. So when i call this constructor, do i have to cast the value to the parcel and then send it as param ? Jul 08 07:25:06 You don't call that constructor Jul 08 07:25:20 The framework does Jul 08 07:25:37 ok Jul 08 07:25:55 ok then let me try this out Jul 08 07:26:53 I am having problems with IPC between an activity and a service, both in separate processes, via Messenger. If I create a new Message with message.obtain(null, MY_MSG_ID), I get a RuntimeException stating "Can't marshal non-parcelable objects across processes". Does anyone have a clue what I am doing wrong? Jul 08 07:28:05 schnippi: hmm. seem to recall you can only pass system-derived objects implementing parcelable with remote messengers Jul 08 07:28:24 that is, any android class that implements parcelable Jul 08 07:30:53 So you're suggesting using a Bundle to "transform" MY_MSG_ID? Jul 08 07:31:05 (which is an int) Jul 08 07:31:10 * g00s is looking at messenger again Jul 08 07:31:51 what if you do it like this msg = Message.obtain(null, Jul 08 07:31:52 MessengerService.MSG_SET_VALUE, this.hashCode(), 0); Jul 08 07:31:54 It seems that I can not put an int to the what member of Message, if I am communicating between separate processes. Jul 08 07:31:57 (from the docs) Jul 08 07:33:09 if you have a layout-port folder and a layout-land folder, do you even need the default layout folder in an android project in eclipse? Jul 08 07:33:49 X-suriV: you shouldn't use layout-port/ unless you need to differentiate from something in layout/ Jul 08 07:33:56 essentially, you should use layout/ and layout-land/ Jul 08 07:34:06 ah, ok thanks. Jul 08 07:34:21 it is very unwise to not have a default folder for resource type Jul 08 07:34:30 uhh what Jul 08 07:34:42 even though you think portrait and landscape are the only two orientations you'd be wrong Jul 08 07:35:00 oh what are the other ones? Jul 08 07:35:05 square Jul 08 07:35:05 there's square :) Jul 08 07:35:19 And triangle Jul 08 07:35:33 what devices have square orientation? Jul 08 07:35:37 http://allthingsd.com/files/2011/12/triangle_tablet.png Jul 08 07:35:47 hahaha Jul 08 07:35:49 Exactly, JakeWharton :p Jul 08 07:35:54 but... Jul 08 07:35:55 why? Jul 08 07:35:55 :-D Jul 08 07:36:18 SimonVT, hey while parsing it is giving badparcelableException Jul 08 07:36:52 Anyways, if you omit a default your app is going to crash on a device for which you haven't specified a folder that matches. So if you specified layout-land/ and layout-port/ and someone ran your app on a square-oriented device it would crash. Jul 08 07:37:09 ah Jul 08 07:37:19 JakeWharton: drawables can be a little different though Jul 08 07:37:23 Unless square is one of those special qualifiers… but I think that's limited to density Jul 08 07:37:23 SimonVT, DMVQuestionAttempt[] dmv = dmvAttempt; Jul 08 07:37:23 Bundle bundle = new Bundle(); Jul 08 07:37:23 bundle.putParcelableArray("ID", dmv); Jul 08 07:37:23 Jul 08 07:37:23 intent.putExtras(bundle); Jul 08 07:37:27 ohh nm i thought you were saying you don't need a default, misread Jul 08 07:37:33 if you only use density specifiers that is Jul 08 07:37:37 (and no XML drawables) Jul 08 07:38:14 oh wow you can put Arrays in a bundle? Nice learn something new everyday Jul 08 07:38:54 SimonVT, and while retrieving i am doing Bundle b = new Bundle(); Parcelable[] parcel = b.getParcelableArray("ID") ; Jul 08 07:39:39 I feel like the Square apps need to do something special if you run them on a square orientation device… Jul 08 07:39:51 schnippi: you should only have seen that runtime exception if Message.object != null && Message.object != framework parcelable Jul 08 07:39:55 JakeWharton: replace all text characters with squares Jul 08 07:39:56 while i do DMVQuestionAttempt[] dmv = b.getParcelableArray("ID") ; it tells to cast it with (DMVQuestionAttempt[]) Jul 08 07:40:04 g00s: I don't think that this would change anything. Jul 08 07:40:28 g00s: Yes, the problem is the MY_MSG_ID in the what member of Message. Jul 08 07:40:43 but that should be ok Jul 08 07:40:47 g00s: MY_MSG_ID is int and thus not a Parcelable. Jul 08 07:41:01 oh wait Jul 08 07:41:26 what wrong am i doing here ? Jul 08 07:42:01 has there even been a square oriented phone created? Jul 08 07:42:09 not that I know of Jul 08 07:42:12 emulator :p Jul 08 07:42:16 square android is like square burger patty Jul 08 07:42:25 isn't the moto watch square ? Jul 08 07:42:32 good point Jul 08 07:42:42 and probably other Android watches Jul 08 07:42:55 almost: http://www.pantechusa.com/pocket/ Jul 08 07:43:01 they have android watches now? o_O Jul 08 07:43:11 X-suriV: there are Android anything Jul 08 07:43:25 washing machines, cars, etc. Jul 08 07:43:26 android watch huh - can do some really cool applications with acceleromter that way Jul 08 07:43:57 mikedg: has an Android watch but he's probably asleep Jul 08 07:44:31 android watch with skin conductance and ecg sensors Jul 08 07:44:56 I tired many typyes way to fix connection in 3G but still not working and this is status : http://i.imgur.com/R6AWc.png Jul 08 07:45:33 maybe android should let you specify aspect ratios like 4:3 4:4 16:9 or 3:2 Jul 08 07:45:49 what would that help with? Jul 08 07:45:52 well 4:4 would be 1:1 :) Jul 08 07:45:58 g00s: wtf? Jul 08 07:46:29 just wondering out loud …. O.o Jul 08 07:47:20 wow I want it: Jul 08 07:47:20 http://www.youtube.com/watch?v=iDYGcvLZMiM&feature=player_embedded Jul 08 07:47:25 Android watch Jul 08 07:47:30 one could make slight adjsutments to take advantage of different aspect ratios, but the gai is small compared to the added complexity Jul 08 07:47:40 i mean in res/ of course. you guys don't think it might be nice to have different layouts for 4:3 or 3:2 ? Jul 08 07:47:55 ah Jul 08 07:48:19 well we kind of have that Jul 08 07:48:21 with long and notlong Jul 08 07:48:27 i mean orientation, size, and density already offer what, 3*4*4 possible variations in a layout file, yeah? Jul 08 07:49:04 plus the sw, w, and h qualifiers give infinite precision on a density-independent scale Jul 08 07:49:05 rootlicker: also screenLayout and screen aspect Jul 08 07:50:27 so there ya have it.. complixity enough imo Jul 08 07:50:38 more qualifiers!! Jul 08 07:51:06 we'll also probably add -rtl and -ltr Jul 08 07:51:23 :- Jul 08 07:51:27 :-\ Jul 08 07:52:06 those make sense though Jul 08 07:52:13 yep Jul 08 07:52:22 add an easter egg qualifier Jul 08 07:52:42 maybe we should add -monkey Jul 08 07:52:55 layout-egg.. well that's a bit too obvious Jul 08 07:53:16 haha what would -monkey do Jul 08 07:53:28 resources for the monkey of course Jul 08 07:53:33 it needs to be fed Jul 08 07:54:11 SimonVT, you there ? Jul 08 07:54:38 my next project's layout files will have names like banana.xml Jul 08 07:54:51 I hate this @!$ monkey Jul 08 07:55:44 the build script should spit out some ascii monkey when you put a banana.xml in the res/layout-monkey folder Jul 08 07:55:56 in the console Jul 08 07:59:35 so app encryption is only on 4.1 right ? Jul 08 07:59:50 its not something the new play client is doing, in other words Jul 08 08:04:56 It's a shame ActivityOptions animations can't play in reverse when finish()ing Jul 08 08:05:53 JakeWharton: it wouldn't always work Jul 08 08:06:04 JakeWharton: for instance if the "caller" finish() itself Jul 08 08:06:25 true Jul 08 08:06:37 I have this case where I'd love for the activity to shrink back where it came from though Jul 08 08:06:48 the expand looks absolutely brilliant at least Jul 08 08:09:14 I had been avoiding writing a real animation to do this transition since it would be an epic undertaking (currently crossing activities but would have to change to views) and with the ActivityOptions I was able to get it going one way in two lines of code. So sweet. Jul 08 08:09:30 The iOS guys spent days on it Jul 08 08:09:31 muahaha Jul 08 08:29:26 guys i am trying to pass a parcelable array of objects to an intent to another activity where i am getting badparcelableexception Jul 08 08:29:28 http://pastebin.com/BYud1rgX Jul 08 08:29:46 here is my class extending Parcelable interface http://pastebin.com/vwKM32eC Jul 08 08:29:54 please help me out in this Jul 08 08:31:43 Intent extras aren't really meant for passing large objects. You should only be passing the information necessary to fetch the appropriate data (e.g., a file path, unique row id, etc.). Jul 08 08:31:47 Also, your second link doesn't work Jul 08 08:33:34 JakeWharton, http://pastebin.com/h46z9Nhx Jul 08 08:33:36 here it is Jul 08 08:33:56 CREATER -> CREATOR Jul 08 08:34:17 oh~! Jul 08 08:37:41 JakeWharton, but the error is throwing when i am trying to retrieve it ? Jul 08 08:38:09 and that doesn't fix it? Jul 08 08:39:04 JakeWharton, no Jul 08 08:39:53 JakeWharton, http://pastebin.com/Qk2eA3k7 Jul 08 08:39:59 here is the error Jul 08 08:41:04 Parcelable[] dmv = bundle.getParcelableArray("ID"); Jul 08 08:41:12 its throwing error here in this line Jul 08 08:41:57 it's telling you what the problem is: Parcelable protocol requires a Parcelable.Creator object called CREATOR on class com.android.dmv.ui.DMVQuestionAttempt Jul 08 08:42:03 are you sure you renamed it and tried again? Jul 08 08:43:37 yes Jul 08 08:43:44 let me try one more time Jul 08 08:45:20 wtf we have analytics on an error dialog that only has one button Jul 08 08:46:10 JakeWharton, yes i am confirmed that its changed then too its throwing same error Jul 08 08:46:36 Intent intent = getIntent(); Jul 08 08:46:36 Bundle bundle = intent.getExtras(); Jul 08 08:46:36 Parcelable[] dmv = bundle.getParcelableArray("ID"); Jul 08 08:47:10 are you using proguard? Jul 08 08:47:11 ? Jul 08 08:47:53 yes Jul 08 08:48:04 but that has proguard has to do with this ? Jul 08 08:48:06 it's probably stripping that because it doesn't think anyone will be using it Jul 08 08:48:45 -keep class * implements android.os.Parcelable { Jul 08 08:48:45 public static final android.os.Parcelable$Creator *; Jul 08 08:48:46 } Jul 08 08:50:03 now why that isn't part of the standard android pro guard I have no clue Jul 08 08:51:29 I need some help with multitouch-pointers-ids. Jul 08 08:52:28 When ACTION_DOWN or ACTION_POINTER_DOWN is send, I got an an PointerId with event.getPointerId(pointerIndex); Jul 08 08:52:58 With that I can find the same pointer(finger) later in the move events. Jul 08 08:53:37 ok? Jul 08 08:54:17 romainguy, talking to me? Jul 08 08:54:22 yes Jul 08 08:55:16 fornext: what's the issue? Jul 08 08:55:38 JakeWharton, nope the result is the same Jul 08 08:55:40 in the ACTION_MOVE event I do a loop from 0 to pointerCount-1, and find the pointerId with event.getPointerID(i). Jul 08 08:56:10 why are you doing this? Jul 08 08:56:23 JakeWharton, DMVQuestionAttempt[] dmv = dmvAttempt; Jul 08 08:56:23 Bundle bundle = new Bundle(); Jul 08 08:56:23 bundle.putParcelableArray("ID", dmv); Jul 08 08:56:23 Jul 08 08:56:23 intent.putExtras(bundle); Jul 08 08:56:48 this is the way i am passing the array of parcelable objects to an intent Jul 08 08:57:15 romainguy, the issue is, that one finger works. But when I use a second finger, I got another one, and if I move it, there will be a third pointer, not moving at the place where the second finger was out down. Jul 08 08:58:34 sunny_slls: having never used Parcelables or pro guard we're rapidly depleting the things I can find to help you with. same error still? Jul 08 08:58:59 JakeWharton, unfortunately yes Jul 08 08:59:15 fornext: can I see your code? I'm having a hard time understanding what you're trying to do Jul 08 08:59:23 JakeWharton, what i am trying to do is pass an array of parcelable objects to an intent Jul 08 08:59:41 yeah I understand what you're trying to do Jul 08 08:59:56 romainguy, http://pastebin.com/eZc0EW5G Jul 08 09:00:28 sunny_slls: why not use Intent.putExtra(key, Parcelable[]) ? Jul 08 09:00:48 romainguy, I want to keep track of the pointers in a ArrayList called touchEvents Jul 08 09:01:19 sunny_slls: I don't think you are using Intent.putExtras correctlt Jul 08 09:01:22 romainguy, I am not sure if the bug is in the way I uses the pointer api, or somewhere else. Jul 08 09:01:22 *correctly Jul 08 09:01:58 g00s: those do the same thing Jul 08 09:02:29 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/content/Intent.java#L4852-4857 Jul 08 09:02:32 fornext: there's a simpler way Jul 08 09:02:42 fornext: if your use a SparseArray Jul 08 09:02:43 oh noes! highlight off-by-one error Jul 08 09:02:47 you can avoid the search in the array Jul 08 09:03:20 JakeWharton: putExtras says "The keys must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll". Jul 08 09:03:50 romainguy, thx, didnt see the SparseArray before. Jul 08 09:04:11 I think almost nobody prefixes their intent extras with package-prefixed keys Jul 08 09:05:14 g00s, ya tried that too ... its the same thing happening Jul 08 09:05:45 JakeWharton: I use prefixes, but not the package name Jul 08 09:06:15 romainguy, but can you see where the additional Pointers came from? Jul 08 09:06:39 fornext: what additional pointers? Jul 08 09:07:18 JakeWharton, what can be done ? Jul 08 09:07:38 romainguy, if I put down the second finger to the screen, there are two new Pointers. One is movable and one is static. Jul 08 09:08:06 fornext: what device/version of Android? Jul 08 09:08:23 sunny_slls: I haven't a clue, sorry. Jul 08 09:08:33 romainguy, htc desire 2.3.x Jul 08 09:08:37 ok Jul 08 09:08:53 fornext: do you get a down for the 3rd pointer or just a move? Jul 08 09:09:49 romainguy, no, two fingers ar max. Just a move. Jul 08 09:10:05 I understand you have two fingers only on the screen Jul 08 09:10:27 anyway, since you track the down events you can just ignore the extra move that doesn't match anything Jul 08 09:12:21 romainguy, can you see the touchEvents.add, its is only called in the ACTION_DOWN and ACTION_POINTER_DOWN part. This means that only this code can add elements. But the second Finger adds two new elements. That is the problem. Jul 08 09:12:52 fornext: so you get two more downs? Jul 08 09:13:14 romainguy, I can try to debug, but it is hard with multitouch. Jul 08 09:16:26 romainguy, i got 3 Jul 08 09:16:48 so Jul 08 09:17:04 ACTION_DOWN is always for pointer index=0 Jul 08 09:17:59 when are you getting the extra pointer? with the first finger or the second finger? Jul 08 09:18:47 romainguy, ok, sorry. I find out the bug is somewhere else. Jul 08 09:19:00 ok, what was it? :) Jul 08 09:19:11 btw you should also handle "cancel" events Jul 08 09:19:49 romainguy, in the acitivity there is only one event, but in the Thread, that needs the events, there are three. Jul 08 09:20:31 romainguy, I put the events to a ArrayBlockingQueue Jul 08 09:23:06 romainguy, http://pastebin.com/HstzcgN0 ... the event must be duplicated here. Jul 08 09:34:11 hello Jul 08 09:35:18 one question - ist there a possibility to make time pass more quickly in the emulator. I have some code that is executed all 20 minutes and during testing i really don't want to wait 20 minutes every time Jul 08 09:35:33 Pinas: change your code to execute more often? Jul 08 09:36:17 yea of course changing the code is one possibity but I'd like to have a little time machine :) Jul 08 09:37:01 you can change the time inside the emulator :) Jul 08 09:37:57 you can use SystemClock to change the time programmatically: http://developer.android.com/reference/android/os/SystemClock.html#setCurrentTimeMillis(long) Jul 08 09:37:58 yea but there is nothing like "press F10 and inside the emulator 5 minutes are passed" ?? Jul 08 09:38:22 no Jul 08 09:38:48 ok - thank you : Jul 08 09:38:50 :) Jul 08 09:45:33 Anyone know of a commons for ui drawables (specifically seekbar sliders)? Jul 08 09:53:22 hi JakeWharton Jul 08 09:54:10 JakeWharton, by the time i am using to convert the serializable objects to bytearrays and then deserializaling it Jul 08 09:54:11 its working Jul 08 10:05:23 Does anyone have a link to a seekbar 9.png background? Jul 08 10:17:32 what would happen if you changed the manifest package after compilation but before apk-ing? Jul 08 10:19:48 I need to find a better way to manage multiple versions of apps without this library project nonsense Jul 08 10:22:49 there's a -post-compile step in the platform build.xml… hmm… Jul 08 10:23:31 romainguy, finally found the "bug" Jul 08 10:24:08 romainguy, the motionEvent is transformed - why I cant say - while moving through the queue. Jul 08 10:31:16 I think MotionEvents are reused Jul 08 10:31:26 I vaguely remember reading that in the docs somewhere Jul 08 10:35:03 if I could go back in time I would flip the classnames of ViewFlipper and ViewAnimator Jul 08 10:40:52 Hello, someobody have exeperince with the Actionbar Sherlock? Can I intgrate it in existing projects? Jul 08 10:42:51 Hi all i am looking at building an android app. i am looking for a wysiwig app builder. what i am wanting to do is have the app open a list of youtube videos. and when clicking on the videos a list of installed browsers and the youtube app come up to choose from. i already heard about andromo but it builds a browser with the videos adn is quite big. Jul 08 10:43:22 sukramTM: Sure, you just have to switch the activity you extend from, add a theme, and ensure you're compiling with Android 4.0 SDK or newer. Jul 08 10:46:33 hello any ideas ^ Jul 08 10:47:23 JakeWharton: My english isn't so good, when I add a search firld in the Action Bar, what look it like on API 8 Devices? Jul 08 10:49:26 SearchView isn't currently supported Jul 08 10:49:35 that will only work on API 11+ Jul 08 10:49:44 it is coming soon Jul 08 10:52:29 so i cant use it, when i also want a searchview on < API 11. Because the searchfield is importen for my App. The searchfield, what I mean is like the field in contacts, where you type the first char and it filter the list Jul 08 10:58:51 Well you could always just use a regular EditText Jul 08 10:59:12 SearchView is just an enhanced version of an EditText Jul 08 11:04:09 JakeWharton: A tutorial how to integrate the Sherlock Actionbar in existing project would be nice, perhaps you find somebody who write one ;-) Jul 08 11:29:39 I need to set a compound drawable loaded programmatically to a textview... but I don't know how to do it. I tried creating a new drawable as BitmapDrawable, but there is nothing displayed when I set it with textview.setCompoundDrawables... any idea? Jul 08 11:31:48 Hi whas a standers image sixe for portrate view on most phones and tablets Jul 08 11:32:18 (xxx)x(xxx) format Jul 08 11:32:33 HiDeHo: I don't understand your slang... Jul 08 11:32:38 * standard image size Jul 08 11:33:01 image size for what? Jul 08 11:33:02 elegos, typoneese not slang. Jul 08 11:33:04 backgrounds? Jul 08 11:33:13 ah yes app backgrounds Jul 08 11:33:20 HiDeHo: it mostly depends on the device DPI Jul 08 11:33:28 800x480 is a common rez Jul 08 11:33:31 you know, l/m/h/x dpi Jul 08 11:33:32 for phones Jul 08 11:33:39 but that varies. Jul 08 11:33:39 elegos, for an application i am building Jul 08 11:34:04 HiDeHo: http://developer.android.com/guide/practices/screens_support.html Jul 08 11:34:17 it depends on the screen density Jul 08 11:34:32 elegos, the app site andromo needs a format (xxx)x(xxx) Jul 08 11:34:42 elegos, i understand that Jul 08 11:35:01 you can get tablets that have a 1920x1200 screen Jul 08 11:35:03 i mean the general ratio in the format i need Jul 08 11:35:15 that varies too much to be depended on Jul 08 11:35:26 just assume that they can have any rez Jul 08 11:35:56 are you trying to push images on contacts? i.e. for sync'ing with a site's db? Jul 08 11:36:21 then how do i choose the corect image sizes for background of the app for portrait and landscape view Jul 08 11:36:50 * Japa| is pretty new to android, but is pretty sure there's a way to get the screen size Jul 08 11:37:11 I have never seen a "landscape" contact image TBH Jul 08 11:37:31 elegos, no its the background of an application i am building with http://www.andromo.com a wysiwig app buuilder Jul 08 11:37:50 elegos, where did contact images come into it Jul 08 11:37:59 every application has a background Jul 08 11:38:13 ah you say the program background, not the contact one Jul 08 11:38:21 yes i have Jul 08 11:38:30 lol its ok Jul 08 11:38:41 this: http://stackoverflow.com/questions/6840904/how-to-get-the-screen-size-of-the-device Jul 08 11:38:42 at least you got me now Jul 08 11:39:16 Android is not bound to a specific screen size Jul 08 11:39:26 nor there is a "common" one Jul 08 11:39:40 cheap phones will most probably have an ldpi, small screen Jul 08 11:40:59 http://pastebin.com/q2ziNms3 i have a layout a little like this, the 2 buttons (in landscape mode) are meant to be on the same line, and i would like them to meet in the middle, equally, but at the moment they are on the left and right side of the screen respectively Jul 08 11:41:58 JaredCE: you may create a linearlayout with fixed width Jul 08 11:42:05 then set it to the center Jul 08 11:45:30 is there a way to set an image inside a textview so that the text will surround the image? Jul 08 11:47:15 Anyone here able to give me some pointers regarding AccountManager? I've started off by creating authenticator.xml, android:accountType set to a value that's the same as in the Account-instance passed to AccountManager.addAccountExplicitly(Account, String, Bundle). However, I get a uid mismatch thrown :( Jul 08 11:49:08 hey guys Jul 08 11:49:12 Hola Jul 08 11:49:46 i just had a crazy idea and wanted to ask if anyone knows if that already had been done :P Jul 08 11:49:50 Shoot Jul 08 11:50:01 Although, I have to advise you to not do it too Jul 08 11:50:06 :P Jul 08 11:50:19 If it isn't already done, then it might be by someone else by you mentioning it. ;-) Jul 08 11:50:55 i have a listview with images (like 300px * something) and on scrolling i experience some "performance issues" because they have to get loaded out of a sqlite database.. Jul 08 11:51:07 i thought about caching the next view items on scrolling Jul 08 11:51:24 images loaded via SQLite? Jul 08 11:51:36 o'rly? Jul 08 11:51:46 bytearrays => converted to bitmaps Jul 08 11:51:52 bad, bad habit Jul 08 11:52:15 but needed. Jul 08 11:52:23 elegos, i can't make it as a linear layout as i have other elements in that layout, needs to be releative Jul 08 11:52:44 JaredCE: create a linear layout inside your relative one Jul 08 11:53:03 Aeefire: btw you can cache them storing them in the sdcard Jul 08 11:54:36 but - you'll not notice any improvement if you load them out of the SQLite when you're loading the "current ones" Jul 08 11:55:02 you could create a SparseArray and load them all starting up Jul 08 11:55:28 but this won't let you load them on demand Jul 08 11:55:58 unfortunately, accessing database is WAY slower than accessing a file on the FS Jul 08 11:56:02 (i.e. the sdcard) Jul 08 12:05:43 elegos, that works, though not sure how you centre the 2 buttons so they're equal length whatever the screensize, is there magic for that Jul 08 12:06:47 JaredCE: you can set the linear layout width the same of the two buttons, and then set the linear layout's param android:layout_centerInParent="true" Jul 08 12:07:24 hmmmm let's try my own cacheclass *fear* Jul 08 12:07:54 Aeefire: why are images stored in sqlite? can't you load them via internet? Jul 08 12:08:10 or - if they're part of a package, can't you extract them all once installed? Jul 08 12:08:16 gawd boy Jul 08 12:08:25 they are NOT part of the package.. Jul 08 12:08:32 the thing is Jul 08 12:09:07 if i get the pics from the gallery I have to rescale them everytime i display them Jul 08 12:09:29 and i bet this is slower.. Jul 08 12:09:30 elegos, wait do i need 2 linear layouts? Jul 08 12:09:36 Aeefire: you can resize them once and save them in /sdcard/your.inverse.dns/cache Jul 08 12:10:07 JaredCE: Relative Layout -> Linear Layout with android:layout_centerInParent="true" and width "wrap_content" -> the two buttons Jul 08 12:10:14 user changes sdcard => data gone => no win :( Jul 08 12:10:40 Aeefire: you could cache them in /data/your.inverse.dns.app/cache then Jul 08 12:11:37 this will load the internal storage though, and some devices have little space on it - but seems to be the only alternative not to recreate the index each time Jul 08 12:11:39 i could, but the thing is.. won't they get loaded by the gallery then? I don't want those thumbnails appear in the gallery then.. Jul 08 12:11:58 you can add a file named .nomedia Jul 08 12:12:22 to the directory? Jul 08 12:12:33 into the cache directory, yes Jul 08 12:12:51 this will prevent the gallery to index those images Jul 08 12:13:08 hmpf i am not really sure if that's worth it... makes all this much more complex imho.. Jul 08 12:13:29 SQLite is not fast enought on PCs, not even on smartphones Jul 08 12:13:38 the SQLite approach is wrong for images Jul 08 12:14:32 hmmmmmmmm Jul 08 12:15:07 so you guarantee me that this will be noticeably faster? Jul 08 12:15:22 :P Jul 08 12:15:29 it will, accessing the filesystem is way faster Jul 08 12:15:42 even more if you apply a standard rule for reaching images Jul 08 12:15:59 ... what do you mean by "a standard rule" ? Jul 08 12:15:59 i.e. if you do not access a database to see where the image thumbnail is Jul 08 12:16:05 for example Jul 08 12:16:09 ah Jul 08 12:16:27 /data/your.app/cache/RULE1/RULE2/FILENAME.EXT Jul 08 12:17:26 hm i don't really get what you mean by this.. Jul 08 12:17:48 suppose you're accessing the gallery Jul 08 12:17:54 and want to create thumbnails Jul 08 12:18:04 there may be two files with the same name Jul 08 12:18:19 if you don't make a rule, the 2nd will overwrite the 1st Jul 08 12:18:35 ye Jul 08 12:18:40 just that Jul 08 12:19:08 you have two different ways to handle that: Jul 08 12:19:19 1. assigning image -> location in a database (bad) Jul 08 12:19:38 2. recreating the same path in the cache (good, but not only way) Jul 08 12:19:43 the 2nd is a rule Jul 08 12:20:26 btw you should delete the cache when an image is being deleted Jul 08 12:20:40 i think i get it now... still thinking about a way to realize all this... Jul 08 12:21:05 it's pretty simple -> do not save in sqlite, but save in cache folder Jul 08 12:21:29 :P i mean... in the context of my app Jul 08 12:21:36 if the image is my/folder/image.img, you will save the thumbnail in /data/my.app.dns/cache/my/folder/image.img Jul 08 12:22:06 best is to have two simple methods of a class "ImageHandler" or whatever: get and set thumbnail Jul 08 12:22:35 setThumbnail(String original_uri) and getThumbnail(String original_uri) Jul 08 12:22:42 those two methods will do all the job Jul 08 12:22:56 you can even make them static Jul 08 12:25:13 hmm let's try (i guess this is going to be a long coding session >.<) Jul 08 13:37:18 I want to switch from a C native application to C++, what do I have to change? Jul 08 13:37:46 nothing Jul 08 13:43:53 doh, I forgot to rename main.c to main.cpp, but it seems like I would have to delete all the obj data, too because it would still search for main.c but I got some compile errors since C++ is more pedantic, so I guess I can figure it out now Jul 08 13:45:09 hooray! it works! :D Jul 08 13:46:40 Is it normal that the sherlock libary shows erros after import them? Jul 08 13:49:11 moving to c(++) was so much more painless than to figure out how to draw a single triangle with opengl es in java.... Jul 08 13:49:27 ok, when I opened it at Project and dont import it, it works Jul 08 13:49:41 or not Jul 08 13:53:43 Hey guys Jul 08 13:54:15 I'm having trouble with a bluetooth chat application I wrote... it doesn't recognize when the other side disconnects Jul 08 13:55:14 it's basically a while(true) loop, which suppose to break if there's an exeption from reading the input stream Jul 08 13:55:25 but it just keeps on going... Jul 08 13:55:39 the code is the same as the bluetooth chat sample code from android Jul 08 13:56:45 hi Jul 08 13:56:54 which is better? canvas vs android engine vs opengl? Jul 08 14:01:34 hi, trying to find a known limit for maximum size of data that can be passed on to an Intent. A stackoverflow question has a reference to a 50KB limit, but I couldn't find it on d.android.com. Any hints? Jul 08 14:02:26 udp package size? Jul 08 14:05:58 john carmack said 1500 byte is fine when he wrote quake, my bomberman clone ran fine with 16 kbyte 60 times a second (wlan, not internet) and failed around 60 kbyte (which was because I did not handle fragmentation but if I did that more should have been ok, too) but all these data are for pcs, not smartphones Jul 08 14:07:05 Waynes: no, using Intent for IPC. i.e. as a Service. Jul 08 14:08:25 sorry, can't help you there Jul 08 14:10:46 Waynes: when did you write your bomberman clone though? Jul 08 14:11:26 last month Jul 08 14:11:54 for university to learn "teamwork" Jul 08 14:12:29 and because my "team" was kind of...handicapped we ended up sending the whole map every frame for simplicity Jul 08 14:18:27 I guess using shorts for all my calculations is fastest on the majority of android devices? Jul 08 14:22:51 any recommended device for development ? Jul 08 14:23:26 bullicon: the most crappy one so if it runs on this it will run on any device Jul 08 14:24:01 Waynes: cool tip Jul 08 14:24:13 bullicon: get one with the oldest android version you want to support Jul 08 14:24:34 which is the mostly used out there? Jul 08 14:24:52 http://developer.android.com/about/dashboards/index.html Jul 08 14:24:57 cool Jul 08 14:25:03 2.3.3 nice Jul 08 14:25:42 api level 1.0 what doesnt come with this one? Jul 08 14:26:14 probably not much Jul 08 14:26:56 I am using api level 8 for opengl es 2.0 Jul 08 14:27:05 which is android version 2.2 Jul 08 14:27:31 cool Jul 08 14:27:39 so it accounts for pretty much all never smartphones and older ones will not have the performance to run anything anyway Jul 08 14:27:43 shopping on ebay for a device Jul 08 14:27:44 *newer Jul 08 14:28:15 bullicon: better read some more first or wait for comments of a more experienced developer Jul 08 14:28:43 Waynes: ok cool thanks Jul 08 14:28:52 the simulator drags me to annoyance Jul 08 14:29:22 Waynes: any reason why you needed to use opengl es 2.0 Jul 08 14:29:22 bullicon: with newer machines, the new emulator runs quite nice Jul 08 14:29:24 yeah, it's nice that there is one but it is a piece of **** Jul 08 14:29:52 p_l|backup I want something as fast as hitting reload on a browser Jul 08 14:29:54 bullicon: with opengl es 2.0 I can write my own shader programs Jul 08 14:30:08 shader programs ? Jul 08 14:30:13 When I try to import the Sherlock Library I get this erros: http://pastebin.com/aTA8Cmpf Jul 08 14:30:56 And I see the library in my Explorer but it shows sevrel errors Jul 08 14:31:05 bullicon: Switch to either developing for the web, then, or desktop with something like lisp or smalltalk >_> Jul 08 14:32:05 p_l|backupq I currently develop for the web, so its understandable, so I'd assume developing on the device should be a lot faster than the simulator] Jul 08 14:32:25 And there is a red ! in front of my project Jul 08 14:32:34 bullicon: with shaders you can make very cool effects like this: http://www.iquilezles.org/apps/shadertoy/?p=metablob Jul 08 14:33:18 bullicon: Most importantly, you have compile/link/load cycle, so there's no chance for "hit the refresh button" Jul 08 14:33:33 Waynes: looks nice! Jul 08 14:33:36 * bullicon bookmarks Jul 08 14:34:19 p_l|backup I can come with the compule/link/load cycle but testing with the simulator is slow Jul 08 14:34:32 I meant that "hit refresh button" figuratievely Jul 08 14:35:41 bullicon: after playing a bit with the newer simulator on not-so-recent machine like C2Q 2.9Ghz, with hw accel, it runs "fast enough" Jul 08 14:35:47 a device will be better still Jul 08 14:36:15 but for general programming you might want "best i can afford", then get some old crap to test against for breakage Jul 08 14:36:34 i see Jul 08 14:37:12 especially since newer OS versions introduced new tools, like 4.1's systrace support Jul 08 14:38:05 beefier hw will also make it more passable to run pretty slow things like profiling Jul 08 14:38:29 however, DO test on old/slow hw Jul 08 14:39:10 p_l|backup most devices here do not list the version of OS on them Jul 08 14:39:27 I can sure reinstall right ? Jul 08 14:39:40 bullicon: not really. It's HAIRY area Jul 08 14:39:50 p_l|backup how do you mean ? Jul 08 14:39:51 If B extends A, and I have A instance = new B(); Can I somehow find out if instance is of type B? Jul 08 14:40:09 if you want up-to-date on OS, get a nexus S or Galaxy Nexus Jul 08 14:40:22 Kake_Fisk: there is an instance of thing that java can do.. i forge the syntax Jul 08 14:41:00 instanceof Jul 08 14:41:09 thats it Jul 08 14:41:40 But that would return true for the superclass as well Jul 08 14:42:37 Of course Jul 08 14:43:10 p_l|backup no I wan an old OS Jul 08 14:43:51 hi Jul 08 14:45:07 My question: I want to load a .bmp or .png file as a resource using Bitmap.decodeStream but I get an empy bitmap basically. So what would you suggest is the proper way to load a bitmap? Jul 08 14:45:19 I intend to use it for opengl texturing Jul 08 14:46:50 bullicon: welcome to world of hurt if it's going to be your only dev. device Jul 08 14:47:22 p_l|backup: I can't invest so much Jul 08 14:47:26 at most two devices Jul 08 14:47:45 p_l|backup Waynes how many devices do you folks test with Jul 08 14:49:26 bullicon: you can probably get a cheapo android with low specs easily with any kind of contract, even prepaid, then get yourself a gnexus on open market Jul 08 14:49:53 personally, i don't have money for any device, so i'm stuck with 1.5-vintage one Jul 08 14:51:28 No one inclined to look at my question? :/ Jul 08 14:52:31 which is better? canvas vs android engine vs opengl? Jul 08 14:53:19 joker_89 that depends on your application Jul 08 14:54:19 But are textures in android considered assets or resources? I thought of them as assets, is that why it feels overcomplicated just to load a bitmap? Jul 08 14:59:23 i am newer in grpahics , waht do you recomend Enighma ? Jul 08 14:59:33 is there any tutorial ? Jul 08 15:01:11 joker_89 CG is quite a big area. Not sure of your background or what you want to create. But first I would recommend understanding linear algebra, at least the basics. Jul 08 15:01:26 Otherwise matrix and vector operations might be quite confusing Jul 08 15:09:02 hey, how do I prompt the media manager to rescan the storage after I manually drop some new content in there (via something other than mass storage or mtp, which it expects)? Rebooting does the trick, but I'd like something faster. Jul 08 15:17:12 anyone working on or come across a widget to toggle wifi direct on/off ? Jul 08 15:17:44 extreme2525: wifi direct? Jul 08 15:17:49 yah Jul 08 15:17:57 I know that there is a widget for wifi toggle. Jul 08 15:18:04 not sure if that helps though Jul 08 15:18:06 hello, can someone provide a link to what all those "factory" classes in Android are? I've googled but couldn't get a link to the relevant developer.android.com page Jul 08 15:18:06 yah , wifi direct i after Jul 08 15:18:11 on the samsung gs3 Jul 08 15:18:17 *with information about Jul 08 15:18:29 extreme2525: what is wifi direct? Jul 08 15:18:41 http://forum.xda-developers.com/showthread.php?t=1700436 Jul 08 15:18:44 oops Jul 08 15:19:09 Wi-Fi Direct is a new wireless technology that enables Wi-Fi Direct devices to connect directly to one another Jul 08 15:19:13 its on the sgs3 and 3 Jul 08 15:19:24 http://www.google.ca/webhp?sourceid=toolbar-instant&hl=en&ion=1&qscrl=1&nord=1&rlz=1T4GGHP_enCA485CA486#hl=en&qscrl=1&nord=1&rlz=1T4GGHP_enCA485CA486&sclient=psy-ab&q=samsung%20wifi%20direct&oq=&gs_l=&pbx=1&fp=d4a09077de0438f6&ion=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&biw=1428&bih=708 Jul 08 15:19:24 oh cool Jul 08 15:19:39 extreme2525: short url? Jul 08 15:20:20 i use it all the time as on my samsung sgs3 i enable wifi direct , then in camera i change the mode to share shot , anyone who is connected to my phone with me at a party on the wifi direct get every pic i take Jul 08 15:20:47 http://tinyurl.com/7s4qus6 Jul 08 15:20:54 there u go agargiulo Jul 08 15:21:15 extreme2525: oh that's really cool. Jul 08 15:21:17 just like a widget or shortcut to toggle the wifidirect on and off Jul 08 15:21:39 also thanks. I can't click the links in this irc client, and copy/paste of links that line break fails Jul 08 15:22:51 i asked on xda to , not sure why noone knows about wifidirect Jul 08 15:23:05 a well i;ll have to wait it out i guess Jul 08 15:23:13 extreme2525: or write it =] Jul 08 15:23:19 tru tru Jul 08 15:26:01 Hey guys, I've currently got a gridview w/ a custom adapter that populates with views created by inflating a layoutxml and populating the the controls. I'd like to move the logic of populating the controls in the layout outside of the adapter but I don't know the best way to do this. Should I create a custom view class that the adapter instantiates? If so, how do I still use the layout xml? Jul 08 15:26:23 >.> http://j.mp/L1VZkH Jul 08 15:27:22 Dany0: >.< Jul 08 15:27:31 fuck.... http://j.mp/L1W5bS Jul 08 16:11:46 where are all the spots that application theme is defined at? my theme is set to Theme.Sherlock.Light inside mymanifest, but it wants to do Theme.Sherlock (i.e, black not white Jul 08 16:11:47 ) Jul 08 16:13:12 hmm.. nevermind.. Eclipse is just bustin me again Jul 08 16:13:19 what's up Jul 08 16:13:29 what does Eclipse do to you Jul 08 16:13:40 it makes me want to go on a murderous rampage Jul 08 16:28:59 ? Whats this about a vibrate permission? I just received the second crash report for my app.. and it states something that it needs a vibrate permission? Ive beenable to get my phone to vibrate without this permission Jul 08 16:40:27 hi AdamOutler Jul 08 16:40:39 I heard you got UART on Meizu MX Jul 08 16:40:50 At the moment I'm porting CM9 to the dual core version Jul 08 16:40:55 But I don't know Jul 08 16:41:04 what name the boot partition has Jul 08 16:41:09 I can't find it in the fstab Jul 08 16:41:18 Thanks in advance :) Jul 08 16:49:20 Hello everyone Jul 08 16:51:27 I'm going through the getting started tutorial on the dev website and I'm getting a "can't find symbol" error in the part where they say I should use "Intent". how do I fix this? Jul 08 16:53:09 you know eclipse effed up big time when you get this: "Description Resource Path Location Type Jul 08 16:53:12 The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files BreakTimerActivity.java /BreakTimer/src/com/agargiulo/code/android/BreakTimer line 1 Java Problem Jul 08 16:53:16 oh sorry. Jul 08 16:53:22 didn't realize it was so long.. Jul 08 16:54:15 Hello, is it possible to creat a fix bar at the bottom of the display? Like the bottom action bar in the new API? Jul 08 17:19:15 i TOTALLY do not get ANY of the looper/handler thread examples posted on the net. not a single one of them even comes CLOSE to fitting my use case Jul 08 17:19:37 every freeking one of them is related to the user interface and my need is totally separate from the UI Jul 08 17:20:40 <[Miles]> hi all Jul 08 17:23:22 <[Miles]> i need to give an array of String to setItems of an AlertDialog but database class returns an arraylist of objects... how can i convert them to an array of string? Jul 08 17:23:52 can someone help me figure this shit out? Jul 08 17:24:47 i dont freeking understand why this crap has to be THIS fucking difficult. its a very simple concept and NONE of the examples i find works for me Jul 08 17:24:55 and they dont explain shit Jul 08 17:26:24 the freeking stackoverflow.com example is horrendous. 500 examples of how NOT to fucking do it Jul 08 17:26:24 what do you need help with? Jul 08 17:26:31 looper handler threads Jul 08 17:26:32 [Miles]: something like http://stackoverflow.com/questions/5374311/convert-arrayliststring-to-string? Jul 08 17:26:44 ok, what about looper handlers and threads Jul 08 17:26:44 hi all, I have an app that does some auth with twitter to let you post tweets. Currently all that work is done in an activity, but I want instead to put this in a normal class that I would utilize within another acitivity Jul 08 17:27:00 and I'm unsure how I can do that given I used onNewIntent Jul 08 17:27:16 you do not teach by counter example. showing a bunch of how NOT to do something $^&$^@)(! Jul 08 17:27:29 onNewIntent is called after the redirect from twitter back to this activity (with callback url in the manifest) Jul 08 17:27:31 ok lets stop there for a second.. Jul 08 17:27:34 drpenguin let me explain my use case Jul 08 17:27:36 do you know how to use threads? Jul 08 17:27:53 hi yea im frothing at the mouth here. and ive been doing realtime embedded control apps for over 25 yeras Jul 08 17:28:01 i know waht a thread is, what a task is and what a process is Jul 08 17:28:07 <[Miles]> luyang: problem is my arraylist is filled with Product items Jul 08 17:28:11 let me explain my use Jul 08 17:28:42 im writing a game, tile map based. the map is constructed as a block of X blocks by Y blocks where each block is a huffman encoded 16x16 tile array Jul 08 17:29:02 i only keep NINE of these resident at any one time. the block the player is in and the surrounding blocks. Jul 08 17:29:16 hey guys, is it possible to pass a class instance to another activity? I've got my main activity which displays a listview of "GameSessions" and I want to pass that instance to a new activity which lets the player interact with that session Jul 08 17:29:22 [Miles]: String[] result = new String[productItems.size()]; int i=0; for (Product product : productItems) { result[i++] = product.getName(); } Jul 08 17:29:25 something like that Jul 08 17:29:27 as the player moves i invalidate the blocks furthest away from him and repopulate the grid with new data Jul 08 17:29:52 that repopulating of the grid is what i want to move into a new thread. this has NOTHING what so ever to do with the user interface or the UI task Jul 08 17:30:23 yes, the UI task uses the data that gets loaded but this thread is totally separate from the UI task Jul 08 17:30:41 AsyncTask? Jul 08 17:30:42 every example ive found is for moving user interface shit into a new threead. useless Jul 08 17:30:49 no asynctask is too resource starved Jul 08 17:30:53 Ok, by repopulating the grid.. is that actually doing the re drawing? or is htis grid something you are managing that whatever does the drawing reads from Jul 08 17:30:58 im going to need at leats 10 threads in my game Jul 08 17:31:05 no its not doing any drawing Jul 08 17:31:33 i can guarantee that the data thats being loaded is not going to be touched by the user interface (drawing class) till long after its loaded Jul 08 17:31:46 but the grid is a shared resource between the loader and the UI Jul 08 17:32:04 "what" is the grid Jul 08 17:32:14 (all tron fans, hush) Jul 08 17:32:32 the grid is an array of 3x3 blocks where a block is 16x16 tiles. the player is always in the central grid Jul 08 17:32:49 Ok, but WHAT is it Jul 08 17:32:57 is this an image? is this an array as in []? Jul 08 17:33:07 oh a block is a class. the grid is an array of this class Jul 08 17:33:18 the block class is populated with instances of a tile class Jul 08 17:33:23 no. not an image Jul 08 17:33:26 Ok so, if we say the class is called Block, you have a Block[], right? Jul 08 17:33:30 yes Jul 08 17:33:43 Block[3][3] Jul 08 17:33:55 And you need a thread that will update this Block[][] in basically your update() portion of your game lop Jul 08 17:33:58 s/lop/loop/ Jul 08 17:34:00 and to populate a given item in the array i call Block[x][y].populate(mapx, mapy) Jul 08 17:34:29 Wouldn't simply creating a new Thread work for you? Jul 08 17:34:48 the populate method reads map data out of a file, huffman decodes it and then populates the given Block[][] with tiles based on the loaded data Jul 08 17:35:04 Knossos, isnt that what a looper is? Jul 08 17:35:09 No Jul 08 17:35:36 its a "thread plus more" Jul 08 17:35:54 its a thread plus a message queue Jul 08 17:35:59 looking at the offical docs.. "Class used to run a message loop for a thread.", meaning its a thread,but then yeah Jul 08 17:36:23 If you want to run something parallel to your UI thread, then make a new thread Jul 08 17:36:34 i need a way of telling this thread what data needs to be loaded and where it needs to be loaded to Jul 08 17:36:40 new Thread(new Runnable() { ... }).start(); Jul 08 17:36:49 Blah blah Jul 08 17:37:24 You will run into concurrency issues though, especially with a game Jul 08 17:38:05 Modifying your array of tiles whilst another one reads etc, etc Jul 08 17:38:12 Knossos, right now each Block contained within the grid has its own populate method. this is bad Jul 08 17:38:33 i need that populate method to pass a message to a worker thread that does the acutual population of the right block with the right dat Jul 08 17:38:38 WHat is the best way to communicate back to a UI thread? Jul 08 17:38:42 from a thread Jul 08 17:38:54 activity.runOnUiThread(...) Jul 08 17:39:24 That will queue up a Runnable in the main looper (I believe) Jul 08 17:39:27 no. NOT run on ui thread... thats the entire point Jul 08 17:39:38 this must not be urnning anywhere near the user interrface thread Jul 08 17:39:54 I440r: you only need to communicate back to the UI thread if you're planning to update the UI Jul 08 17:39:57 so.... Jul 08 17:40:07 no. i dont need to communicate anything TO the ui thread Jul 08 17:40:09 thats for luyang Jul 08 17:40:10 at all Jul 08 17:40:11 not l440r Jul 08 17:40:15 you guys are mixing the 2 up Jul 08 17:40:24 Again, just make a new Thread I440r Jul 08 17:40:35 heh btw the nick starts with a letter "eye" not a letter "Ell" :P~ Jul 08 17:40:43 l440r needs to communicate to his thread the new data when repopulating his Blokc Array Jul 08 17:40:51 Knossos, and how do i tell this thread that i need a block of data loaded Jul 08 17:41:10 and when i need a block loaded i realy need between 3 and 6 separate blocks loaded into the grid Jul 08 17:41:16 I440r: theres plenty of ways cyou could do this Jul 08 17:41:19 well it should be 5 Jul 08 17:41:25 drpenguin: oh but I wanna do that from an IntentService.. can I pass in an activity to the IntentService and then cal the runOnUiThread on the activity object? Jul 08 17:41:34 luyang: i wasnt answering your question Jul 08 17:41:40 ok Jul 08 17:41:49 you said "that's for luyang" Jul 08 17:41:52 There are plenty of ways I440r Jul 08 17:42:14 yes well i cant find any clear clean GOOD examples of how to do it that fit my use case Jul 08 17:42:20 and ive been searching all weekend Jul 08 17:42:22 I440r: I did something a while ago when I did some multi threading, I had my threads block on their own individual semaphores until I needed one, called a method to give it data, and then called up() to let it go Jul 08 17:42:26 Have a method that makes an inline new Thread Jul 08 17:42:40 Then operate on that Jul 08 17:42:57 I440: can't you use an IntentService and pass in the destination information as extra to the intent? Jul 08 17:43:33 Knossos: that m ay not be idea though, because now he has the overhead of making a new thread every time, when theres no need to trash the thread Jul 08 17:44:31 If you have the thread block when it has nothing to do, its not using cpu, so theres no harm in keeping it around Jul 08 17:45:14 so the JB emulator appears to be unusable Jul 08 17:45:15 I would personally use an AsyncTask because you can pass as many parameters in as you need, communicate back on the UI thread after you are done. Jul 08 17:45:26 And Android pools them itself Jul 08 17:45:27 Knossos: He doesnt need to do that though Jul 08 17:45:32 are you not listening to him? Jul 08 17:46:07 wongk-home: i can use it just fine.. Jul 08 17:46:08 I wanna have threaded IRC where questions are sticky so people can read them as conversation has moved on Jul 08 17:46:12 Well the way that I see it, he needs to reload the Grid Jul 08 17:46:27 The UI is going to need to know, at some point, that the loading is complete Jul 08 17:46:35 let me turn off GPU emulation Jul 08 17:46:47 Otherwise there will be some unexpected fun Jul 08 17:47:16 Knossos: then let him deal with that Jul 08 17:47:20 but thats NOT what he was asking Jul 08 17:47:33 wongk-home: im using it right now on mty linux box, and its working pretty well Jul 08 17:47:48 im on windows atm Jul 08 17:48:18 well, at least now i have a display Jul 08 17:50:12 omg! the easter eg in jb is cute Jul 08 17:53:30 i'm surprised they haven't invested any time to make these things faster Jul 08 17:53:31 sorry i think i got dc'd there Jul 08 17:53:35 im tethered to my android phone as thats my only option right now Jul 08 17:54:23 alot of the forums ive read are referencing a thread on mindtherobot.com but this is a reported attack site.. why are peiople constantly refering nubs to known attack sites? Jul 08 17:55:12 :/ Jul 08 17:55:47 they want to h4x0r your gibson Jul 08 17:57:37 then thers this whole problem of duplicating worker thread every time someone changes orientation Jul 08 17:58:01 this tells me i have NO choice but to instantiate this thread via the UI thread which is fucking with my brain in a big way Jul 08 17:58:19 duplicating worker thread? Jul 08 17:58:22 whats that nonsense about Jul 08 17:58:37 you mena if you dont handle the orientation change? Jul 08 17:58:46 let me find an example Jul 08 18:02:50 i cant find it but the guy was saying you need to initialize your looper therad inside your onCreate and stop it inside your onDestroy() Jul 08 18:02:53 i forget the details Jul 08 18:03:56 That doesnt explain why you would get duplicate worker threads, unless you arent handling the orientation change Jul 08 18:06:12 What's the proper way to handle an orientation change by the way? I often just force an orientation in the manifest because I never figured out how to handle it properly. Jul 08 18:09:38 there's no design decision i hate more about android than orientation changes Jul 08 18:10:02 vorsorken: that's highly case specific, you just need to always be thinking about it Jul 08 18:10:19 and be prepared to spend an inordinate amount of time handling it Jul 08 18:11:17 hi, I have an activity that initializes some objects. What happens if, I create a constructor for the activity and from another class get an instance of it as if it was a normal class ? ie MyActivity a = new MyActivity() Jul 08 18:11:48 then android would not be managing your activities lifetime Jul 08 18:12:07 wongk-home: Thanks, I'll just go on forcing an orientation for each activity then :P Jul 08 18:13:02 vorsorken: it's frowned upon, but honestly, if you're not using different layouts for each orientation, you're probably better off Jul 08 18:13:26 wongk-home, basically I need this particular activity to be an activity rather than normal java class (because of the mechanism, just to login to twitter and create a twitter object that other classes can call to tweet) Jul 08 18:13:51 wongk-home, based on the above description, what would you recommend ? Is it bad/wrong what I'm doing ? Jul 08 18:14:00 blip-: that doesn't really make any sense Jul 08 18:14:05 gawd.... preferences seem to not like me.. Jul 08 18:14:19 can someone look at this: http://pastebin.com/YjQfLLse Jul 08 18:14:23 an Activity is an Activity, and a class Jul 08 18:14:43 right Jul 08 18:14:51 initPrefs is only called once at the very first startup of the application (afteri nstallation), getNewIndex() ALWAYS throws "preferences not initialized" Jul 08 18:15:21 blip-: why do you think you do not want android to handle your activiy's lifetime? Jul 08 18:15:40 although the initPrefs commit() succeeds.. Jul 08 18:16:01 wongk-home, yes, so in one part of the application I would use this activity as an activity, ie startActivity and let it do it's work of logging in (this activit has no important graphical purpose in the app). In another part I just want to call a public method in that activity Jul 08 18:16:50 blip-: what does the method do Jul 08 18:17:41 noone any idea? :X Jul 08 18:18:48 Aeefire: what is initPrefs? Jul 08 18:18:49 wongk-home, this activity i'm describing to login to twitter is based on this source code http://blog.blundell-apps.com/sending-a-tweet/ and I just want to use its functionality of login/tweet without the graphical part, so I call it's methods from other classes throughout the larger app Jul 08 18:19:00 Aeefire: in initPrefs you set initialized to true, so when you check it later in getNewIndex, it's supposed to return true, which is your else condition Jul 08 18:19:18 blip-: why would you not encapsulate that functionality into its own class? Jul 08 18:19:55 vorsorken : my else condition? O.o Jul 08 18:20:21 Aeefire: in getNewIndex you check if initialized is false, but you set it to true in initPrefs right? Jul 08 18:20:29 jup Jul 08 18:20:33 how do I get adb to see my Nexus Q? Jul 08 18:20:50 so I think you should be checking if it's true, else your preferences are not initialized Jul 08 18:21:08 am i not? Jul 08 18:21:47 maybe you missed ! before prefs.getBoolean... Jul 08 18:21:48 wongk-home because the mechanism of logging in only works in activity --> opens a webview from twitter, then that redirects to a callback url. In the manifest I put this activity as the callback address (and set launchMode="singleInstance"). Also the code uses onNewIntent which is called when we redirect back to the activity from the webview Jul 08 18:22:10 Aeefire: i believe the preferences file is specific to each activity, the way you're using it Jul 08 18:22:36 but prefs.getBoolean("initialized",false) is supposed to return true ... and therefore it should go into the if clause not the else part? O.o Jul 08 18:22:41 wongk-home, so I don't see how this process can be done outside of an android activity, in a normal java class Jul 08 18:22:57 blip-: what you're working on is strikingly similar to what i'm working on Jul 08 18:23:04 anyone interested in helping me out with a good app? Jul 08 18:23:07 only im using evernote Jul 08 18:23:11 i have server and backend ready Jul 08 18:23:12 :P Jul 08 18:23:21 wongk-home that might be, but i am using in one context only anyway Jul 08 18:23:44 vorsorken i am reaallllyyy confused now. lol Jul 08 18:23:46 blip-: unfortunately i don't have to explain the whole architecture to you Jul 08 18:24:07 it would just need to access tv database and link files over http so i can play them with mx player Jul 08 18:24:18 Aeefire: oh shit, don't be...I mistook the second argument of getBoolean as the value you expect from the preference sorry about that Jul 08 18:24:23 the requirement on the browser makes it quite complicated Jul 08 18:24:49 no no, this is the default value if the preference "initialized" is not existing Jul 08 18:25:08 wongk-home, yes that's where I'm confused, this whole oauth process I didn't think would be difficult Jul 08 18:25:10 ( i still don't get why they don't make it returning null , but yeah..) Jul 08 18:25:10 right I just looked it up Jul 08 18:25:41 it somehow seems Jul 08 18:25:47 my prefs don't get "written" Jul 08 18:26:04 wongk-home, so I thought I just keep this activity in a special "twitter login" part of the app, then when the user wants to tweet from other parts - we get the twitter object that the activity created Jul 08 18:26:05 blip-: unfortunately it's pretty difficult :/ Jul 08 18:26:11 because prefs.getInt("lastInd",-2) returns -2 too all the time.. Jul 08 18:26:23 Aeefire: once you use the Editor, you need to call Editor#commit() Jul 08 18:26:36 edit.commit(); Jul 08 18:26:38 it's there Jul 08 18:26:38 :) Jul 08 18:26:46 blip-: anyway, it's possible to encapsulate it in a class and take an Activity reference Jul 08 18:26:52 AlCapwn : http://pastebin.com/YjQfLLse Jul 08 18:27:42 could it be that i can't "outsource" the whole preference thingy.... and he just doesn't like this one: SharedPreferences prefs = ((Activity) ctx).getPreferences(Context.MODE_PRIVATE); Jul 08 18:27:42 ? Jul 08 18:27:44 wongk-home, ah ok I'm not familiar with that but I can read into it. Can you point me in the right direction in the Docs please ? Jul 08 18:28:12 that's just OO design, it's not something i can just point you to in the docs :P Jul 08 18:28:34 ahmedamm_, i thought it was some special thing in Android for activities :D Jul 08 18:28:41 Aeefire: try PreferenceManager.getDefaultSharedPreferences(context); Jul 08 18:28:47 sorry ahmedamm_, mistyped Jul 08 18:28:48 i've always used that Jul 08 18:29:01 AlCapwn worth a try, second Jul 08 18:29:06 so if anyone has free time with a nice project pls pm :) Jul 08 18:29:47 xtc_ what Jul 08 18:30:06 Dany0: tv streaming app for mx player Jul 08 18:30:12 wongk-home, thanks for the help :) Jul 08 18:30:21 " so if anyone has free time with a nice project pls pm :)" <-- what Jul 08 18:30:55 yeah i am new to android coding Jul 08 18:31:06 only good at linux bash hehe Jul 08 18:31:25 but now i can play 720p over phone Jul 08 18:31:34 so i need app for all those series Jul 08 18:31:34 :P Jul 08 18:32:21 shouldnt be public Jul 08 18:32:29 and bandwith + space is there Jul 08 18:33:04 only 720p mkvs Jul 08 18:33:09 ok so im looking at this example --> http://stephendnicholas.com/archives/42 <-- and its totally useless to me Jul 08 18:33:13 AlCapwn this looks good, might have worked... :D Jul 08 18:33:25 :) Jul 08 18:33:26 this is passing a single value in the message. i need to pass a bundle as the message contents Jul 08 18:33:27 i have even sql database for all those episodes Jul 08 18:33:30 can that be done? Jul 08 18:33:39 AlCapwn still strange, but many t hanks. stupid :D Jul 08 18:33:58 glad to help Jul 08 18:33:58 i need to pass an X and a Y coordinate of the map block to be loaded and an X and a Y coodinate of the grid location to load that map data into Jul 08 18:34:24 send_some_kind_of_message(mapX, mapY, gridX, gridY) Jul 08 18:34:48 anyway if i cant find help i learn it myself :) Jul 08 18:34:57 not just a 0 1 2 3 4 5 whatever to be switched on Jul 08 18:35:48 how do i pass ALL the data my thread is going to need in order for it to know exactly how to perform the job i need it to do? Jul 08 18:36:28 AlCapwn wooo and i really get my images displayed ;D Jul 08 18:40:15 I440r: you could always use a variable.... Jul 08 18:40:33 and that variable can be passed as the message body? Jul 08 18:40:47 becayse having a public variable that i stuff values into for the thread to use is just bad Jul 08 18:41:10 anyone tried to develop c++ games/apps to android with NDK? Jul 08 18:41:17 it allows me to queue ONE load operation. not the 5 (6 because im loading one twice) blocks i need to load Jul 08 18:41:21 I440r: eh? it's fine with proper synchronizatio Jul 08 18:41:21 n Jul 08 18:41:28 no Jul 08 18:41:31 not fine Jul 08 18:41:35 I440r: .... so use a different kind of structure that allows multiple Jul 08 18:41:38 i need to pass ALL the info in a message Jul 08 18:41:41 ... Jul 08 18:41:45 zinc yes. the message queue Jul 08 18:41:49 I440r: learn about thread communication Jul 08 18:41:57 and synchronization Jul 08 18:42:09 please tell me the message queue does not only allow you to pass a 1 2 or 3 or... to be switched on Jul 08 18:42:14 you seem to not know many common message passing mechanisms Jul 08 18:42:18 please tell me i can pass complex parameters to my thread Jul 08 18:42:25 yes, you can Jul 08 18:42:34 easil Jul 08 18:42:35 y Jul 08 18:43:00 zinc please do not resort to personal insults to my inteligence or knowledge ill react very badly to that bullshit Jul 08 18:43:03 even easier in Java because a lot of the stuff will do all the synchronization you need without even thinking :/ Jul 08 18:43:08 im not a nub. im just a nub at android Jul 08 18:43:31 I440r: you don't know basic stuff about threads that you should know Jul 08 18:43:38 I440r: if you want to use them Jul 08 18:43:45 I440r: you can learn that stuff through online tutorials Jul 08 18:43:48 zinc ive been doing realtime embedded control for over 25 years Jul 08 18:43:55 I440r: hence, my suggestion that you go read up on it Jul 08 18:43:57 its not threading or tasks or processes i dont understand Jul 08 18:44:01 its this implementation of them Jul 08 18:44:04 sigh Jul 08 18:44:27 ok, i tried to help you, you're refusing the best help i have to offer, so off i go to other things Jul 08 18:44:28 ive been fucking reading totally fucking useless example after example after example after example aftere... . . . . Jul 08 18:44:38 buy a book then Jul 08 18:44:39 yes go do other things your not helping Jul 08 18:48:13 damn listview why you have damn loading-hicups! >.< Jul 08 18:50:54 I440r: ok, lets look at this problem another way.. when do you need to update your Block[][] Jul 08 18:51:12 when the player moves across a map block boundry Jul 08 18:51:16 OOO Jul 08 18:51:18 OXO Jul 08 18:51:19 OOO Jul 08 18:51:41 Ok, then to me it sounds like the thread should be blocking until the players x or y coordinate moves Jul 08 18:52:03 player is in block X. if he moves left the three O's to the right are now invalid. i call cloumn 0 the central column now and load new data into the right hand column but its now actually the left hand column Jul 08 18:52:18 That sounds like a candidate for a Listener.. Jul 08 18:52:20 the thread needs to block till it gets a message to perform work Jul 08 18:53:29 drpenguin, i have 3 to 5 blocks that will need loading (horizonatl move or diagonal move). im NOT going to run a loop and block till each "Block" of data has been loaded Jul 08 18:53:45 im want to write to a que. load X into here, Y into here and Z into here. then continue Jul 08 18:53:51 no stuttering of the UI thread Jul 08 18:53:59 I440r: but.. this is a loop Jul 08 18:54:04 a looper/handler thread just seems to fit perfectly Jul 08 18:54:14 the thread is going to run ad infinitum until some event causes it to die Jul 08 18:54:18 a listner is a loop? Jul 08 18:54:24 yup Jul 08 18:54:27 did I say it was? Jul 08 18:54:57 no i was asking if thats what you meant Jul 08 18:56:07 <[Miles]> luyang: are you still there? how do i get checked options from the alertdialog? Jul 08 19:06:15 can i use a linear layout in a relativ layout? Jul 08 19:07:13 <[Miles]> yes why not? Jul 08 19:07:25 try and see Jul 08 19:07:41 you can use any view in a viewgroup Jul 08 19:14:11 oh how i love thee, android asset studio Jul 08 19:17:28 knew i recognised that name, looks useful Jul 08 19:17:48 is there a standard way of telling whether the current activity is the last in an application? Jul 08 19:19:22 define 'last' Jul 08 19:20:45 the only activity on the stack, i.e. pressing back closes the application Jul 08 19:21:24 well you're in charge of what activity comes when, so you should know this Jul 08 19:21:40 that's not always true Jul 08 19:23:55 so far my experience of storing state with the application context has been, less than satisfactory Jul 08 19:24:10 so id really prefer not to have to manage that myself Jul 08 20:05:31 http://www.wired.com/business/2012/07/app-dirty-tricks/ Jul 08 20:11:57 oi Jul 08 20:16:35 I've got an AsyncTask thats populating an ArrayList of bitmaps that I use with a listAdapter to show those images once they're generated. Is there a way to have the listAdapter return a indeterminate progress bar until a bitmap is available for that "slot" in the image Array List ? Jul 08 20:17:49 Wich hex code have the color from light holo theme? Jul 08 20:18:12 anyone free to test my app? Jul 08 20:20:08 ill send you cooookies :) Jul 08 20:24:24 i think people are reluctant to test other peoples apk's here for good reason Jul 08 20:24:33 if its not on the market they wont test Jul 08 20:24:36 or. usually wont Jul 08 20:28:14 pretty interesting that android-dev has had around the same # of people on it for the past few years Jul 08 20:28:57 kay-z: there's no fancy out of the box mechanism, unfortunately, but it can be done. Jul 08 20:29:07 hmm ok, Jul 08 20:29:33 so far my plan is to pre-populate my array of images with tiny ones, and use getByteCount to determine if it's a real image or not. Jul 08 20:29:56 kay-z i've done that.. just make a custom adapter.. however, i had problems with hiding the progressbar lol Jul 08 20:30:44 kay-z i have just done an asynctask who asigned the progressbar and in onPostExecute the image Jul 08 20:30:51 kay-z: I usually use a Map where the String is the URL. getView() then calls map.get(url) and if it's not null, it shows the bitmap, otherwise I make the progressbar visible. Jul 08 20:31:09 Also I let the asynctask call notifydatasetchanged on the adapter whenever an image finishes downloading. Jul 08 20:32:41 TheTrash: i tried trapping for null, but it seems the array must already be populated since the adapters constructor contains the log line showing me how many elements are in the arrayList ... and it grows... Jul 08 20:32:54 I feel like i may be doing it wrong. Jul 08 20:33:07 I'd like to display some text followed by an image. Right now I have a textview and imageview in a relativelayout which works fine when the text is on a single time. However when it extends to two lines, the image basically gets squashed off the right edge of the screen. Jul 08 20:33:08 kay-z: arraylist isn't the best datastructure for this, since it's index-based and non-sparse. Jul 08 20:33:28 Is there a better way to display a text field + image? Jul 08 20:33:44 TheTrash: map is better? hashmap ? Jul 08 20:33:54 s/on a single time/on a single line/ Jul 08 20:33:54 kay-z: if you insist, though, there is SparseArray (or you can use a real array[] but you have to initialize it properly). Jul 08 20:34:15 kay-z: well, I use that a lot if it's url-based. Jul 08 20:34:35 TheTrash: I'm generating images from within a movie file on the device Jul 08 20:34:42 9 of them to be specific Jul 08 20:35:00 kay-z: ok, a Map may not be appropriate. Jul 08 20:35:12 TheTrash: i've used arrayList(9) just cause, well thats all I knew. Jul 08 20:35:29 but that seems to grow (which makes me think it is sparse...?) Jul 08 20:36:12 It's not sparse in the sense that it has empty indexes (though you can add null so in a sense it is). Jul 08 20:36:34 But it will only have as many indexes as there are objects in the arraylist. Jul 08 20:36:54 Maybe.. post some code or elaborate a bit so we can find the best way. Jul 08 20:39:16 TheTrash: I think i just solved it. .. Jul 08 20:39:34 the adapters getSize method was writen to return the size of the incoming arrayList Jul 08 20:39:52 which means itteration 1 of async task that builds the array list would show 1, instead of 9... Jul 08 20:40:08 you should not be using AsyncTask for image downloading Jul 08 20:40:14 especially in a list Jul 08 20:41:35 Why and what's the alternative? Jul 08 20:42:05 because the executor used to run them varies based on the API level and you have very little control over them once started Jul 08 20:42:24 JakeWharton: i'm not downloading images with it, i'm generating them on the device Jul 08 20:42:47 regardless, when run on a newer device they execute serially so they'll be done one by one Jul 08 20:43:42 That's what I prefer most of the time. Jul 08 20:45:01 JakeWharton: yeah, the docs page made mention of async tasks north of honeycomb being serially executed. I wouldn't mind a parrallel execution but first I'd like to get this working... Jul 08 20:45:02 Also, I thought doInBackground was sequential by design? Jul 08 20:45:25 JakeWharton: does ABS offer some compatability call for invalidateOptionsMenu()? Jul 08 20:45:45 both invalidateOptionsMenu and supportInvalidateOptionsMenu work Jul 08 20:45:47 and do the same thing Jul 08 20:45:52 suckers throwing an indexOutOfBounds error. Let me post the code Jul 08 20:46:20 kay-z: really, don't do index-based if your indexes change and your list isn't filled from the start. Jul 08 20:46:38 TheTrash: teach me! what's my alternative ? Jul 08 20:46:57 TheTrash: map ? Jul 08 20:47:15 oh, duh, i didn't even try that :P Jul 08 20:47:28 SparseArray or plain Bitmap[] Jul 08 20:47:43 Anyone who knows opengl here? I missed some detail to get my texture to render properly. Jul 08 20:47:57 new Bitmap[9] afaik will return null for any index 0-8 even if there's nothing in it. Jul 08 20:48:09 hmm ok. Jul 08 20:48:13 trying Jul 08 20:53:30 hmmm, once i set a subtitle on the action, when i then clear it, the title does not reclaim the space Jul 08 20:53:35 action bar Jul 08 20:54:02 Can I use a custom drawable in XML? I'm thinking of extending ShapeDrawable to create the background of my app dynamically, and then use "com.package.BackgroundDrawable" somewhere just like we use "com.package.MyCustomView" in layout XMLs. Is this possible? Jul 08 20:54:04 oh Jul 08 20:54:16 need to set to null, not blank string Jul 08 20:54:27 joel135: no, you'd have to set it in code Jul 08 21:01:44 Wich hex code have the color from light holo theme? How can I float a Button in a linear horizontal to the right? Jul 08 21:02:11 Sigh, new problem. I'm running out of memory trying to display the 9 images... There's got to be a way arround that ... Jul 08 21:02:46 How big are they? Jul 08 21:02:53 1080p Jul 08 21:03:06 lol @ 200fps in bf3 Jul 08 21:03:58 TheTrash: any ideas ? Jul 08 21:04:09 Those are going to take about 8MB of mem each. Jul 08 21:04:17 yeah... Jul 08 21:04:52 TheTrash: is there a way to ask android for more memory ? Jul 08 21:04:59 Default heap size I believe is 24MB. Jul 08 21:05:00 i'm googling but not finding much Jul 08 21:05:22 use BitmapOptions to scale them when decoding Jul 08 21:05:29 to something not so ridiculously large Jul 08 21:05:45 kay-z: you can also request a large heap Jul 08 21:05:58 JakeWharton: not an option. MediaMetaDataReciever's getFrameAtTime doesn't encode the image. Jul 08 21:06:03 mdwright: how ? Jul 08 21:06:21 Yes you can.. but don't, unless you're actually showing 9*1920*1080 pixels at a time :) Jul 08 21:06:43 kay-z: you can reencode one at a time. Jul 08 21:06:56 Get the frame, reencode, next. Jul 08 21:07:33 is reencoding the only way to scale ? Jul 08 21:07:56 If MediaMetaDataReceiver can't do it on the fly, pretty much. Jul 08 21:09:27 how does one request a large heap ? Jul 08 21:10:08 android:largeHeap="true" in manifest, but keep in mind that a) it's only supported from API level 11 and up and b) even then not all devices on that level support it. Jul 08 21:10:43 kay-z: in the least you'll have to check whether the device supports a large enough heap. Jul 08 21:11:03 It may sound like a shortcut but it's really not, unless you have a very specific target device. Jul 08 21:11:08 will a 72mb heap be enough? Jul 08 21:11:20 Not likely Jul 08 21:11:20 TheTrash: true, but this is a scaling issue ;) since older devices have smaller resolution cameras ... Jul 08 21:11:21 thats not evne including other stuff he needs.. Jul 08 21:12:13 sounds like the solution needs to be rethought Jul 08 21:12:43 I'd be pretty pissed if you requested a 100MB heap just to show some thumbnails on my device, frankly. Jul 08 21:13:11 lol Jul 08 21:13:15 Considering your average device has what 512MB total ram, 300 of that actually usable, and thats before other apps Jul 08 21:13:37 Even if the standard was a gig, i still wouldnt be for you requesting that much ram Jul 08 21:14:27 no good android devs here for a nice project? Jul 08 21:14:49 xtc_: oooh, a nice project? $50K in one month? Jul 08 21:15:16 lol i dont have so much but 500eur for the start for sure Jul 08 21:15:31 Using Eclipse to build an android app, how can I exclude a file from a project, while still leaving it in the folder? (I have a file in the res folder that needs to be there, but the project won't build since it doesn't know what to do with it) Jul 08 21:15:35 still writing the function specs Jul 08 21:16:02 Hm that won't get you past the homescreen if you hired me :P Jul 08 21:16:20 NeoDarque: AFAIK that's what /res/raw is for Jul 08 21:16:23 TheTrash: normal developers demand 15-25$/hr Jul 08 21:16:29 so i wont believe that Jul 08 21:16:30 :P Jul 08 21:16:37 xtc_: normal developers from India, indeed. Jul 08 21:16:47 yeah dont care where are they from Jul 08 21:16:48 :P Jul 08 21:16:54 as long my app is working Jul 08 21:17:10 Take it to elance then, I guess. Jul 08 21:17:24 Lots of cheap labor there. Jul 08 21:17:30 i will probably :) Jul 08 21:17:36 even so i provide a lot Jul 08 21:17:38 xtc_: This channel is really for app development questions. I recommend you take your request to one of the freelancing sites Jul 08 21:17:46 oki Jul 08 21:17:48 is here one? Jul 08 21:17:54 on that network Jul 08 21:17:56 TheTrash: unfortunately I can't move the file either, it needs to stay where it is. No other way to exclude it? Jul 08 21:18:09 IF you arent using it, whats the problem? Jul 08 21:18:14 NeoDarque: well, not really, it doesn't belong there so it can't stay there, pretty much. Jul 08 21:18:36 TheTrash: Ok, thanks! Jul 08 21:18:48 15-25$/hr in which currency please? lol Jul 08 21:18:58 that USD Jul 08 21:18:58 Can't do "exclude from build path" on resources. Jul 08 21:19:02 You can always customize the build script. I'm not sure how much work that is, however. Jul 08 21:19:04 nah I don't think so Jul 08 21:19:16 can't be $15~$25 Jul 08 21:19:17 Uhh.. The dollar sign is a big hint there Jul 08 21:19:23 unless he mistyped.. Jul 08 21:19:35 i checked freelancer.org :) Jul 08 21:19:39 And CAD and AUS are just monopoly money :) Jul 08 21:19:45 so its true Jul 08 21:19:45 :P Jul 08 21:20:42 and i earn 26eur/hr so cant be too far away ... Jul 08 21:20:50 tbh junior programmer in Asia region should only have less than 5euro / hr Jul 08 21:20:55 lol wat Jul 08 21:21:14 na dont need noob Jul 08 21:21:25 he should know sql linux and stuff too Jul 08 21:21:25 :P Jul 08 21:21:26 they are not faggot Jul 08 21:21:47 must of the programmer (especially in China) in Asia knows programming better than you Jul 08 21:21:51 lets hope :) Jul 08 21:21:57 especially when talking about low level code Jul 08 21:21:57 yeah i guess Jul 08 21:22:07 its not too low level Jul 08 21:22:11 but tbh Andoird app doesn't need it :P Jul 08 21:22:16 low level i do do with microcontrollers :P Jul 08 21:22:21 but fuck i cant do java Jul 08 21:22:26 well they can write the kernel on their own Jul 08 21:22:35 lulz Jul 08 21:22:35 :) Jul 08 21:23:01 EE is only usls for doing some shitty thing tbh Jul 08 21:23:02 takes me too long to get into android atm Jul 08 21:23:19 but i have the infrastructe and functional spec :P Jul 08 21:23:19 but yea a lot of companies require someone to do it Jul 08 21:23:36 ........... Jul 08 21:23:44 actually Java is easy Jul 08 21:23:51 yeah probably Jul 08 21:23:57 but still you need to learn a lot from examples first Jul 08 21:24:01 lol no Jul 08 21:24:05 Android isn't easy Jul 08 21:24:10 iirc I learned C in just a month Jul 08 21:24:12 android example apps Jul 08 21:24:13 (nor is Java, but hey) Jul 08 21:24:14 and than 2 weeks for Java Jul 08 21:24:21 which is the best android development book to date? Jul 08 21:24:21 and then* Jul 08 21:24:22 it can be native code too Jul 08 21:24:23 :P Jul 08 21:24:34 that means C++, same story Jul 08 21:24:42 TheTrash: I thought Android wasnt difficult to pick up.. Jul 08 21:24:42 android ndk Jul 08 21:24:45 knowing languages is irrelevant. knowing how to program properly is much more important Jul 08 21:24:51 +1 Jul 08 21:24:56 +2 Jul 08 21:24:57 :) Jul 08 21:24:58 Indians on Elance go for around $12/hour, but it's quite risky. Jul 08 21:25:05 way to 1 up me luyang Jul 08 21:25:07 why risky Jul 08 21:25:08 knowing languages is irrelevant. knowing how to program properly is much more important <---------- yea Jul 08 21:25:23 thats why I said getting into android is not hard Jul 08 21:25:23 i describe everything if it doesnt work no more money :) Jul 08 21:25:24 drpenguin: it's not difficult to get started. It's very difficult to get it right. Jul 08 21:25:28 yes there is lots of "reference material" on android out there… but nobody tells you how to put it together in a proper way Jul 08 21:25:28 but how to code safe is hard Jul 08 21:25:32 drpenguin: :) Jul 08 21:25:40 the app wont be for public Jul 08 21:25:41 TheTrash, you got the pt :P Jul 08 21:25:48 TheTrash: ehh, again I disagree Jul 08 21:25:48 so no security probs Jul 08 21:25:48 xtc_ usls Jul 08 21:25:57 lol it is on your device Jul 08 21:25:57 TheTrash: that statement is dangerously ambiguous Jul 08 21:26:05 and there is multiple way to get vuln on it' Jul 08 21:26:28 UnknownzD: why useless its the best app if it would be legal one :P Jul 08 21:27:05 :\ am I getting the message one? why it is not a legal one :\ Jul 08 21:27:30 what app are you talking about Jul 08 21:27:33 drpenguin: plain java software design isn't very easy, Android only makes it more difficult because it has its own patterns and resource constraints. Jul 08 21:27:36 playing mkv isnt mostly legal :) Jul 08 21:27:53 ok Jul 08 21:28:02 I don't like when they limit mkv aac etc Jul 08 21:28:03 drpenguin: the activity lifecycle alone is quite hard to wrap your head around for most newcomers. Jul 08 21:28:06 tbh there are multiple apps available in the Market already Jul 08 21:28:09 so why bother Jul 08 21:28:26 TheTrash: ehh I guess I cant see your point because I didt have those difficulties Jul 08 21:28:26 not to mention that you need someone who has expertise in codec Jul 08 21:28:45 none of them can play 720p encodes directly from http with one click :P and show my watched files or schedule Jul 08 21:28:46 and singletop etc… Jul 08 21:28:53 There is no way to ensure that Android doesn't terminate an activity in the long run right ? Jul 08 21:29:05 drpenguin, may be he is talking about the constraints for embedded system Jul 08 21:29:10 for example smaller heap size Jul 08 21:29:17 if I understand it correctly services are less likely to be shut down Jul 08 21:29:27 than activities Jul 08 21:29:36 UnknownzD: Thats what we are all talking about here.. right? This is an Android IRC is it not Jul 08 21:29:39 blip-^ Jul 08 21:29:58 xtc_ you can try but I doubt if anyone needs it Jul 08 21:30:11 UnknownzD: and i plan to add big tv archive with 50T which you can use over android search watch in HD have fun :P Jul 08 21:30:41 uh so where are those files located? Jul 08 21:30:48 Is there any API where people can save their photos on an (automatically created) online resource which is managed by a 3rd party app? Jul 08 21:30:52 all at datacenter in big rack Jul 08 21:30:59 bah Jul 08 21:31:05 drpenguin: makes me curious about your code :P Jul 08 21:31:12 datacenter only means easier for collecting evidence Jul 08 21:31:20 Total: 5.60TB particles 54.93TB (10% free) Jul 08 21:31:21 :) Jul 08 21:31:23 drpenguin: do you have any open source code Jul 08 21:31:27 luyang: Facebook and Flickr come to mind Jul 08 21:31:33 UnknownzD: it wont be public Jul 08 21:31:36 both meet your requirements Jul 08 21:31:36 like i said Jul 08 21:31:37 :P Jul 08 21:31:39 for me and friends Jul 08 21:31:40 usls Jul 08 21:31:50 back Jul 08 21:31:59 UnknownzD: yeah for you it will be :) Jul 08 21:32:02 several countries are actively censoring the content of video file Jul 08 21:32:25 its all ripped with censorship Jul 08 21:32:28 *without Jul 08 21:33:02 and old ones are replaced by bluray rips Jul 08 21:33:03 mitm can be deployed, but I doubt if any government do it Jul 08 21:33:35 anyway if you want to watch something in HD Jul 08 21:33:39 just use DLNA Jul 08 21:33:45 it is a developed technology Jul 08 21:33:51 UnknownzD: lol i already use xbmc and sshfs mount :P Jul 08 21:33:57 that avoid you to call a developer to do that shit Jul 08 21:33:59 UnknownzD: but want it on my phone now Jul 08 21:34:11 Tips : DLNA Jul 08 21:34:13 done Jul 08 21:34:13 ugh DLNA, what a shitshow Jul 08 21:34:16 lol Jul 08 21:34:21 wtf is that Jul 08 21:34:22 ^^ Jul 08 21:34:28 well JakeWharton design one then Jul 08 21:34:37 I doubt if anyone would code something to a kid Jul 08 21:34:44 that can be used for illegal stuff Jul 08 21:35:03 we will see its only technical no one said something about the files :) Jul 08 21:35:11 thats up to me then :p Jul 08 21:35:17 EUR 500 is tight for any app, let alone one that has to do its own video decoding. Jul 08 21:35:18 which files will be in the app Jul 08 21:35:31 <TheTrash> EUR 500 is tight for any app, let alone one that has to do its own video decoding. <------ lol Jul 08 21:35:41 yea I think so too lol Jul 08 21:35:41 TheTrash: its opening MX player ... Jul 08 21:35:50 xtc_: ok, better. Jul 08 21:36:05 MX can't stream straight from http? Jul 08 21:36:11 it can open from http Jul 08 21:36:17 so i guess Jul 08 21:36:18 :) Jul 08 21:36:36 So exactly what more do you need? :P Jul 08 21:36:57 the backend handling my schedule of files i open over http Jul 08 21:37:14 lol piracy record Jul 08 21:37:16 gg Jul 08 21:37:20 lol Jul 08 21:38:09 i dont have a way to get them else so i need them ripped Jul 08 21:38:27 xtc_ it is easy Jul 08 21:38:35 yeah wait 3months buy bluraybox Jul 08 21:38:36 :P Jul 08 21:38:44 it isnt always easy Jul 08 21:38:45 if you have shelll access to http server Jul 08 21:38:53 you can keep the access record Jul 08 21:38:58 na Jul 08 21:39:03 i want to list wkly shows Jul 08 21:39:07 click on them and play Jul 08 21:39:15 keep record of watched Jul 08 21:39:24 with search option for old Jul 08 21:39:28 info is stored at sql Jul 08 21:39:31 file info too Jul 08 21:39:34 and location Jul 08 21:40:02 i have coded it for irc already Jul 08 21:40:06 so you can search files Jul 08 21:40:09 and play with http link Jul 08 21:40:11 over irc Jul 08 21:40:12 :P Jul 08 21:40:20 press enter less Jul 08 21:41:08 uh ask someone to take the job then Jul 08 21:41:51 "Write me code for an ar drone that'll autonomously fly around gps coords givin in real time" for university lol wow I wonder which university requires such a job Jul 08 21:42:25 UnknownzD: probably embry riddle unmanned program ;) Jul 08 21:43:34 why does installing google eclipse plugins ake so long :\ Jul 08 21:43:40 A manned AR drone, that would be cool. Jul 08 21:43:47 gps reply is also delayed Jul 08 21:43:55 so I wonder wat the heck is that Jul 08 21:44:01 Jug6ernaut: it shouldn't :| Jul 08 21:44:05 Jug6ernaut: hmm? are you using dialup? Jul 08 21:44:11 lol Jul 08 21:44:13 seems like it Jul 08 21:44:17 The ADT plugin itself usually is quick.. its just the SDK that takes a big Jul 08 21:44:19 s/big/bit/ Jul 08 21:44:29 AR Drone is so overpriced dont ya think Jul 08 21:44:35 drpenguin: yeah, Eclipse is awesome in emulating dialup on my 100Mbit fiber line when updating :P Jul 08 21:44:41 It's a robot helicopter Jul 08 21:44:45 checking for updates and grabbing new plugins take ages Jul 08 21:45:08 Mavrik: uncheck the checkbox in Eclipse when installing updates Jul 08 21:45:12 reminds me that today when I was downloading CM repo, whole VM hdd get eaten up Jul 08 21:45:27 luyang: which checkbox? O.o Jul 08 21:45:38 Mavrik: or in Install: "Contact all update sites" Jul 08 21:45:41 uncheck that Jul 08 21:45:46 huh Jul 08 21:45:48 good to know Jul 08 21:45:49 :) Jul 08 21:45:49 it can make it faster Jul 08 21:45:57 if you go to Help->Install new.... Jul 08 21:46:08 then you uncheck "contact all update sites to find required software" Jul 08 21:46:14 if it's too slot Jul 08 21:46:15 slow Jul 08 21:46:33 it might speed things up… not sure if there are any negative consequences though and I have it currently checked Jul 08 21:46:54 It will break if you actually need any dependencies from those sites. Jul 08 21:46:58 Mavrik: http://stackoverflow.com/questions/4435092/eclipse-online-access-extremely-slow-cannot-complete-updates-or-install-new-sof Jul 08 21:47:01 But it'll tell yu soon enough. Jul 08 21:47:22 the stack overflow post above says it's helpful though Jul 08 21:47:38 "That's what it was. I disabled this and it found the Android Tools in an instant. You don't know how much time I wasted this evening waiting at a frozen progress bar. Thanks a bunch! – http://stackoverflow.com/users/541329/zmow http://stackoverflow.com/questions/4435092/eclipse-online-access-extremely-slow-cannot-complete-updates-or-install-new-sof#comment4841898_4435145" Jul 08 21:47:40 yeah, usually you don't need cross-server dependencies Jul 08 21:47:42 wow those links Jul 08 21:47:46 awesome, didn't know that :) Jul 08 21:47:55 :) Jul 08 21:48:26 let me know if it helps a lot Jul 08 21:48:31 would be cool to hear Jul 08 21:48:36 lol cross-server dependencies? for wat? tbh Eclipse has become bloated in last few years Jul 08 21:51:11 bloated? eclipse takes between 170-300mb resident set; thats like 3-5 tabs in chrome :) Jul 08 21:51:39 unless you installed the kitchen sink version Jul 08 21:52:35 i'm using 3.8 tho, no idea about the new one (4.2) Jul 08 21:54:55 then you should try to see how it is bloated lol Jul 08 21:55:00 I was using 4.x in school Jul 08 21:56:49 *sigh* Jul 08 21:57:01 I just wish Eclipse wouldn't be such a slowass dog on my puny C2D 2.5GHz laptop Jul 08 21:57:29 Mavrik: thats why i have :| Jul 08 21:57:36 It works good on my worse stationary :| Jul 08 21:57:43 I wish ADT did't exacerbate it. Jul 08 21:57:47 even though, even on my desktop with 16GB of RAM it's not noticably faster :( Jul 08 21:57:56 SSD helps a lot Jul 08 21:58:04 Pro tip: CLOSE all UNUSED projects! Jul 08 21:58:12 Yes good tip Jul 08 21:58:13 and Eclipse gets happier Jul 08 21:58:34 yeah Jul 08 21:58:40 RAM helps, SSD helps Jul 08 21:58:48 it's never a fast and snappy IDE though :d Jul 08 21:59:07 android isn't snappy either but we still love it Jul 08 21:59:17 indeed Jul 08 21:59:36 hmm, come to think of it, let's go see what pricing on Asus Transformer Infinitys is like Jul 08 21:59:50 :) Jul 08 22:00:28 huh, nuts Jul 08 22:00:56 WTF... can't type with my computer keyboard in the emulator. Jul 08 22:01:14 did you disable physical keyboard on it? :) Jul 08 22:01:30 Not actively / consciously Jul 08 22:02:54 so back to watching some ep thx for the hints so. i know i will have it done one day with or without some developer Jul 08 22:03:19 xtc_: you found the enter key ! Jul 08 22:04:49 g00s: yes? Jul 08 22:09:27 its the one of the most usefull things i see @ android atm. access to all material with 24fps but well i am a bit ahead of my time i know Jul 08 22:17:05 http://pastebin.com/8qExuWgy having an issue getting the edittext and the switch being next to each other on the same line Jul 08 22:17:33 too many options and too few silver bullets!!! Jul 08 22:17:48 too many workarounds Jul 08 22:17:55 and gotchas Jul 08 22:17:57 :S Jul 08 22:18:00 ? Jul 08 22:18:20 sorry JaredCE for reducing the signal here ;) Jul 08 22:19:14 np? Jul 08 22:20:10 JaredCE: do you wanna change        android:orientation="vertical"> Jul 08 22:20:10 to        android:orientation="horizontal"> Jul 08 22:20:15 g00s: and ppl can read better with more enter keys used or do you read news paper articles with just 10 lines stretching from one end to the other? Jul 08 22:20:45 xtc_: optimal amount is 50 chars about. you didn't come anywhere near reaching that i'm afraid ;) Jul 08 22:21:02 g00s: thats true i know still better Jul 08 22:21:07 luyang, this is my vertical layout though Jul 08 22:24:19 Being next to each other in a vertical layout is... contradictory. Jul 08 22:25:15 why so? Jul 08 22:25:33 Vertical is from... top to bottom, you know. Jul 08 22:25:47 If you want them next to each other in a vertical layout, put both elements in a horizontal container. Jul 08 22:26:03 oo Jul 08 22:37:10 are there any nexus q specific APIs, like for the LEDs and media playback? Jul 08 22:41:57 i don't understand that thing (nexus q) Jul 08 22:42:37 Me neither... add 2 or 3 usb host ports and Google TV OS and I'd get one right away. Jul 08 22:45:34 I'd be a fairly nice Sonos replacement if it actually had a similar featureset. Jul 08 22:45:53 For me external services (particularly Spotify) would be a dealbreaker. Jul 08 22:46:05 all it does is stream google play music and tv/movies and youtube (for now, anyway) Jul 08 22:46:52 I expect (I friggin' hope) that's not the final featureset. Jul 08 22:48:22 same Jul 08 22:53:02 Oh FFS not that corners radius bug again! Jul 08 22:56:09 damn corners and their radius Jul 08 22:56:15 hi. is it possible to set breakpoints in the sdk source to allow better debugging? Jul 08 22:56:52 SimonVT: pre-v12 has right and left switched for one axis, it's pretty stupid, don't these guys write unit tests? Jul 08 22:57:31 SimonVT: anyhow to do it right, you compensate for the switch, and put identical but non-compensated layout files in drawable-v12. Jul 08 22:57:50 But... I found out the hard way that drawable-mdpi takes precedence over drawable-v12. Jul 08 22:57:56 who needs google tv :P Jul 08 22:57:58 Anyway it's fixed again. Jul 08 22:58:40 xtc_: well, no one, obviously, but I'm guessing it's your way of saying "xbmc rulez, Google TV sux". Jul 08 22:59:42 TheTrash: lol ^^ both dont offer any real content so i am not saying that Jul 08 23:00:25 xtc_: I'll take care of my own content, just need a) something convenient to access my content and b) apps on TV are fun. Jul 08 23:01:20 why does mdpi take precedence over v12... that doesn't make any sense Jul 08 23:01:29 TheTrash: yeah same here thats why i need android app Jul 08 23:01:50 xtc_: funny thing, though, if done right, your app would run on Google TV as well :P Jul 08 23:02:18 TheTrash: i hope so Jul 08 23:02:34 jab416171|Cloud: yep it's strange... BUT my non-compensating files were in drawable-mdpi (previously in drawable, I moved them). Jul 08 23:03:10 is there anything i have to be aware of when using CHOICE_MODE_MULTIPLE_MODAL without ListFragment or ListActivity? i use pretty much the same code in both cases but in a normal activity, i get some strange behavior after finishing the action mode Jul 08 23:03:49 TheTrash: need to hack more tv rage first so its terrible site to get info from Jul 08 23:05:49 but at least i get decent time now <15s for 1gb tv eps Jul 08 23:08:46 only issue would be extract rar on the fly Jul 08 23:08:47 hehe Jul 08 23:09:03 xbmc can do it Jul 08 23:09:03 :P Jul 08 23:09:29 copied one line too much, searched over an hour for the error... Jul 08 23:09:46 TheTrash: will googletv be able to play from rars? Jul 08 23:15:12 TheTrash: without the feature quite useless tool Jul 08 23:15:13 Here: http://developer.android.com/design/building-blocks/scrolling.html they show a list view with index an pop up the letter, but I dont find on the dev site a descripton how to build a list view like this Jul 08 23:19:30 mdpi takes precedence over v12 because that's the order of precedence Jul 08 23:19:59 API qualifiers are the lowest precedence of all the qualifiers Jul 08 23:28:00 xtc_: rars? wtf? Jul 08 23:28:55 Hello. How is possible to add a small vertical scroller to a textView ? which classes do I have to look to implement this ? Jul 08 23:29:31 is it a properity? something like enableverticalscrollbar? Jul 08 23:30:09 sukramTM: fastScrollEnabled I think Jul 08 23:31:20 TheTrash: yeah thats how its distributed and extracting it would be just pain in the ass Jul 08 23:31:38 Ok, I'll look for these, thank you. Jul 08 23:33:32 kken: best put it in a scrollview, there's a way to do it on the TextView itself but it requires setting the MovementMethod in code :/ Jul 08 23:33:40 see http://stackoverflow.com/questions/1748977/making-textview-scrollable-in-android Jul 08 23:34:51 [TV-X264] [CMP] Femme.Fatales.S02E07.720p.HDTV.x264-IMMERSE (1067MB/23F at 66.70MB/s in 16s by Jul 08 23:34:55 for example 23F there Jul 08 23:35:32 JakeWharton really? (qualifiers) Jul 08 23:35:38 i didnt realize api level was so low Jul 08 23:35:51 TheTrash thank you, looking now the url you suggest. Jul 08 23:35:59 http://developer.android.com/guide/topics/resources/providing-resources.html#table2 Jul 08 23:36:12 yea yea i know where to find it Jul 08 23:36:13 and ive read it Jul 08 23:36:23 i think the only place ive used api levels is for notif icons Jul 08 23:36:32 but i had like v11-mdpi, v9-hdpi, etc Jul 08 23:38:24 I use them for styles and using new widgets in layouts Jul 08 23:38:28 and widgets Jul 08 23:38:33 like, actual widgets Jul 08 23:39:08 TheTrash: xbmc can just enter folder and play rar hehe Jul 08 23:41:02 Hm there's a java rar library, I guess that could be used to do that. Jul 08 23:41:36 :) Jul 08 23:41:53 or look in their code how they did it Jul 08 23:42:58 Why? I'd rather just drop the library there and do new Rar().getInputStream(File file); :) Jul 08 23:43:08 (fictional example) Jul 08 23:43:19 ah if that is working Jul 08 23:43:30 woah rar files Jul 08 23:43:34 it's like 2003 all over again Jul 08 23:43:48 what's 2012's compression? I still see rar all over the place. Jul 08 23:43:54 the occasional 7z, but not very often. Jul 08 23:44:09 na its the standard still today Jul 08 23:44:18 xtc_: [citation needed] Jul 08 23:44:23 xtc_: I guess if you want this to be mainstream, the topsite kiddies should drop rars for their races (can't they build a sophisticated FXP client that works on arbitrary blocks? Jul 08 23:44:33 zip was in the early days only 0day kept it :P Jul 08 23:44:46 Is FXP still being used? It's an archaic system. Jul 08 23:44:52 yeah of course Jul 08 23:45:04 but it got tighter Jul 08 23:45:27 Not tight enough to drop rar, evidently. Jul 08 23:45:42 why drop it? Jul 08 23:45:54 you cant compress video better with 7z Jul 08 23:45:59 and rar is fine ... Jul 08 23:46:05 its uncompressed anyway Jul 08 23:46:18 You can't compress videos better with rar either, it's pointless. Jul 08 23:46:29 yeah but for distribution you need to split files Jul 08 23:46:36 so its still standard Jul 08 23:46:37 :P Jul 08 23:46:58 Yes but rar is just a hack to split files, you can split files without a bogus compression algorithm Jul 08 23:46:59 i think you lack a proper definition for "standard" Jul 08 23:47:15 JakeWharton: its in the rules Jul 08 23:47:25 Break the rules, innovate. Jul 08 23:47:29 like? Jul 08 23:47:34 would those be the copyright rules that govern the content of the video? Jul 08 23:47:36 Topsites are never going to be the new Apple if they keep working like this. Jul 08 23:47:48 how would it be faster better? Jul 08 23:47:52 dont see any way .. Jul 08 23:48:08 Faster better as in the consumer wouldn't have to unrar. Jul 08 23:48:14 you dont have Jul 08 23:48:20 if you can play in xbmc Jul 08 23:48:21 :P Jul 08 23:48:24 The client/player has. Jul 08 23:48:37 some can do it already i think Jul 08 23:49:08 mplayer can Jul 08 23:49:13 i guess Jul 08 23:49:19 so its all fine Jul 08 23:49:20 Probably what xbmc is using under the hood. Jul 08 23:49:32 only improvement i see with xvid not being CD1 CD2 etc Jul 08 23:49:51 Not really... because each time a new mediaplayer gets invented, someone has to backport that stupid rar stuff and it's not exactly anyone's priority. Jul 08 23:50:12 you two should take your discussion of non-Android, illegal practices elsewhere Jul 08 23:50:21 yeah but newfags can go torrent and play files without rars Jul 08 23:51:03 anyway i am out pointless discussion hehe Jul 08 23:51:14 of ppl not understanding the core within Jul 08 23:52:16 understanding is not a requisite of tolerance Jul 08 23:52:23 I understand "the core"... the core is dead in the water, hasn't changed in a decade. Jul 08 23:52:28 lol Jul 08 23:52:46 na tv-x264 rules changed in the favor of crf Jul 08 23:52:50 They're as dead in the water as most big media companies, funnily. Jul 08 23:53:24 dead? Jul 08 23:53:42 yeah a lot of places are dead but there is still core :) Jul 08 23:54:02 #android-offtopic Jul 08 23:54:09 and trolls around them Jul 08 23:54:16 yeah i am leaving anyway Jul 08 23:54:53 It's like 1999 was here for a while :O Jul 08 23:55:29 It was, sadly Jul 08 23:56:28 JakeWharton, did you get my email? :( Jul 08 23:56:36 yes Jul 08 23:57:12 any ideas? Jul 08 23:57:18 like i looked at the code and it doesnt seem different Jul 08 23:57:25 but the behaviour is different Jul 08 23:57:27 haven't looked at it Jul 08 23:57:31 oh Jul 08 23:57:42 hopefully later but probably tomorrow Jul 08 23:57:45 mmk Jul 08 23:57:47 too many damn things to do Jul 08 23:58:17 well no rush Jul 09 00:01:53 so i have a local service with an array, and i would like to have an activity display that array as a list Jul 09 00:02:15 what are my options for getting that array to the activity? Jul 09 00:03:11 spitballing here, can i pass the activity instance to my service when i bind? Jul 09 00:03:11 parco: bind to it Jul 09 00:03:30 then call the activity UI functions directly from the service? Jul 09 00:03:45 that would be a poor design choice Jul 09 00:03:53 yea it feels dirty Jul 09 00:04:12 you want the service to "push" information to the activity, when it's updated or something? Jul 09 00:04:20 exactly Jul 09 00:04:32 i typically use the listener patter for that Jul 09 00:04:34 without using broadcast Jul 09 00:04:57 listener patter? Jul 09 00:05:04 pattern Jul 09 00:05:12 hmm Jul 09 00:06:00 also called the observer pattern Jul 09 00:07:15 is that like passing handlers and messages? Jul 09 00:09:01 it's something like that Jul 09 00:09:06 you've probably used it many times Jul 09 00:09:14 think about how you handle a button click Jul 09 00:12:56 wongk-home: yea that would be nice Jul 09 00:13:12 wongk-home: is there a particular class i can override? Jul 09 00:13:27 parco: just define an interface Jul 09 00:15:49 parco there is a way to bind to the service to setup a handler on the activity to receive msgs from the service onces binded and handle them on the activity Jul 09 00:16:50 boundService.setHandler() Jul 09 00:17:16 then within service if(activityHandler != null) { sendMessage;} Jul 09 00:17:25 thats how im picturing it Jul 09 00:18:52 the thing is activity and service are in the same process, so i should be safe using a singleton Jul 09 00:19:05 ..right? Jul 09 00:19:10 no Jul 09 00:19:21 not for an activity or service Jul 09 00:19:58 wongk-home: null pointer exceptions Jul 09 00:19:59 ? Jul 09 00:20:14 that's over simplifying it Jul 09 00:20:23 android manages the lifetime of the objects Jul 09 00:20:42 *those objects Jul 09 00:23:47 http://developer.android.com/guide/components/bound-services.html Jul 09 00:23:54 LOVE THE DOCS Jul 09 00:25:55 hi all, if I'm in activity A and I start activity B (but activity B doesn't setContentView) then it just goes to a black screen. Is there a way to have it visibly keep displaying A but without the on-screen items functioning until B ends and returns to A ? Jul 09 00:26:58 blip-: so what is B doing, something temporary? Jul 09 00:27:50 yes parco, but an activity is needed because it involves displaying a browser window to authorize twitter access Jul 09 00:28:11 and callback takes us back to B from the browser to finalize the login process Jul 09 00:28:29 blip-: then.. couldnt you do the initialization in Activity A before popping Activity B? Jul 09 00:28:46 and in the interim, pop a progress dialog that just spins a circle or someting Jul 09 00:29:27 i guess, i have many sub activities underneath A that can be launched. ie A->B->A A->C->A A->D->A Jul 09 00:30:26 blip-: the thing is, when you start activity B, you cannot keep activity A's view in the foreground, because activity A is now in onPause / onStop Jul 09 00:33:27 is it possible to change the value of a drawable resource based on set theme? Jul 09 00:48:20 the new developer tools they announced at Google I/O, like the ability to create an AVD with a resolution that matches that of the galaxy nexus / n7, when will they show up in the SDK? Jul 09 00:48:51 thanks drpenguin Jul 09 01:05:21 jab416171|Cloud: next release Jul 09 01:05:27 major release that is Jul 09 01:06:17 glad to see someone interested in it :) Jul 09 01:12:19 ok thanks mdwright :) Jul 09 01:15:25 android developers google group is over moderated... Jul 09 01:37:06 i think i see an airplane on fire Jul 09 01:38:38 Hey there! I'm trying to perform an action when the device connects to a wireless network, however I can't seem to get it to trigger. My manifest.xml http://pastie.org/4223307 and the broadcast Receiver http://pastie.org/4223314 Jul 09 01:39:41 what am I doing wrong? Jul 09 01:40:22 anyone here worked with google maps static api? Jul 09 01:40:39 ie: http://maps.google.com/maps/api/staticmap? Jul 09 01:41:42 specifically issues with cellular connection…. works fine with wifi Jul 09 01:45:36 if i put a file in the root directory of the apk, is it transferred to the phone on install? Jul 09 01:46:14 has anyone experinced a bug in eclipse where when you paste something it does so in the wrong editor? Jul 09 01:52:17 Jug6ernaut: sounds normal to me Jul 09 01:52:59 how is that normal? Jul 09 01:53:39 Jug6ernaut: i have experienced many bugs wiht eclipse, but not that 1 Jul 09 01:54:08 lol yea idk :S Jul 09 01:54:11 * Jug6ernaut is not a fan of eclipse Jul 09 01:54:22 its like awesome and yet horrible at the same time Jul 09 01:55:45 oh man my xml editor the other day was gnarly Jul 09 02:15:11 Jug6ernaut: this is so late, but yeah i had this bug too! started getting it after updating to juno and adt 20 Jul 09 02:17:16 I'm new to Android and I'm trying to debug a very simple application. I'm having trouble identifying where my code went wrong. Does this LogCat help http://imagebin.org/220017 ? Jul 09 02:18:52 How are you handling the click? Jul 09 02:21:12 If you are sending an SMS via the SMS API, is ther a limit to the number of characters you can put in it? Also, can you only do 1 number at a time? Jul 09 02:21:51 lasserix: here's my code so far http://pastie.org/4223475 Jul 09 02:23:15 Cache_Money: hmm.. part of your stack trace says "No activity found to.." what is thatsaying? can it not find your second activity? Jul 09 02:24:28 Intent i = new Intent(this, me.michaelstitt.PassingDataSecondActivity.class); Jul 09 02:25:26 is "me.michaelstitt.PassingDataSecondActivity" an action? Jul 09 02:26:33 I'm no expert, but I think it has to do with the initialization of the intent, in what you are passing it. I haven't used activityforresults too much, but that would be my guess where the error is occuring. Jul 09 02:27:16 lasserix: what I think is the problem is that it doesnt know what the activity hes messaging to start is Jul 09 02:28:54 so to fix it you might try passing (PassingDataActivity.this, PassingDataSecondActivity.class) instead of the string "me.mi....class" Jul 09 02:30:47 I think its because hes using the action name instead of the activity name Jul 09 02:31:31 try replacing that with me.michaelstitt.SecondActivity Jul 09 02:31:57 X-suriV: isnt necessary, he can refer to the class relatively in the package vs absolutely Jul 09 02:32:05 lasserix: I tried what you suggested above and got the same result... Jul 09 02:32:07 PassingDataSecondActivity.class is more than sufficient Jul 09 02:32:47 Cache_Money: we are gonna need more info to go by then.. your stack trace doesnt show wher ein your code where it breaks, it gets truncated off Jul 09 02:33:43 yeah but the action intent hes using is : me.michaelstitt.PassingDataSecondActivity" which Corresponds to the activity named .SecondActivity in his manifest. Which corresponds to SecondActivity.class Jul 09 02:33:47 Any word on when Jelly Bean Source will be out? Jul 09 02:34:02 Do you mean the line in the LogCat that says "Unable to open stack trace file '/data/anr/traces.txt': Is a directory" ? Jul 09 02:34:27 Cache_Money: im talking about the last line int he stack trace, that shows where in your code it broke, but it doesnt show the line number Jul 09 02:35:10 Any word on when Jelly Bean Source will be out? Jul 09 02:35:31 drpenguin: I'm new to Eclipse. How do do I find it? Jul 09 02:35:36 mid july Jul 09 02:35:47 Cache_Money: its.. right there.. in the stack trace.. you just need to show it to us Jul 09 02:35:53 your picture doesnt show it Jul 09 02:35:58 ok thanks! Jul 09 02:37:28 the next line was "threadid=3: reacting to signal 3" Jul 09 02:37:44 Oh my God.. ok. now stop and listen Jul 09 02:37:47 I told you what line I need Jul 09 02:37:56 I told oyu I just need more information from that line.. is it that hard? Jul 09 02:38:50 drpenguin: sorry... "PassingData.PassingDataActivity.onClick(PassingDataActivity.java:32)" Jul 09 02:39:32 So.. that line 32 refers to your startActivityForREsult Jul 09 02:39:56 Did you add the PassingDataSecondActivity to your Manifest? Jul 09 02:40:59 drpenguin: yes Jul 09 02:41:19 http://pastie.org/4223552 Jul 09 02:41:33 try invoking it this way, new Intent(PAssingDataActivity.this, SecondActivity.class) Jul 09 02:42:36 It says my project contains errors Jul 09 02:42:47 ok... what now Jul 09 02:43:35 "PassingDataSecondActivity cannot be resolved to a type" Jul 09 02:43:36 I need to customize the android file system used in my target board and I was wondering how to do it. I know that some apk can be just bee removed without any problem, but what about the libraries, resources, and other services. I have been looking all over the net but nothing :-( Jul 09 02:43:57 Cache_Money: That.. doesnt exist Jul 09 02:44:02 There is no PassingDataSecondActivity Jul 09 02:44:17 And that isnt what I told you to type Jul 09 02:45:13 i misread what you wrote. I re-wrote it the way you said and it works now Jul 09 02:45:28 ok, any reason you cant do it this way? Jul 09 02:45:55 drpenguin: So, can you tell me why when I was using "me.michaelstitt.PassingDataSecondActivity" it wouldn't work? Jul 09 02:46:53 Hey there! I'm trying to perform an action when the device connects to a wireless network, however I can't seem to get it to trigger. My manifest.xml http://pastie.org/4223307 and the broadcast Receiver http://pastie.org/4223314 Jul 09 02:47:42 is android flexible enough to allow to full customize its content? Jul 09 02:48:09 Cache_Money: not sure, ive never triggered an Activity via an intent Action, just sent messages to other activities Jul 09 02:49:10 drpenguin: okay. Thanks for your help Jul 09 02:55:47 any idea guys? Jul 09 02:56:44 you mean like custom views, graphics, etc? Jul 09 02:56:47 If so, yes Jul 09 02:56:51 you can make custom stuff **** ENDING LOGGING AT Mon Jul 09 02:59:58 2012