**** BEGIN LOGGING AT Mon Jan 28 03:00:00 2013 Jan 28 03:00:04 nesoi, you probably don't have the android jar in your project. Jan 28 03:00:16 thanks MDijkstra Jan 28 03:00:19 mdkess Jan 28 03:00:19 g00s: Notes and SIIIs *everywhere* Jan 28 03:00:43 \o/ Jan 28 03:01:39 mdkess : where does it go? Jan 28 03:01:50 genuinely, part of the problem here is that the Apple Stores (there are 3 now, I think) are absolutely swamped by Mainland buyers, which makes it harder to buy anything there *and* damages the brand for locals Jan 28 03:02:00 nesoi, which IDE are you using, if any? Jan 28 03:02:47 The jar is in your android-sdk folder. Jan 28 03:02:49 android.jar Jan 28 03:02:54 eclipse Jan 28 03:03:11 Did you install the android plugin for it? Jan 28 03:03:21 mdkess : yes, but what folder in the app does it go in? Jan 28 03:03:24 g00s: also, Napoleon, quoted in the article? I know him :) Jan 28 03:03:33 Usually just linked externally, leave it in android-sk. Jan 28 03:03:36 android-sdk rather Jan 28 03:03:50 linked how? Jan 28 03:05:36 My device is a Samsung Galaxy S II Lite running Android 2.3.6. When I plug it into the USB of my computer running Windows it works just fine (actually, it's a bit funny that I have 2 devices (my phone and my SD card) inside the device in "My Computer"). However, when I plug it into the USB running Ubutu 12.04 it says it's impossible to mount bla bla bla Jan 28 03:05:43 just make a new android project, it'll set everything for you nesoi Jan 28 03:05:45 Does anyone know what's going on or a solution for my problem? Jan 28 03:06:00 mdkess : I don't see how any other projects are linked like that. they all contain folders lke Android 2.3.3 which contains an android.jar. Jan 28 03:06:11 I did make a new project from existing code: the sample code I want to test Jan 28 03:07:06 nesoi, oh, ok, then I think what you need to do is click project -> properties and then set the android SDK somewhere. But I don't use Eclipse, so 'm not sure the steps. Look for "External Libraries" maybe? Jan 28 03:07:09 When using startActivityForResult, and I want to retrieve something gotten in a DB query in the started activity Jan 28 03:07:38 is it more reasonable to serialize the Data and pass them back, or might it be more efficient to just pass the ID of the object and do another query in the other activity? Jan 28 03:08:04 The object returned might return several lists with up to ~100 Objects Jan 28 03:08:07 odd, I did it again and it worked Jan 28 03:08:08 thanks Jan 28 03:13:42 Can someone help me debug? Jan 28 03:14:12 um, debug what? Jan 28 03:14:20 Find out whats wrong Jan 28 03:14:26 I have been trying to figure out something Jan 28 03:14:34 one second let me see if this changes it Jan 28 03:15:18 nvm didn't work Jan 28 03:15:20 i get 01-27 21:11:04.659: E/AndroidRuntime(1142): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.techdigy.clickcounter/com.techdigy.clickcounter.Splash}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.extempor.cheetah.CLEARSCREEN } Jan 28 03:15:27 also, should I be using parcelable or serializable? Jan 28 03:15:42 ohh Jan 28 03:15:42 nvm Jan 28 03:15:43 lol Jan 28 03:15:44 I've been reading many contradictory sources on this Jan 28 03:15:50 silly me i didn't put the intent in the manifest Jan 28 03:16:03 *activity Jan 28 03:16:05 my bad Jan 28 03:16:17 Sorry im new Jan 28 03:19:25 is it neccisary to refer an intent in the manifest Jan 28 03:21:07 what are you using the intent for? Jan 28 03:21:24 opening a new class Jan 28 03:22:05 a new Activity? Jan 28 03:22:19 yeah Jan 28 03:22:27 you don't need a custom intent for that at all Jan 28 03:22:34 ohh Jan 28 03:22:44 so I can just launch it directly? Jan 28 03:22:47 yup Jan 28 03:22:54 Leeds: Thanks a lot! Jan 28 03:23:00 regular intent, with the component set to your activity Jan 28 03:24:04 I was reading some documents online and watching videos and the guy was making a new activity with a new intent filter in the manifest. I was thinking that's crazy since apps could have hundreds of activities. Jan 28 03:24:31 http://developer.android.com/training/basics/firstapp/starting-activity.html Jan 28 03:24:46 apps generally don't have hundreds of activities... Jan 28 03:25:10 have you worked through at least some of the training stuff? Jan 28 03:25:42 yeah Jan 28 03:25:50 I have been working for 2 months Jan 28 03:26:20 im in an advanced placement Java class in my highschool and as a freshman I made my own application which like has 8k downloads but i kinda forgot Jan 28 03:26:27 I have been brushing up on android ever since Jan 28 03:26:56 ok Jan 28 03:27:19 Leeds: What I'm trying to do is make a class that has a splash screen which is run by a thread for 5 seconds and runs a video... then it launches a new layout. Would it better to do this all in one class? Jan 28 03:27:35 it would be better not to have a splash screen Jan 28 03:28:37 hello all Jan 28 03:28:39 Yeah I guess I'll take it out. I have a question though, how do those big apps with tons of stuff manage to go out without many activites then Jan 28 03:28:45 *intents Jan 28 03:29:18 I am loking at purchasing http://www.newegg.com/Product/Product.aspx?Item=9SIA1M80KZ6690 and would like opinions for the price as an all around communication tablet for Kik, Skype, TextFree, Yahoo, and Netflix Jan 28 03:29:29 paranous: for app development? Jan 28 03:29:54 no. at-least not just yet Jan 28 03:29:57 agy2154: I don't think you'll find there are many apps which are complex enough to have more than - at the most - 20 or 30 activities Jan 28 03:30:08 paranous: then #android Jan 28 03:30:20 Leeds: How many do you think the facebook app has? Jan 28 03:30:50 paranous: if you're thinking about dev eventually, just get a nexus tablet :/ Jan 28 03:31:03 I love my Nexus 7 Jan 28 03:31:08 highly recommend it Jan 28 03:31:52 i sold mine Jan 28 03:31:54 and my xoom Jan 28 03:31:58 and my touch pad Jan 28 03:32:01 I regret giving my mom my Nexus s Jan 28 03:32:51 I regret that I have but one tablet to give to my family Jan 28 03:33:31 i gave my parents my touch pad with a wireless charger, they love it Jan 28 03:34:12 I currently have an iPhone 5 but am using a samsung phone with 2.3.6 for development testing. I was wondering if there is anyway If I can install android on the iphone through Cydia? Jan 28 03:34:37 agy2154: not a chance Jan 28 03:34:38 if only Jan 28 03:35:01 i would use an iphone5 with android in a heartbeat Jan 28 03:35:27 Leeds iPhone's processor is arm based isn't it? so there is a "chance" :P Jan 28 03:35:37 no, there is no chance Jan 28 03:36:05 Leeds i thought someone ported over android for the 3g or 3gs? Jan 28 03:36:16 http://lifehacker.com/5693309/how-to-install-android-on-an-iphone-in-six-easy-steps Jan 28 03:36:38 what drivers would it require thoguh Jan 28 03:36:51 agy2154 its not going to work on yours Jan 28 03:36:54 at all Jan 28 03:37:05 is it because I have the 5? Jan 28 03:37:07 different os, different hardware Jan 28 03:37:10 yup Jan 28 03:37:11 damn Jan 28 03:37:39 jug6ernaut: what phone do you havE? Jan 28 03:37:50 Galaxy Note 2 Jan 28 03:38:11 but my laptop has 3% battery lol, so I'm out, peace. Jan 28 03:38:31 lol peace Jan 28 03:39:01 Anyone here with Nexus 4? Jan 28 03:45:42 can I use a videoview string path with a fileinputstream? Jan 28 04:22:55 Is the "Quick Settings" menu missing from the 4.2 intel AVD image when in tablet mode, or am I just doing something wrong? Haven't seen 4.2 on a real tablet - only my phone - so I have no idea. Jan 28 04:24:14 (Can only drag the left-side notification shade down; not the right side) Jan 28 04:32:02 My textview has a scroll bar and it supports fling. If the if I swipe to see the next data if the text view is shorter than the previous one, it comes with the scroll bar with empty lines, I have to scroll up to see the shorter data. Is there anyway I could reset the scroll bar for text views? Jan 28 04:35:04 Anyone please? Jan 28 04:37:00 that was …. obscure Jan 28 05:07:08 hello... I have google ADT bundle with eclipse, and it runs fine. But if I install an html editor using Install New Software, it becomes so slow and laggy that it's unusable. Is there a way I can install an HTML editor and not have that happen? Jan 28 05:24:55 g00s Anyidea on how to fix? Jan 28 05:26:06 My textview has a scroll bar and it supports fling. If the if I swipe to see the next data if the text view is shorter than the previous one, it comes with the scroll bar with empty lines, I have to scroll up to see the shorter data. Is there anyway I could reset the scroll bar for text views? Jan 28 05:26:19 Can somebody please help me? Jan 28 05:30:35 obscurant1st are you not english my friend ? Jan 28 05:30:52 cause your question is.....a bit...... odd and hard to grasp Jan 28 05:32:58 I would say, f*** this keyboad layout! I just read my previous message and I am laughing so hard! :P Anyway I got my answer. I can simply use scrollTo(0,0)! Jan 28 05:33:17 :) Jan 28 05:33:29 was quite funny Jan 28 05:34:01 Yep Jan 28 05:35:04 Its just that, this keyboard has numpad and I am not familar with this layout. Jan 28 06:45:27 how do you mass tab a black of code in eclipse? Jan 28 06:46:19 select it and press tab Jan 28 06:53:14 does that really work? Jan 28 06:53:27 using Vrapper, Shift + > Jan 28 06:55:24 Quick question for someone. Is it possible to eliminate the limit on concurrently typed text? IE, continuously typing stops and pulling up the keyboard again allows you to resume. Jan 28 06:56:07 Trinity: select code and press ctrl-shift-f Jan 28 06:56:47 deebo: thanks G00s: i think thats for notepad++ Jan 28 06:57:13 weird, works for me :| Jan 28 06:57:15 switch deebo and g00s Jan 28 06:57:17 around actually LOl Jan 28 06:57:35 tab works, do you know how to anti-tab? shift-tab? Jan 28 06:57:45 nvmd thanks g00s Jan 28 06:58:00 right click on source -> source -> reformat = shift-ctrl-r Jan 28 06:58:51 reformat is different; it will restyle things according to the code formatter Jan 28 06:58:58 (in the preferences) Jan 28 06:59:13 there is also "correct indentation" Jan 28 06:59:38 true, i just use format Jan 28 06:59:55 Anyone have any idea? Jan 28 07:04:31 cpetersen4 not sure I understand your question Jan 28 07:04:37 but I haven't been up long Jan 28 07:05:15 Well, if you type continuously in an EditText control, eventually after not too long you will stop and be unable ot continue. Jan 28 07:05:24 really? Jan 28 07:05:25 Minimizing the keyboard and bringing it up again allows you to resume. Jan 28 07:05:28 * StingRay_ tries Jan 28 07:06:26 could i get some advice on how to properly use a listview that has thumbanils? i assume its generally a bad idea to launch a new thread to download an image when a thumbnail becomes visible. should i be creating something of a queue to make sure i dont launch too many background threads at once Jan 28 07:06:44 cpetersen4 bored now Jan 28 07:06:47 cpetersen4: There is no such limit built-in Jan 28 07:06:50 nothing happening Jan 28 07:06:54 :) Jan 28 07:06:56 I know why! Jan 28 07:06:57 cept loads of text Jan 28 07:07:01 :) Jan 28 07:07:05 I didn't put a space. Jan 28 07:07:08 ;) Jan 28 07:07:17 Wow...do I feel retarded. Jan 28 07:07:28 romainguy_ how a android bugs prioritised ? Jan 28 07:07:33 balls2thewall: Yes, you should use a queue. Look into the Exectutor API, it has everything you need Jan 28 07:08:28 romainguy_ cause I listed a rather annoying bug with latest IME, wondered if there is any indication that it was even seen ? Jan 28 07:08:30 StingRay_: once a month they get very drunk, put all the bugs into a hat, then everyone has to pull one out Jan 28 07:08:37 Sorry StingRay. I suppose I should get some sleep... Jan 28 07:08:57 cpetersen4 np, I say do and think much worse sometimes Jan 28 07:09:16 :) Jan 28 07:09:32 Can't get much worse buddy! Thanks again. Jan 28 07:10:10 romainguy_ http://code.google.com/p/android/issues/detail?id=41687 <-- that just annoys the hell outta me Jan 28 07:55:37 hey, quick q... Jan 28 07:55:46 w 24 Jan 28 07:55:49 uup, sorry Jan 28 07:56:33 which is probably less performance taxing, having a canvas draw a circle or display and scale a small bitmap (like say 100x100) Jan 28 07:56:52 er, draw and fill a circle, that is Jan 28 07:58:29 with canvas draw your ending up with pixels at the end right ? Jan 28 07:58:58 they both draw pixels, unless I'm misunderstanding the q Jan 28 07:59:15 I just don't know how taxing the circle drawing algorhithm is Jan 28 07:59:33 I've tried both and they seem fairly similar in speed but it's hard to tell Jan 28 07:59:51 primitives are fast Jan 28 07:59:57 try doing it 10000 times? Jan 28 07:59:59 Lutwidge: I think it's a case where both are so fast that it butchers your test Jan 28 08:00:00 in any kind of gfx/render Jan 28 08:00:17 Lutwidge: but drawing a simple circle will be faster Jan 28 08:00:19 was gonna say, test it with thousands and see Jan 28 08:00:23 (and give better results) Jan 28 08:00:25 OK, clearly it's nicer to just draw a custom bitmap... Jan 28 08:00:40 But in this case a simple filled circle would be fine as well Jan 28 08:00:46 Lutwidge: if all you need is a filled single-colour circle, use a primitive Jan 28 08:01:12 well, it's a game, and the bitmap looks nicer and is much more customizable, etc Jan 28 08:01:16 but for a slow device Jan 28 08:01:18 with bitmap, you are essentially drawing twice, as well as using more of the fillrate Jan 28 08:01:21 maybe I could switch to circles Jan 28 08:01:40 Lutwidge: bitmaps make sense if you are going to just blit them, not scale, I think Jan 28 08:02:00 Actually, I'm not scaling them, now that I think about it Jan 28 08:02:03 a small bitmap after scaling won't lookg nice without some expensive (in time) filtering Jan 28 08:02:26 OK Jan 28 08:02:32 I think I'll include both options Jan 28 08:02:41 But bitmaps will of course be prefered\ Jan 28 08:03:14 Lutwidge: if there's no scaling, and you're just "blitting", then the only extra work for bitmaps is loading them into memory Jan 28 08:03:28 right, so I think it's pretty darn fast Jan 28 08:03:30 hw composition of ARGB image can be faster Jan 28 08:04:32 well, there could be scaling that I'm not doing myself, I mean, I use stuff like: Jan 28 08:04:33 Lutwidge: on Android circles are drawn as generic paths objects Jan 28 08:04:36 img.setBounds(x-rad, y-rad, x+(rad*2), y+(rad*2)); Jan 28 08:04:36 img.draw(can); Jan 28 08:05:01 a bitmap will be less work Jan 28 08:05:21 both in hardware and software Jan 28 08:05:27 I figured the fill is the expensive part of the circle routine Jan 28 08:05:34 but I dunno Jan 28 08:05:52 I'm probably going with the bitmap just because it's going to look much better really Jan 28 08:06:06 But if it was liable to make much of a performance diff I could have circles as an option Jan 28 08:06:14 I get the feeling it's unlikely to Jan 28 08:06:26 * p_l points to romainguy_ as having probably the best info on internals Jan 28 08:06:39 Thanks :) Jan 28 08:06:48 do Adapters have something opposite to the getView method? Something to notify me when a view is no longer visible so i can cancel any tasks associated with it. Jan 28 08:07:08 can't you catch some exception for that? Jan 28 08:07:08 balls2thewall: you can use a scroll listener on ListView for instance Jan 28 08:07:24 balls2thewall: it will tell you about the visible positions Jan 28 08:07:26 er, or that :) Jan 28 08:14:57 romainguy_, I have so much to ask you Jan 28 08:15:06 can't even choose where to start from Jan 28 08:15:52 for example, this one: http://stackoverflow.com/questions/14457312/sherlock-action-item-style-for-button-in-custom-action-bar-layout Jan 28 08:17:16 hello all Jan 28 08:17:49 squ isnt that a jakeWharton question ? Jan 28 08:18:19 he ran away Jan 28 08:18:51 then answer is probably no :) Jan 28 08:19:01 here is another one: Jan 28 08:19:34 when scaling imageView to keep aspect ratio inside linearLayout with weights Jan 28 08:20:13 I can't position textView to RightOf of that imageView, because imageView, to be scaled properly, needs its width set to match_parent Jan 28 08:21:03 "to be scaled properly, needs its width set to match_parent" the way your doing it yes Jan 28 08:21:06 probably Jan 28 08:21:34 lazy loading lists is tricky >_> if the user scrolls super fast till the end of the list thats 100 tasks waiting to be executed Jan 28 08:21:39 scaling a view in relation to something else, probably not the best idea to use layout weight Jan 28 08:21:53 have tried compound drawable -- it is textView with DrawableLeft attr, but image is just centered (not fit) Jan 28 08:23:22 maybe you can suggest a way to position 4 elements vertically with equal heights without linearLayout's weights? Jan 28 08:24:29 height = parentView height / 4 Jan 28 08:24:30 ? Jan 28 08:25:02 what are these things that each need the same height and all need to be onscreen ? Jan 28 08:25:06 out of interest Jan 28 08:25:41 how do I do that in xml? Jan 28 08:25:53 it is menu Jan 28 08:26:26 vertical menu with 4 items, each row has image to the left and text after it Jan 28 08:26:50 I want to scale that image to fit area Jan 28 08:28:34 I like the the android device emulator takes so long to load, it gives me a chance to pee Jan 28 08:29:13 hope you drink a lot Jan 28 08:31:05 squ paste that layout, interested to look at it now Jan 28 08:31:09 Lutwidge, what do you do if eclipse does not attach to emulator process? Jan 28 08:31:18 I cry Jan 28 08:31:34 and then restart stuff until it works Jan 28 08:31:45 just like g00s said Jan 28 08:31:45 and then drink Jan 28 08:32:11 looks like android is fully eco-friendly Jan 28 08:32:30 [00:29:14] hope you drink a lot Jan 28 08:32:31 lol Jan 28 08:36:46 i can't seem to get ABS title to change to white: http://pastebin.com/JNMdqN2z Jan 28 08:36:53 I want the activity title to be white Jan 28 08:39:03 StingRay_, pasting Jan 28 08:39:16 you aren't using the TDM.ActionBarStyle anyway. looks like you want to include the titleTextStyle in the Widget.MyTheme.ActionBar block Jan 28 08:40:14 testing Jan 28 08:40:56 StingRay_, romainguy_ : https://gist.github.com/4653957 Jan 28 08:41:31 i think you could do that entire layout with one linearlayout and three textviews Jan 28 08:42:01 and image as compound to textview? Jan 28 08:42:07 mhmm Jan 28 08:42:23 kevinb: thank you. Jan 28 08:42:25 and now im tired and i have to get up shortly to go to work Jan 28 08:42:31 so gnight :) Jan 28 08:42:39 mooooooo Jan 28 08:42:39 bye Jan 28 08:43:06 canadiancow, don't forget to turn on android emulator to start while you are sleeping Jan 28 08:43:15 noooooo don't do that Jan 28 08:43:30 i've woken up to see my cpus pegged and my laptop about to melt down Jan 28 08:43:50 gnight canadiancow :) Jan 28 08:44:05 AFAIK emulator takes only one cpu-core for full use Jan 28 08:44:09 squ remind me what it is your doing ? Jan 28 08:44:20 got the layout in eclipse now Jan 28 08:44:40 despite emulator was created after threads were invented, it uses only of core.. Jan 28 08:44:49 s/of/one Jan 28 08:45:04 StingRay_, position text to the right of image Jan 28 08:45:23 thats it ? Jan 28 08:45:26 yep Jan 28 08:46:06 bout 10 seconds hold on Jan 28 08:46:56 it may be better to load rectangle image filled with color, to see does it fit with respect to ratios or not Jan 28 08:50:50 http://pastebin.com/cJTvGqFv Jan 28 08:50:58 had to create more items Jan 28 08:51:15 to make the repeat of image > vertical res Jan 28 08:51:27 otherwise you'd be getting crap looking things neways Jan 28 08:51:42 text is at right? Jan 28 08:51:44 of image? Jan 28 08:51:48 ya Jan 28 08:52:02 there is also another way to keep in with what your doing Jan 28 08:52:12 have 2 lin layouts next to each other Jan 28 08:52:21 one for text one for images Jan 28 08:52:42 house the text in lin layouts with weight Jan 28 08:52:47 but thats a bit messy Jan 28 08:52:53 does same thing though Jan 28 08:52:56 visually Jan 28 08:53:58 StingRay_: thats ok for one screen height/width Jan 28 08:54:16 if you haeve to support multiple layouts i might not use fixed count of items Jan 28 08:54:32 well then your choices are Jan 28 08:54:34 scale Jan 28 08:54:36 you can use a main layout and expand a child layout Jan 28 08:54:39 or use a list view / scroll Jan 28 08:54:55 Hello, i am searching for a good GUI tutorial for making a scrollable browser with different taps. Can anyone help me? Jan 28 08:56:09 StingRay_, what you have actually added is android:layout_toRightOf="@id/a" ? Jan 28 08:57:21 well yeah Jan 28 08:57:27 and have wrap_content on image Jan 28 08:57:48 well image width Jan 28 08:58:06 that does not scale image Jan 28 08:58:26 what ? Jan 28 08:58:52 just switch to nexus 7 Jan 28 08:59:07 Oh you mean scale it up beyond the bounds of max res ? Jan 28 08:59:15 yep Jan 28 08:59:21 oh god no Jan 28 08:59:24 why would you want that ? Jan 28 08:59:33 :) Jan 28 08:59:48 it is pretty logical it should scale based on height only, but I noticed that it doesnt Jan 28 09:00:19 make a bigger image Jan 28 09:00:28 that meets the res requirements Jan 28 09:00:34 Hi! I call an intent to record a video putting a target filename into extras (putExtra(MediaStore.EXTRA_OUTPUT, outputFile)). After the intent returns, i would like to query the duration, width and height of the video file. How to do that? Jan 28 09:00:35 dont scale it beyond that native res Jan 28 09:00:39 thats horrid Jan 28 09:00:55 it looks like the only option Jan 28 09:01:03 no Jan 28 09:01:09 but it's the correct one Jan 28 09:01:11 :) Jan 28 09:01:17 :) Jan 28 09:01:48 what would you like to do yourself, add scaleType parameter to xml Jan 28 09:02:01 or make 20 differently scaled images for each device? Jan 28 09:04:10 i would add 100 different images Jan 28 09:04:36 might not be so hard with imagemagick's convert :) Jan 28 09:04:52 that makes the apk bigger Jan 28 09:04:59 and bogger apk = better software Jan 28 09:05:09 who said? Jan 28 09:05:15 Hello, i am searching for a good GUI tutorial for making a scrollable browser with different taps. Can anyone help me? Jan 28 09:05:19 squ i would have 1 image of the that is for xxxxhdpi Jan 28 09:05:28 but then load it in code Jan 28 09:05:41 or create a view type extending image Jan 28 09:06:04 or the current image view type will probably efficiently load only what it needs to Jan 28 09:06:11 not sure tbh if it does on dont Jan 28 09:06:48 cause you can get image size and then only store the size that it needs using bitmap Jan 28 09:07:08 store = set Jan 28 09:07:14 store was wrong word Jan 28 09:08:19 you are welcomed to show "a view type extending image" :) Jan 28 09:23:15 zbnm,./qASWEDFRGTHJKL;' Jan 28 09:23:27 oops :) Jan 28 09:24:55 "US free to grab EU data on American clouds" … FISAAA ftl. Jan 28 09:27:08 public abstract int describeContents () Jan 28 09:27:08 Added in API level 1 Jan 28 09:27:08 Describe the kinds of special objects contained in this Parcelable's marshalled representation. Jan 28 09:27:12 what does that even mean?! Jan 28 09:27:19 can i just return 0? Jan 28 09:27:27 its for schema versioning, i think Jan 28 09:27:57 mh, okay Jan 28 09:29:33 Is there any problem with IntentService and an implented SurfaceHolder.Callback? onHandleIntent gets called but my surfaceCALLBACKS() are not? Jan 28 09:29:34 (its been called in a Service, not a Serviceintent and in the onCreate()). But i want to handle it in a ServiceIntent .. Jan 28 09:37:40 public boolean isUserAGoat () Jan 28 09:37:41 wat Jan 28 09:37:55 what in god's name is that? Jan 28 09:38:13 well should return false ? Jan 28 09:38:19 right ? Jan 28 09:38:47 afaik goats cant use android Jan 28 09:38:56 could be wrong Jan 28 09:38:58 :D Jan 28 09:39:22 hi, how to draw some shapes on a non-custom view? I only know to draw something on a customized view... Jan 28 09:39:25 what if i carve the hoofs? Jan 28 09:39:28 so they are like fingers Jan 28 09:39:58 zhangxaochen: you have to derive the onDraw Jan 28 09:40:19 http://news.ycombinator.com/item?id=4782574 Jan 28 09:40:21 zhangxaochen: you might create a bitmap Jan 28 09:40:29 zhangxaochen: offscreen and set this as background Jan 28 09:40:30 monsti, if i override ondraw, it becomes a custom view Jan 28 09:40:42 heh : isUserAMonkey() Jan 28 09:41:29 monsti, i'm thinking of passing a android.view.View as a param to a function, and draw something on it Jan 28 09:41:49 how can i achieve that? Jan 28 09:41:50 zhangxaochen: yes setBackground is what you want in that function Jan 28 09:42:02 zhangxaochen: draw you stuff on a offscreen canvas Jan 28 09:42:05 then make a bitmap Jan 28 09:42:12 and this bitmap is the background Jan 28 09:42:27 or use ANY type of drawable Jan 28 09:42:35 including "shape" Jan 28 09:42:55 layers Jan 28 09:42:57 bitmap Jan 28 09:42:59 etc Jan 28 09:43:10 I wouldl ike to know if someone knows any android api that either does neural networks OR cartoonize a given pic :) Jan 28 09:44:59 monsti, setBackground accepts a "Drawable", how can i draw the bitmap to the background? Jan 28 09:46:43 hmm i know now, i'll try it , thx monsti Jan 28 09:49:03 is anyone here using android/MQTT to talk to their own MQTT broker ? Jan 28 09:49:24 obviously the Java Eclipse/Paho library on the client Jan 28 09:56:28 i set activity layout programatically by this line this.setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, results)); , my problem is that i dont know how to now set background color or add anything else to this layout... :/ Jan 28 09:58:06 make your own layout Jan 28 09:58:14 rather than using android.R.layout.simple_list_item_1 Jan 28 09:58:50 then make your own adapter to deal with the new fields/data Jan 28 09:59:39 hi Jan 28 10:00:55 StingRay thx, can you give simple example of putting list adapter to layout Jan 28 10:01:43 http://developer.android.com/guide/topics/ui/layout/listview.html Jan 28 10:02:01 Dex Loader] Unable to execute dex: Multiple dex files define Lorg/hamcrest/Description;---------Cant get rid of this error :( Jan 28 10:02:29 SirStean: where it happens? Jan 28 10:03:24 happens when starting the DDMS for testing my app. But the app conatins no errors Jan 28 10:03:38 Hi all, I want to hook on the build process and create an entry in my @string file for the git version of my project, is there a way to do this? Jan 28 10:04:48 SirStean: look into imported classes, and if per chance you don't have double import of hamcrest Jan 28 10:12:37 Is it possible to get a callback called asynchronously from a service which is located in another application? Jan 28 10:16:29 still the same error ---- Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/hamcrest/Description; :( Jan 28 10:27:57 ok, i figured it out. onHandleIntent dont want callbacks. Afaik callbacks are spoon in a new Thread and onHandleIntent dont wait until Thread is done Jan 28 10:29:21 Hi all, I want to hook on the build process and create an entry in my @string file for the git version of my project, is there a way to do this? Jan 28 10:29:49 Probably i do a loop with a 100ms Thread.Sleep() within the onHandleIntent aslong as "isDone" boolean is true. But this is kind of dirty code, isnt it? Jan 28 10:31:47 sorry stupid question: I send: geo fix 7.40105676651001 51.4931488037109 to the AVD. When I call gps.getLatitude(); takes the app my geo fix or the result from gps.getLatitude(); Jan 28 10:54:49 Hello Jan 28 10:55:05 Question about UI Jan 28 10:57:30 I want to make a somewhat customized button, so I'm using another type of View with an OnClickHandler Jan 28 10:58:22 But I want to know how to make it compatible with trackpads and key-based navigation and such Jan 28 10:58:39 in what way did you customize that button? Jan 28 10:59:00 wouldn't it been simpler to overrride Button isntead of view, to have most of the functunallity? Jan 28 10:59:05 EwoudCP: you might be able to style the existing button widget to your liking Jan 28 10:59:23 or if you just mean styling (and not really custommiing) just use bakgrounds and such? Jan 28 11:00:11 Hello, I also got an UI question Jan 28 11:01:30 I am loading 4 to 5 png on to my UI, I load them in asynctasks, but this takes up to 250 ms so the user can see the pictures load, anyway to make it faster? Would loading them to cache make it faster Jan 28 11:01:52 I tried using a compound drawable at first, but I needed more control over the placement of the icon. Jan 28 11:02:37 Coolpowpow: make the pictures smaller, compress them better Jan 28 11:02:47 Op Jan 28 11:02:50 Simply extending Button seemed like a good idea, but it doesn't seem to have any subclasses that I can build upon Jan 28 11:02:52 Optipng Jan 28 11:02:55 make sure you have the picture in all matching resource folders, so it won't need to scale them at runtime Jan 28 11:03:02 Works great for PNG files Jan 28 11:03:25 AlCapwn: does OptiPng work better then pngcrush? Jan 28 11:03:30 any experience there? Jan 28 11:03:44 I've only used optipng Jan 28 11:03:54 because pngcrush is afaik anyway done via the build process Jan 28 11:04:39 Coolpowpow: i guess the largest speed problem can be, the rescaling of images, if you only put drawables in /res/drawable and not in the drawable-xhdpi etc. folder Jan 28 11:05:21 thx for the moment I only got one folder Jan 28 11:05:31 and I do th resizing mysrelf Jan 28 11:06:05 that might take the time :) Jan 28 11:06:40 i am not sure about that, but I would guess if you anyway rescale at runtime, let android do that for you, I would assume they has improven that, so you will have a hard time making it faster Jan 28 11:06:54 but that is just pure guessing from my side, without any reliable facts Jan 28 11:06:55 last question, if I use the 3 folders for different screen density, the pictures wont be resized, right ? Jan 28 11:07:26 if you don't resize them afterwards: no :) Jan 28 11:08:46 ok thanks guys :) Jan 28 11:09:08 Right now I've managed to get my desired result with a layout View, but it doesn't exactly count as a button for input. A Button override seems like a hack, considering I'd have to re- implement the layout View functionality just to have a Button subclass. Jan 28 11:10:03 Well, not a hack, but it seems like something the android SDK should support in a more clean fashion Jan 28 11:12:19 EwoudCP: I am still a bit confused about what you are trying to customize. It still sounds a lot like you just want to change background? and if you want to compise it from multiple pictures, use one of the xml drawables to create the backgruond out of several bitmaps Jan 28 11:16:17 I've coded some background drawables. They work fine for the Button case. But I want to add an Image (well, another drawable, possibly varying size) to the text. Compound drawables stick to the edge. Jan 28 11:16:41 is there a way to force the use of my assets/roboto-thin.ttf from XML or higher level like Manifest? Or do I need to use custom code for TypeFace object everywhere? Jan 28 11:16:48 Argh, I gotta go for a bit, I'll be afk. Jan 28 11:23:27 QubeZ: derive from textview/edittext and add some custom xml attributes Jan 28 11:23:30 hi guys i have to customize the progress dialog to set it at the center without background.How can i remove the black background and make the dialog at center.? i have googled a lot but could not find a solution Jan 28 11:23:42 QubeZ: or do this in code Jan 28 11:25:45 thanks Jan 28 11:26:55 Android03: isnt a progressDialog by default in the center ? Jan 28 11:27:12 how to redraw item in pager Jan 28 11:28:06 force it to call onCreateView again Jan 28 11:28:13 and destroy previous item Jan 28 11:28:14 Coolpowpow: no ,it's at left inside a black background and at right we see a text ... Jan 28 11:28:38 ok, you need to create your own custom dialog then Jan 28 11:29:02 coolpowpow Jan 28 11:29:08 Android03: why do you want to remove the background Jan 28 11:29:15 but still have a separate dialog Jan 28 11:29:21 coolpowpow: yes Jan 28 11:29:31 it sounds a bit like you would like to show a big progress wheel in the center of your current activity Jan 28 11:29:34 and not inside a new dialog? Jan 28 11:30:01 good point timroes Jan 28 11:30:26 because if that's what you want, use something like FrameLayout to just display the wheel on top of your content Jan 28 11:30:36 timroes: i need to make the Activity screen visible but want to show a small progress dialog at the ceter of the screen Jan 28 11:31:14 and you want to blank out the rest of the screen? Jan 28 11:31:22 (around your dialog) Jan 28 11:33:08 timroes: yes Jan 28 11:33:30 okay then you might be alright with a dialog :) Jan 28 11:33:59 so that user should only see the spinning wheel at the center of the screen Jan 28 11:34:12 timroes:so that user should only see the spinning wheel at the center of the screen\ Jan 28 11:34:40 hi Jan 28 11:34:42 timroes: with a dialog? Jan 28 11:35:08 Android03: yeah Jan 28 11:35:16 i need to trace an app, to detect when a class is instantiated Jan 28 11:35:29 like a memory dump each second :) Jan 28 11:35:42 timroes: can you explain me how? Jan 28 11:35:46 but in a precise way Jan 28 11:36:07 Android03: you would need to create a custom style for that dialog, and remove its background Jan 28 11:36:21 use the default android style you would use as parent to your style Jan 28 11:36:30 but set background to @null Jan 28 11:36:52 (thats how I would try it, not sure if produces exactly your wished result) Jan 28 11:37:02 with ddms is not possible :/ Jan 28 11:39:08 timroes: but How will it show spinning image like it shows in the progress dialog? Jan 28 11:41:27 Can I actually hold both EditText and TextView objects inside a ArrayList ? Jan 28 11:42:25 well an arraylist of views Jan 28 11:45:06 timroes: but How will it show spinning image like it shows in the progress dialog? Jan 28 11:46:01 Android03: its an animation list Jan 28 11:48:46 timroes : Sorry but which animation list. can you tell me how can i get that image from animation list Jan 28 11:49:51 I have setup a option menu and I inflate it in activities where I want it. I have set showAsAction to ifRoom. Prob is it does not show up in the top bar. I can only see it clicking the menu button. are thre some common things one often miss to see it in the action bar? I am on android > 4 Jan 28 11:50:17 Android03: your sdk contains the full source of all images/animation list of your device Jan 28 11:50:39 Android03: just have a look how the progressbar style is done Jan 28 11:52:13 Is there any way to define the AutoStart (BroadcastReceiver) on the fly? Like.. "If the user wants Autostart on androidboot it will start, elsehow not"? Jan 28 11:54:05 when switch to Holo theme the action bar do show up but in the bottom. I want it in the top instead of title bar Jan 28 11:55:36 documentation says it should by default stick to top. very weird I have it in bottom Jan 28 12:00:23 does anyone have any ideas? Jan 28 12:04:48 action bars shouldn't be in the bottom, what are you doing? Jan 28 12:08:08 funkbox: I do: inflater.inflate(R.menu.menu, menu); and in menu I have my items. some items are set to showAsAction ifRoom Jan 28 12:08:29 then I get a bar in the bottom of the app with the items I have set Jan 28 12:08:50 in the top of the app I have the title of the app. I want those icons to be in that bar Jan 28 12:09:54 I have gone through articles and tutorials about it but I can't seem to get the menu items in the top Jan 28 12:10:47 Daani: would you like to share your critical code so we can take a look at it? Jan 28 12:12:25 Daani: through http://pastebin.com of course Jan 28 12:14:19 http://pastebin.com/geqtxzsy Jan 28 12:15:19 as you see in the menu, the settings item is the one that pops out in the action bar, positioned in the bottom with full width Jan 28 12:24:55 hi, im developing an app which uses the android sqlite db. but im not sure about the database.query() method. when i query for one id could i do something like this: "query(TABLE_NAME, allColumns, COLUMN_ID + " = " + searchedId, null,null,null,null"? Jan 28 12:27:18 Schrostfutz: db.query(TABLE_NAME, null, COLUMN_ID + " = " + searchId, null, null, null, null); Jan 28 12:28:21 okay, but when i want to search for an array of ids i do the following: "query(TABLE_NAME, null, COLUMN_ID, idArray, null,null,null);"? Jan 28 12:28:26 Daani: sorry, I just looked at your file Jan 28 12:28:29 preferred method instead of null for the columns is to actually choose the columns you need Jan 28 12:28:41 Edman: No problem, I appreciate all help I can get! Jan 28 12:29:13 Schrostfutz: you may need to do COLUMN_ID + " IN ?" then add your id's into an int[] Jan 28 12:29:19 Daani: in your manifest file, under the application element you do android:uiOptions="splitActionBarWhenNarrow" Jan 28 12:29:33 not sure though, i haven't searched that way using Android's SQL wrapper Jan 28 12:29:58 Daani: the split action bar is exactly the bar below the screen, by selecting this option you're forcing the OS to put split the actionbar Jan 28 12:30:15 is there any argument against passing around values between activities with a static object? Jan 28 12:30:28 QubeZ: but in the official documentation they use the 4th parameter, a string array with "The values for the WHERE clause" Jan 28 12:31:25 Daani: to fix it you should delete this line, in which case android wouldn't use the split actionbar Jan 28 12:31:36 Daani: this is equivalent to doing android:uiOptions="none" Jan 28 12:31:50 Schrostfutz: you can use new int[] { 1, 2, 3...} in that 4th parameter Jan 28 12:34:41 balls2thewall: not sure if i understand what you mean, but it might be easier (or more concise) to subclass Application Jan 28 12:35:10 okay. Jan 28 12:35:32 but i need to explicitly use the " IN ?" modifier for the where clause? Jan 28 12:36:02 not sure, you might have to google examples Jan 28 12:36:18 is sit bad practice to pass a valueto an activity not with intents and bundles but with a static object Jan 28 12:36:26 typos :( Jan 28 12:36:42 is it possible to tell eclipse to launch the application/tests on all attached devices? Jan 28 12:36:55 Edman: that was the solution! Thanks a lot man. Tusen tack Jan 28 12:37:27 nvm, found it Jan 28 12:37:46 okay, thank you Jan 28 12:38:54 Daani: no problem :) Jan 28 12:39:34 balls2thewall: I believe subclassing Application is just what you need Jan 28 12:40:22 balls2thewall: read the class overview and see if that's what you need http://developer.android.com/reference/android/app/Application.html Jan 28 12:47:04 is it possible to automatically uninstall the application after the test run? Jan 28 12:47:20 If it remains installed including database data, the tests will fail the next time they are run on the same database Jan 28 12:47:54 when I say sharedPrefs.getString("number", ""); this means that I want to get the "number" field from my sharedPrefs and if I don't find it I want to have "" instead? Jan 28 12:48:30 yes but weird you're putting a String in for a number Jan 28 12:48:49 Or should I setup testsuites and drop all tables after running tests? Jan 28 12:48:56 should you be writing numbers then use getInt("number", 0); // use 0 to signify nothing Jan 28 12:50:26 unless your storing an index or something :) Jan 28 12:50:27 does this look weird, QubeZ ? http://stackoverflow.com/questions/7496840/get-android-shared-preferences-value-in-activity-normal-class Jan 28 12:50:31 when I send geo fix 13.24 52.31 to the emulator with api 10, then the emulator cashed. Is it a bug? Jan 28 12:50:34 the first answer Jan 28 12:52:15 weird? no Jan 28 12:52:50 because usually I do SharedPreferences settings = getSharedPreferences("MYPREFS", MODE_PRIVATE); Jan 28 12:52:58 and it's fine Jan 28 12:54:22 there is a default shared preference and there is a custom one ... you're just using the custom one Jan 28 12:54:52 in any case, im not sure what issue you're having with it Jan 28 12:54:56 it is not working? Jan 28 12:56:17 I think it's something completely different that I'm facing because I am able to see what I store there when I first call it, but not anymore when I'm further down the program Jan 28 12:56:28 I think it's a faulty condition somewhere, nothing to do with SharedPrefs Jan 28 12:56:46 are you committing? Jan 28 12:57:13 yea of course Jan 28 12:57:26 yea I think I just caught it Jan 28 12:58:00 Sicp: what was it? Jan 28 12:58:27 faulty logic in a condition, leads me to not even call for the value later on Jan 28 13:01:06 Is there an app or another way to stop related services to an app and uninstall it with one click? Jan 28 13:01:41 :) Jan 28 13:01:46 think twice, code once Jan 28 13:02:30 you mean do killall on it, memoryleak ? Jan 28 13:05:16 Edman: do you might know what could cause the action bar to not display more than just one item? Jan 28 13:05:44 Daani: didn't you just have a "narrow screen" problem? Jan 28 13:06:03 same thing, if your screen can't support more than one item and you have ifRoom, then it wont show up Jan 28 13:06:07 QubeZ: yes, Edman pointed me towards the solution Jan 28 13:06:19 but there are plenty of room Jan 28 13:06:31 Daani: qubez is right Jan 28 13:06:40 the title from left to the right icon is enough for having at least 3,4 icons Jan 28 13:06:43 Daani: did you set it to "ifRoom"? Jan 28 13:07:02 yes Jan 28 13:08:35 it's not even the first item that is showing, it's the second item ha ha Jan 28 13:15:31 Daani: I've been trying some things with the action items here Jan 28 13:16:20 Edman: alright, really curious Jan 28 13:16:28 Daani: I don't see a reason why your bar shows only one item other than lack of space Jan 28 13:16:52 Daani: show us your menu.xml, that might help Jan 28 13:18:23 monsti: BTW, I solved my problem ^^; Jan 28 13:20:40 http://pastebin.com/aSvbTqWD Jan 28 13:21:20 Sicp: killall & uninstall for a specific app Jan 28 13:22:55 Daani: hmmm, do you think the overflow menu has to have at least one item under it? Jan 28 13:23:38 Edman: is that necessery? Jan 28 13:23:45 Edman: sounds weird Jan 28 13:24:17 sorry for my ignorance, I am a complete noob as you already noticed ha ha Jan 28 13:26:03 Daani: nah, what i said is not true Jan 28 13:26:43 Edman: I am completely confident that there are room for at least two more icons until it might get close to the title Jan 28 13:27:37 Daani: actually the bar is divided independently of your title length Jan 28 13:30:48 all devices have fastboot mode ? Jan 28 13:30:57 Daani: just to be sure the problem is not lack of space Jan 28 13:31:19 Daani: try putting your device on landscape mode... this way the bar will have more space Jan 28 13:31:37 Edman: ah, okay. So in my case I am not able to have more than just one item/icon Jan 28 13:32:24 Daani: you should be able to, it's not clear why you can't Jan 28 13:35:19 Daani: i used your menu.xml file in my device and it shows two items Jan 28 13:37:52 Edman: ah, I recreate everything and try again. Jan 28 13:42:18 Daani: have you tried to use your application on landscape mode? Jan 28 13:44:11 Edman: I recreated it, same thing, found out it was the image that was the problem. When I used the same icon as the other item it worked. :/ the icon I tried to use looked okay in my image viewer Jan 28 13:44:19 icon* Jan 28 13:48:11 Daani: if you want to provide a standard action (like refresh or so) you should use the default icons provided in the icon design guide Jan 28 13:48:29 Daani: this is a pack with the standard icons http://developer.android.com/downloads/design/Android_Design_Icons_20120814.zip Jan 28 13:49:28 Daani: more information and tips about images for android http://developer.android.com/design/style/iconography.html ... and more specifically for the action bar http://developer.android.com/guide/practices/ui_guidelines/icon_design_action_bar.html Jan 28 13:50:25 Daani: i advise you to download the icon pack on the first link i sent you and use them whenever it's fit Jan 28 13:51:46 Daani: use the http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html android asset studio to directly generate the icon you need in a zip file separated for each resolution Jan 28 13:55:23 Helo frands! Jan 28 13:55:50 Anyone can recommend me a good book to learn android application programming? I have java background Jan 28 13:56:44 how to make item click listener for cursorAdapter? Jan 28 13:57:01 app development in general or games? Jan 28 13:59:31 squ: the click listener is not for the adapter Jan 28 13:59:38 nadav: http://d.android.com Jan 28 13:59:44 squ: it is for the view being populated by the adapter Jan 28 14:00:19 How can I resize an imagem at run time? Jan 28 14:00:26 its imho the best, since its most up to date, and really covers nearly everything you need. And you have also the trainings, that are to be read in a way like tutorials. And the api guides for closer understandance of every API Jan 28 14:00:37 (I want to make sure my background will always fit perfectly the resolution/screensize of the device) Jan 28 14:01:35 vuln: you can define an xml background, that just isnerts your backgruond with fill in both directions Jan 28 14:01:39 vuln bitmap/scale Jan 28 14:02:18 vuln: http://developer.android.com/guide/topics/resources/drawable-resource.html#Bitmap scroll down to xml bitmap, and see the android:gravity tag Jan 28 14:02:46 http://stackoverflow.com/questions/9834507/android-app-background-image-fill-height-but-not-width that for some example of an only vertically filled backgroundimage Jan 28 14:02:56 ty :D Jan 28 14:02:58 Naish: i would recommend you to read the first few chapters of any android book, in which the author talks about the building blocks of the android sdk Jan 28 14:02:59 you both Jan 28 14:03:34 timroes, https://gist.github.com/4653957 Jan 28 14:03:36 Naish: after knowing those concepts, go for the android developer tutorials, guides and reference Jan 28 14:03:43 help me with that please :) Jan 28 14:04:32 whats your problem? Jan 28 14:05:54 except that you are using relativeLayout without placing any of the elements, and what i guess would happen is text and an image below Jan 28 14:07:34 I want to position text to right of image Jan 28 14:07:52 using linearlayout with horizontal alignment, or better relative layotu? Jan 28 14:07:54 image is scaled properly only if it is set to match height of parent Jan 28 14:07:56 have you read that: http://developer.android.com/guide/topics/ui/layout/relative.html Jan 28 14:08:14 height and width Jan 28 14:08:17 Hello! I have linear lyaout and one of his childs (for example TextView R.id.description) has height = 0 and weight = 1.0dp. I inflate this layout using inflate(R.layout.my_layout_id, null) and then add to current linear layout but i after adding this layout my TextView is not streched. How i can force layout to stretch this textview? Jan 28 14:08:40 timroes, can you try ? :) Jan 28 14:09:04 squ: no, but you have obvisously not reada the baove, since you have no alignment tag in your complete relative layout Jan 28 14:09:52 timroes, I put it as that page states, but still it is not that I want Jan 28 14:09:53 xgear: android:layout_weight is not in dp, if you did that also in your xml Jan 28 14:10:15 i know Jan 28 14:10:18 its just numbers describing the relations between the children Jan 28 14:10:30 so you don't have 1.0dp (as you wrote) in your xml? :) Jan 28 14:10:32 it is my mistake Jan 28 14:10:48 "has height = 0 and weight = 1.0dp" has height = 0dp and weight = 1.0f Jan 28 14:10:53 timroes, are you sure it is possible based on that layout I pasted? Jan 28 14:11:03 * squ going to submit that to stackoverflow Jan 28 14:11:18 Edman: thanks a lot for the help. Jan 28 14:11:22 timroes: thanks for link Jan 28 14:12:16 timroes: " height = 0dp and weight = 1.0f" this is what i have in layout Jan 28 14:12:28 it is ok Jan 28 14:12:52 xgear: can you paste the layout? Jan 28 14:19:13 timroes: http://pastebin.com/i3zeeFr8 Jan 28 14:21:21 xgear: ah that is not an layout error I guess, but I don't think the weight stuff is recalculated by itself Jan 28 14:21:32 I guess you must tell the container to recalculate everything when you add something Jan 28 14:21:42 i understand Jan 28 14:21:50 (but no idea, what method exactly you need, since I stay away from generating layotus like that :D) Jan 28 14:21:50 but i don't know how Jan 28 14:22:04 oh :( Jan 28 14:22:21 ok Jan 28 14:22:52 all it is because i want to change layouts in one fragment in viewpager Jan 28 14:23:15 xgear your wanting to stretch a textView ? Jan 28 14:23:17 maybe there is another way? Jan 28 14:23:42 StingRay_: http://pastebin.com/i3zeeFr8 Jan 28 14:24:01 LinearLayout -> android:id="@+id/stretch" Jan 28 14:24:28 xgear that makes no sense to me Jan 28 14:24:40 what is it your including ? and what do you want to happen ? and what is happening ? Jan 28 14:25:24 i add second layout on the go Jan 28 14:25:52 and after adding viewgroup with id android:id="@+id/stretch" is not stretched Jan 28 14:25:52 to what ? Jan 28 14:26:09 to @+id/main_account_container Jan 28 14:26:11 main_account_container ? Jan 28 14:26:17 yes Jan 28 14:26:29 so it would be underneath the app_header Jan 28 14:26:37 ok and what is it your adding ? Jan 28 14:27:03 and whatever it is do you give it layout params ? Jan 28 14:28:05 sorry, i was disconnected Jan 28 14:28:23 for few last seconds Jan 28 14:28:31 14:26 StingRay_: so it would be underneath the app_header Jan 28 14:28:31 14:26 StingRay_: ok and what is it your adding ? Jan 28 14:28:31 14:27 StingRay_: and whatever it is do you give it layout params ? Jan 28 14:29:15 " it your adding" mContainer.addView(mLoginView); Jan 28 14:29:28 mLoginView - layout that i want to add Jan 28 14:30:02 customView ? Jan 28 14:31:21 no, it is my R.layout.sub_login linear layout Jan 28 14:31:39 ok and do you give it layout params ? Jan 28 14:32:18 and which lyout params i should give to it? Jan 28 14:32:40 well the parent type is linearLayout Jan 28 14:32:49 so linearLayout.layoutParams Jan 28 14:33:31 ok, and when? Jan 28 14:33:45 b4 you add it Jan 28 14:33:48 or after Jan 28 14:33:56 dont matter Jan 28 14:39:01 thanks Jan 28 14:39:52 I'm using AIDL to generate an Interface. However one import statement in the generated file seems to be missing but it is included in the .aidl file, are there any constraints on what do import or has anyone yet stubled over the problem? Jan 28 14:40:11 Eclipse shows no errors on the .aidl file Jan 28 14:40:15 pleed: that's strange. Jan 28 14:40:28 what's the import? Jan 28 14:40:47 lov: an import to a custom parcelable datatype LogMsg Jan 28 14:40:56 I can paste the code, wait a second Jan 28 14:42:53 lov: http://nopaste.info/788cf5f3dc.html Jan 28 14:44:24 lov: so currently the only errors shown in eclipse are in the generated IAppControllerService.java Jan 28 14:44:39 it's missing the LogMsg import statement Jan 28 14:45:20 lov: I also have a LogMsg.aidl which declares "parcelable LogMsg;" Jan 28 14:58:15 lov: "fixed" problem by putting the LogMsg.java into the same package as IAppControllerService.aidl Jan 28 14:58:57 lov: this sucks and I'd consider it as a aidl -> java generator bug since import statements are described in the android documentation but they seem to have no effect on the actual generated file Jan 28 15:01:56 pleed: they should, that's kind of strange. Jan 28 15:02:04 pleed: you may actually wish to file a bug under b.android.com Jan 28 15:05:17 hey some people are pirating my mobile game Jan 28 15:05:23 if they pirate it, does google play let them update? Jan 28 15:06:12 no Jan 28 15:06:22 of course, whoever arrrr pirated the app will just put out releases Jan 28 15:07:54 tripknotix: well your app must be very good! Jan 28 15:09:37 yeah its actually pretty popular Jan 28 15:09:43 search Future ops Online Premium APK Jan 28 15:09:58 it seems because i update almost every day, these pirating sites keep posting it to the top of their games lists Jan 28 15:10:07 and im at the top of the ARMv6 pirating lists Jan 28 15:10:15 tripknotix: well you can try chainging your buisness model Jan 28 15:10:18 i am Jan 28 15:10:25 ive got a good one coming out Jan 28 15:10:59 tripknotix: i recently bought some text2speech voices Jan 28 15:11:11 tripknotix: the guys have their own protection system Jan 28 15:11:25 a device id is send to the server Jan 28 15:11:32 Clans, private servers, and voice chat, all based on $1 per slot, private servers allow you to control / kick /ban in addition to managing who is in your clan and showing an icon above your clan mates, and a private voice server for those in your clan , so far $8 / 8 slots seems to be something tha tmight work, scaling upwards Jan 28 15:11:33 and some libraries are downloaded ;) Jan 28 15:11:44 o i c Jan 28 15:11:52 hows text2speech? Jan 28 15:12:24 btw in my model, yuo get all 3 in the same system, its all tied together Jan 28 15:12:32 so a private server becomes a "clan server" Jan 28 15:13:05 tripknotix ppl pirate your game at 0.61 gbp Jan 28 15:13:06 ? Jan 28 15:13:16 thats wrong, very wrong Jan 28 15:13:20 yeah its a 99cent game, and people pirate it all day lol Jan 28 15:13:33 theres a free version though and they are almost identical... Jan 28 15:13:37 so it makes almos tno sense Jan 28 15:13:39 I smoke that amount of money every 25 minutes Jan 28 15:13:40 at all Jan 28 15:13:54 oh hang on, every 15 min Jan 28 15:13:55 tripknotix: well a pirate is not a customer - maybe 20% of them are potential customers Jan 28 15:14:02 right exactly Jan 28 15:14:03 tripknotix: can't you detect pirated copies and block them from connecting to your server? might not be worth the hassle to get right though for a 99 cent game =) Jan 28 15:14:37 so if i charge, and force google play IAP api together with my networking's service direct transaction, then there is no middle man, so they cant pirate those features =P Jan 28 15:14:54 i think every player is a potential customer, and it helps fill chatrooms Jan 28 15:14:58 err game rooms Jan 28 15:15:09 im selling over 100 copies a day, so as long as the money keep rolling in Jan 28 15:15:14 i wont be stopping pirates Jan 28 15:15:20 yeah ;) Jan 28 15:15:34 that's what we did with our customers Jan 28 15:15:41 in version 3.0 we added a license manager Jan 28 15:15:46 tripknotix just installed now and trying it Jan 28 15:15:49 just nagging the user after the login Jan 28 15:16:02 in version 4.0 we forced the users to give us money Jan 28 15:16:38 yeah i have controls of previous versions of the servers to enforce it, i did that, but now that im on amazon , its harder because amazon takes longer to update Jan 28 15:16:51 so amazon kindle users are on a previous server version, along with the pirates Jan 28 15:16:58 so.. cant use that plan anymore lol Jan 28 15:17:04 sometimes it takes 4 days to amazon to update Jan 28 15:17:10 tripknotix: You wrote the whole thing yourself? Jan 28 15:17:20 yeah it took over a year Jan 28 15:17:24 Wow Jan 28 15:17:25 since january 2nd 2012 Jan 28 15:17:27 =) Jan 28 15:17:29 How many LoC? Jan 28 15:17:33 loc? Jan 28 15:17:41 lines of code Jan 28 15:17:58 umm... i have no idea, atleast 30 custom classes if not 50+ Jan 28 15:18:01 Did you use a library for the graphics like libgdx? Jan 28 15:18:07 oh its unity3d Jan 28 15:18:09 Ah Jan 28 15:18:11 tripknotix not a fan, but I'm the most critical of ppl Jan 28 15:18:16 thats ok StingRay_ Jan 28 15:18:27 you need some good artists on it Jan 28 15:18:28 https://play.google.com/store/apps/details?id=net.RealDefinition.FutureOpsOnlineAlpha Jan 28 15:18:37 just a suggestion Jan 28 15:18:41 Do you develop for a living or was that just your hobby project? Jan 28 15:18:41 eh, it needs better graphics StingRay_ but i do try Jan 28 15:18:52 oh programmer art ? Jan 28 15:18:56 that explains it Jan 28 15:19:03 :) Jan 28 15:19:17 i used to develop for companies , but i only had 2 years experience... not enough to make senior, i spent the last year on unemployment, and after being denied in my first 5 interviews, i imediately got to work on the game Jan 28 15:19:25 i didnt take it lying down, made my own job =) Jan 28 15:19:31 heh Jan 28 15:19:40 Good for you Jan 28 15:19:53 yes, companies only see the potential of senior developers Jan 28 15:20:19 so i had to Jan 28 15:29:25 are there any open source custom videoviews (like popup drag resize view for eg)? Jan 28 15:30:54 tripknotix: not necessarily. Generally, they see the value of good developers. Jan 28 15:31:05 I can tell you that the industry is hurting for competent developers, at least in my area Jan 28 15:31:25 the majority of people that come in are idiots that know how to hook up callbacks and write xml layouts and that's it Jan 28 15:35:54 lov, my degree was in 3d animation, i learned php in 1998, as2 flash 1999, php 2003, as3 2006, C# 2007 i can write xml and ajax to communicate, and callbacks... yet without a degree in computer science, and not a senior developer level. on paper, after an interview, i still dont land the job, nothing but positive comments, and no job to show for it Jan 28 15:36:04 sorry i learned javascript in 1998 Jan 28 15:36:30 tripknotix why didnt you like 3d animation ? Jan 28 15:36:44 well there's your problem. You're self-taught and probably don't know things like design patterns, etc. Jan 28 15:36:56 they were closing the program as i was finishing, and there was talk about how much of the industry would be outsourcing to weta and india Jan 28 15:37:15 I'm sure you've seen the "fractal of bad design" article about PHP Jan 28 15:37:27 tripknotix yeah lots in a boom but then not as much as the mad rags say! Jan 28 15:37:31 i was able to learn MVC quickly and adapt to it, as well as every convention they had employed on the projects i worked .... didnt even matter Jan 28 15:37:48 * lov shrugs Jan 28 15:37:53 don't go for senior level positions? Jan 28 15:38:40 i wasnt, alot of recruiters tried to for me, but it really didnt matter, they want the best bang for the buck, im in san francisco Jan 28 15:38:46 theres almost no cheap job Jan 28 15:38:50 for programmers in sf Jan 28 15:40:21 I'm kind of surprised by that, to be honest. Jan 28 15:40:29 not so much "cheap job" as much as "lower level positions" Jan 28 15:41:26 anyway, you need to be careful about the recruiters that you use, too. Some of them go for the buckshot approach to recruiting and will show you at every square hole they can find. Jan 28 15:41:41 The better ones will actually do a technical interview w/ you and see your strengths/weaknesses Jan 28 15:42:14 "i can write xml and ajax to communicate, and callbacks" Jan 28 15:42:25 This is kind of a given. It's assumed any competent employee can do this. Jan 28 15:49:31 why nothing happened when i call android.view.View.draw(Canvas canvas) Jan 28 15:49:31 ? Jan 28 15:50:55 zhangxaochen: You shouldn't call that method yourself, use View.invalidate() instead Jan 28 15:51:57 Pattehh, how can i draw an offline canvas on some a casual view if i don't extend one? Jan 28 15:52:20 Offline canvas? Jan 28 15:52:48 oh offscreen... Jan 28 15:53:52 Pattehh, is it possible? Jan 28 15:54:15 Like, keeping an instance of a Canvas and then passing it to a view in order to draw to this canvas? Jan 28 15:55:03 yes Pattehh Jan 28 15:56:16 Well, I guess it should draw to the canvas if you're just calling the draw method Jan 28 16:00:27 Hi, i have 4 png images that I load in imagebuttons, to do so I use 4 AsyncTask but the performance aren't good enough (The user can see the pngs load takes nearly 300ms). Is the any other way of doing this to make it faster ???? Jan 28 16:00:38 benn on this all day :s Jan 28 16:01:13 (the png are scaled if the screen is too small) Jan 28 16:01:47 Coolpowpow: https://developer.android.com/training/displaying-bitmaps/load-bitmap.html Jan 28 16:02:18 Pattehh, thx, i found a solution http://upshots.org/android/android-canvas-to-view-without-ondraw Jan 28 16:03:22 Coolpowpow: when you say that you're loading these images, do you mean from the network or something? Jan 28 16:03:59 no from the asset for the moment but the user can chage the UI by putting file in sd card Jan 28 16:04:23 thx for the link f2prateek I look into that Jan 28 16:04:30 and it's taking you 300ms? Jan 28 16:04:41 i need to scale them Jan 28 16:04:44 I think you have an underlying issue that you need to fix first. Jan 28 16:04:47 Yeah, but from what? Jan 28 16:05:09 consider having resources in res/drawable-hdpi, mdpi, xhdpi, etc Jan 28 16:05:17 well some are lets say 512 x 512 and depending on the phone they may need to be smaller Jan 28 16:05:30 ok, so? Jan 28 16:05:41 again, have different resolutions included in your application and load them as appropriate Jan 28 16:05:48 zhangxaochen: Okay, nice :) Just don't use that approach if you will have to update your Canvas too often Jan 28 16:05:48 the Android resourcing system is really powerful Jan 28 16:06:01 you can have many different instances of the same resource, with the runtime picking the appropriate one Jan 28 16:06:30 frankly, I have no idea why you're pulling something from /assets for your buttons Jan 28 16:06:40 but will the UI have like 3 sizes?, what if a phone is in between 2 sizes Jan 28 16:08:10 Coolpowpow: You may wish to read this: http://developer.android.com/training/basics/supporting-devices/screens.html Jan 28 16:08:17 so just to make sure I get it, I create the 3 folders for the 3 different kinds of screen, and that is it ? Jan 28 16:08:34 read the link. Jan 28 16:08:34 Coolpowpow: well you need more layouts for more phone sizes Jan 28 16:08:40 There are a variety of ways you can specify resource Jan 28 16:08:47 you need to pick the types that work for you. Jan 28 16:08:57 you DEFINITELY don't want to be loading from assets for your images. Jan 28 16:08:59 Coolpowpow: also probably this https://developer.android.com/training/multiscreen/index.html Jan 28 16:09:05 at least, not for assets < 1MB, etc. Jan 28 16:09:28 yeah actually, look at f2prateek_'s link after you look at mine Jan 28 16:09:31 it will be more in-depth. Jan 28 16:09:45 for the moment, the way I've done it, the app looks exactly the same on all kinds of devices, will I be able to get this result with the 3 folders ? Jan 28 16:10:01 Coolpowpow: READ THE LINKS. Jan 28 16:10:20 we're telling you the official, expected route to provide your graphical resources to your users. Jan 28 16:10:29 We STRONGLY recommend that you either use this or have a good reason why you won't. Jan 28 16:11:25 I read the 3 links on this https://developer.android.com/training/multiscreen/index.html this morning, I am just trying to understand exactly how it works Jan 28 16:11:55 Coolpowpow: what are you trying to understand? Jan 28 16:12:00 Coolpowpow: the general idea is that you provide resources for different densities, so that your phone doesn't need to scale them at runtime. Jan 28 16:12:22 Trying to make things pixel-perfect is usually a big mistake; you usually want to just make sure that your layouts are flexible. Jan 28 16:13:15 ok so if it dosen't scale at runtime then depending on the phone the UI won't be exactly the same? Jan 28 16:13:38 Of course not, the phones have different sizes and aspect ratios Jan 28 16:13:46 It's not supposed to look _EXACTLY_ the same Jan 28 16:16:54 ok, I'll try the 3 folders, hope that speeds up my app Jan 28 16:17:03 thanks for the help Jan 28 16:19:22 it's not just 3 folders, fyi. Jan 28 16:19:27 There are many different resource types. Jan 28 16:19:31 they're just the most common Jan 28 16:19:41 in the future, no one is going to understand you if you say "the three folders" Jan 28 16:20:28 ok Jan 28 16:22:15 the reason why I haven't been using the folders res/drawable-xhdpi and the other 2 is that we need to change the UI in a very easy and quick way, doing this would make it 3 times longer i guess Jan 28 16:22:21 I mean changing the UI Jan 28 16:22:53 if you're prototyping, you can just pick one (hdpi) and work out of it Jan 28 16:23:53 ok thx Jan 28 16:43:03 Hey guys, quich question, how do i show a popup? ie, the user did something wrong so i show them a dialoughe box to tell them they didnt do it right? Jan 28 16:43:45 actually i think i just found my awnser :) Jan 28 16:43:52 http://developer.android.com/reference/android/app/AlertDialog.Builder.html Jan 28 16:43:57 zack6849: ^ Jan 28 16:44:10 thank you :D Jan 28 16:47:21 dalvik internally do a write(3,"" Jan 28 16:47:41 bue how reads the response? Jan 28 16:47:57 stack Jan 28 16:48:36 oks Jan 28 16:49:02 i want to break when a method is called, from a gdb Jan 28 16:49:32 do you recommend a conditional breakpoint? Jan 28 16:50:47 sha0coder: just thinking it might be r0 or an actual register, i forget Jan 28 16:51:13 oks Jan 28 16:51:48 [just curious, sounds neat... debugging the dalvik vm with gdb?] Jan 28 16:54:17 kbs: i'm debugging a internal service Jan 28 16:55:00 sha0coder: ah, I see. (thanks -- sounded like an interesting discussion.) Jan 28 16:55:57 Napalm: but descriptor 3 is /dev/log/main Jan 28 16:56:08 okay what exactly is a context supposed to be, because in the official docs i see them calling getActivity() which isnt a method as far as my ide is concerned, if it helps im trying to show this dialog inside the main activity Jan 28 16:56:09 is logging each method call o_O Jan 28 16:56:39 zack6849: use "this" Jan 28 16:56:54 tried that, problem being im running it inside an onclicklistener Jan 28 16:57:05 zack6849: then use MyActivityName.this Jan 28 16:57:12 ir even better Jan 28 16:57:14 or Jan 28 16:57:48 zack6849: your onClickListener gives you a view as its argument... so do v.getContext() Jan 28 16:58:11 zack6849: v being the name of the argument variable passed in Jan 28 16:58:35 worked great Jan 28 16:58:36 thanks ^_^ Jan 28 16:59:13 also is therea method to get the default download location of a device or should i just assume its /mnt/sdcard/download/? Jan 28 16:59:27 zack6849: did you use the last method of getContext() because that is better than MyActivityName.this (this creates some horrible hidden static methods) Jan 28 16:59:40 zack6849: noooo Jan 28 16:59:41 i used v.getContext :P Jan 28 17:00:39 zack6849: use Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS ); Jan 28 17:00:48 zack6849: http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory%28java.lang.String%29 Jan 28 17:01:03 thanks for all the help Napalm <3 Jan 28 17:01:32 np Jan 28 17:05:44 you might also find Environment.getExternalStorageState() helpful... otherwise, you'll get directories that are unwriteable; etc. Jan 28 17:06:18 is there any API to find the mount points of other than the primary external storage? Jan 28 17:07:25 TheBunnyZOS: don't mess around with that! Jan 28 17:07:31 use the Environment class Jan 28 17:07:32 ok :) Jan 28 17:07:40 sry :)))) Jan 28 17:07:44 i mean Zharf Jan 28 17:07:58 Zharf: Nope Jan 28 17:08:14 TheBunnyZOS: that always happens, when i switch from my mac keyboard to the netbook Jan 28 17:08:40 monsti, Environment.getExternalStorageDirectory doesn't let me know about other mount points than the primary storage Jan 28 17:08:49 some devices have more than one Jan 28 17:08:52 SimonVT, that sucks Jan 28 17:10:42 monsti: If you're curious, my problem turned out to be that the "cp" command doesn't exist in API 7's adb shell environment :/ Jan 28 17:11:10 Zharf: you might use a shell cmd and execude the "mount" cmd Jan 28 17:11:17 gwynne: install busybox Jan 28 17:11:22 gwynne: omg ;) Jan 28 17:11:24 use dd :) Jan 28 17:11:29 monsti, yeah, but I don't really want to Jan 28 17:12:02 monsti: oh god I know I have 4 machines here Im actibluy working, Dell PC, Mac tower and mac laptops and that spacing really throws me. Jan 28 17:12:10 why dont you just read /proc/mounts Jan 28 17:12:18 Zharf: yes because this is no 100% way Jan 28 17:12:20 monsti: It would've been nice if it had said "cp: not found" instead of "cp: permission denied" :) Jan 28 17:12:22 Hey I did get synergy set up some I can move the mouse / KB between the mac and PC Jan 28 17:12:26 thats useful Jan 28 17:12:36 Zharf: e.g. on some devices we have links Jan 28 17:12:55 Zharf: and the internal storage might me no vfat32 fileystem Jan 28 17:13:06 I'll just let the user browse / then, whatever Jan 28 17:13:54 Zharf: wow i just checked my nexus7 Jan 28 17:13:59 the fs is "fuse" ;) Jan 28 17:14:27 monsti: ive noticed that the internal sdcard, is a fuse fs that emulates fat32 flaws, like one uid, no symlinks or chmod Jan 28 17:14:44 monsti: its actualy on the /data/ partition normaly Jan 28 17:15:05 yeah because it has to survive a rom update Jan 28 17:15:32 and no app can get access to the real dir Jan 28 17:22:21 I'm seeing sporadic crash reports for my published app due to a SecurityException accessing network state. I do not access the network state in my application, but the error appears to be thrown when inflating a V2 support map fragment. This works fine on my test devices, does the mapping library have an undeclared dependency on the ACCESS_NETWORK_STATE permission? Jan 28 17:30:51 Posted question on SO: http://stackoverflow.com/questions/14567723/does-the-v2-maps-library-require-the-access-network-state-permission Jan 28 17:30:54 Thanks for the help all. Jan 28 17:32:51 how best to decide which stream to play a sound on? I wish to request audiofocus so my notification sound can be heard, but generally this should mute any playing music (or at least turn it down). But it's not really music of course Jan 28 17:34:42 xorgate: What are you playing? Is it a notification? Jan 28 17:34:50 if it's going to last longer than a second, use the music stream Jan 28 17:35:07 it's a notification of about 5 sec? doorbell sound Jan 28 17:35:22 uh, use the notification stream I guess Jan 28 17:35:28 the thing is if i take any other stream the music just keeps playing and it will hardly be heard Jan 28 17:36:26 twaddington: hm - to ask a naive question, how would the map library work without accessing the network :-)? Seems like you need that permission to access the map tiles that it downloads... Jan 28 17:37:33 kbs: ACCESS_NETWORK_STATE is only needed to check the "state" of the network, whether it's up or down. You can simply try to access the network and catch an IOException if it's not connected. They don't state that you need that permission anywhere in the documentation. It also works just fine on devices where I haven't declared that permission. Jan 28 17:39:05 xorgate: try using GAIN_TRANSIENT_MAY_DUCK Jan 28 17:39:11 or GAIN_TRANSIENT Jan 28 17:39:13 lov i am Jan 28 17:39:22 twaddington: oh, I see -- NETWORK_STATE as opposed to INTERNET. Jan 28 17:39:27 hmm Jan 28 17:39:31 kbs: yep Jan 28 17:39:32 sometimes i get focus but my sound wont play either Jan 28 17:39:33 That's pretty odd. Jan 28 17:39:36 it's all messed up Jan 28 17:39:41 heh Jan 28 17:39:49 well, worse comes to worse you just use the music stream Jan 28 17:40:01 but I'd honestly suggest you take a look at what the Notification system uses Jan 28 17:41:33 the other sound ducks, i .start() the mediaplayer but no sound and no onCompletion() so my fragment thinks it's still playing a sound (aka not abandoning soundfocus) Jan 28 17:43:18 'sometimes' :) Jan 28 17:47:33 spinner.getItemAtPosition(spinner.getSelectedItemPosition()).toString() <-- I'm trying to call a different dialog in a Button's onClick() based on the selection of the spinner, but i can't seem to get the currently selected item, it always returns the same (Wrong item), the method there is what google dug up, i could also set a static String in the Spinner's onItemSelected() i guess, just wondering if i can get it more direct from the spinner Jan 28 17:49:47 I'm just learning android here, so I apologize in advance if this is a dumb question, but I have a view that I am wanting to programatically control the location of (in absolute coordinates)... but I notice AbsoluteLayout is deprecated. How do I do the same thing with RelativeLayout or FrameLayout? Jan 28 17:51:07 xorgate: that's weird. Jan 28 17:51:45 MarkT-: generally you don't, because it causes problems in that there are literally hundreds of potential resolutions to worry about. Jan 28 17:52:03 You can always make your own AbsoluteLayout if you absolutely must, and you can always have offsets or something Jan 28 17:52:26 but generally whatever you're trying to do can probably be solved another way. What ARE you trying to do? I understand you're trying to position something exactly, but what is it that you're positioning exactly and why? Jan 28 17:58:20 Well, the location is relative to another object on the screen, but that object isn't being managed by a viewgroup... it's simply a sprite on a canvas. Jan 28 17:59:03 I sent an e-mail to OpenIntents. I said I'd like to send you a few hundred dollars, and we can work together to improve your product. No reply. Jan 28 17:59:24 World is full of people who don't want my money Jan 28 17:59:51 Hi there. I would have any suggestion about compile new modules into Android 4.2.1 as USER_Modules. When I treid to compile Im adviced to add the new modules into device.mk as PRODUCT_PACKAGE but as I m doing it for emulator (full-eng) I can´t find where exactly I have to add this Jan 28 17:59:55 Any suggestion? Jan 28 18:00:21 LivingDeadDiv: try #android-root Jan 28 18:00:34 Ramnode has two products - OpenVZ VPS and KVM VPS. I want a KVM VPS, and they say it may be a month before they start talking to customers for that again. Jan 28 18:00:43 I'm not entirely sure that AbsoluteLayout would have been applicable anyways, since I want the view to size itself. I only want to adjuest its position. Jan 28 18:01:08 I think that it´s more in a dev way, because I´m triying to add new functionalities and for this is neccesaty add new packages Jan 28 18:02:49 hmmm... gotta run... something's come up here. Jan 28 18:05:43 ha, i guess the string has whitespace somewhere, as soon as i checked for .contains() on the static string, the string gets matched, bah Jan 28 18:07:46 morfic-: you can use trim to trim whitespace: http://developer.android.com/reference/java/lang/String.html#trim() Jan 28 18:08:45 twaddington: yeah, just mentioning that what i tried didn't work because i have had whitespace that didn't hurt anything for a long time, but drove me nuts today ;) Jan 28 18:09:04 yeah sorry, only half-paying attention :) Jan 28 18:11:17 twaddington: i seem to answer my own questions shortly after asking them in here (or at least at a 50% rate), not sure if it help to post follow up "duh" comments to my questions, eventually it does i hope. Jan 28 18:11:32 I'd imagine so. Jan 28 18:29:16 Hey guys, in the R.java what are the things like this: 0x7f030000? Jan 28 18:29:24 i asssume memory addresses? Jan 28 18:29:39 No, just an int identifier Jan 28 18:29:44 oh okay Jan 28 18:30:40 Anyone here know much about in-app billing? Jan 28 18:31:57 I'm getting a crash when I attempt to start the purchase purchase flow for the "android.test.purchased", and it says that it's coming from my call to launch the purchase flow. Jan 28 18:33:56 hi guys Jan 28 18:37:40 im working on this app... there are 2 fragments. One is a "search" fragment where you enter some text and choose to search files on a server or on the internet... the search fragment takes the input of the text and sends it to the activity via interface. Then, by using fragmenttransaction replace(), a new fragment is shown in that container. there is also a method that passes the user text Jan 28 18:37:40 to the new fragment and tells the fragment to update according to that text. I keep getting a nullpointer exception when trying to update the fragment. Jan 28 18:49:36 Is there any reason that using the android.test.purchased and android.test.refunded in-app product IDs should work only once in an app? Jan 28 18:50:24 say if i wanted to run 100 threads. each thread is doing some simple operation that lasts a few seconds. how can I manage the number of threads running at anyone time? Jan 28 18:50:25 I can use android.test.canceled and android.test.item_unavaliable just fine but the other two mess up after being run once. Does this have to do with the account I'm using to test? Jan 28 18:51:59 i.e: I dont want to just run 100 async tasks in a for loop, I want to do this sensibly Jan 28 18:52:59 brx_ you couldn't run 100 async tasks at once anyway because you'd hit the thread limit for your application. Jan 28 18:53:23 brx_: you should look into using an ExecutorService as a thread pool: http://developer.android.com/reference/java/util/concurrent/Executors.html Jan 28 18:53:44 There are factory methods for getting a thread pool of a certain type and then you can simply execute runnables at your leisure. Jan 28 18:54:05 You're probably looking for Executors.newFixedThreadPool(n); Jan 28 18:54:05 thanks twaddington Jan 28 18:54:19 no problem Jan 28 18:54:24 will it provide a mechanism for performing some action when all threads complete? Jan 28 18:54:53 brx_: nope, you'll have to roll that logic yourself. Jan 28 18:55:03 ok Jan 28 19:00:03 how do i output to the log you see while launching things from eclipse? Jan 28 19:00:13 it would appear system.outand log.w don't go there Jan 28 19:00:20 and i kinda need the debug output Jan 28 19:02:54 I got a quick math question for you all: When dealing with matrix multiplication for transformations, are the transforms applied by first multiplied matrix to last? Jan 28 19:03:19 ie I have a rotation matrix A and a translation matrix B and another rotation matrix C Jan 28 19:03:29 If I do Mat = A * B * C... Jan 28 19:03:59 Does that mean it first applies rotation matrix A, then translation matrix B, then rotation matrix C? Jan 28 19:04:22 im pertty sure that would be (A * B) * C Jan 28 19:04:40 yes, that would be (A * B) * C in matrix math terms Jan 28 19:05:02 Thanks. :) Jan 28 19:05:04 i havent multiplied a matrix since like first year algebra Jan 28 19:05:10 xD Jan 28 19:05:38 I'm writing a 3D model exporter in Blender Python for my android game. Jan 28 19:05:48 Which I'm including bone based animation in. Jan 28 19:05:55 canadiancow: i have, but not manually. Jan 28 19:06:04 canadiancow: that's what we have computers for! Jan 28 19:06:07 Bones are represented by matrices, hence why I asked. ^_^ Jan 28 19:06:19 im talking about at all :P Jan 28 19:06:34 xD Jan 28 19:06:42 What kind of apps do you code canadiancow? Jan 28 19:06:53 canadiancow: hard to avoid it when you work in signal/image processing / 3d programming :P Jan 28 19:07:22 ^ that Jan 28 19:12:27 any reason why a MediaPlayer would output no sound at the first .start() ? A second try and it works Jan 28 19:12:42 (second try = new MediaPlayer object) Jan 28 19:22:09 any of you port your apps to bb10 ? Jan 28 19:22:58 Has anyone worked with in-app billing? Or even testing in-app billing? Jan 28 19:23:26 in-app billing as in? payment gateways? Jan 28 19:23:29 I have a webview fragment, is there anyway I can set the loadURL method outside of the webview fragment class? Jan 28 19:23:36 Payment gateways? Jan 28 19:24:13 Like purchasing a pack of expansion material or something. Jan 28 19:24:45 @killmesoftly : yes you can, if you've got a reference of your webview at the desired area of code Jan 28 19:25:50 Normally you put your webview inside an Activity or Fragment... and in onCreate or other such suitable code block, you call the loadUrl method on webview.... Jan 28 19:25:52 Can someone tell me how I would close a file given a ParcelFileDescriptor? Jan 28 19:26:06 it has a close() method, but it only says it closes the underlying OS resources for the "strea" Jan 28 19:26:09 "stream" not the file Jan 28 19:26:09 http://developer.android.com/reference/android/os/ParcelFileDescriptor.html Jan 28 19:26:55 thanks clandestine!!! Jan 28 19:27:29 killmesoftly...... where exactly do you want to load the URL? Jan 28 19:28:53 in the onCreate piece of the activity that holds all my fragments (the main activity) Jan 28 19:29:16 however the class that shows the webview extends Fragment not WebView Jan 28 19:30:03 So create a method in your fragment that takes care of loading a new url? Jan 28 19:30:04 i forget the logic behind that but I think i had some problems extending webview Jan 28 19:30:32 yeah i got it working. Jan 28 19:30:36 thanks guys Jan 28 19:30:45 cool brother! Jan 28 19:31:15 its just that, you have its reference, its alive, and you can load a url Jan 28 19:31:33 yeah i know, i had a brainfart there for a moment Jan 28 19:31:58 does anybody know any other channel related to android ... which is a bit more casual than this one... Jan 28 19:32:01 ??? Jan 28 19:32:24 #android Jan 28 19:32:37 is it casual? Jan 28 19:33:13 yes there is also #android-offtopic Jan 28 19:33:21 Anyone know stuff about the Android ADK? Jan 28 19:35:01 Hi, does anyone have info on the round trip audio latency in 4.1, and whether it's stable on multiple devices? Jan 28 19:52:15 Can someone tell me how I would close a file given a ParcelFileDescriptor? it has a close() method, but it only says it closes the underlying OS resources for the "stream" not the actual "file" http://developer.android.com/reference/android/os/ParcelFileDescriptor.html Jan 28 19:53:52 You don't close a file, you close the stream you use to read a file Jan 28 19:55:05 OK, different question, is there any good way to get a singleton class in Android? Or do we only have the ability to pass values through an intent with a bundle? Jan 28 19:55:45 jdawes: uh, just write a singleton, the end. Jan 28 19:56:01 there's a difference between your activity lifecycle and the process lifecycle Jan 28 19:56:31 lov: Maybe I outta brush up my Java, back in a bit. Jan 28 19:56:46 o_O Jan 28 19:57:09 My googling made it seem like singletons in Android were the worst Jan 28 19:57:10 public class MySingletonClass { public static final MySingletonClass INSTANCE = new MySingletonClass(); .... } Jan 28 19:57:13 t,t mediaplayer just won't make sound the first time.. Jan 28 19:57:18 use a getInstance function as appropriate. Jan 28 19:57:24 well Jan 28 19:57:30 people dramatically overuse and misuse singletons Jan 28 19:57:42 I see Jan 28 19:57:51 they'll do really dumb stuff like shoving an Activity into a static variable somewhere and then get confused that they have leaks Jan 28 19:58:07 or they treat the Application class as a glorified singleton Jan 28 19:58:14 singletons aren't bad, per se Jan 28 19:58:30 lol, I just saw that a result from google say just that Jan 28 19:58:39 And I thought, "ooh I don't know about that" Jan 28 19:58:44 lov: i was thinking of storing my service, in a static field on the service Jan 28 19:58:48 lov: to bypass the async getservice binder crap Jan 28 19:58:50 Heh... I see singletons debated constantly in #iphonedev... Jan 28 19:58:58 of course, i will clear that in ondestroy, so it cant leak Jan 28 19:59:12 Ya, I'm only going to be using one for in-app purchase stuff, I feel it's justified. Jan 28 19:59:18 lov: do you think thats safe? Jan 28 19:59:46 otherwise I'd be re-writing a lot of code and passing through ~12 boolean values between activities. Jan 28 20:01:14 clever: I will stab you Jan 28 20:01:18 lov: why? Jan 28 20:02:09 clever: because if no one is bound to the service, and it's destroyed, but you still have a reference, what happens? Jan 28 20:02:13 (hint: nothing good) Jan 28 20:02:34 lov: i call startService at the start, and that marks it as a foreground service Jan 28 20:02:46 so it will never die without me releasing it, or the whole processes getting killed Jan 28 20:02:55 oh sweet, you work for Audible too? Jan 28 20:02:59 hi five purgatory dev Jan 28 20:03:03 o/ Jan 28 20:03:15 its managing a session to a server, and i must poll every 5 minutes or i get disconnected Jan 28 20:03:36 consider push notifications via GCM? Jan 28 20:03:46 i dont have access to the game servers Jan 28 20:03:54 I'm assuming that you're also holding a wakelock or something to force the phone to never sleep? Jan 28 20:04:03 and if i ran a proxy app on a central location, it would look like a person with 1000 bots Jan 28 20:04:31 yes, its holding a wakelock, and yes it gives the user an option to logout and stop all of that Jan 28 20:04:45 ok.... Jan 28 20:05:08 well, in your case, sure, just use a static reference, since you're intentionally modifying up the lifecycle. Jan 28 20:05:12 hey guys..another problem. I'm using an AsyncTask to check if a file on a server exists or not. Since I can't call my AsyncTask more than once, how can I check if the file exists with any filename extension. For example: there is a file on the server called NewFile.jsp, if I use my ATask to see if 'NewFile' exists it returns 404(not found) how can I make that return 200(found)? Jan 28 20:05:19 lov: When switching activities, do I just pass through the singleton? Is that OK? Jan 28 20:05:31 I don't understand what you mean by "pass through the singleton" Jan 28 20:05:42 In a bundle in an intent. Jan 28 20:05:47 to the new activity Jan 28 20:05:48 KillmeSoftly: give the filename as a parameter to your asynctask Jan 28 20:05:48 an intent Jan 28 20:06:26 yes i am doing that, but i don't want to have to write NewFile.jsp just NewFile. Jan 28 20:06:35 Is that how I would be accessing the singleton from a new activity? Through an intent? Jan 28 20:06:40 hey, is there anyway to shut down all the notifications from all the other apps? Jan 28 20:06:45 i want it to handle for all filename extensionms Jan 28 20:06:46 if user gives me permission Jan 28 20:07:04 uh, I'm not really sure what you're asking for. Jan 28 20:07:09 Do you want it to somehow guess the extension? Jan 28 20:07:29 g00s, JakeWharton, anyone here? Jan 28 20:07:48 the extension doesn't matter. is there anyway for it to search for like NewFile.*? Jan 28 20:07:53 jdawes: uh, you can store something in a singleton to be referenced by other activities, yes. Jan 28 20:07:58 KillmeSoftly: do you know how HTTP works? Jan 28 20:08:11 jeez dude Jan 28 20:08:12 (hint: no, you cannot do this unless the server supports it somehow) Jan 28 20:08:21 alright fair enough Jan 28 20:08:29 like the Android Task killer can kill all the tasks is there anyway to block all the notifications? Jan 28 20:08:38 meetoman: without making your own rom no Jan 28 20:08:52 ok Jan 28 20:09:05 lov apparently it's something to do with mediaplayers not getting initiated on activity/fragment creation. I post a runnable to runOnUiThread and then it works.. odd Jan 28 20:09:35 lov: Thanks for handeling both of us at once lol. So I would create an instance of the singleton in my launch activity, when I switch to a new activity that instance should still be there and be referenced? Or would it have to be created from the intent bundle? Jan 28 20:09:37 xorgate: oh yuck. Jan 28 20:09:47 all of us** Jan 28 20:09:54 xorgate: that's unfortunate, good luck and don't forget to submit a bug report if you can make a good test case. Jan 28 20:10:19 lov i'm wondering if there's some documentation on it.. haven't fuond it Jan 28 20:10:23 jdawes: lets step back. What information are you trying to propogate? Is there a reason you don't want to pass it as part of the intent? Jan 28 20:10:41 lov: no reason, I'm just wondering if that's how it will work. Jan 28 20:10:46 xorgate: it's totally possible that it's some ugly side effect of fragments that no one thought Jan 28 20:12:03 lov possibly.. the mediaplayer reports itself as playing Jan 28 20:12:10 i'll do that when i return from the gym :0 Jan 28 20:12:39 lov: I'll be creating a purchasing manager that will have a connection to the Google Play store that has it's own predefined event listeners. I'm just wondering if it's best to create a class to store the manager and it's listeners (along with some boolean values) and pass the singleton to new activities with intents or if it's best to pass everything as it's own variable. Jan 28 20:12:39 jdawes: you can reference things in a singleton at any time, the question is whether it's the appropriate thing to do. Don't forget that you can call startActivityForResult. Jan 28 20:12:52 oh Jan 28 20:13:30 make your activity a singleton Jan 28 20:14:22 lov: That's my quesiton really, if I create a singleton in an activity is it automatically reference-able by further activities? Jan 28 20:15:56 er Jan 28 20:16:04 I'm not sure you'd want to create a singleton WITHIN an activity Jan 28 20:16:22 I SUSPECT that you're somewhat confused about java's OOP in particular Jan 28 20:16:38 me too Jan 28 20:16:51 Guys, can you help me how to by clicking i can change Image in another Activity ?? Jan 28 20:17:32 please gimme love http://goo.gl/mod/v378 Jan 28 20:17:34 I apologize for the confusion here. Jan 28 20:17:54 Dany - I would, but I ran out of condoms. Sorry. Jan 28 20:18:06 lol Jan 28 20:18:09 haha Jan 28 20:18:09 no Jan 28 20:18:16 I want you guys to gimme a check Jan 28 20:18:22 me too Jan 28 20:18:34 i'd like some free money too, thanks Jan 28 20:19:28 Hi Jan 28 20:19:49 lov: Could you perhaps give me a resource to figure out what I'm doing with singletons or shall I just go on a Google search quest? Jan 28 20:20:18 Hi Jan 28 20:21:09 while compiling libiconv I get this error message: http://www.pasteall.org/39245 (error: unknown type name 'time_t'). Other libs are compiling successful (e.g. libpng, libjpeg). Any hints. Jan 28 20:21:24 ndk-8c and Ubuntu Linux Jan 28 20:21:33 Soo can someone help me how to by clicking on a button I can change Image in another Activity ?? Jan 28 20:21:38 libiconv-1.14 Jan 28 20:23:33 lov? Jan 28 20:23:36 (Eclipse) so, can somebody explain to me why Lint sometimes does, and sometimes doesn't run? And when it does, it picks up things I've already supressed, and completely misses API calls not acceptable minsdk Jan 28 20:23:46 it seems to me to just be completely unreliable at this time. What am I doing wrong ? Jan 28 20:24:20 whenever it seems weird, I do a clean, rebuild Jan 28 20:25:00 yeah doesn't help for me. Still not picking up some clearly "too new" APIs Jan 28 20:25:33 and sometimes it'll pick it up in one method, but will fail to pick up the exact same callin the next method Jan 28 20:30:45 <3 lint Jan 28 20:31:21 meetoman: what Jan 28 20:31:47 i love that you can disable lint Jan 28 20:32:00 jdawes: unless you change the defaults, all the activity and service objects in an app are created within the same VM instance. In this situation therefore, random objects can be directly shared between multiple activities/services that happen to be created. However, the system may arbitrarily shut down your entire process between running any given activity, etc; so such in-memory objects (including singletons) may not be persistent, in Jan 28 20:32:00 that sense.... if all this makes any sense :-) Jan 28 20:32:10 haha Jan 28 20:32:29 well it appears to me that lint usefulness remains the same whether you turn it on or off :P Jan 28 20:32:34 Hello the great JakeWharton, I was wondering if your skills would allow you to use some lines of code to shut down everybody else's notification, including email on Android Jan 28 20:32:40 * Chainfire has turned it off for ABS in the past Jan 28 20:32:50 meetoman, you asked that question an hour ago Jan 28 20:32:53 and you were given an answer Jan 28 20:33:10 and now you're bothering someone else about it Jan 28 20:33:14 I am building a game, and I'd like to shut down all the noises. I've intercepted the phone call and sms, but not other apps Jan 28 20:33:38 Seems like you've got a major case of doin' it wrong Jan 28 20:33:45 kbs, thanks for the info. I'm doing a few tests to see if things work the way I think they do or if I'm way off the mark. Jan 28 20:33:47 +canadiacow, I know, but JakeWharton might know more :) Jan 28 20:34:14 he has the access to private APIs Jan 28 20:34:31 Android is open source, everyone has access to the private APIs Jan 28 20:34:59 why does eclipse keep showing me errors in code that i COMMENTED OUT? agh Jan 28 20:35:15 because it's trying to kill you softly Jan 28 20:35:21 i think your right Jan 28 20:35:29 KillmeSoftly: a) did yous ave the file b) is it spell checking? :) Jan 28 20:35:33 kbs: Now I get it. I just created a stub singleton class with a getinstance method and printed out the id in two separate activities, they both had the same ID number so I think I know what's going on and how I can use this. Thanks again. Jan 28 20:35:41 lov: I think I've got it, read above message to kb. Jan 28 20:35:52 lov: kbs. Also, thanks for help earlier. Jan 28 20:37:24 jdawes: yeah. stateless singletons that can be recreated painlessly are probably ok. be careful with storing references to android contexts etc; can leak memory. Jan 28 20:37:27 * lov points to the topic, then points to Dany0 Jan 28 20:37:35 ._. Jan 28 20:37:54 * lov glares Jan 28 20:37:57 timroes, there may be some spelling errors but that is beside the point... there are errors in the commented code but when i try to run the code it tells me there are errors and can't run....those errors are in commented code (ie. shouldn't care about that) Jan 28 20:38:25 doesn't matter, i've learned to live with eclipse and it's quarks ill just put it in another file for future use Jan 28 20:38:46 KillmeSoftly: if you're running code that you've commented out, then something is wrong in your build setup and you're not actually pushing new builds to the device. Jan 28 20:38:58 You might want to try forcing eclipse to clean and rebuild everything Jan 28 20:39:07 also, uninstalling/reinstalling Jan 28 20:42:04 Hi, If I have a ntfs-3g driver loaded can android be built successfully on such a device? Jan 28 20:47:46 anyone know the answer to this: http://stackoverflow.com/questions/14552630/does-android-cache-app-array-resources Jan 28 20:51:06 I try to port some C code to android NDK that uses pthread_barrier_wait() function but android doesn't provide it. Does someone know about it? Jan 28 20:51:36 Any hints to work around without changing the application code. Maybe some wrapper function. Jan 28 20:51:46 Does Google Play have a promo code system the way the iTunes App Store does? Jan 28 20:53:31 i don't think so Jan 28 20:53:38 Nuts/ Jan 28 20:53:42 you could do it within your app Jan 28 20:53:57 I hate handing out APK downloads. :-( Jan 28 20:53:59 but i don't know, the other people here know much more than i do Jan 28 20:58:01 AlCapwn: https://github.com/android/platform_frameworks_base/blob/master/core/jni/android_util_AssetManager.cpp#L1520 -- short answer, no cache I can see. Jan 28 20:59:04 kbs: ok, thanks. I had a look at that code but I'm no good with C/C++ Jan 28 20:59:55 AlCapwn: What's your question about AssetManager? Jan 28 21:01:19 jfpoole: I asked if the result of Resource#getIntArray is cached by Android Jan 28 21:01:44 the code for getting the array is a native method in AssetManager Jan 28 21:02:07 AlCapwn: Doesn't look like it. Jan 28 21:02:10 AlCapwn: probably another issue is just that it's creating that array object over and over again; so GC might get you depending, on size/number of calls. anyways... Jan 28 21:02:42 ok, I think I'll opt for my own caching, because I call getIntArray quite often Jan 28 21:02:56 does anyone know of any loopholes to get an asynctask to run more than once, after it has already been executed? Jan 28 21:03:43 KillmeSoftly: use an AsyncLoader and call Loader#forceLoad Jan 28 21:04:09 he has the access to private APIs Jan 28 21:04:10 i lol'd Jan 28 21:04:14 i dont know if you're serious Jan 28 21:04:37 i'm pretty new to android (little over 6 months), still in the learning process... i'll look that up and try it. thank you Jan 28 21:05:55 KillmeSoftly: an instance of AsyncTask is designed to be run once only Jan 28 21:06:33 whAT about creating a runnable inside the asynctask class that executes a new instance of that asynctask? is that possible? Jan 28 21:06:53 wat Jan 28 21:06:55 KillmeSoftly: why not create a new instance? Jan 28 21:06:58 why dont... yeah Jan 28 21:07:00 what are you trying to do? It sounds overly complex solution Jan 28 21:07:01 new YourAsyncTask().execute() Jan 28 21:07:15 i know how asynctasks run Jan 28 21:07:19 If you designed your AsyncTask as a static class this should be no problem. Jan 28 21:08:18 to make an asynctask run again you make a new instance of it Jan 28 21:08:40 well what im doing is basically searching a server for a particular file. if it is not found then i have an alertdialog say so...but if i want to search for another file obviously it won't run since that asynctask has already been used. I realize now that this is not the best approach, please keep in mind im relatively new to android so i make stupid mistakes a lot. Jan 28 21:10:37 KillmeSoftly: design your AsyncTask implementation like this: new AsyncTask(String fileToSearchFor); Jan 28 21:10:42 KillmeSoftly: just use a new asynctask instance, I think loader would be overkill Jan 28 21:10:52 KillmeSoftly: private class footask extends asynctask { ... }; foo = new footask(...); foo.execute(); Jan 28 21:11:33 KillmeSoftly: if you will only ever have one running at once, keep a class variable for it and inspect task.getStatus() for FINISHED or PENDING Jan 28 21:11:39 and use that to trigger making a new one Jan 28 21:12:28 thank you guys, i will try the solutions you have provided me. thanks! Jan 28 21:13:03 i suspect you're defining an object of asynctask and overriding the functions inline inside of it; don't do that. Make a private subclass and then instantiate it Jan 28 21:13:34 (I don't even know wtf java calls it when you override during instantiation.) Jan 28 21:14:00 yes that is what i am doing now Jan 28 21:14:32 yeah. so make a private class extending asynctask and instantiate it each time you need it and you'll be fine Jan 28 21:17:52 dragorn: anonymous class? Jan 28 21:18:11 dragorn: like AsyncTask foo = new AsyncTask() { ... }; ? Jan 28 21:18:43 evanc: that might be it. Yeah. foo = new bar() { barfunc() { ... } }; Jan 28 21:19:04 evanc: I know the construct I just don't know the java-isms for it. Jan 28 21:23:11 dragorn: yeah, anonymous classes Jan 28 21:27:02 evanc: cool. thanks! Jan 28 21:27:06 evanc: "the more you know" heh Jan 28 21:29:27 thanks for all the help guys, peace Jan 28 21:34:01 a user of my IM app complains about an EditText where inputType="textShortMessage" makes the Return key insert smileys instead. I can understand that he expects a Return key where Return is usually placed, but it seems textShortMessage is a reasonable choice. what should I do? Jan 28 21:37:17 Ge0rG, http://goo.gl/svlUh Jan 28 21:37:40 canadiancow: that is exactly what I did not want to do :P Jan 28 21:38:05 well, either you always make it smiley Jan 28 21:38:09 or you always make it return Jan 28 21:38:12 or you make it a setting Jan 28 21:38:30 is there a setting in the android keyboard? Jan 28 21:38:42 other keyboard apps, like slideit, seem to ignore that setting completely Jan 28 21:39:24 well "textShortMessage" is designed for cases where you wouldn't have multi-line Jan 28 21:39:25 like SMS Jan 28 21:39:40 i mean the "SM" in SMS is "Short Message" Jan 28 21:39:57 canadiancow: jabber is a kind of SMS Jan 28 21:39:59 SMS can contain newlines Jan 28 21:40:00 so a newline button doesn't really make sense Jan 28 21:40:07 evanc, yes, but it's not common Jan 28 21:40:08 canadiancow: but a "send" button does Jan 28 21:40:44 oh well that's a different matter entirely Jan 28 21:40:56 well look how gtalk does it Jan 28 21:40:59 My MainActivity starts an AlarmManager with a NotificationManager that updates notifications for time left. How can I stop the alarm if user clears notification? Jan 28 21:41:03 not that i necessarily like it Jan 28 21:41:12 Quacked, set a deleteIntent Jan 28 21:41:13 * Ge0rG isnt using gtalk Jan 28 21:41:26 ok Jan 28 21:41:28 then dont look Jan 28 21:41:31 and solve the problem yourself Jan 28 21:42:28 Yes, deleteIntent, but have the deleteIntent start an Activity? Jan 28 21:42:42 How can I get it to cancel the alarm through deleteIntent Jan 28 21:42:53 direct it to a broadcastreceiver or a service Jan 28 21:43:23 And the only thing needed in broadcastreceiver is the cancelation method for the alarm? Jan 28 21:43:34 i dont know... it's your app Jan 28 21:43:45 Ok Jan 28 21:45:00 Thanks Jan 28 21:45:58 canadiancow: sorry, but my gtalk does not have any contacts, I can not see the chat window Jan 28 21:47:18 lmgtfy Jan 28 21:47:19 https://www.google.com/search?q=gtalk+android&hl=en&tbo=d&source=lnms&tbm=isch&sa=X Jan 28 21:49:14 canadiancow: is http://cdn.androidcommunity.com/wp-content/uploads/2011/06/android-talk.jpg still the current ui? Jan 28 21:51:19 I know Activity has a method called runOnUiThread, but is there a way to delay that? Jan 28 21:52:06 ...delay it how? Jan 28 21:52:55 marcab: Dispatch the passed Runnable after a certain amount of time. Jan 28 21:53:29 they already have the support for delays Jan 28 21:54:15 new Handler(Looper.getMainLooper()).postDelayed(yourRunnable, delayMilli); Jan 28 21:54:27 svm_invictvs: ^ Jan 28 21:54:43 would be a waste to create a new Handler each time Jan 28 21:54:55 so probably want to save it as a private if your calling it a lot Jan 28 21:55:50 Napalm: Ah ha. Yeah. COrrect me if I'm wrong but isn't runOnUIThread just a shortcut for something simliar to what you've described? Jan 28 21:55:52 svm_invictvs: you also probably want to call the Handler.removeCallbacks(yourRunnable); method if the user cancels some action that might cause the runnable to fail Jan 28 21:55:56 Wiht a zero delay , of course Jan 28 21:58:00 svm_invictvs: yes, if you have a view like your trying to call runOnUIThread from a onClickListener then you can also do Viewq.getHandler().postDelayed(yourRunnable, delayMilli); Jan 28 21:58:10 minus the q Jan 28 21:58:10 lol Jan 28 21:58:18 heh Jan 28 21:58:27 Napalm: Nah, this is to background load advertisements. Jan 28 21:58:35 Napalm: Feel free to tar and feather me Jan 28 21:58:44 ? Jan 28 21:58:51 For adverts Jan 28 21:59:07 i dont get it, "tar and feather"? Jan 28 21:59:46 brb Jan 28 21:59:56 canadiancow: am I doing it correctly here in startCountDown() ? http://pastebin.com/7WpSmfTA Jan 28 22:00:15 * lov dumps hot tar on svm_invictvs Jan 28 22:00:56 Napalm: "Tarring Feathering" was a form of punishing people back in the day. They'd make a public spectacle of taking somebody, dumping hot tar on them, and then covering them in feathers. Jan 28 22:01:09 does anyone know how TetherSettings.java works? I can't figure out what actually enables USB tethering. https://android.googlesource.com/platform/packages/apps/Settings/+/android-2.2.3_r2.1/src/com/android/settings/TetherSettings.java Jan 28 22:01:17 Napalm: http://en.wikipedia.org/wiki/Tarring_and_feathering Jan 28 22:01:53 or if anyone else can see if I'm doing it right in that pastebin link Jan 28 22:04:14 andkore: It's possible that someone else is listening for the preference click. Jan 28 22:04:19 Quacked: What's inside WifiApEnabler? Jan 28 22:04:34 andkore: you might want to look for that particular preference in other code Jan 28 22:04:41 right, thanks Jan 28 22:05:10 svm_invictvs: don't think that was meant for me :) Jan 28 22:05:27 Quacked: no, it's not, haha Jan 28 22:05:39 wifiapenabler has to do with wifi tethering, not usb tethering (which is what I'm interested in) Jan 28 22:06:28 andkore: Oh, I missed the "USB" part, ha Jan 28 22:06:41 thanks for the suggestion anyway Jan 28 22:07:42 Shouldn't this be enough in MyService: http://pastebin.com/0Zp2sGrL Jan 28 22:07:42 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { Jan 28 22:07:42 <-- isn't that listening for the preference click? Jan 28 22:08:26 In order to see if the deleteIntent on notification in startCountDown works. http://pastebin.com/7WpSmfTA Jan 28 22:09:41 Cause I get no output in LogCat Jan 28 22:09:50 So something is not right :) Jan 28 22:12:33 Anyone? :S Jan 28 22:13:33 Quacked: for starters don't use "System.out.println". Use "Log.d" instead. Jan 28 22:13:52 Quacked: also make sure your Service is registered in your app manifest. Jan 28 22:14:27 Does sysout/log.d matter? I find sysout faster, easier to read and it doesnt require import :P Jan 28 22:14:47 I have not registered the service. I'll try that Jan 28 22:19:08 Looks like it worked. Jan 28 22:19:47 Thank you, twaddington Jan 28 22:19:56 Quacked: no problem! Jan 28 22:23:58 How do I stop the alarms if I have several of them? Jan 28 22:24:07 Do I have to put them in an ArrayList or something? Jan 28 22:27:05 Hello! I need someone to help me figure out a way to resolve some issues with sockets and thread synchronization. Is anyone available? Jan 28 22:28:41 * twaddington pokes hsoj Jan 28 22:31:35 pedromfmachado: don't ask to ask; just ask Jan 28 22:36:17 I'm instrumenting the code so i can get code-coverage information of a test run. I'm also injecting a class that takes care of the socket connection so it sends the information to the computer. The problem is that, when the test is over, the system kills the task and the thread responsible for sending the information is also killed. Is there any way of forcing UI to wait for the socket to send each piece of information? Jan 28 22:36:50 hi twaddington! did you get your maps v2 ACCESS_NETWORK_STATE exception figured out? Jan 28 22:37:26 hsoj: not really, but there's this: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4859&thanks=4859&ts=1359400315 Jan 28 22:41:04 pedromfmachado: the system is killing your app ? Jan 28 22:47:57 if my MainActivity triggers an notification intent that launches a service, how can I run a method in MainActivity when that intent is executed? Jan 28 22:49:08 did that make sense? Jan 28 22:53:04 Any native English speakers have a minute? I just published a small text that I would like someone to just read through and tell me if there's something that sounds awkward. Jan 28 22:53:37 kdehl: pastebin it Jan 28 22:54:30 It's a blog post, can I give you the link in private? Jan 28 22:54:54 Oh, and it's about Android programming, of course. :) Jan 28 23:04:14 hey.. so quick background info before I start spamming you, I got a year of java programming in the bag.. did some minor programs, worked with most data structures and some mysql experience ... Now I'm at a system developer school and I just started android teachings.. so far I've had 2 hours of it Jan 28 23:04:53 where I am at, is installing SDK to my eclipse, creating virtual devices, making an app go 'hello world' reading and attempting to understand concepts Jan 28 23:04:58 like 'intent' and 'activity' Jan 28 23:05:15 and a bit about all the 'on' methods.. so question 1 Jan 28 23:06:08 lets assume I wanna make a list of items/wares .. and have the user able to swap between the list of items and his shopping basket containing selected items Jan 28 23:06:29 its my understand its not wise to switch activities, cause the phone or tab might handle this poorly Jan 28 23:06:40 so I should have both activities running and then use something to slide between them? Jan 28 23:06:47 but how exactly would that work and what should I use Jan 28 23:07:01 oh yeah I want the swap between them to be a 'slide' effect Jan 28 23:07:20 what? Jan 28 23:07:25 your assumptions are wrong Jan 28 23:07:32 yes, you should definitely switch activities Jan 28 23:07:40 P3nnyw1se: look into using Fragments with a ViewPager. This will accomplish the swipe gesture you want. Jan 28 23:07:47 there is no "have both activities running at once" Jan 28 23:07:59 alright noted Jan 28 23:08:02 Also, yeah, each Activity class works in isolation. They don't exist when they aren't visible. Jan 28 23:08:27 I read somewhere something about using viewflipper..? Jan 28 23:08:27 So, CartFragment and ItemListFragment. Jan 28 23:08:44 in my scenario, the user wants to slide back and fourth between basket and items pretty often Jan 28 23:08:45 P3nnyw1se: don't use a viewflipper, use a ViewPager Jan 28 23:09:00 alright Jan 28 23:09:10 P3nnyw1se: http://developer.android.com/training/animation/screen-slide.html Jan 28 23:09:35 as I'm just .. hmm 2 days into android programming I'm also trying to figure out how much data is in the xml file and how much in the .jar file Jan 28 23:09:42 might seem obvious to you but a little unclear to me Jan 28 23:09:50 there is no .jar file. So, none :P Jan 28 23:10:03 ... Jan 28 23:10:05 .java file :P Jan 28 23:10:29 thx gonna look at that link now Jan 28 23:10:58 I don't suppose you can tell me why AVD's are so horrible and slow Jan 28 23:11:11 it's an emulator ... Jan 28 23:11:20 its emulating ARM cpu Jan 28 23:11:33 it will be a bit faster if you get the intel x86 image Jan 28 23:12:08 I tried to install that intel HAX thing? accelerater something Jan 28 23:12:18 nearly made my eclipse blowup Jan 28 23:14:04 if you have the ability, it's best to test on a device ( IMO anyway ) Jan 28 23:14:06 sorry so still ABC questions here.. the fragtment is the 'act' when I switch views ? Jan 28 23:15:15 are you talking about the viewpager? Jan 28 23:15:51 no was just talking about the term fragments.. googling it right now, and the example I'm looking at suggest fragments are ways to combine activities Jan 28 23:16:01 they're not Jan 28 23:16:04 how do you tell what's a class, what's a method, and what's an object? Jan 28 23:16:26 int USBTethering(boolean b) { Jan 28 23:16:26 is that a method? Jan 28 23:16:26 andkore: ... what? Jan 28 23:16:32 I know nothing Jan 28 23:16:38 andkore: /join #java Jan 28 23:17:12 I know this is basic stuff I'm talking about and on quakenet java I'm used to short tempers :P Jan 28 23:17:18 so please remember I'm just getting starting on androids Jan 28 23:18:21 P3nnyw1se: fragment - http://developer.android.com/reference/android/app/Fragment.html Jan 28 23:18:51 yeah looking at that now.. so are the a bit like threads? existing within the same activity? Jan 28 23:18:55 P3nnyw1se: a Fragment is like a mini activity Jan 28 23:19:10 An Activity is the entire screen that you see on the device. One Activity may host many fragments. Jan 28 23:19:13 independent mini activities inside one activity ? Jan 28 23:19:17 exactly Jan 28 23:19:20 got it Jan 28 23:19:36 P3nnyw1se: this might be more useful than the raw API docs page: http://developer.android.com/guide/components/fragments.html Jan 28 23:20:08 you know sometimes they just use phrases I would never use Jan 28 23:20:17 A Fragment represents a behavior Jan 28 23:20:21 I'm sure that line is correct Jan 28 23:20:26 but thats just not how I would start out Jan 28 23:21:40 fragments are dependent on host activity life cycle good... I like limits Jan 28 23:23:59 so pre-fragments Jan 28 23:24:03 what exactly was the limitation? Jan 28 23:26:40 P3nnyw1se: read teh whole link i sent you, it explains it all Jan 28 23:28:26 P3nnyw1se: before fragments you were screwed. You can use the support library to backport fragments to older devices. It's just a jar you include in your project. Jan 28 23:29:40 yeah I'm reading it through now.. so a fragment requires its own java class? Jan 28 23:34:49 Read it, then continue to ask. We'll still be here. ;) Jan 28 23:35:29 P3nnyw1se: you can declare a fragment anywhere you do a regular Java class. Typically a fragment has it's own .java file though. Jan 28 23:35:42 has anyone ever had a problem where a ListView item won't retain it's selected state? Jan 28 23:36:13 its a lot of information at once.. thats why I ask questions, most of them just to get the 'yes you got it right' Jan 28 23:36:13 ;) Jan 28 23:36:51 I'm not completely sure about the viewgroup yet.. but as far as I can see it lists the fragments of an activity Jan 28 23:37:21 P3nnyw1se: you mean ViewPager I think. Jan 28 23:37:44 A ViewPager allows you to create a "stack" of fragments that you can swipe through. That's basically it. Jan 28 23:37:49 it says Jan 28 23:37:50 "When you add a fragment as a part of your activity layout, it lives in a ViewGroup inside the activity's view hierarchy " Jan 28 23:37:56 I think you should play with fargments a bit, then you'll understand them a bit more Jan 28 23:38:08 A ViewGroup is just a view that hosts other views. Jan 28 23:38:10 Like LinearLayout. Jan 28 23:38:10 I intend to just wanted to get some basic yes/no things right Jan 28 23:38:18 right Jan 28 23:38:29 A Fragment is basically a collection of views. Jan 28 23:38:30 meh. I just tried to install a debian package on my PC with "adb install". time to go to bed Jan 28 23:38:48 Ge0rG: close enough ;) Jan 28 23:38:52 Ge0rG: hahaha Jan 28 23:38:54 a fragment is a collectino of views? :P Jan 28 23:40:18 A Fragment has a layout. It can contain many Views. But the Fragment is more than a layout and a bunch of views, it also holds the logic for all the views, like onClick listeners etc. Jan 28 23:40:37 so you pack everything in fragments basicly Jan 28 23:41:40 kakazza: +1 Jan 28 23:41:45 P3nnyw1se: not if you don't need them Jan 28 23:41:54 a single activity also has a layout and you are just fine with that Jan 28 23:42:18 Only use Fragments if it makes sense to divide your layouts and views into smaller groups. Jan 28 23:43:10 In my opinion, I'd _always_ use fragments, even if you'd use them exactly like Activities and only display one at a time. There might come the time where you want multiple fragments at once, like on tablets and then most of the work is already done. Jan 28 23:43:27 The livecycle is pretty much the same and the Activity is usually left with 10-20 lines of code. Jan 28 23:43:44 There might be varying opinions on this, though. Jan 28 23:44:14 kakazza: it's not hard to turn an Activity into a fragment though. Jan 28 23:44:33 i want to achieve the following ui behaviour within my listview. i want to scroll my listview but when i scroll down i want one of the listitems to stick to the top of the screen. when i scroll up again, the listitem should be unstuck at the right place and scroll with the listview again Jan 28 23:44:34 IMO start with an Activity first, otherwise you end up with a ton of empty Activity classes that just host a Fragment. Jan 28 23:45:09 messy Jan 28 23:45:50 Exactly, it's not hard. That's why I'd directly go for them. Jan 28 23:47:11 Either throw the Activity classes in a different package, or just make the Fragments inner classes for the time being. Jan 28 23:47:35 And you don't usually have _that_ many Activities. But yeah, opinions vary. Jan 28 23:51:52 why is method 1 not working here but method 2 is? http://pastebin.com/16hVMWrB Jan 28 23:52:10 method 2 being the one commented out Jan 28 23:52:29 they are methods in a service Jan 28 23:52:35 IntentService that is Jan 28 23:54:38 I've checked that its being called, but the intent isnt broadcasted in onHandleIntent Jan 28 23:54:51 but it works in onStart() Jan 29 00:09:25 how can i export xls office file to sqlite Jan 29 00:10:29 save as a csv Jan 29 00:12:57 My MainActivity starts AlarmManager and I have a service that calls a method in MainActivity to stop the AlarmManager. Unfortunately it seems that the MainActivity has to be active for the service to broadcast method(); in MainActivity. Jan 29 00:13:02 Am I wrong? Jan 29 00:16:50 how can i pick up a phone call , which library do it Jan 29 00:19:44 other than your index finger dragging along the screen, you can't Jan 29 00:21:41 JakeWharton: use Robotium to inject the touch events. Duh. Jan 29 00:22:46 MrMaffen: to my knowledge, there isn't anything exactly like that; but you may be able to do something close enough by (say) placing a overlay view on the listview. Jan 29 00:23:15 I see a few projects on the interwebs that are all doing some variations on it... mighht be able to get some ideas from them... Jan 29 00:25:19 kbs: thanks for your response. if you have any links. please post them :) Jan 29 00:25:35 how hard would it be to re-write android's messaging stack? Jan 29 00:25:53 define "messaging stack" Jan 29 00:27:18 MrMaffen: I haven't used any, so caveat emptor. This one shows up https://github.com/emilsjolander/StickyListHeaders and the usual https://encrypted.google.com/search?q=android+listview+sticky+headers might give you more... Jan 29 00:30:47 kbs: StickyListHeaders is exactly what i want ! :) awesome thank you Jan 29 01:00:12 Question here: at Google I/O 2012 the manifestmerger.enabled property was announced, and the presentation says to add it to project.properties. How do I add it to project.properties? project.properties is an auto-generated file... Does anyone know? Jan 29 01:01:47 mjbshaw: http://stackoverflow.com/a/11234525 didn't work? Jan 29 01:01:51 mjbshaw: just add the line Jan 29 01:02:50 kakazza & Napalm: that works? The top of my project.properties file says "# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED!" Jan 29 01:03:58 Hey all, I'm trying to run one of the Facebook SDK sample apps but as soon as I try to use the functionality it crashes claiming NoClassDefFound when it is defined within the project itself Jan 29 01:04:36 What could cause a NoClassDefFound for a class defined inside the app project? Jan 29 01:05:17 snowinferno: what kind of class isn't found? activity, service, etc... Jan 29 01:05:25 Activity Jan 29 01:06:09 snowinferno: did you add the activity name to your AndroidManifest.xml file? Jan 29 01:06:41 it's already there, I made no changes to the Facebook provided sample app that I'm trying to run Jan 29 01:07:03 though I don't see an intent-filter if that makes any difference Jan 29 01:07:11 snowinferno: look at logcat when you're installing the app Jan 29 01:07:23 see if anything was removed during dexopt Jan 29 01:09:10 kakazza: Cool, that worked... it didn't the first time but maybe that's because I was still using the preview ADT tools and I uninstalled them and installed the normal ADT tools. Thanks. Jan 29 01:09:50 Napalm: do you know if Android will remove that line when regenerating project.properties (or how often it regenerates project.properties)? Jan 29 01:10:30 evanc: any particular tag i should look for in logcat? there's a lot going on in my device Jan 29 01:12:20 snowinferno: pastebin the log from when installation starts to when the activity starts Jan 29 01:12:30 mjbshaw: not sure Jan 29 01:12:37 I might be able to look at it, but I'm about to take off Jan 29 01:14:51 is there a particular message that indicates it's starting to install something? Jan 29 01:15:18 is there an offline version of http://developer.android.com/training/index.html that is searchable? Jan 29 01:16:20 snowinferno: just read logcat; it should be pretty obvious. I don't remember offhand, but it's pretty apparent Jan 29 01:17:23 huh, "W/dalvikvm( 4968): Unable to resolve superclass of Lcom/facebook/samples/sessionlogin/LoginUsingCustomFragmentActivity; (8)" Jan 29 01:17:41 followed by Link of class ... failed Jan 29 01:19:07 I'm about 90% convinced that my Eclipse environment is completely fubar... Jan 29 01:19:28 that goes without saying ;) Jan 29 01:19:34 snowinferno: there you go; your superclass is missing Jan 29 01:19:53 how can "FragmentActivity" class be missing, isn't that part of the Android SDK? Jan 29 01:23:59 Depends on your API level Jan 29 01:25:18 anything newer than api 10 is generally worthless unless it's also in the support library Jan 29 01:25:46 I've got everything from Gingerbread on installed in my system, the manifest lists min sdk 8 and no target sdk. I changed that to min sdk 15 with target 17, my device is running 4.1.1 Jan 29 01:26:46 over 50% of app installs are on 2.3.3 - 2.3.7 Jan 29 01:27:06 that's fine, I know this app isn't going to be run on anything older than ICS Jan 29 01:34:05 I've gotten past that problem, the support-v4 jar was missing. Now it's unable to resolve an interface in the Facebook SDK Jan 29 01:41:41 does USB mass storage have to be disabled for USB tethering to work? is there any way to turn it off in an app? Jan 29 01:42:16 snowinferno: I don't think you need the support library if you're only targetting ICS and above. Jan 29 01:42:55 oddly as soon as I added it, the FragmentActivity was suddenly able to be found. Jan 29 01:43:07 You probably want to look for imports like "import android.support.v4.app.Fragment;" Jan 29 01:43:08 though i think that's because in the code it was importing from the support lib Jan 29 01:43:12 yup Jan 29 01:43:38 what's perplexing me now is why it can't find an interface defined in a linked project Jan 29 01:44:18 No, I mean you should look for imports like these and rewrite them to _not_ use the support library Jan 29 01:45:40 why? Does it add bloat to the app or adversely affect performance? Jan 29 01:46:20 http://stackoverflow.com/questions/10477997/difference-between-activity-and-fragmentactivity#comment13540311_10478048 Jan 29 01:46:40 Probably just bloat. Jan 29 01:50:31 folks Jan 29 01:50:35 I have a question Jan 29 01:50:41 is there a issue with css animation and android? Jan 29 01:52:48 Holy crap! Wild mewtwo appears! Jan 29 02:11:22 What do people use to debug android apps? Anything beyond just pushing it to the phone and running adb logcat? Jan 29 02:11:56 The debugger Jan 29 02:12:02 Last I heard, the android emulator was widely considered to be more pain than it's worth, is this still the case? Jan 29 02:12:05 puff: I find Eclipse works pretty well for debugging. Jan 29 02:12:12 JDWP? Jan 29 02:14:00 just hit the debug button in eclipse Jan 29 02:14:38 with any device (or emulator.. which is good now if you can get it workign with all the acceleration) Jan 29 02:15:51 i find eclipse doesn't work pretty well for anything Jan 29 02:20:04 jug6ernaut: I'm starting to find that to be a problem with the Juno release of eclipse... Jan 29 02:20:21 yea i would not recommend juno Jan 29 02:20:46 if using eclipse use 3.8 Jan 29 02:20:59 if u can use intellij Jan 29 02:21:27 I haven't got the time to come up to speed on using intellij right now unfortunately Jan 29 02:21:52 such is always the case, i say make the leap and never turn back :) Jan 29 02:22:31 tried but couldn't get a single thing to work correctly for me in the hour I put into it Jan 29 02:27:48 dropping back to eclipse 3.7 i get farther than when I was using 4.3 Jan 29 02:28:33 is there anyway to remove all visible fragments without having to call fragmenttransaction's remove() for every one that is visible? Jan 29 02:29:22 now the sample app can't find a layout defined in the Facebook SDK being referenced by a class within the Facebook SDK... Jan 29 02:30:25 or rather i see the message "java.lang.NoClassDefFoundError: com.facebook.android.R$layout" Jan 29 02:40:46 hello guys. Jan 29 02:41:39 well, i guess I'm dropping back to Eclipse 3.7 from 4.2... that's kind of unfortunate Jan 29 02:42:07 what happens when you do putStringSet (String key, Set values) with a key that already exists? Jan 29 02:43:07 I am trying to use shared preferences, but i am getting inconsistent behavior... Jan 29 02:49:17 well, now my problem's gone... the 64 million dollar question is: was it because I dropped back to Eclipse 3.7 and then cam back to it in Eclipse 4.2 or was it because i found the magic settings... Jan 29 02:49:50 s/cam/came Jan 29 02:52:29 snowinferno: its the first. Jan 29 02:52:42 unless it's the second. Jan 29 02:53:34 lol For the moment, because I don't want to downgrade my Eclipse, I'm going to assume it is the latter Jan 29 02:55:10 now, can someone help me with my question? **** ENDING LOGGING AT Tue Jan 29 02:59:58 2013