**** BEGIN LOGGING AT Sat Jun 09 02:59:59 2012 Jun 09 03:03:27 whats better: starting a thread directly to get some data or using AsyncTask ? Jun 09 03:03:33 i suppose AsyncTask? Jun 09 03:04:16 if get data is internet, intentservice :) Jun 09 03:06:06 depends on the data Jun 09 03:06:21 AsyncTask is useful for single, relatively fast loads Jun 09 03:07:00 What's the best way to do collisions in android? Jun 09 03:07:37 that question is far too abstract for anyone to answer effectively Jun 09 03:08:15 Right Jun 09 03:08:18 Let me rephrase Jun 09 03:08:38 Is there an already-built library that allows for collision testing that works with the android SDK? Jun 09 03:08:43 im guessing a 2D/3D model, rather than hash collisions etc Jun 09 03:12:11 that depends on what graphics engine, if any, you are using, what type of things you are colliding, and how you are storing the spacial data of these objects Jun 09 03:14:05 JakeWharton, I was thinking I would just store the coordinates of the objects in an array, or something, and call the array to see if something of any object type (images, something 'drawn'...) was at that location - will that use up too much memory? Jun 09 03:14:46 if your objects all all the same size and move through discrete units of space (of that exact size, again) then that would work Jun 09 03:15:46 or if you mean their full outline/mesh, that would work but be computationally overkill Jun 09 03:16:17 nope, neither discrete or same size Jun 09 03:16:22 what's my best option? Jun 09 03:16:50 is this 2D or 3D? Jun 09 03:16:55 2D Jun 09 03:17:33 to begin with give each object a bounding rectangle Jun 09 03:18:02 if the rectangles intersect you can trigger a collision Jun 09 03:19:02 but how would I call that intersection? Jun 09 03:19:14 rather than doing the full test on every possible object you can already do some basic pruning by, for example, adding the max distance from the centroid of each object, and comparing that to the distance between the centroids Jun 09 03:19:50 onions, your going to need to do the math yourself Jun 09 03:20:08 unless you find an engine with fancy support for sprites and all the rest of it Jun 09 03:22:24 tbh with bounding box that pruning wouldnt make much of a difference, but if you ever use anything more exotic its useful to think of ways to reduce the search space Jun 09 03:23:00 ok so now i give up trying to read a blob from an sqlite database into an array of shorts and will just store info where to read that blob from in some other non database file. if i have a bunch of blobs would it be ok to pack them into a single file and store file offsets to each in sqlite? Jun 09 03:23:06 or should they be separate files Jun 09 03:24:06 onions, this might be of interest to you: http://code.google.com/p/andengineexamples/source/browse/src/org/anddev/andengine/examples/CollisionDetectionExample.java Jun 09 03:24:38 cheers robb Jun 09 03:25:23 I440r: you are still working on that ? Jun 09 03:25:51 g00s i wasnt able to work on it at all last nite, had to reboot to windows to do something else. so yes im still working on it Jun 09 03:26:02 wow windows takes a long time to reboot :) Jun 09 03:26:11 heh ive been at work all day lol Jun 09 03:26:15 but yes actually Jun 09 03:26:45 so you have a blob in the cursor , which is a byte[] Jun 09 03:26:57 so instead of storing the blobs in the database should i store them all in separate files or in one file and store offsets? Jun 09 03:27:11 your short's index into the byte will be myBlob[i * SizeOf.SHORT] Jun 09 03:27:31 just cast to short :) done :D Jun 09 03:27:56 Onions: storage model (array or what?) depends also a bit on how many objects you want to collide Jun 09 03:28:13 i think you only had like 8 shorts right ? nah, i guess thats the only time i would use blobs - for really small amount of blob Jun 09 03:28:25 ok erm. what data type is myBlob. byte array? Jun 09 03:28:31 byte myBlob[] ? Jun 09 03:28:35 yeah Jun 09 03:32:36 ok so i do have one problem. i dont know how big a couple of the blobs are tho could store that info in the blob too it complicates things Jun 09 03:32:57 how would i size a blob? would the blob the the size that was read or the size of the array i stored it in? Jun 09 03:33:39 it would be the size of the number of bytes needed to represent your array of shorts Jun 09 03:34:12 hmm, doesn't look like /libcore/luni/src/main/java/libcore/io/SizeOf.java is public Jun 09 03:34:19 oh well, SizeOf.SHORT is 2 :) Jun 09 03:34:48 i kinda knew that :) Jun 09 03:35:04 yeah, always wondered about java not having sizeof operator Jun 09 03:35:09 like c Jun 09 03:35:10 so i have to hard code a magic number? Jun 09 03:35:18 yeah :( Jun 09 03:35:26 i don't think it will change :) Jun 09 03:35:41 i dunno. WORD changes alot :) Jun 09 03:36:43 well, as far as java is concerned Jun 09 03:37:20 if google had lost to oracle u think they would pay licensing fees or invent a new language ? Jun 09 03:37:45 if your data is more elaborate and created by another platform, you could stuff protobufs Jun 09 03:37:57 get rid of endianness and other issues Jun 09 03:39:01 right now this data is just offsets within a file to compressed blocks (not blobs). Jun 09 03:40:05 the blob just gives the file offset to each block. thers 32 * 16 blocks = 512 = 1024 bytes of shorts Jun 09 03:40:39 oh. and the huffman tree for decompressing it. tree is of sizeof(blob) :/ Jun 09 03:40:51 dunno about the suitability of cursor blobs for that - but those were my thoughts on accessing your blob from java Jun 09 03:41:08 gotta run for now Jun 09 03:41:12 im not putting the compressed data in the db :) Jun 09 03:41:14 ty Jun 09 03:41:17 lemme know when your forth compiler is ready :) Jun 09 03:43:47 g00s would be interested in that? Jun 09 03:43:52 for android i mean Jun 09 03:45:34 I440r: i probably would not use it, since my android project is only in maintenance phase and i'm not likely doing a new projects (for android) any time soon Jun 09 03:45:44 btw, when i thin of forth, i think of this book http://www.amazon.com/Forth-Atari-Learning-Ekkehard-Floegel/dp/0936200383 Jun 09 03:45:49 hehe Jun 09 03:46:07 amg that one is a CLASSIC heh Jun 09 03:46:16 i remember it because of the dumb cover Jun 09 03:46:51 most ppl think of leo brodies starting forth and thinking forth. both also out of date Jun 09 03:47:30 Can someone tell me why the camera intent works when the request code 1337 in this answer : http://stackoverflow.com/questions/3574313/using-intent-to-use-camera-in-android ? Jun 09 03:47:34 how can i determin the size of a blob programatically Jun 09 04:03:48 should i use this: http://stackoverflow.com/questions/8237287/load-data-when-scrolling-to-listview/8237491#8237491 or just setup an OnScrollListener? Jun 09 04:04:31 (i want to load data each time the user scrolls to the last values). I read that the OnScrollListener is pretty expensive Jun 09 04:27:04 How to load the latest image from gallary to an image view Jun 09 04:27:06 ? Jun 09 04:34:09 How to load the latest image from gallery to an image view? Jun 09 05:26:14 Is it possible to de-interlace video in android. is there any library for it? Jun 09 05:27:24 1) yes. 2) nope, you need to include your own (preferably native) code Jun 09 05:27:31 also, why you need deinterlacing? Jun 09 05:36:21 Because i have a interlaced video Jun 09 05:36:50 when you say yes, it exits, can you point me to the functions Jun 09 05:39:06 he said it was possible, not that it exists Jun 09 05:40:44 okay, now i know... i know its possible. my question should have been "are there any de-interlacing methods" which exists in android Jun 09 05:42:30 JakWharton: is there a list of all available actionbarsherlock themes? Jun 09 05:45:08 open abs__themes.xml Jun 09 05:46:07 What is the simplest/best way for a Service running in a separate Thread to make remote function calls in the app? Better to use BroadcastIntent or bound service? Jun 09 05:58:56 rsv: first was about possibility, second was about actually doing it Jun 09 06:44:53 p_l|backup: did you see this? http://ecls.sourceforge.net/ Jun 09 06:47:02 JakeWharton: will do, thanks Jun 09 07:12:31 Hey guys, I've got a question, I'm converting from startManagedCursor to Loaders, and I'm unsure if it's best to just set my SQLite database as a content provider, or to use a custom loader instead. Jun 09 07:12:59 probably easier to make a custom loader Jun 09 07:14:17 That's kind of the way I was leaning, it just seemed that all the different suggestions wanted to push me to use CursorLoader and content providers for some reason Jun 09 07:14:41 loaders rock when you get over the initial dry-heaving when looking at their API Jun 09 07:14:55 *from looking Jun 09 07:15:16 Alright so I'll make a custom loader Jun 09 07:15:27 Assumer: yeah, thats a great philosophical debate in android land. for example, you can read dianne hackborne's response in google groups about this question. i actually used a hybrid approach Jun 09 07:15:39 which is what she suggested Jun 09 07:16:13 unfortunaltely, a lot of the helper classes like AsyncQueryHandler have always assumed content provider Jun 09 07:16:18 hmm im sure ive gone thru this but when i go to an activity and back the in transition is correct but not the out one Jun 09 07:16:19 I have an external nfc reader and when i connect it to the tablet I am able to see the device via lsusb, but my apps aren't able to see the attached usb device, what could I be doing wrong? Jun 09 07:16:24 It seems google isn't exactly sure which they think you should use either, since the deprecated message and tutorials push you towards content providers, but then the content providers documentation tell you not to use them for local databases Jun 09 07:16:30 android 4.0.3 Jun 09 07:16:57 Assumer: the cp docs say that ? Jun 09 07:17:26 Well the introduction to content providers says: You don't need a provider to use an SQLite database if the use is entirely within your own application. Jun 09 07:17:49 So I guess not to use them, but that you don't need to Jun 09 07:17:55 Assumer: oh, ok. yeah. that /is/ true. Jun 09 07:19:43 Assumer: i would take the CursorLoader class and start from there. I had a tough time figuring out the protocol and timing of the tamplete methods of the loader stuff Jun 09 07:19:58 and once i figured it out, i prompty forgot it Jun 09 07:20:01 :) Jun 09 07:20:11 Alright thanks for your help Jun 09 07:20:46 yw Jun 09 07:26:35 if i got from activity A to B and i specify the transitions when leaving A, how are they different to what i specified Jun 09 07:26:39 its so weird that this happens Jun 09 07:26:42 go* Jun 09 07:26:52 like when i hit back its the the one i specified Jun 09 07:27:06 damn my typing, it NOT the one i specified i mean Jun 09 07:27:46 if the previous activity was killed it won't be used Jun 09 07:28:02 oh, so where does it get its transition when i hit back? Jun 09 07:28:17 its doing a slide when i want a fade Jun 09 07:28:19 presumably the exit animation of the current activity Jun 09 07:28:29 but i dont think ive specified that Jun 09 07:28:47 when i go in i specify fade in, fade out Jun 09 07:28:52 then i hit back and it slides. Jun 09 07:28:53 infuriating Jun 09 07:30:29 override onBackPressed, call super, call overridePendingTransitions Jun 09 07:30:40 damn is that really what has to happen! Jun 09 07:30:42 cheers Jun 09 07:31:06 we do stuff like that but I didn't impl it, just guessing at what i'd try Jun 09 07:31:23 what about putting it in onstop Jun 09 07:31:24 ? Jun 09 07:31:38 testing Jun 09 07:31:41 i think that'll be too late Jun 09 07:32:01 yeh Jun 09 07:32:02 no effect Jun 09 07:32:25 onBackPressed calls finish() Jun 09 07:32:29 so yeah, what i said will work Jun 09 07:32:40 nice one thanks, been agonisingfor ages Jun 09 07:35:31 didnt even know that methodexisted Jun 09 07:35:34 its cool Jun 09 07:35:43 a c00l method Jun 09 07:35:50 fixing bugs on my birthday! how bad is that Jun 09 07:36:18 worked thanks Jake! :D Jun 09 07:36:35 you birthday was many years ago Jun 09 07:36:43 hehehe Jun 09 07:36:50 im 32 at midnight ;-x Jun 09 07:37:21 time to look back and see that ive achieved nothing :) Jun 09 07:38:31 gaz`: well, as long as you don't do that when you are 60 :) Jun 09 07:38:44 has anyone seen a webview just sit there and not go to the site u ask for - happens rarely but does happen Jun 09 07:38:54 gaz`: I'd say that's pretty well done. Think of what it'd be like if you didn't fix anything and added more bugs. On your birthday of all days. Jun 09 07:38:56 hehe g00s Jun 09 07:39:09 yeh i want this shit out so i can get drunk Jun 09 07:39:37 You don't want to be an old man Jun 09 07:39:41 filled with regret Jun 09 07:39:45 waiting to die alone. Jun 09 07:39:49 haha Jun 09 07:39:52 youre right! Jun 09 07:39:55 so what do i do! Jun 09 07:39:56 lol Jun 09 07:39:57 You're waiting for a train... Jun 09 07:40:02 kids and marriage? Jun 09 07:40:03 A train that will take you far away... Jun 09 07:40:16 You don't know where this train will take you. But it doesn't matter. Jun 09 07:40:17 each time i think oif kids n marriage i wince but thats prob the only way to not die alone with regrets :) Jun 09 07:40:20 Tell me why it doesn't matter! Jun 09 07:40:39 Because we'll always be together! Jun 09 07:40:50 ... y u no see Inception? Jun 09 07:40:55 inception? Jun 09 07:40:57 oh god Jun 09 07:41:08 tried to watch that movie 4 times, AWFUL beyond belief Jun 09 07:41:12 :o Jun 09 07:41:15 only "Primer" is worse Jun 09 07:41:32 inception is like writing a game in Prolog Jun 09 07:41:38 shite Jun 09 07:41:40 :) Jun 09 07:42:09 Woman: "Honey, I think I'm pregnant!" Jun 09 07:42:15 shame since i lvoe dicaprio Jun 09 07:42:17 Man: "Shit, I knew I shouldn't have gone deeper..." Jun 09 07:42:22 - Conception - Jun 09 07:42:33 would be a better movie that Jun 09 07:43:59 so yeh anyone know why webviews sometimes dont go to the url? Jun 09 07:44:02 you don't like Primer? Jun 09 07:44:12 or Inception? Jun 09 07:44:17 couldnt stand primer or inception Jun 09 07:44:28 a fan of romcoms only? Jun 09 07:44:32 nope Jun 09 07:44:43 i just found them tobe terrible films :) Jun 09 07:44:52 im into horror sci fi etc Jun 09 07:44:59 horror :/ Jun 09 07:45:04 fave movie is Dawn of the dead (78) Jun 09 07:45:05 every horror movie is a shitty movie. Jun 09 07:55:02 JakeWharton: you need to do this: http://alligator-sunglasses.com/post/11274974733/wait-who-is-it-by Jun 09 07:55:56 jacobs all the way down Jun 09 07:56:20 Jake Wharton's ActionBarSherlock made by Jake Wharton for Jake Wharton in collaboration with Jake Whartion Jun 09 07:58:55 So I've got a new question, I've got a subclass of ListFragment and I'm trying to call getSupportLoaderManager, but it tells me it is undefined, If I change it to getLoaderManager there is no error, and if I right click on it and hit go to definition it says I'm using the version from the compatibility library Jun 09 07:59:56 you don't prefix support methods in fragments Jun 09 08:00:04 which is stupid Jun 09 08:00:22 Ah, so in fragments it knows but otherwise it doesn't Jun 09 08:00:49 yeah, the logic is you're using support fragments so any methods you call will use the support implemetnation Jun 09 08:01:02 but I think i'd prefer consistency Jun 09 08:01:27 I guess that makes sense, but seeing the warnings everywhere that say "Don't forget to use getSupport" definitely doesn't convey that Jun 09 08:01:36 precisely Jun 09 08:01:49 Cool thanks again Jun 09 08:07:37 pragma-: it will be done Jun 09 08:26:39 hey there Jun 09 08:28:07 so i'm trying to get my head around opengl es for 2d graphics... it seems like using a library that is build for 3d manipulations would create overhead when you're only using 2d, or do the internals of opengl just deal with this? Jun 09 09:15:08 is there a way to prevent the prompt asking to access the usb device Jun 09 09:17:55 anyone know how to query dpi form code? Jun 09 09:19:53 dpi form? Jun 09 09:19:57 from Jun 09 09:20:12 context.getResources().getDisplayMetrics().density_dpi Jun 09 09:20:27 er, densityDpi Jun 09 09:20:56 you can also call .density to get a float representation of the pixel scale Jun 09 09:22:23 * hackkitten released her first free Android app with AdMob ads today Jun 09 09:22:32 it's not that hard to add, really :D Jun 09 09:22:51 boo ads Jun 09 09:22:54 * g00s plonks hackkitten for using adds Jun 09 09:22:56 ;_; Jun 09 09:23:04 of course, android is an add platform :P Jun 09 09:23:05 what? it's non-obtrusive and free~ Jun 09 09:23:08 well yeah Jun 09 09:23:09 :D Jun 09 09:23:12 https://play.google.com/store/apps/details?id=com.nyanko.nyankana_kana_memorized_free Jun 09 09:23:16 you can see a screenie there~ Jun 09 09:23:29 * hackkitten demands a bandaid from g00s now for the bump on her head Jun 09 09:23:32 :P Jun 09 09:24:13 hackkitten: you don't have an ActionBar :P !!!! Jun 09 09:24:25 * g00s plonks hackkitten again Jun 09 09:24:40 it's an update of my very first Android app :D Jun 09 09:24:52 * hackkitten looks in the docs for what an actionbar is again Jun 09 09:24:53 :P Jun 09 09:25:06 that rectangle thingy on the top :P Jun 09 09:25:19 amusingly I'm seeing this error report popping up again: http://code.google.com/p/android/issues/detail?id=24830 Jun 09 09:25:24 thingy? Jun 09 09:25:25 :D Jun 09 09:25:55 hackkitten: "This issue is fixed in 4.0.3" Jun 09 09:26:09 so you can ignore it in about 3 years XD Jun 09 09:26:11 yes, and many people run pre-4.0.3 ICS :P Jun 09 09:26:13 yeah ^-^ Jun 09 09:26:23 it's the most common error I see in the console Jun 09 09:26:30 Market console, that is Jun 09 09:26:51 but ActionBar is 3.x+ :< Jun 09 09:26:58 my device is 2.3.5 :P Jun 09 09:27:22 oh right, that actionbar Jun 09 09:30:16 * JakeWharton points at ABS Jun 09 09:30:21 How to get the screen width of the device in DPI ? Jun 09 09:31:20 * hackkitten stares at where JakeWharton points and wonders what ABS is Jun 09 09:31:30 context.getResources().getDisplayMetrics().widthPixels Jun 09 09:31:45 divide that by .density from the same object Jun 09 09:31:56 http://developer.android.com/reference/android/util/DisplayMetrics.html Jun 09 09:32:00 hackkitten: http://abs.io/ Jun 09 09:32:44 hackkitten: your app icon for kanji phase 2 is the same as kanji phase 1 - it even says so :P Jun 09 09:33:03 * g00s plonks hackkitten on the head for the 3rd time Jun 09 09:33:07 :) Jun 09 09:33:28 g00s > I know :P Jun 09 09:33:34 I'm embarrassed about it too Jun 09 09:33:39 but that app doesn't sell at all, so :P Jun 09 09:33:54 kinda left off on development when the first one didn't sell Jun 09 09:34:03 so~ Jun 09 09:34:07 * hackkitten shuffles paws~ Jun 09 09:35:29 * g00s watches the paws shuffle Jun 09 09:38:08 hackkitten: nice app Jun 09 09:38:48 thanks :D Jun 09 09:39:11 hope i can deliver this damn app Jun 09 09:39:18 supposed to be going to my birthday party in a few hrs Jun 09 09:39:23 :o Jun 09 09:39:31 * hackkitten hands gaz` an energy drink :) Jun 09 09:39:36 :-D Jun 09 09:40:31 dumbass lists a job posting on dice as 'droid' developer Jun 09 09:40:40 lol Jun 09 09:40:50 trying to make us sound l33rt Jun 09 09:40:52 l33t Jun 09 09:42:20 g00s: maybe he's only developing an app for Verizon Jun 09 09:49:52 gaz` > the n00b~ Jun 09 09:52:45 i'm pondering whether to read retos book straight through. Jun 09 09:52:54 its rather large :| Jun 09 09:55:18 wow, the british lung foundation says "but the risk of developing lung cancer is as much as 20 times greater from a cannabis joint than a tobacco cigarette." Jun 09 09:55:42 waaah? Jun 09 09:55:48 yeah, ot :) Jun 09 09:55:55 just reading an article Jun 09 09:56:18 well, i guess people smoke way more cigarettes that joints Jun 09 09:56:23 *than Jun 09 09:56:59 the argument, is that people who smoke pot hold the smoke in their lungs a long time to absorb the thc Jun 09 09:57:01 i guess Jun 09 09:57:08 * g00s doesn't smoke anything Jun 09 09:57:15 just find ti fascinating Jun 09 09:57:18 (it Jun 09 09:58:15 i wonder how that compared with living in a poluted city Jun 09 09:58:24 (looking for reasons to justify smoking weed) Jun 09 09:59:22 living close to a busy road is bad news (air pollution) Jun 09 09:59:31 how bad? Jun 09 09:59:36 lemme see Jun 09 09:59:42 can you put it in terms of cigarettes? Jun 09 10:05:25 If you live close to a busy road, you're gonna have a bad time. Jun 09 10:06:19 hmmm, i'm just going to have to get penthouse rich, because im sure as shit not living in a suburb Jun 09 10:06:29 for a while, it was hard to separate noise vs pollution or mortality, since noise increases stress and that can be a confounding factor Jun 09 10:06:41 s/or/for mortality Jun 09 10:07:02 really? i wouldn't have thought that Jun 09 10:07:07 but the one i saw a few months ago … it was pretty clear that the voc's are to blame :) Jun 09 10:07:17 voc's? Jun 09 10:07:37 volatile organic compounds Jun 09 10:07:54 what the Jun 09 10:08:00 like mould? Jun 09 10:09:08 internal combustion engines release vocs :) diesel release more fine particulates (pm2.5) Jun 09 10:09:33 ahhh si si Jun 09 10:09:55 well, we're all boned in the end anyway Jun 09 10:10:06 now there's a few people lurking i'll reask my question Jun 09 10:10:11 here, you need one of these http://www.gizmag.com/micropem-air-pollution-monitoring-device/22207/ Jun 09 10:10:21 so i'm trying to get my head around opengl es for 2d graphics... it seems like using a library that is build for 3d manipulations would create overhead when you're only using 2d, or do the internals of opengl just deal with this? Jun 09 10:10:24 having a bit of a problem with eclipse, did clean project and now R can not be resolved as a variable Jun 09 10:10:31 seriously, it will be great when smartphones have this stuff built in. at least ozone sensor Jun 09 10:10:39 that looks cool Jun 09 10:10:43 anyone els had this problem? Jun 09 10:11:16 hoxa, i think i had this problem when i forgot to put stuff in my res folder... Jun 09 10:11:16 HoXa: try disable auto build, clean, shut down, restart, clean, enable auto build ;) Jun 09 10:11:25 its a special dance Jun 09 10:11:57 yeah, not having stuff in res folder could be a problem Jun 09 10:12:12 :P Jun 09 10:12:35 these things happen! Jun 09 10:12:46 everything i need is in the res folder so that's not the problem Jun 09 10:12:56 opengl anyone? any graphics lords out there? Jun 09 10:13:29 HoXa: maybe you messed up some xml file Jun 09 10:13:39 when there is such an error, R is not produced Jun 09 10:13:47 look at your console Jun 09 10:15:10 * hackkitten idly wishes that the Android Market dev console statistics weren't so hopelessly useless Jun 09 10:15:23 g00s: tnx but your first answer did the trick :) Jun 09 10:47:59 Hello *, i am using "PreferenceManager.setDefaultValues(this, R.xml.pref_test, false);" to set default values for my SharedPreferences. Sadly my custom preferences with android:defaultValue is not stored as default. What am i missing? Jun 09 10:49:19 hmm, custom pref isn't working - interesting. Jun 09 11:06:45 if i have a url with lots of %2F stuff in it, what do i call to fix that back into a normal url? Jun 09 11:07:18 gaz`: go to the party :) Jun 09 11:07:30 still got some bugs to kill :-/ Jun 09 11:07:33 urldecode? Jun 09 11:07:41 yeh i was thinking that diki Jun 09 11:08:25 thx Jun 09 11:08:56 slave drivers Jun 09 11:09:01 theyre all enjoying a nice weekend too Jun 09 11:10:42 Code for the default custom preferences. setDefaultValue ist never called: http://pastebin.com/SfWmRFgy Jun 09 11:13:15 I could store the defaults in the constructor, but i am not sure if this is the correct way to do it. Something like if(isPersistant()) { store defaults by reading android:defaultValue } Jun 09 11:27:52 anyone have an opinion on the andengine game engine? Good, bad, problematic? Jun 09 11:38:15 Hiraghm: i'm trying to learn it, seemly brilliant, but very little documentation Jun 09 11:38:17 Its weird that in some situations activity inside a tab does not receive broadcast intends. Don't even know how to trouble shoot this, since I could not reproduce it always :( Jun 09 11:38:27 *seems Jun 09 11:38:35 according to the website, one of the angry birds games was written with it Jun 09 11:38:42 that's a heck of an endorsement Jun 09 11:39:10 Hiraghm: I thought angry birds is on Box2D Jun 09 11:39:55 I though angry birds was written in lua, the same language used for the evil cyberwar "Flame" malware Jun 09 11:39:56 there's a box2d extension for andengine, which i think is what most games use for their physics Jun 09 11:40:22 Angry Birds - Winter Holidays was listed as having been made with AndEngine Jun 09 11:40:40 lua is the scripting language for Lightwave, iirc Jun 09 11:41:10 most games don't use bullet physics? Jun 09 11:41:28 no, most games with andengine use the box2d extension i meant Jun 09 11:41:32 Only 3D games Jun 09 11:42:49 if you have experience with some other engines and you understand the lingo and workflows you could pick it up from the examples and stuff on the forums but for i have to learn engine design from scratch first, then i'm planning to use andengine as a base later Jun 09 11:43:02 *for me Jun 09 11:43:51 Any idea what i am missing to store the defaults of custom preferences or do you need more information (which?)? Jun 09 11:45:00 Hiraghm, do you know libgdx? the box2d port for andengine is from libgdx. Jun 09 11:45:07 Hiraghm: have you looked at any other android 2d engines? Jun 09 11:45:26 I've read a little bit about libgdx Jun 09 11:45:39 no, I haven't seriously looked at any android game engines Jun 09 11:47:11 Hiraghm: from looking on the forums, this was the most impressive game i found that was built with andengine Jun 09 11:47:37 https://play.google.com/store/apps/details?id=com.axl.xelorians.full Jun 09 11:48:12 they reviewed that yesterday on the friday games review youtube video Jun 09 11:52:19 bah. box2d had a pptx file to view the diablo3 ragdoll video :( Jun 09 11:52:36 hello Jun 09 11:52:59 i get some data using an apache httpclient using async task on android Jun 09 11:53:36 can i set keepalive? Jun 09 11:53:52 would that be beneficial to my program or not? Jun 09 11:54:14 i want to write code in one java file and want to aceess in 3 diffrent activity so anybody know how is it possible? Jun 09 11:57:36 serban: keepalive lets you push a bunch of requests through a single http connection... not sure what you're using it for or if it would be beneficial in your circumstance Jun 09 11:57:37 jagruti_ I think you should be able to access it by using TheOneClass.whatever inside the same package Jun 09 11:58:16 im getting json data an updating a listview Jun 09 11:58:19 *and Jun 09 11:59:26 if you have a java interface with two methods and a class that implements it. now you want to find the time it takes to invoke one of the methods ? how do you do it without modifying the interface and implementation ? Jun 09 11:59:42 it's like, for a website (i think this is how it works), when you download a html page, it's got a bunch of images and js files and css files linked in the page, instead of opening a single http connection for each it lets you push them all through one connection Jun 09 11:59:45 i hear you use a decorator/delegate to do it Jun 09 12:00:02 so i don't think it would provide any benefit for just grabbing one piece of data Jun 09 12:00:35 erdos I know what keepalive does, I'm just not sure how, if or whether it is recommended to be used on android Jun 09 12:00:51 Hi! I have a problem that sometimes when the user sloppily presses the back button or holds it, two back button events are fired off. Is there some built in method I can override instead of OnBackPressed which I currently override? Maybe there is a OnBackReleased? Jun 09 12:02:06 sorry that's all i can offer Jun 09 12:02:52 thanks anyway Jun 09 12:03:05 I have a dialog im building with AlertDialog.Builder which contains a multi-line EditText, when this EditText is updated onPrepareDialog it is likely to change size, however the containing Dialog is resized inappropriately arround this resulting in a large region of white space outside the LinearLayout im inflating for it Jun 09 12:03:40 any idea how to request the dialog resizes to wrap_content? Jun 09 12:03:41 Maverick you can measure the time before you do the invocation and after Jun 09 12:03:46 System.nanoTime Jun 09 12:06:22 No one knows if there is something like a onBackReleased ???? Jun 09 12:06:34 method for an activity? Jun 09 12:07:43 you can do it with keypress handlers Jun 09 12:07:48 Sebzter http://stackoverflow.com/questions/8094715/how-to-catch-event-with-hardware-back-button-on-android Jun 09 12:09:20 Sebzter: you can't place System.nanoTime in side the function. for example function looks like this: public void increment(){ count++;} that's it you cannot modify it Jun 09 12:09:43 may be i can make the function final Jun 09 12:09:46 why would you ever want to measure that? Jun 09 12:10:08 okay, but get nanotime before you do the method invocation, not inside of it Jun 09 12:10:43 maverick, what you are asking for is profiling Jun 09 12:10:53 robb_www: ok but how Jun 09 12:11:00 can you take it one step back and explain what you are trying to do? Jun 09 12:11:07 Sebzter: yes . what is the next step ? Jun 09 12:11:15 haha :) Jun 09 12:11:23 what are you trying to achieve? Jun 09 12:11:35 Sebzter: if i have system.nanoTime() i get initial timestamp when the function is invoked Jun 09 12:11:38 this was the 3rd result on google: http://developer.android.com/guide/developing/debugging/ddms.html Jun 09 12:11:43 bumping an int by 1 is almost immeasurable Jun 09 12:12:25 Sebzter: now I need to catch the timestampe before or when the first line of function starts execution Jun 09 12:12:47 mavericks, also you are almost certainly going to need to target specific implementations of the interface rather than the interface overall Jun 09 12:13:13 which is unsurprising as if you have more than one implementation, you are almost certainly going to have a distribution of runtimes, summarising that is unlikely to be what you are after Jun 09 12:14:05 Sebzter: so I don't want to get the time after the method finishes. only precisely when the time first line of the function starts execution. then problem solved :) Jun 09 12:14:08 mavericks, is this something you want to do at runtime, rather than purely for performance management? Jun 09 12:14:19 so: long startTime = System.nanoTime(); someObject.increment(); long executionTime = System.nanoTime() - startTime; Jun 09 12:14:27 serban: actually my requirement is like i want to write the code of access the data from server and phone and then that resulted data i want to use in 3 different activity..so now can u suggest me Jun 09 12:15:19 I still dont get it.. You want ot measure the time it takes to bump an integer by one... Why? Jun 09 12:15:20 Sebzter: that's what I thought . but I don't want to count the time it takes to increment the value. only the time it takes the invoke or start the method Jun 09 12:15:53 Well that is what you will get since I guess the method overhead might be larger than bumping the int Jun 09 12:16:28 Why are you doing this and what do you want to achieve? Jun 09 12:16:30 sebz hes not wanting to time incrementing a counter, its a dummy example Jun 09 12:16:39 ah :) Jun 09 12:16:43 right Jun 09 12:16:48 haha Jun 09 12:17:12 mavericks, is this so you can improve the performance of your app by doing offline optimisations at design-time, or so you can monitor your app on-line at runtime? Jun 09 12:17:20 robb_www: just learning purpose. i think as you said it might fall under profiling, performance mgmnt or someting like that Jun 09 12:17:57 Well... I tried that with reflection once. Which wont give you any good results since reflection is slow Jun 09 12:18:08 so true Jun 09 12:18:12 but i still love using instanceof :P Jun 09 12:18:39 There is a library extension to junit which measures performance Jun 09 12:18:57 robb_www: probably the 2nd one. i heard something about decorator or delegate for this. si understand the concept but trying to implement it for this purpose Jun 09 12:18:57 brb Jun 09 12:19:24 http://labs.carrotsearch.com/junit-benchmarks.html this one Jun 09 12:19:35 "probably" the second one doesnt sound convincing, the second example is very obscure and complicated, if you arent sure thats what you want, you probably dont Jun 09 12:19:58 actually my requirement is like i want to write the code of access the data from server and phone and then that resulted data i want to use in 3 different activity..so anybody suggest me Jun 09 12:21:03 on-line monitoring would be, for example, a webserver monitoring worker threads to see if the parsing of a webpage has entered an infinite loop, and then killing that thread to preserve performance across the system. that is not a likely scenario in most apps Jun 09 12:22:45 guys I have issue getting google usb to work for win 7. it keeps sayings already uptodate and win 7 using its own driver fails to recognize htc g1 Jun 09 12:23:33 the win 7 support for google usb is not satisfactory Jun 09 12:24:44 serban: thanks for the link btw. Worked nicely Jun 09 12:29:40 apparently the views in my dialog have widths and heights of 0dp, thats reassuring Jun 09 12:44:21 robb_www: i see Jun 09 12:55:09 data acess from sharedpreference and data acess from sqlitedatabase from both of this which one give result quickly? Jun 09 12:55:22 I can't s-off my sensation. Revolutionary error: Failed to get Root! ... Jun 09 12:55:30 Is it possible to extract a file from a .gz on the fly? Jun 09 12:55:57 Mohsen_Hassani: Tried reading the topic/#android-root? Jun 09 13:12:45 Ok so what's the quickest and easiest way to read and parse an XML file? Jun 09 13:13:05 quickest conflicts with easiest Jun 09 13:14:14 quickest=xmlpullparser, easiest=documentbuilder Jun 09 13:15:15 hmm im having the exact same transitions problem again JakeWharton only this time that solution wont work Jun 09 13:17:08 libxml2 Jun 09 13:20:32 these transitions are infuriating Jun 09 13:20:36 got a mind of their own Jun 09 13:23:50 what transition? Jun 09 13:24:20 betwen activities Jun 09 13:24:33 ah it works if i put overridePendingTransition(R.anim.fadein,R.anim.fadeout); in oncreate before setContentView.... Jun 09 13:37:48 I slaved yesterday night and this morning getting linux to recognize sRGB surfaces: http://bel.fi/~alankila/pixman/difference.png Jun 09 13:38:07 the correct processing is at top, the default (bad) processing at bottom. No more dark color blends, if I manage to teach these surfaces to the entire linux programming stack Jun 09 13:45:17 helo Jun 09 13:45:58 if we change the APk name of android then will it working or not? Jun 09 13:53:11 hey guys i cant get my icon to appear on my app Jun 09 13:53:19 ive got application android:icon="@drawable/ic_launcher" Jun 09 13:53:30 and ive got diffeent sized icons in the xhdpi drawers etc Jun 09 13:53:34 none in drawable/ Jun 09 13:56:02 you have ic_launcher.png in drawable-xhdpi, drawable-mdpi etc? Jun 09 13:56:48 yes Jun 09 14:02:25 ok im done Jun 09 14:02:26 party time Jun 09 14:02:28 :) Jun 09 14:02:40 perfect timing Jun 09 14:02:59 heh Jun 09 14:03:03 HAPPY BIRTHDAY! Jun 09 14:03:08 thanks! Jun 09 14:03:10 * gaz` bows Jun 09 14:03:56 I want to create a view that has a (fixed size) ImageView on the left, then comes a flexible TextView and then comes a ImageButton (fixed size). I'm not quit sure how I create the flexible TextView in the middle. Any hints? Jun 09 14:06:21 happy birfdays? :o Jun 09 14:07:28 hey hackkitten: do you do any marketing for your apps or do you just put them out there? Jun 09 14:10:16 erdos > I mostly just put them out there Jun 09 14:10:24 though I'm beginning to look at marketing Jun 09 14:10:30 that's why I put that free version up today Jun 09 14:11:11 si si Jun 09 14:11:29 do you get downloads from just putting them up? how does someone find them? Jun 09 14:11:43 I put them on my FB, G+ and Twitter accounts Jun 09 14:11:54 so mostly word of mouth Jun 09 14:14:00 i haven't put anything out yet so i don't really know how it works, what kind of response you get, how long you stay on the new apps lists etc... i watched this yesterday, it was pretty interesting http://www.youtube.com/watch?v=w01vhPXD2Q4 Jun 09 14:15:01 it's mostly hit or miss Jun 09 14:15:09 I think that word of mouth is the most important factor, though Jun 09 14:16:13 alright, i'm out Jun 09 14:16:14 later Jun 09 14:20:55 meh, I lose my camera preview when going from landscape to seascape directly, but not if I pass through portrait Jun 09 14:20:58 wtf code Jun 09 14:20:59 wtf Jun 09 14:22:12 I remember I battled with camera issues for a while as well when I wrote a simple programmable camera as a test Jun 09 14:22:23 (can tell android phone to take photographs) Jun 09 14:22:32 I forced the layout to be portrait iirc Jun 09 14:22:37 Should separate screens in an app be arranged as separate activities? Jun 09 14:22:48 I couldn't deal with layout changes in my code. As soon as they happened the camera started having issues. Jun 09 14:23:19 I tried around 5 different ways to try to cope with the layout change but somehow closing the camera and repoening and all that ... it never just worked, and I don't know why Jun 09 14:23:55 alankila: It works fine for me aslong as it's transitions via portrait Jun 09 14:24:01 good for you Jun 09 14:24:09 I could not get even that much to work reliably, so I guess I suck Jun 09 14:24:44 stupid thing is, I know the camera is still running Jun 09 14:24:53 I just erm, lost the preview surface Jun 09 14:36:27 hi Ikarus o/ Jun 09 14:42:25 meh, heisenbugs Jun 09 14:42:27 hi hackkitten Jun 09 14:42:42 :) Jun 09 14:42:56 did I mention I hate Java and think quite a few of the people who designed Android APIs are utterly utterly mad Jun 09 14:43:11 Ikarus > are you going to thump me upside the head for putting an ad-supported app on the Market as well? :D Jun 09 14:43:22 Ikarus > they are mad, Android APIs were designed by monkeys~ Jun 09 14:43:33 * hackkitten is moving to WP7 dev and couldn't be happier Jun 09 14:43:43 hackkitten: I don't care, this phone is going back to uni in 4 weeks and I am quite happy to be rid of it Jun 09 14:44:00 :) Jun 09 14:44:46 I'll probably spend the summer porting Maemo or Meego to a modern phone Jun 09 14:45:59 yay, fun :) Jun 09 14:46:06 * hackkitten hopes to get a job this summer Jun 09 14:46:21 hackkitten: I already have a well paying short job this summer Jun 09 14:46:27 but I have uh, 10 weeks off or so Jun 09 14:46:32 ah :) Jun 09 14:46:56 so 2 weeks on that and 2 weeks attending events Jun 09 14:47:01 and probably some work on my room Jun 09 14:47:27 leaves me with enough time to make sure there are still viable alternatives to developing for Android (or *shudder* iOS or WP70 Jun 09 14:50:38 hi. how can i implement a full screen image gallery like in facebook application? should i do the whole thing myself or is there components for it that i could use? Jun 09 14:53:41 oh, btw, can I have Android when it hits an exception, write that to a file instead of just burping it out over logcat Jun 09 14:59:25 the dl-ssl site from sdk manager is unable to fetch repository.xml ....is this site working ? Jun 09 14:59:37 I have tried both http and https Jun 09 15:01:02 Guys, I have a question about images scaling. This is the source image: http://xa0c.net/tmp/android/draw_source.jpg This is hot it drawn by some app: http://xa0c.net/tmp/android/draw_good.png (stretched almost twice!) This is how it drawn by default ImageView: http://xa0c.net/tmp/android/draw_bad.png Jun 09 15:01:47 How could it possible to such draw an image almost without quality loss? Jun 09 15:02:20 are you sure the "some app" doesn't have the image in higher resolution? Jun 09 15:03:00 yep, there is only one source of this image, I'm sure Jun 09 15:04:30 I tried to decompile that app, but jd-gui cant show me that part with drawing Jun 09 15:05:22 have you tried to scale the bitmap before giving it to imageview? Jun 09 15:06:06 http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap(android.graphics.Bitmap, int, int, boolean) Jun 09 15:06:19 well. yes, I tried to overload onDraw and scale bmp using Bitmap.createScaledBitmap() method. Same result. Jun 09 15:06:22 set filter=true and you might get better results Jun 09 15:06:34 it's already true. Jun 09 15:06:39 yes, enabling the filtering uses some ugly bilinear interpolation scheme I guess. Jun 09 15:07:10 in any case, the result is replete with gamma errors and unnecessary loss of precision Jun 09 15:07:20 such is the state of image scaling algorithms in 2012 Jun 09 15:07:44 anyone know if it's possible to do the saving exception traces to the phone itself automatically Jun 09 15:08:28 Ikarus: google "com.bugsense.trace" Jun 09 15:09:29 I have an idea of interpreting every bitmap as a scaling result for an area-averaging process from source data that is defined in a mathematical way using smoothstep-like functions that cross pixel boundaries Jun 09 15:10:00 I've been thinking about this for a while, but haven't implemented the function yet Jun 09 15:11:33 I just checked with photoshop: he scales better that Bitmap.createScaledBitmap() but "some app" still much better. Cat figure out: how it could possible. Jun 09 15:11:50 Cant* :) Jun 09 15:12:16 photoshop is the pinnacle of image processing? Jun 09 15:12:29 anyway maybe they have a better quality source image. *shrug* Jun 09 15:13:00 Well... They are taking money for this. I think, they should do good image processing application than. :) Jun 09 15:13:05 or some bicubic or lanczos scaling algorithm that maintain more detail than typical bilinear shit Jun 09 15:13:15 meh Jun 09 15:13:48 http://www.4p8.com/eric.brasseur/gamma.html tells all about quality of average image processing Jun 09 15:14:37 i would be somewhat surprised if Android did bilinear scaling and not just plain old linear Jun 09 15:14:50 well it's linear in two directions afaik, that's what I thought it means Jun 09 15:14:55 no Jun 09 15:15:01 I am unable to fetch repository.xml for android sdk manager. it failes Jun 09 15:15:10 wikipedia agrees with me Jun 09 15:15:17 No. Jun 09 15:15:26 http://en.wikipedia.org/wiki/Bilinear_interpolation Jun 09 15:15:28 see for yourself Jun 09 15:16:06 it does not mean dimension, as you mean it Jun 09 15:16:18 I never mentioned the word dimension Jun 09 15:16:26 I said two directions, aka two variables, x and y Jun 09 15:16:30 ... Jun 09 15:16:31 and it DOES mention just that Jun 09 15:16:37 you have no idea what you are saying dude Jun 09 15:16:57 can one verify if dl-ssl link for repository is working ? Jun 09 15:16:57 but since you rely on wikipedia without understanding: Contrary to what the name suggests, the bilinear interpolant is not linear; rather, it is a product of two linear functions Jun 09 15:17:11 i.e., it's not linear. which is what i said. Jun 09 15:17:34 As seen in this example, the intensity value at the pixel computed to be at row 20.2, column 14.5 can be calculated by first linearly interpolating between the values at column 14 and 15, and then interpolating linearly between rows 20 and 21. Interpolating along the columns produces 150.5 and 128.5 on row 20 and 21. Interpolating between those two values gives Jun 09 15:17:41 straight from that wikipedia page Jun 09 15:17:44 the fact that it's called "bilinear" and not "linear" should be a hint :) Jun 09 15:17:50 interpolate along first variable, then interpolate along the other Jun 09 15:17:52 What the fuck? Jun 09 15:18:06 just trust me on this one Jun 09 15:18:16 i wrote a bilinear interpolator once Jun 09 15:18:22 worked reasonably well for what i wanted Jun 09 15:19:05 mms_: dl-ssl.google.com works fine for me if that's what you were asking. Jun 09 15:19:28 PK: yes but some how the repository is not working....repository.xml Jun 09 15:19:36 Look, guys, wikipedia describes the process as applied to image process as taking weighted average for the 4 closest points of the target point Jun 09 15:19:45 what *is* the process for bilinear then according to you? Jun 09 15:20:08 mms_: my eclipse didn't complain about it when I installed things from there 6 hours ago. If it's broken then it happened very recently Jun 09 15:20:30 well I am doing it from android sdk manager on debian Jun 09 15:20:34 alankila: it's not linear :/ Jun 09 15:20:58 lot of times there is some issue with dl-ssl Jun 09 15:21:00 but ... this is a linear process Jun 09 15:21:08 weighted average... 1st order functions Jun 09 15:21:17 alankila: you would be pretty surprised how much extra time it takes to do proper scaling Jun 09 15:21:30 zinx: but we are not talking about proper scaling Jun 09 15:21:34 just what bilinear scaling means Jun 09 15:21:53 mms_: I has some issues there. I had to close and restart it twice, then it worked just fine. That was on windows though. Jun 09 15:22:01 *had Jun 09 15:22:45 imho there is no software that does proper scaling because programs typically ignore gamma of the source data to begin with, and secondly because the algorithms rely on sampling a continuous function at points instead of equal-area considerations. Jun 09 15:23:24 Umm, Hey guys! Just had a little confusion here about how things are done in Android. We are implementing some functionality that we'd like to distribute in a compiled form, for other developers to use. Jun 09 15:23:34 when camera takes a picture of the world it sums all the light together that arrives a particular pixel's region. Therefore the pixel as captured by camera is an area average Jun 09 15:23:40 but our code uses some Android functions and dependencies too Jun 09 15:23:54 alankila: sampling theory :/ Jun 09 15:23:57 PK: my sdk manager on debian is fetching addons_list.xml Jun 09 15:23:58 its fails Jun 09 15:23:59 to scale this, you have to treat the source data as consisting of *something* that resulted in this average, some kind of blob of color that blends slightly with nearby pixels Jun 09 15:24:20 I suppose it should fetch repository.xml ? Jun 09 15:24:25 mms_: I don't know Jun 09 15:24:41 xa0c: is that the project: https://github.com/bugsense/bugsense-android ? Jun 09 15:24:54 yep Jun 09 15:24:57 alankila: the gamma issue is a big one though Jun 09 15:24:59 so as it stands together, the only way I have figured out is creating a normal java project, referencing android.jar in this project, write the source and export the jar for this Java project, to be referenced in other projects for use. My question is, is this way 'legit'? As in, it seems to be a work-around kind of a thing. Jun 09 15:25:09 xa0c: it seems a bit old Jun 09 15:25:12 zinx: yes, by far the most important and desperately underappreciated thing Jun 09 15:25:25 zinx: I today wrote a patch for libpixman on linux introducing sRGB surfaces to it Jun 09 15:25:37 alankila: hehe Jun 09 15:25:40 I hope that I get X server on linux to accept sRGB surfaces soon and then clients to use them Jun 09 15:25:52 why would the camera app return a null for the data in onActivityResult()? https://gist.github.com/2901429 Jun 09 15:26:05 Ikarus: why you need to have "todays" version of such simple code? what should be improved in exception's logging? :) Jun 09 15:26:13 http://bel.fi/~alankila/pixman/difference.png is what it looks ike, sRGB on top, old code on bottom Jun 09 15:26:35 this is a simple linear blend of green fading out at one edge and magenta fading in on the other edge Jun 09 15:26:45 xa0c: I have no idea how it handles logging even Jun 09 15:26:57 in linear light the result changes smoothly, and by treating the output surface as sRGB it is possible to construct the colors correctly Jun 09 15:27:11 There are two files only. Open and check. Jun 09 15:27:33 the broken code generates that dark patch in the middle, which is familiar to anyone who has scaled high-contrast images slightly and seen the gamma error in picture scaling Jun 09 15:27:36 xa0c: that one seems a tad overill Jun 09 15:27:42 it submits to a server Jun 09 15:27:59 I just need to get traces on the device (or are they made, just not documented somewhere sensible0 Jun 09 15:28:10 As an option. Before a submit is saves stacktrace to file on phone. Jun 09 15:29:13 and that's not documented.... Jun 09 15:29:24 Just open and check. It's 100..200 lines of code only. You may write your own logging based on this, it you so much want this. Jun 09 15:29:42 it=if* Jun 09 15:29:58 ah well, it's akward that google doesn't include something quite as simple as this Jun 09 15:30:51 anyway with pixman it's soon possible to scale images without gamma errors, all you have to do is give the sRGB format type as input and put the result in sRGB surface. And fonts, too, no longer too fat or jaggedy, or with color errors at the edges Jun 09 15:30:58 Welll. There is no need for that. It's already in the JVM. google "UnhandledException handling" or so. Jun 09 15:31:33 but a lot of work required to reach my desired end result Jun 09 15:32:32 Hi guyz Jun 09 15:32:33 :) Jun 09 15:34:05 xa0c: the point is that that still means setting up all sorts of code, I mean in C, if you enable core dumping, it will just write cores and be done with it Jun 09 15:34:44 In 10 days I have to make a presentation and show an Android application, also simple, which makes use of a database. What could I create? I was reminded of a book but it would be too obvious :P Jun 09 15:35:54 yuizy: alankila: guys. I just rechecked decompiled code of that app. It's true: there is better source of that image. No magic scaling, I'm so glad. :) Jun 09 15:36:46 pity, now my long rant feels even more off-topic than it would have been otherwise Jun 09 15:37:01 :) Jun 09 15:37:22 under: you could simply use the Notepad Tutorial on the developer site Jun 09 15:37:23 xa0c: :) Jun 09 15:37:27 under: app that tracks the call log, and then sorts and shows the contacts list by most frequently called. Then (if you have time) you can use that to sort facebook/etc feeds by that person Jun 09 15:37:43 anyway best start building new X server Jun 09 15:45:01 hi Jun 09 15:45:03 anyone there? Jun 09 15:45:09 many are here Jun 09 15:45:27 hi ni Jun 09 15:45:30 hi nishant19991 Jun 09 15:45:35 did you take a look at francium's question? Jun 09 15:45:37 hi! Jun 09 15:45:43 we're working on the same project Jun 09 15:46:28 and we wanted to distribute our library as a closed source binary, but we were unable to find any 'official' way yto do so Jun 09 15:46:53 kbs: the phone is free, no data in there Jun 09 15:47:25 So, can anyone help us out? Jun 09 15:47:27 nishant19991: I have no clue. Probably it's best to keep your library and android decoupled and provide the glue code inbetween as open source. Jun 09 15:47:41 but we cannot, that's the key thing Jun 09 15:47:53 because that is our own functionality that we're implementing, that we'd probably plan on distributing Jun 09 15:48:00 if we open source it we lose our usp Jun 09 15:48:31 how would i read n1 bytes of binary data out of a file from some file offset other than 0? Jun 09 15:48:48 P.S Same project/question as nishant19991 Jun 09 15:49:10 google how to read binary file and they always read the entire file, not just a blob out of the middle Jun 09 15:49:32 Francium92: out of curiosity -- is the android dependency "deep", or can you stick a provider-type api so it can be adapted to the android (or other) environments Jun 09 15:50:19 It involves quite a lot of sensor related code, and probably GPS/Camera/Microphone in the future Jun 09 15:51:17 I'm not a lawyer and not all that familiar with the licenses. I can't help you there, sorry. Jun 09 15:51:47 Francium92: ah, I see. Well, I had a somewhat similar issue myself, but my dependencies were rather modest -- so I went the route of adding a provider api, and letting people customize it depending on the environment. Jun 09 15:51:58 see this is badly written Jun 09 15:51:59 int read(byte[] buffer, int byteOffset, int byteCount) Jun 09 15:51:59 Reads at most length bytes from this stream and stores them in the byte array b starting at offset. Jun 09 15:52:29 stores them to byte array b starting at offset from file or offset into byte array b? Jun 09 15:52:38 kbs: Ah okay. I'm really not sure how to tackle this, documentation etc. doesn't help either much except saying that library projects can't be exported out. Jun 09 15:53:13 This technique of adding android.jar to a normal java project is working as of now, I've tested it. But it just seems a quick-fix kind of thing at the moment, not sure I would keep it as my development model. Hence wanted to know more opinions about it. Jun 09 15:53:33 and the prototype doesnt even have a byte buffer called b lol Jun 09 15:53:55 Francium92: gotcha. Don't have anything useful to offer myself, but good luck with the project :-) Jun 09 15:54:07 kbs: Cheers, thanks! :) Jun 09 15:54:32 kbs : thanks! Jun 09 15:54:44 PK: Ah okay. Thanks! Didn't think of the licensing stuff, will probably have to look into that too. However the first thing that was on my mind was the actual working of this method! Jun 09 16:00:05 I'm trying to create an app that's works like a simplified version of Dia or Visio. Place move and rotate shapes on a grid, zoom in and zoom out of the whole sheet. Before I start reimplementing the wheel, does anyone know a library or API that either does that already or makes it easier? Jun 09 16:20:19 coming soon to linux near you, if everything goes according to plan: improved alphablending: http://people.freedesktop.org/~sandmann/srgb.png Jun 09 16:20:35 left-hand result is with the new code Jun 09 16:20:52 I've got a bizarre issue Jun 09 16:21:17 alankila: looks nice Jun 09 16:21:28 Yeh... and can you imagine how much this issue currently hurts linux font rendering Jun 09 16:21:36 fonts are all about narrow paths and the current code totally fucks them up Jun 09 16:21:37 the slider in a SeekBar of fill-parent (screen width), will not move to the right most notch in portrait mode while it will in landscape mode Jun 09 16:21:46 alankila: at least someone who understands gamma correction Jun 09 16:21:49 anyone got this documented and knows a workaround ? Jun 09 16:21:59 not gamma correction per se. sRGB surfaces ;-) Jun 09 16:22:20 I'm currently building X server with support for this surface type... although I have a movie so I guess I'll continue tomorrow Jun 09 16:22:36 At least I hope I can enjoy prometheus instead of impatiently tapping my feet and wanting to be back at home writing code Jun 09 16:23:37 at least one pixman guy did not like my implementation though, so the first battle of getting this merged hasn't yet been won, but I hope the comments fall in early next week and aren't anything drastic Jun 09 16:24:21 whats the use of RemoteView class? ive read the documentation, cannot understand whats its use? Jun 09 16:24:32 selector: to display views that aren't hosted by your process, normally notifications Jun 09 16:25:34 looks like time to go for me. Jun 09 16:26:06 aha, i have an entry point activity , on there i display something in a text view, and when i go to settings activity and i do some changes, these changes should be showen in this textview when i come back to main activity Jun 09 16:26:14 alankila, thanks for the answer Jun 09 16:26:56 is the remoteview usefull in this context that i described above? Jun 09 16:27:07 instead of textview i use remoteview Jun 09 17:30:53 hello. I'm looking for help with Canvas. Anyone here has experience with that? Jun 09 17:44:23 http://www.dailytech.com/article.aspx?newsid=24884 Jun 09 17:47:28 could you please help me with this question? Jun 09 17:47:34 http://stackoverflow.com/questions/10889559/draw-chart-legend-on-canvas-and-add-to-different-layout Jun 09 17:52:10 pragma: interesting Jun 09 17:56:01 On that note, how do Anti Virus Apps for Android work. Do they do anything actively or can you just press 'scan' and it alerts you on suspicious packet names? Jun 09 17:56:13 cyberrog i think in oncreate the draw() draws onto something that doesn't know its future size Jun 09 17:56:36 the piechart draws to a bitmap that does have a size Jun 09 17:56:42 xorgate maybe. thats what Im investigating Jun 09 17:57:48 cyberrog i'd definitely move a lof of code out of oncreate Jun 09 17:58:02 xorgate why? Jun 09 17:58:57 http://nateclaiborne.com/2012/06/08/dognuts-and-colon-demonstrating-why-spelling-is-important/ Jun 09 17:59:50 cyberrog hm in this case it may not matter Jun 09 18:00:12 kakazza: probably has broadcast receivers for app installed and just about everything, and does periodic scans of the sd card and whatever it can see, etc Jun 09 18:00:15 xorgate. yeah, this code is just for test, I'm gonna improve it after the functionality is working. Jun 09 18:00:21 but anything regarding drawing i wouldnt put in oncreate Jun 09 18:00:45 also a lot of the config could be done in xml, but that's not very relevant to your issue Jun 09 18:01:04 yeah, in my case the data is generated dinamically, coming from database Jun 09 18:01:17 i do suspect an invalidate() hardly does anything useful in oncreate Jun 09 18:01:36 rooting your phone actually makes your device more secure because you can then scan the internal storage, utilize iptables firewalls and more! Jun 09 18:02:47 usb debugging enabled = less secure Jun 09 18:03:02 but hey, if you have compromised equipment.. what can you expect :P Jun 09 18:03:13 pragma-: hrm, you could easily patch Dalvik and the Linux ELF loader to do virus scans Jun 09 18:03:40 Ikarus: which requires root and a custom rom, yes? Jun 09 18:04:10 pragma-: I am of the opinion everyone should have root and the option to install whatever they want, all devices that do not allow this are irrelevant :P Jun 09 18:04:18 * pragma- nods Jun 09 18:06:28 too bad they don't have some kind of access control mechanism for usb debugging where you could tell your device to only accept usb connections from a certain hardware identifier or some other kind of access control Jun 09 18:07:18 I almost always have usb debugging enabled because I'm such an adb whore and I often forget to disable it when I go out Jun 09 18:07:42 then again, I have no state secrets or anything embarassing on my phone Jun 09 18:08:11 and I never leave my phone on the table or on a counter or anything. Jun 09 18:08:16 It's either in my pocket or in my hand, period. Jun 09 18:08:34 btw, slightly related, I need a phone to do low level dev work on, which modern phones are open enough that replacing the kernel is actually easy ? Jun 09 18:08:56 preferably OMAP or Tecra platform Jun 09 18:13:17 hrm, a simple solution to my adb debugging always on thing could just be to allow an option to have usb debugging automatically turn off when the usb cable is unplugged Jun 09 18:13:44 the only downside is you would have to reenable it when you plug it back in, but i'm sure that woudl be an extremely minor inconvenience in any setting Jun 09 18:13:53 and the benefit far outweighs the inconvenience Jun 09 18:14:10 more and more, i become less and less impressed with google's bumbling around the android platform Jun 09 18:16:13 oh well, I guess I'll write a patch to add this feature to CM7/9 Jun 09 18:17:56 * readme needs to root this samsung galaxy tablet... but instructions seem to be for windows. Jun 09 18:20:03 * pragma- idly wonders if wine could handle the instructions. Jun 09 18:20:44 I see a report here of someone succeeding using XP in vmware Jun 09 18:21:18 oh well, desperate times, desperate measures. Jun 09 18:21:24 you could just buy some $75 laptop with xp on it Jun 09 18:21:27 last thing I want is to not be able to inspect sqlite databases while I develop Jun 09 18:21:36 clutter Jun 09 18:21:44 I'm gtfo'ing soon Jun 09 18:21:50 there's always dual booting. Jun 09 18:22:06 i don't think windows should be run outside of a sandbox. Jun 09 18:23:48 laptops aren't that much clutter ... just fold it and stick it under the bed or couch or on a bookshelf between some books or something Jun 09 18:24:09 it will be 75 bucks that I spend just to sell for less or throw away Jun 09 18:24:15 you could dual boot the laptop and install some other useful os on it and use it as another server Jun 09 18:24:17 I'm literally moving across country in a few weeks Jun 09 18:24:25 and I'm not bringing like, anything. Jun 09 18:24:33 I plan to buy a brand new laptop for the purpose. Jun 09 18:24:35 how zen Jun 09 18:24:41 well, when all your stuff is crap Jun 09 18:24:44 it's not hard to be zen Jun 09 18:25:22 I've got like college grade furniture at best Jun 09 18:25:39 probably most college dorms have better furniture Jun 09 18:26:25 at the end of every year, at least 2 microwaves in a college dorm have exploded Jun 09 18:27:27 at there will have been no less than 10 incidents of everyone having to evacuate the dorm due to fire alarms because someone burned their popcorn in the microwave Jun 09 18:28:00 i burnt popcorn at a company I worked at once... it was a running joke for the rest of my time htere. Jun 09 18:29:10 those mandatory evacuations are stupid. it just makes me want to lock my door and hide out until the alarm is over instead of evacuating Jun 09 18:29:20 then what if there's a real fire one day? Jun 09 18:29:36 you are probably on to something with that Jun 09 18:29:52 first thing people think when a fire alarm goes off is that it's a drill Jun 09 18:30:20 you'd think with the technology we have now, we could have a message play "THIS IS A DRILL"/"THIS IS NOT A DRILL" Jun 09 18:30:57 well, it's not like they shcedule when to burn the popcorn Jun 09 18:32:17 dorms suck anyway. Jun 09 18:32:29 get an apartment, for real. Jun 09 18:33:16 on the shizzle. Jun 09 18:33:54 i've never lived in a dorm Jun 09 18:34:30 I guess it depends on which dorm and which floor you're on and how insane/gung-ho/clean-freak your RA is Jun 09 18:36:51 O Jun 09 18:37:00 I don't even like living in apartmnets Jun 09 18:37:29 moving to texas so I will buy a foreclosed home and pay most of the money up front, then my mortgage will be <500/mo Jun 09 18:37:56 then I just need to renovate the property a bit: barbed wire fence, security system, swimming pool Jun 09 18:38:08 maybe a moat Jun 09 18:39:15 Is that meant to be ironic? (Don't know if you actually need a wire fense or security system) Jun 09 18:39:25 I don't think I know someone with either. Jun 09 18:39:42 if I owned a home I'd definitely set up cameras, but not a barbed wire fence Jun 09 18:40:00 Know even less people with cameras :x Jun 09 18:40:11 Is that specific to Texas? Jun 09 18:40:27 I know people up here who have cameras Jun 09 18:40:30 in ma Jun 09 18:40:46 I have to say, I'm from .eu Jun 09 18:42:00 eu is prone to zombie/alien attack as well Jun 09 18:42:04 better beef up security Jun 09 18:42:07 :D Jun 09 18:43:00 .eu is rather unspecific Jun 09 18:43:17 and there's a camera on every house in the uk Jun 09 18:43:17 hi. how can i implement a full screen image gallery like in facebook application? should i do the whole thing myself or is there components for it that i could use? Jun 09 18:44:24 a camera system around the home is a very good ideea if only for simple insurance purposes so you have proof of claims Jun 09 18:45:05 and you never know when something crazy or funny or weird might happen Jun 09 18:45:26 yeah.. cameras will be remotely backed up Jun 09 18:46:00 history teaches us that weird things do happen, quite often Jun 09 18:48:38 yuizy: Gallery, ViewPager? Jun 09 18:49:00 I don't know the facebook SDK but I somewhat doubt it would include the functionality to display images out of the box Jun 09 18:49:06 nah Jun 09 18:49:10 probably only the functionality to retreive them Jun 09 18:49:25 yeah i'm using a viewpager now Jun 09 18:49:33 but there's issues with the touch event system Jun 09 18:50:20 because the viewgroup should intercept some of the motionevents if the user is not trying to scale or move a single image Jun 09 18:50:57 viewpager* Jun 09 18:53:02 git question, because I love you guys. My new branch doesn't show on my friends computer. Anyone know why and what to do? Jun 09 18:53:11 #git Jun 09 18:59:35 Ugh, I'm going nuts with this Custom CursorAdapter I'm working on. I'd really like to see if you can give me a hand here: http://www.pastebin.com/KKXtVnyd Jun 09 19:05:56 I probably should mention that the problem description is embedded in there as well. Jun 09 19:26:09 there is far from a camera on every house in the UK Jun 09 19:48:54 Is there some online viewers of the android source Jun 09 19:51:04 And can someone tell me how the android os work? I read something about dalvik Jun 09 19:51:16 As in how was it built Jun 09 19:51:38 Diki: http://developer.android.com is probably your best bet here Jun 09 19:52:19 I cant download the source btw Jun 09 19:52:19 Diki: Alright, as to how Dalvik is _built_, that site might not be sufficient for you, though. Jun 09 19:52:33 So if that site makes me then its not what i want Jun 09 19:54:22 Diki: You might have better luck asking about Dalvik in #android-root Jun 09 19:54:48 Odd Jun 09 19:54:57 Why not here? Jun 09 19:55:18 Well, this channel is very focused on app development. Jun 09 19:55:44 Ah Jun 09 19:56:05 Alrighty then Jun 09 19:56:30 http://source.android.com/source/downloading.html Jun 09 19:56:36 Why can't you download the source? Jun 09 19:57:41 Phone->3g Jun 09 19:58:00 ah Jun 09 19:58:00 Slow connection Due to speed cap Jun 09 19:58:04 that sucks Jun 09 19:58:10 Otherwise all unlimited Jun 09 19:59:05 To get an estimate it takes me over 24hrs to her 300mb file Jun 09 19:59:11 Get* Jun 09 20:11:57 how to get started with SSL sockets on Android? It's hard to find good examples of how to approach this... Jun 09 20:12:15 sup devs Jun 09 20:12:47 hi o/ Jun 09 20:13:59 I'm setting up a development environment on Ubuntu...can I use OpenJDK, or should I use the proprietary JDK from oracle? Jun 09 20:15:07 this for running Eclipse? Jun 09 20:15:12 yes Jun 09 20:15:28 I use the Oracle version but OpenJDK should work too Jun 09 20:15:46 Motodev Studio for Android actually but it's based on eclipse Jun 09 20:15:48 kk, cool ty Jun 09 20:15:55 do a lot of developers use linux? Jun 09 20:16:39 the only reason I was thinking of openjdk, is because ubuntu software store will install it automatically and oracle has a small novel for linux installation lol Jun 09 20:18:37 quite a few devs use Linux, yes :) Jun 09 20:18:49 mixture of Windows and Linux mostly Jun 09 20:21:28 grr @ companies who write promotion-tied android apps but fail to ensure they have the infrastructure capable of handling demand Jun 09 20:35:10 promotion-tied android apps? Jun 09 20:37:40 kakazza, what do you mean?> Jun 09 20:45:05 How can I implement this Googleplus-style action bar in api 7+ apps? Jun 09 20:45:29 is it a custom hack or via compatibility pack? Jun 09 20:49:22 ironhalik: You know of this? http://actionbarsherlock.com/ Jun 09 20:49:39 ms.a Jun 09 20:49:48 everythingWorks: I wondered what a promotion-tied app is. Jun 09 20:50:18 where did you see this word? Jun 09 20:50:29 Right above mine. Jun 09 20:50:59 kakazza: Thanks a lot - looks perfect. Jun 09 20:52:10 Its writer is also in this channel. Jun 09 20:53:23 I just joined :/ Jun 09 20:53:29 Yeah, Ill need to get into that a bit - I'm trying to implement viewpager with tabs and actionbar Jun 09 20:54:05 everythingWorks: Ah, sorry. I disabled the display of Joins. Too much clutter in channels like this one. Jun 09 20:54:35 okay :) Jun 09 20:57:00 In the AndroidManifest.xml file, I have the following post the full manifest Jun 09 20:59:48 everythingWorks: http://dpaste.com/757019/ Jun 09 21:00:25 specifically line 12, I would expect to put "com.marakana.YambaApplication1" and not ".YambaApplication1" Jun 09 21:03:09 those paths are relative Jun 09 21:03:45 everythingWorks: so you are saying, starting with a dot it means relative? Jun 09 21:03:57 yes Jun 09 21:04:02 however your application tag needs no "name" Jun 09 21:04:05 just remove it, then Jun 09 21:05:34 everythingWorks: I think it does, because it crashes without it. It uses getApplication() to call a shared method. Jun 09 21:05:59 ah, in this case, it does, yep. Jun 09 21:06:05 Just make sure the 2 match :) Jun 09 21:06:50 problem is that when I put the fully qualified name instead of relative, it doesn't work i.e: android:name="com.marakana.YambaApplication1" Jun 09 21:07:15 I would just rebuild the whole thing, I think that's not really an error. Jun 09 21:07:57 a clean rebuild does the same thing Jun 09 21:08:09 hello, after I added market licensing, my app takes 5-6 secs. to start, what can I do? Jun 09 21:09:06 everythingWorks: I can't find any information on relative package imports in java. Is that a Java construct or Android? Jun 09 21:09:22 There isnt a contructor at all. Jun 09 21:09:30 but its android stuff. Jun 09 21:11:06 everythingWorks: I figured it out... it was the confusion of android relative imports and mistyping.... Jun 09 21:11:20 It always is... but in the heat of moment, you seem to never find it. Jun 09 21:11:30 okay. Jun 09 21:11:37 everythingWorks: thanks! :D Jun 09 21:32:48 sigh, what the flaming fuck. my phone rebooted overnight and came up in factory default settinsg... but I rebooted it again and now it seems to be normal again. Jun 09 21:34:53 i think i overheated it Jun 09 21:37:51 hello Jun 09 21:53:22 can anyone help me using adb over tcp? Jun 09 21:54:16 dogfood, I think that only works with rooted devices, but I may be wrong... Jun 09 21:54:54 I found instructions for non-rooted devices that work for some folks, but not for me: http://stuffandtech.blogspot.com/2012/03/android-quick-tip-adb-over-wifi.html and other places Jun 09 21:55:05 hmmm Jun 09 21:55:12 yeah - hmmm indeed, sigh Jun 09 21:56:34 why over tcp? I use usb simply because its quick/easy/loadsa info about it... Jun 09 21:58:16 I have two different places in my house I want to develop from, and I'd prefer to put my eclipse dev environment on the one that is a desktop, but be able to also develop from my laptop without plugging my phone into the desktop, if that makes sense Jun 09 21:59:03 pragma-: Huh, that's odd. But at least you didn't lose any of your stuff. Like a user I read about who tried to upload a movie clip to Youtube, which failed and managed to remove the clip from the phone in the process. Jun 09 21:59:19 ah - yes, i understand - i use remote desktop and work that way - Jun 09 22:10:41 for some reason my Android VM startsup in chinese (pinyin) as evident in the running services. How do I get it to run in English? Jun 09 22:15:03 gamingdroid, you may have to set the VM to english, just as a 1st guess Jun 09 22:15:26 TheFred: but how? In fact, I'm not sure why it would start up in Chinese in the first place. Jun 09 22:16:48 anyone see the linaro stuff? Jun 09 22:17:01 The same as you would on a real device: Settings:Language... Jun 09 22:17:19 canadiancow, whats that? Jun 09 22:17:40 http://www.androidpolice.com/2012/06/09/linaro-android-nearly-doubles-ics-performance-and-now-parts-of-it-are-being-added-to-cm9/ Jun 09 22:17:53 hey, guys! Jun 09 22:20:02 canadiancow, that's very impressive! I wonder what they did that the stock software dev's missed? perhaps its simply having fresh eyes/more time... Jun 09 22:20:12 if you watch the video, they tell you... Jun 09 22:20:47 I've bloked flash because I'm low on internet allowance tonight Jun 09 22:20:57 it looks like it will make it into CM9 Jun 09 22:21:02 and from there who knows... Jun 09 22:21:05 maybe back to AOSP/ Jun 09 22:21:15 thats great news Jun 09 22:23:15 can anyone suggest why i may be getting this errror in eclipse? "home cannot be resolved or is not a field". i made an explicit reference to android.R.id.home Jun 09 22:24:01 so...what does that tell you Jun 09 22:24:26 i can make a reference to com.canadiancow.josheee12, and i'll get the same error Jun 09 22:25:56 obviously that it can't be resolved, but i've made reference to android.R.id.home in the past, and i've never gotten this error. i do import com.myclass.R in this class. any suggestions? Jun 09 22:29:15 the offending code: http://pastebin.com/p1zLuKFt Jun 09 22:31:51 josheee12: android.R is the system's R. You really want that? Jun 09 22:31:54 whats your build target Jun 09 22:31:58 alankila: he does Jun 09 22:32:04 it's strange you talk abotu importing your own R simultaneously. That doesn't matter for fully qualified names. Jun 09 22:32:07 i know what he's doing, and it should work Jun 09 22:32:13 okay. Jun 09 22:32:24 but my guess is the build target isnt set high enough Jun 09 22:32:24 target sdk is 15 Jun 09 22:32:35 like not in your manifest...the actual build target Jun 09 22:32:57 in project.properties? Jun 09 22:33:05 yes Jun 09 22:33:24 4, but i'm using the compatibility library Jun 09 22:33:36 anyone have experience to connect android app to nusoap webservice? Jun 09 22:33:53 ok so that's your problem Jun 09 22:33:57 android.R.id.home does not exist in api 4 Jun 09 22:34:01 alright, i get why Jun 09 22:34:03 thank you Jun 09 22:34:04 about that: If is spec sdk of 7, can newer devices (eg with ICS) run it ok? Jun 09 22:34:06 very much Jun 09 22:34:12 TheFred: yes Jun 09 22:34:21 but if your manifest's targetSdkVersion is less than 14, i will get annoyed Jun 09 22:34:21 thanks, canadiancow Jun 09 22:34:38 what do you mean annoyed? Jun 09 22:34:56 i will come here and bitch at you for making a shitty app :) Jun 09 22:35:22 Use a long pole to open your letterbox. Jun 09 22:35:28 among other things, it shows the fake menu button Jun 09 22:35:32 which annoys me Jun 09 22:35:35 do you mean it fail at install, and then you hunt me down for a reprepmand? Jun 09 22:35:56 Gumboot, Lol Jun 09 22:37:32 Given that my new shiny device has 2.2 sdk, and thats all i have for the moment, how do i go about not 'annoying' devices with a hight sdk? Jun 09 22:52:55 If I want to move the camera at higher speed if the player drags faster, can I just check the difference between each touch event? Jun 09 22:55:42 * Gumboot wonders why linaro would do android and not ubuntu images for i.mx6, when that platform is the one most likely to be useful as a general-purpose computing and networking rather than mobile. Jun 09 23:01:11 Kake_Fisk, yes, but you'll need the current frames per second Jun 09 23:01:28 oh :| Jun 09 23:02:13 Its covered somewhere as an accelerometer tutorial for making a ball roll around the screen... i ont recall the URL Jun 09 23:04:03 Okay, I'll look out for it. Thanks Jun 09 23:23:23 I noticed there is some standard images in "drawable" folder that isn't there. I'm assuming it is something android by default adds. How can I find out what all of those are? Jun 09 23:26:23 gamingdroid: they are not in your app's drawable directory; they are built-in as part of android's framework Jun 09 23:26:28 gamingdroid: http://developer.android.com/reference/android/R.drawable.html Jun 09 23:27:10 you can find them in the source Jun 09 23:28:26 Pragma: I'm assuming they are attached to (or included in) the drawable folder at compile time? Jun 09 23:28:32 *they meaning the images Jun 09 23:28:37 no Jun 09 23:29:33 So how can I say 'android:icon="@android:drawable/ic_media_pause"' and have android include the icon? Jun 09 23:29:53 How do you set up a widget without a "configure" activity that pops up before the widget shows? Do you just have to create a configure activity that sets your onclick listeners then just finish it without showing anything? Jun 09 23:30:37 All the widget tutorials I can find set a onclick listener to a button on the widget that opens up a pendingintent. I just want it to exicute some code Jun 09 23:30:39 gamingdroid: by "saying" that. Jun 09 23:31:19 Pragma: I mean what happens in the background for it to load that icon? Jun 09 23:32:05 android takes the resource identifier and loads its corresponding image. Jun 09 23:35:35 I guess there is some sort of mapping, I found the dir that the file was located inside the android-sdk folder. Jun 09 23:35:45 Thanks! :D Jun 09 23:39:37 What is the res file name for tablets? like xhdp? Jun 09 23:39:51 And also what is a good resolution to make your images for tablets? Jun 09 23:42:49 that guy is annoying Jun 09 23:43:10 more annoying than I am Jun 09 23:43:36 I440r: you're annoying too Jun 09 23:43:50 glad to be of service Jun 09 23:44:27 why does master = RandomAccessFile(dbHelper.DB_PATH + "master", "r"); give me an error for method RandomAccessFile(java.lang.String,java.lang.String) ? Jun 09 23:44:51 the file is not a database but its going into the same path sans databases/ of course Jun 09 23:44:54 because what the error says. Jun 09 23:45:01 did you read the error? Jun 09 23:45:05 RandomAccessFile(String fileName, String mode) Jun 09 23:45:11 the methoid exists Jun 09 23:45:15 according to google Jun 09 23:45:28 have you imported it? Jun 09 23:45:37 are you referencing the correct RandomAccessFile Jun 09 23:45:50 do you have the same versions as 'google'? Jun 09 23:45:53 what do you mean"the correct random access file" Jun 09 23:46:08 im building for "Android-15" Jun 09 23:46:34 wtf is android-15 Jun 09 23:46:39 Since: API Level 1 Jun 09 23:46:50 what is the error? Jun 09 23:47:07 cannot find symbol Jun 09 23:47:16 oh, I was confusing android-15 with something else. Jun 09 23:47:57 and that's not a method. Jun 09 23:48:23 I440r: no, the whole error Jun 09 23:48:31 and the whole line of code Jun 09 23:49:00 i guess i was missing a "new" Jun 09 23:49:06 :[ Jun 09 23:49:22 you're annoying. Jun 09 23:49:34 true story, im trying to emulate you Jun 09 23:49:40 ^ Jun 09 23:49:43 im not quite there yet! Jun 09 23:49:57 my level of insanity is unattainable by mere peons Jun 09 23:51:14 but im a MASTER peon so Jun 09 23:51:33 you're a master at baiting Jun 09 23:55:05 again. just trying to emulate you Jun 09 23:55:32 you need better role models, son. Jun 10 01:05:58 ok so why cant intelij idea work with a project created from command line dammit. i want to be debugging code visually with something other than printf;s! Jun 10 01:15:32 so learn how to use a java debugger Jun 10 01:15:36 you don't need an ide. Jun 10 01:15:47 whack-ass donkey. Jun 10 01:16:03 I440r: ... just import module from existing source and add android facet Jun 10 01:18:05 personally, i find detailed Log.d() messages to be far more efficient than stepping through code in a debugger Jun 10 01:18:17 in terms of time and of energy Jun 10 01:18:39 especially since the devs of jdb have clearly never used gdb Jun 10 01:18:59 you have to actually type out 'next' or 'step' fully Jun 10 01:19:52 and something as simple as "enter to repeat last command" is totally beyond their meager grasp Jun 10 01:21:00 jdb? Jun 10 01:21:02 ! Jun 10 01:21:06 do i have jdb? Jun 10 01:21:15 wtf!!!!!!!!! Jun 10 01:21:21 plus I can leave the Log.d() messages in the code and wrap it around a preference that lets users toggle it, so I can ask them for a log if they're using some whack-ass donkey device Jun 10 01:21:28 jdb comes with the jdk Jun 10 01:21:45 and you can debug dalvik with jdb? Jun 10 01:22:03 fuck if I know, google for debugging dalvik Jun 10 01:22:53 fuck. you use gdb. Jun 10 01:22:59 that puts an end to THAT idea Jun 10 01:23:00 no Jun 10 01:23:01 fucking Jun 10 01:23:02 way Jun 10 01:23:53 i cannot even begin to state how much i TOTALLY FUCKING LOATHE gnu development tools Jun 10 01:23:55 gdb is excellent, you donkey. Jun 10 01:24:36 you're probably thinking of something retarded like xgdb or dddd or some donkey-ass GUI wrapper Jun 10 01:25:12 no. all of the above Jun 10 01:25:42 gdb ddd, xgdb, and one other i cant remember the name of Jun 10 01:26:10 if you have to lift your hands off your keyboard to reach over to the mouse, you're using the wrong software. Jun 10 01:26:19 guys... chill out Jun 10 01:26:20 gdb wont show me the stack. it will only show me the stack frame. well. there is NO fucking stack frame so just show me what the fuck is on the stack dammit. no, i dont see any stack frames being created, no stack for you Jun 10 01:26:36 pragma i hate debugging with the mouse too Jun 10 01:27:01 I440r: info locals shows you the local variables on the stack Jun 10 01:27:04 leeds im not stressing lol.. tho it might seem like i am :) Jun 10 01:27:06 info stack shows you about the stack Jun 10 01:27:08 what locals Jun 10 01:27:10 there are NO locals Jun 10 01:27:12 bt shows you the stacktrace Jun 10 01:27:16 info vars shows you the vars Jun 10 01:27:16 just stuff ive pushed onto the stack Jun 10 01:27:20 no vars Jun 10 01:27:33 so learn how to use gdb instead of whining about it! Jun 10 01:27:49 the code i was trying to debug was not created with any gnu toolchain so has no gnu debug info Jun 10 01:28:03 if there's no debug symbols, that's not gdb's problem Jun 10 01:28:07 and it does not use the stack for "local variables" because there are no local variables Jun 10 01:28:39 i dont need the symbols, all i needed was to be able to see what was at the top 3 or 4 items of the stack but gdb will not display any non stack frame info Jun 10 01:28:50 if a stack frame is not created it wont show stack contents Jun 10 02:05:21 how to create a generic listener button? Jun 10 02:05:43 somebody help me? Jun 10 02:06:17 there are plenty of tutorials on the net about that... did you do any work or research before coming here? Jun 10 02:06:28 thats a rhetorical question by the way because we all know you didn't Jun 10 02:09:38 QubeZ: i googled, but i cannot make this :/ Jun 10 02:10:32 QubeZ: I wasnt in need of help, would not be asking Jun 10 02:12:05 QubeZ: if that's easier for u, could u help me? Jun 10 02:29:42 android-dev is a ghetto Jun 10 02:32:33 is it possible to measure how much amps are being drained over a time period? Jun 10 02:33:07 for the whole device Jun 10 02:34:28 there is battery use breakdown feature Jun 10 02:34:41 but it's not concrete enough Jun 10 02:37:51 # dumpsys batteryinfo | grep -o 'volt=[^ ]*' Jun 10 02:38:50 oh boy Jun 10 02:38:54 thanks Jun 10 02:39:00 enjoy Jun 10 02:39:05 that's for android dev console? Jun 10 02:39:19 i'm new to this Jun 10 02:39:32 thats in the shell. Jun 10 02:39:42 it's a hack. you're going to have to figure out where it will actually work and then indicate that. Jun 10 02:39:48 it's not supported by the apis. Jun 10 02:40:15 well, it might be. i didn't exactly look. Jun 10 02:40:55 ok, i need ti measure wattage for 1 hour phone call Jun 10 02:41:19 so i could just do it from the shell, make a call, then hang up and dumpsys again? Jun 10 02:41:35 probably need to read up on android development, lol Jun 10 02:43:09 you could just get battery monitor widget Jun 10 02:43:34 that's "battery monitor widget" aka "bmw", not "some battery monitor widget" or "a battery monitor widget" Jun 10 02:48:34 um it only gives volts. hm Jun 10 02:48:42 i guess you can calculate that given other info Jun 10 02:50:45 bmw gives you volts, mah, temp, etc Jun 10 02:51:36 sweet **** ENDING LOGGING AT Sun Jun 10 03:00:02 2012