**** BEGIN LOGGING AT Mon Jan 14 02:59:59 2013 Jan 14 03:13:07 Maurits_: Thanks for the NDK tip - seems to have worked out in reducing variability. Jan 14 03:16:41 Maurits_: Still don't know what's causing it though - some say it's scheduling -> http://stackoverflow.com/questions/14299288/what-causes-the-periodic-performance-spikes-that-are-seen-when-doing-computation Jan 14 03:19:52 http://pastebin.com/19eVgXah Jan 14 03:19:58 hello guys Jan 14 03:20:23 why does this if(((Checkable) view).isChecked()){ view.setBackgroundColor(Color.CYAN) .. Jan 14 03:20:38 changes the color at wrong Jan 14 03:20:42 view? Jan 14 03:25:16 Hello, is there a way to run a program in the background that is called by other programs including the native apps such as calendar, mail..., I need to implement a TTS (Text To Speech), so when you select a text from any other app, and you click a context menu item or whatever, this text is delivered as a background process to my app, then my app plays the audio in the background. I don't Jan 14 03:25:16 know if it is even possible to implement it, that's what I'm asking. Thank you so much in advanced. Jan 14 03:30:57 Aquaguy, you can run a Service in the background Jan 14 03:32:31 Ologn one more question, I'm a iOS / OSX developer so I don't know much about android development, I'm just starting. Is it possible to add custom contextual menu items in native applications? Jan 14 03:38:13 native ? java or c Jan 14 03:43:08 It's a TTS so I need to add a contextual menu item to every other app. It's a text to speech service for a specific language, it's intended for deaf/mute people, so what i need to do is when the user selects a text and opens a contextual/options menu, place an item there to play the selected text through the speakers. Jan 14 03:49:17 Aquaguy: the way to do that on Android would be to make your app/service accept text being shared to it Jan 14 03:50:19 or just to use the clipboard... Jan 14 03:57:22 Alright, thank you Jan 14 04:00:04 oi oi oi Jan 14 04:00:23 oiiiiiii Jan 14 04:00:33 hello, i'd like to ask if some of you knows a way to read a plist file in tablelayoutview Jan 14 04:00:42 wrong chan? Jan 14 04:34:55 If I have a British English localization for my app in values-en-rUK and I run it on a device with US English locale. Will it fall back to en-rUK? Jan 14 04:35:02 Or to the default localization? Jan 14 04:36:16 Unless you specifically mention the locale, it'll use default locale. Jan 14 04:45:57 hey Jan 14 04:46:03 got a question Jan 14 04:46:08 What's the best way Jan 14 04:46:16 to add a link Jan 14 04:46:24 Hmm, so it won't see that there's another -en locale, just UK? Jan 14 04:46:25 which opens in the android browser Jan 14 04:47:20 Uri uri = Uri.parse("http://www.example.com/"); Jan 14 04:47:20 Intent intent = new Intent(Intent.ACTION_VIEW, uri); Jan 14 04:47:20 startActivity(intent); Jan 14 04:47:28 kakazza: you can it in values-en and it will be used for any English Jan 14 04:48:50 on second thoughts thats fine Jan 14 04:49:37 So I provide one base English translation and the few that need different translations I'll put in en-rUK. Jan 14 04:50:00 kakazza: yes, that works. though you might want the default to be english. i don't know what your native language is, but let's say you're spanish and you translate to English, Spanish and Korean. if someone in China installs the app, they're most likely better off with seeing English than Spanish. Jan 14 04:50:52 Yeah, of course English is my default. :) Jan 14 04:51:17 Just wondering, because there's different kinds of Spanish, Portoguese etc Jan 14 04:51:30 ah, got it Jan 14 04:52:09 hi is there a channel about developing android? Jan 14 04:52:23 instead of developing android application development Jan 14 04:52:29 instead of android application development* Jan 14 04:52:48 #android-root supposedly Jan 14 04:52:55 thanks Jan 14 04:53:02 ask intelligent questions here and I may be able to help Jan 14 04:53:04 sheldor: in theory yes, in practice no - there isn't enough platform chat to sustain interactive chat... the google groups are the appropriate place Jan 14 04:53:32 thanks Jan 14 04:53:39 can you explain the differences between the android driver model and the linux driver model seeing that android is linux based? Jan 14 04:53:56 more specifically, is it possible to use android drivers on plain linux somehow? Jan 14 04:54:08 please don't double-post like that Jan 14 04:54:25 hey you did it too! :D Jan 14 04:54:31 never! Jan 14 04:54:37 android sits on top of linux Jan 14 04:54:44 it requires driver capabiltiies to be in place Jan 14 04:55:04 eg, switches or sensors have linux kernel driver Jan 14 04:55:16 then android has input framworks that take advantage of that Jan 14 04:55:25 i want to make the mk802 gpu/vpu work with linux Jan 14 04:55:39 and there are only android drivers for it Jan 14 04:57:12 ron_frown: wouldnt the gpu/vpu be a kernel thing? Jan 14 04:57:37 i am talking about the allwinner A10 more specifically Jan 14 04:57:42 in android the way gpu stuff GENERALLY works Jan 14 04:57:46 the chip inside the mk802 Jan 14 04:57:55 they have a kernel stub, and closed soruce binaries for the GPU drivers Jan 14 04:57:58 ? Jan 14 04:58:05 at least the mali and powervr chipsets Jan 14 04:58:16 ron_frown: allwinner released (closed source) drivers for android which work Jan 14 04:58:27 eg, if its compiled specifically for arm linux, that binary isnt going to do much good anywhere else Jan 14 04:58:30 i dont care whether its open or closed i just want to get the hardware working on a plain linux install Jan 14 04:58:40 somebody said the driver models might be too different Jan 14 04:59:03 which i didnt quite understood because i figured the gpu driver is kernel level and android is based on the linux kernel Jan 14 04:59:21 ron_frown: i am talking about arm linux Jan 14 04:59:31 ron_frown: Allwinner A10 Jan 14 05:00:18 ron_frown: is there a working linux driver for the mali 400? Jan 14 05:00:25 hello, i'd like to ask if some of you knows a way to read a image plist file in tablelayout for me to create a shop menu in a game i'm working on Jan 14 05:00:30 i doubt it, because there is reverse engineering project for that Jan 14 05:00:51 is a* Jan 14 05:01:21 jerick: image plist? Jan 14 05:01:50 you can just read a regular plist as an xml using xmlpull or something Jan 14 05:02:34 yes Jan 14 05:03:24 you mean an image stored in a plist? Jan 14 05:03:29 yes Jan 14 05:03:44 although i read some things about those parsers Jan 14 05:04:19 yet i still cannot find some answers on what to do with image plists Jan 14 05:05:00 but … why feed this to an android app ? Jan 14 05:05:44 something more sane would be to find a mutually friendly representation for ios and android Jan 14 05:05:50 well I'm working on a android game app that has a shop menu which contains the images of the products to purchase Jan 14 05:06:39 although iOS contains uitableviews, uiviews, etc. Jan 14 05:07:09 on the uitableviews issue, the only thing close to it in android is the use of tablelayout Jan 14 05:07:27 or there is something yet i do not know of off it Jan 14 05:08:40 if they are static, i would just store the images in res/ somewhere Jan 14 05:09:16 you might need different sizes for different configurations Jan 14 05:09:24 i kinda thought about that but I'm using image plist because the images that i am to use are stored in spritesheet Jan 14 05:09:36 by the way I'm using cocos2d framework... Jan 14 05:10:21 you mean this spritesheet ? http://spritesheetpacker.codeplex.com/ Jan 14 05:10:29 (or something like that) ? Jan 14 05:10:42 well, anyhow, you would need a different spritesheet for each density :D Jan 14 05:10:56 you're trying to do ios in android Jan 14 05:14:09 yeah something like that, actually those are what's mostly inside of their image plist Jan 14 05:14:54 and well not exactly, but i am porting a game from iOS.. well you can also say that I'm trying to do that Jan 14 05:15:41 i always shudder when i hear people talk about 'porting' things from iOS >_< Jan 14 05:22:06 Using simple a simple Canvas, no bitmaps, just primitives, for a pong clone in Android is too slow? Jan 14 05:26:32 well i just want to access my images through the table layout menu that i'm struggling in order for the user to purchase them in the game Jan 14 05:28:29 Someoneigna - IIRC, if it's in the same thread as the UI then it's sharing it with everything else in that thread so yeah Jan 14 05:28:46 However: If it's in it's own thread, then it should be okay. Jan 14 05:28:58 (ie - you have your own thread for rendering stuff0 Jan 14 05:29:00 ) Jan 14 05:29:15 ron_frown: are you doing android dev on a mac ? Jan 14 05:29:57 Are static methods and data fast to use? Jan 14 05:30:20 And can I use them to "emulate" procedural programming? Jan 14 05:30:35 i.e. - global variables and functions? Jan 14 05:30:59 ... and the channel goes silent. Jan 14 05:34:55 seems like google still recommends using jdk 6 on mac Jan 14 05:36:39 how long b4 eclipse 4.3 in adt ? Jan 14 05:36:55 I want my ui editor back to normal Jan 14 05:37:02 i'm still using 3.8 :) Jan 14 05:38:14 not thought of the 4.3 nightlies ? Jan 14 05:38:24 I'm seriously thinking that way Jan 14 05:42:01 well i guess i try most of the things you responded to me,,, Jan 14 05:42:15 thanks people especially g00s.. :) Jan 14 05:46:06 Can anyone explain that? Jan 14 06:19:52 eplxain what Jan 14 06:33:50 Da_Rhyno Are static methods and data fast to use? Jan 14 06:33:52 Da_Rhyno And can I use them to "emulate" procedural programming? Jan 14 06:33:54 Da_Rhyno i.e. - global variables and functions? Jan 14 06:37:16 Sorry, I posted that a while back Jan 14 06:51:13 Da_Rhyno: it is possible, but it doesn't sound like a good idea. the speed gain would be minuscule at best and the setup would be awkward Jan 14 06:51:34 Ah, okay. Thanks. Jan 14 07:16:35 i would like to ask about accessing an android xml table layout through the use of a java class with the help of cocos2d for android Jan 14 07:16:50 I'm developing an android game you see, and this part is quite essential for it for me to create its in-game store Jan 14 07:37:49 good morning Jan 14 07:42:44 anyone able to provide me with a sample code of OpenMAX decoding a video? any video.... Jan 14 07:43:12 any format as long as we're deocoding frame-by-frame will do... Jan 14 07:59:22 I am getting this error: http://pastie.org/5681759 this is causing line number 74 as it is trying to count rows from a non existant db. Can I use a try catch block to catch th exception and create the db in the catch block, so that I can loose the forceclose issue? Jan 14 07:59:55 I'm not going to help you, cause you're in bed with Derrida Jan 14 08:04:26 wow is this android-dev soap opera drama? Jan 14 08:04:42 hahah nah I was just kidding Jan 14 08:05:10 but anyway, if anyone knows OpenMAX I have a couple of really REALLY quick questions Jan 14 08:05:15 obscurant1st: as the error message says, you are querying the mfacts table but that table does not exist Jan 14 08:05:18 it would help a ton if answered Jan 14 08:05:29 anyone have a nexus 10 ? Jan 14 08:05:53 if so is the max surface/texture bitmap size still only 2048x2048 ? Jan 14 08:06:01 barque: sorry, don't know OpenMAX. you might have better luck asking midday american time as this channel has more traffic at that hour then these hours Jan 14 08:06:03 I wish, they havent even started selling them here yet :'( Jan 14 08:06:24 did i hear soap opera drama? Jan 14 08:06:49 obscurant1st: without even looking at your code - I assume you're using a DB helper, so why not create the table there? Jan 14 08:06:57 and if you're not using a DB helper... why not? Jan 14 08:07:26 kevin I know that. and I have the create db method too. the issue is how do I check if the db exists and create it if it doesn't I can create it. Jan 14 08:07:37 Leeds, I am using dbhelper! :) Jan 14 08:07:51 pastebin of your dbhelper obscurant1st Jan 14 08:08:18 Hmm I think I've gotten a good idea of what to do... Jan 14 08:08:21 let's hope I'm right Jan 14 08:08:36 OpenMAX is extremly powerful yet extremely underdocumented Jan 14 08:08:44 obscurant1st: point is, by the time you're using the DB, you should *know* that the tables you need are there Jan 14 08:08:50 it is literally the holy grail of Android 2+ video decoding Jan 14 08:08:59 you get it right, you get it all Jan 14 08:09:11 barque: manual video decoding is also pretty niche Jan 14 08:09:22 Leeds, I need it for my job Jan 14 08:09:30 you do, almost nobody else does Jan 14 08:09:35 I'm an android developer at a video game design studio Jan 14 08:09:44 casual studio mind you Jan 14 08:09:47 If the db is not yet created I am copying the db from the apk. I have th *.db file. And fyyi everything works fine. The app is released in the play store. Sometime when people update, this weird error comes and force closes its Jan 14 08:09:50 so tablets are HUGE here Jan 14 08:10:03 you know tablets, you get paid Jan 14 08:10:13 prob in your @onupdate Jan 14 08:10:26 basically I'm porting over an engine from iPad Jan 14 08:10:31 so gotta get similar performance Jan 14 08:10:34 video, audio ,etc. Jan 14 08:10:42 right now for audio I'm using OpenSLES Jan 14 08:10:51 I'm quite elated to find OpenMAX very similar in structure Jan 14 08:11:29 Leeds, the problem is, I don't want the updated stuffs to go when the db is copied which will happen if the db file from apk gets copied over. Jan 14 08:11:39 obscurant1st: why not? Jan 14 08:12:44 Leeds this app is cool facts app. Everytime when the internet connection becomes available the app updates the db from the db in my webserver(provided I update that db from webserver which I do often). Jan 14 08:13:46 and? Jan 14 08:13:57 So what I need is, I need to call the createdb() where I do the copyin go .db file when this line throws an error: numberOfRows = String.valueOf(mDb.countRowsInDb()); Jan 14 08:14:18 copying* the .db file* Jan 14 08:16:41 nope, I still don't understand why Jan 14 08:17:45 Leeds please tell me what you're not understanding. Jan 14 08:17:56 the direct answer to your question is try { that line } catch (SQLiteException ex) { createdb(); }. however I agree with Leeds that you should already know if you've created the db before or not. The DB Helper's onCreate will be called when you need to create it, and onUpgrade will be called when you need to upgrade it. Just updating the app won't call either unless you changed the database version in the update. Jan 14 08:19:23 Kevinb I know whether db is created or not. The problem occurs when the people update the app from play store! Jan 14 08:19:41 you know about onUpdate, right? Jan 14 08:19:47 er, onUpgrade Jan 14 08:20:22 Leeds, nope. So I think I should learn that. Jan 14 08:21:06 ah... in which case, the issue comes down to you not actually using the db helper properly :) Jan 14 08:24:14 the short summary: you give your database format a version number... whenever you change the format, you increase the version number... when the helper is used to open a db with a lower-than-current number, onUpgrade will be called to allow you to update the old database format to the new one Jan 14 08:25:09 which means that the rest of your code can always assume that the database matches the most recent format - your helper is the only thing which needs to know how to update from older format Jan 14 08:25:23 obscurant1st: does that make sense? Jan 14 08:25:41 ok thanks. now I will try Jan 14 08:26:03 that's what i was trying to say -_-' no thank yous for me? Jan 14 08:26:07 aaaw okay :'c Jan 14 08:28:14 there's an onDowngrade if you're really good at planning ahead ;) Jan 14 08:28:34 Ok thats you *.* Jan 14 08:28:39 thanks* Jan 14 08:28:46 thanks to* Jan 14 08:29:06 *.*? what is this, DOS? ;) Jan 14 08:29:38 or stars in eyes Jan 14 08:29:49 also, *.* is older than DOS Jan 14 08:30:07 Leeds but as I said all the updates would be lost in each upgrade right> Jan 14 08:30:09 ? Jan 14 08:30:32 no, of course not Jan 14 08:30:42 you're not running onCreate every time Jan 14 08:32:29 err. I had given this http://pastie.org/5681839 in onUpgrade() So thats the problem then! :( Jan 14 08:32:54 on each upgrade I am deleting the tables from the db. Jan 14 08:33:19 Obviously I hadn't noticed/learned what the onupgrade does! :| Jan 14 08:33:55 oh... yeah, don't do that Jan 14 08:34:27 that's sort of the whole entire point of onupgrade :) Jan 14 08:35:13 So deleting that line would fix the issue what I am facing right? Jan 14 08:35:28 I mean people doesn't have the table once the update comes! :( Jan 14 08:35:40 learning how to use a db helper will solve your immediate problem Jan 14 08:36:14 my english is obviously terrible today! hangover is a **** Jan 14 08:36:19 Ok thanks Leeds. Jan 14 08:37:26 One more questing leeds. this onCreate() won't work on updates of the app right? Jan 14 08:37:38 onCreate is called if the database doesn't exist Jan 14 08:37:43 won't work in the sense of won't execute? Jan 14 08:37:57 oh ok. Jan 14 08:38:45 in order: Jan 14 08:38:51 if the database doesn't exist, onCreate is called Jan 14 08:39:12 if the database exists but is a lower version than current, onUpgrade is called Jan 14 08:39:18 then onOpen is called Jan 14 08:42:37 http://developer.android.com/training/basics/data-storage/databases.html Jan 14 08:46:11 Thanks a lot leeds! Jan 14 08:46:34 and I think we're done explaining database helpers for today :) Jan 14 08:50:52 anybody has an opensource project that needs help? i'm bored -_-' Jan 14 08:51:41 chups: android is open source. you can start patching bugs :)\ Jan 14 08:52:00 that's a bit too high for me lol Jan 14 08:52:01 so is #cyanogenmod Jan 14 08:52:02 x.x Jan 14 08:52:05 or aokp Jan 14 08:52:14 heaps of projects Jan 14 08:52:23 dafuq? imma shut up now x.x haha Jan 14 08:52:50 chups: take small bits, learn from that Jan 14 08:53:03 yeah, thanks p_l! Jan 14 08:53:15 how to pass arguments to onClick method? Jan 14 08:53:56 I have a listView with buttons, so I want buttons behave differently Jan 14 08:54:57 you can assign an onClick on each button on the custom layout Jan 14 08:55:06 it's a bit dirty though :/ Jan 14 08:56:16 something like taking the button from ViewInflater inside your adapter, then assigning your onClickListener there.. Jan 14 08:56:25 I'm putting id to button.ContentDescription Jan 14 08:56:39 which I then receive inside onClick method Jan 14 08:57:03 onClick(View view) { long id = view.getContentDescription } Jan 14 08:59:01 <[AEG1S]> back Jan 14 08:59:04 <[AEG1S]> back Jan 14 08:59:33 salut Jan 14 09:00:38 does it work? haven't tried that method before.. Jan 14 09:00:40 alright guys, i need some guidance on how to use delta-time for setting the FPS for my live wallpaper Jan 14 09:01:34 i have a sneaky suspicion; the one 2nd from left is not like the others http://imgur.com/r/WTF/66cCX Jan 14 09:01:52 Hi guys.. Anyone uses phonegap? Using the simulator, I cannot make the deviceready event fires. Maybe a setup error? Jan 14 09:02:11 lol g00s Jan 14 09:02:24 i think the one in the front, middle is the odd one out Jan 14 09:02:43 :) Jan 14 09:11:29 I've used phonegap, all I can say is, don't use phonegap Jan 14 09:11:39 phonegap is miles away from anything useful Jan 14 09:11:59 judging by its handling of timers, camera, Canvas... pretty much everything Jan 14 09:12:54 barque: Do you want to suggest any alternative? Jan 14 09:13:12 Not really, code native for now Jan 14 09:13:19 barque: And any reason why you think phonegap is not useful? Jan 14 09:13:22 I've heard of this thing appcelerator Jan 14 09:13:28 but it's commercial? Jan 14 09:13:32 not sure how useful it is Jan 14 09:13:50 I've already told you the reasons summarilly above. Do you want an elaboration? Jan 14 09:13:53 I think appcelerator is a commercialised version of an open source thing, isn't it? Jan 14 09:13:57 anyway, don't use them Jan 14 09:14:11 Timers: Pile of crap handling of timers, god awful Jan 14 09:14:54 Canvas: horrid RGB565 output with pathetic rendering speed. The browser on the device will outperform a WebKit context on phonegap like a kid taking a beating from a UFC champion Jan 14 09:15:26 Camera: Horrible quality, slow Jan 14 09:15:50 WebKit or* phonegap context Jan 14 09:16:10 not to mention it'll even look better Jan 14 09:16:28 I mean I've taken a liking to the idea... but at the moment, it is not anywhere near production ready Jan 14 09:17:10 i think in the far future, html5 will win out for many kinds of apps; but for now … if you want the best UX its a native app. the data I saw from NN/g is that the task success rate for native apps was much higher than mobile web … for now Jan 14 09:17:35 g00s, I tinkered with it hands-on Jan 14 09:17:40 it's a pathetic joke atm Jan 14 09:17:44 again, I like the idea Jan 14 09:17:47 don't get me wrong Jan 14 09:17:55 but it needs a loooooot of time to mature Jan 14 09:18:16 and a loooooot of extra horse power to do what you can easily do natively with Java or C++ (JNI/NDK) Jan 14 09:18:34 in fact coding in C++ will probably help you a lot more Jan 14 09:18:49 given that all you'd have to do is wrap your media modules (video, audio etc.) Jan 14 09:18:57 given that Objective C will support your C++ code Jan 14 09:19:27 and NDK will just as well support your C++ code Jan 14 09:19:54 it's a matter of wrapping around OpenMAX/OpenSLES and whatever is available on iPads/Pods Jan 14 09:19:59 OpenAL and .... Jan 14 09:20:17 CA something or other Jan 14 09:26:16 if someone here is a OpenMAX wizard please say something Jan 14 09:26:23 I have a tiny quick question regarding OpenMAX Jan 14 09:27:52 HTML5 is... wrong. Especially on mobiles Jan 14 09:28:08 HTML5 is awesome... you've gotta be kidding me Jan 14 09:28:14 fine if you're supporting website to display right Jan 14 09:28:16 Just not on WebKit or phonegap for the time being Jan 14 09:28:33 But try Canvas/Javascript on chrome on Android Jan 14 09:28:42 just... don't think it will work in place of native app for anything other than "interface to existing webpage" Jan 14 09:28:45 Damn thing is so sexy you wanna divorce your wife and marry it Jan 14 09:29:02 I would NOT replace it with native apps at the moment Jan 14 09:29:04 no way Jan 14 09:29:23 again, the idea is fantastic Jan 14 09:29:29 http://www.fiercedeveloper.com/story/mobile-networking-where-html5-falls-short/2013-01-11 Jan 14 09:29:34 but the execution atm is **** poor Jan 14 09:30:02 barque: it also has no spec, fits like fist fits the nose with the rest of the mobile experience, etc. etc. Jan 14 09:30:03 As soon as phonegap starts doing hardware accelerated html5 contexts Jan 14 09:30:08 with decent camera support Jan 14 09:30:23 p_l, oh yeah I'm well aware of that Jan 14 09:30:24 plus Jan 14 09:30:25 and that's ignoring the usual horrible code in HTML5 apps (I had seen better stuff, though) Jan 14 09:30:30 half-assed implementation everywhere you look Jan 14 09:30:35 but Jan 14 09:30:42 throwing out most of the garbage Jan 14 09:31:14 you'll see a very nice pattern: h264, Canvas, Javascript, css3, camera, audio in/out Jan 14 09:31:23 hell even throw out css3 Jan 14 09:31:32 along with the new native drag and drop stuff Jan 14 09:31:34 and HTML tags Jan 14 09:31:48 just Javascript + Canvas/WebGL makes this a keeper Jan 14 09:32:07 just the notion that hopefully all browsers will support (at the same time) the subset given above Jan 14 09:32:19 barque: h264 is already known to be not supported by half Jan 14 09:32:23 with no plans Jan 14 09:32:37 yeah see Jan 14 09:32:42 that's the part of it I hate Jan 14 09:32:46 but I'm still holding out hope Jan 14 09:32:48 maybe naively Jan 14 09:32:51 barque: and it's prelude for future :P Jan 14 09:32:53 but what's a man to do these days Jan 14 09:33:03 yeah well, more like a prelude for a repeated past Jan 14 09:33:07 but I'm still holding out hope Jan 14 09:33:20 hoping that the tech giants -- just this once -- won't fuck this up for the rest of us Jan 14 09:33:24 it's a world where MS has legitimate claims about webkit-lockin Jan 14 09:33:32 sitting in board rooms trying to cut us all up for their pockets Jan 14 09:33:32 you're too late Jan 14 09:34:21 I hope this once... just this once, we'll avoid another IE6 Jan 14 09:34:25 please god please Jan 14 09:34:28 let this happen Jan 14 09:34:39 seriously, the coders of the world need to set up a union Jan 14 09:34:49 interesting, a book coming out on android & processing Jan 14 09:34:49 barque: Better, we have 5 different IE6, and two of them have the same name! Jan 14 09:34:50 http://shop.oreilly.com/product/9781937785062.do Jan 14 09:34:53 and start striking whenever they're asked to write shitty propietary APIs Jan 14 09:35:27 instead of open standards that can communicate with eachother Jan 14 09:35:44 bleh I have work in 4 hours Jan 14 09:35:46 I need sleep Jan 14 09:35:55 you folks have a wonderful night Jan 14 09:35:58 gnight Jan 14 09:36:28 i thought processing would be really slow on android Jan 14 09:42:26 Anyone awake? Jan 14 09:42:31 nope Jan 14 09:42:39 perfect Jan 14 09:42:53 * RussellAlan crawls around with no one noticing Jan 14 09:43:04 * lime doesn't notice anything Jan 14 09:43:45 hackkitten still alive over there ? :P Jan 14 09:44:04 I'm trying to get backtrack 5 arm working with MultiROM which uses kexec for ubuntu arm kernels Jan 14 09:44:21 for the Nexus 7 Jan 14 09:44:45 i just have to patch the kernel and I am a little lost. Jan 14 09:46:19 bleh, I hate checked exceptions Jan 14 09:47:45 yeah, they suck with things like functors or visitors, among other stuff Jan 14 09:48:18 i wonder if that was one of those design decision gosling regretted Jan 14 09:48:51 or at least, the idea wasn't mature enough for inclusion at the time Jan 14 09:49:15 i am using translate animation in my project.I want to pause the animation on onAnimationEnd and want to setVisibilty = gone to the layout being translated.For that i have setFillAfter = true and setFillEnabled = true .but view's visibility is still visible .How can i make the visibility gone ? Jan 14 09:51:23 "The creator of Java himself still thinks that Checked Exceptions are a good idea" Jan 14 09:52:26 romain guy: can u please help me ? Jan 14 09:52:29 Android03 what are you doing inside onAnimationEnd to hide the view ? Jan 14 09:53:00 pastebin the relevant stuff Jan 14 09:53:07 cause I do what your describing lots Jan 14 09:53:08 StingRay_ : hey u know my animation u talked about Jan 14 09:53:15 g00s > most of the time :) Jan 14 09:53:33 hackkitten :) what are you up to these days? Jan 14 09:53:44 StingRay_ : the list animation Jan 14 09:54:07 yeah, I said pastebin your animListener Jan 14 09:58:05 StingRay_ : here the animationListener : http://pastebin.com/gqWSSLRj Jan 14 09:59:13 g00s > rebuilding my freelance business after having a job for a bit :) Jan 14 10:00:42 morning, I wonder how to write a jpg or png file from a SurfaceTexture object. Ideas? Jan 14 10:00:52 g'day Jan 14 10:01:31 quick question - I have an activity that has a SEND and SEND_MULTIPLE filter, I use it as a share provider for my app. Jan 14 10:01:49 I handle the selection of single and multiple images from the gallery, all is well... Jan 14 10:02:06 However, is there any way to distinguish between selecting an image from the gallery, and selecting an album? Jan 14 10:02:27 in the latter case I get the containing image URIs no different than if I had selected the images individually Jan 14 10:03:17 hackkitten: hope it goes well :) Jan 14 10:03:20 StingRay_ : now what i am doing is : I have taken 2 listviews and made first list view's visibility gone.Then i have taken one separate layout( the same custom layout i am using for the listview )and trying to translate that layout from middle to top and once it reaches to top,i am making it's visibility to gone.and the same time when the view is being translated, i am sliding down the list1 also and once the view's anim Jan 14 10:03:41 animation ends i am setting list animation to fillAfter = true and fillEnabled=true and list1.setVisibility = gone and list2.setVisibility = visible sothat list2 should be visible but what happening is list1 is not getting gone it still be there because of the bug when we use fillAfter = true and fillEnabled=true.How can i make my list1 visibility to gone ? Jan 14 10:05:25 g00s > thanks :D Don't hesitate to push some paid work my way :o :P Jan 14 10:05:47 Android03 detach it ? Jan 14 10:06:18 well "remove" it Jan 14 10:06:24 StingRay_ sorry i didn't get u ? Jan 14 10:06:30 what to remove'? Jan 14 10:06:40 the view you dont want visible Jan 14 10:07:17 ok let me try that too Jan 14 10:10:44 "WSJ: Apple cuts iPhone 5 component orders in half due to weak demand" :O Jan 14 10:10:54 wonder what's going on Jan 14 10:11:23 Apple is dying Jan 14 10:11:25 * hackkitten nods sagely Jan 14 10:11:43 they need Woz as CEO Jan 14 10:11:59 alright, i have a really hard time understanding this deltaTime thing.. i am now able to measure it, and i get ~0.2 every time.. how do i use this info to set a fixed FPS? Jan 14 10:12:20 g00s: Woz as CEO would... break them Jan 14 10:12:37 they would be broken with awesomeness ! Jan 14 10:12:56 g00s: yes, but they wouldn't be the hipster refuge Jan 14 10:13:33 Yeah, Woz is about as far from hipster as you can get :) Jan 14 10:13:43 gone would be the shiny white plastic :o Jan 14 10:13:57 * hackkitten glances over at the Mac Mini on her desk Jan 14 10:14:00 ...not that I'd mind it Jan 14 10:14:10 Stingray_ :it is working fine but that when list2 appears it looks jerky..can't it be smoothly drawn? Jan 14 10:14:21 hackkitten: nah, the plastic might stay. It would be the more... mental aspects of their following Jan 14 10:14:34 p_l > 'mental' might be the right word :) Jan 14 10:15:07 StingRay_:it is working fine but that when list2 appears it looks jerky..can't it be smoothly drawn? Jan 14 10:15:21 throw new RuntimeException("We do not yet support browsers other than IE"); // just wrote that and feel icky Jan 14 10:19:34 * hackkitten throws p_l into an acid bath before letting him back into the channel :P Jan 14 10:20:03 hackkitten: it's actually a good thing I wrote that Jan 14 10:20:22 the goal is to add support for other browsers, but it will take time Jan 14 10:20:30 I see Jan 14 10:20:31 (we weren't responsible for the lock-in) Jan 14 10:20:33 but why IE first? :P Jan 14 10:20:45 hackkitten: that's how we got the cra^Wcode Jan 14 10:20:49 :3 Jan 14 10:20:52 right~ Jan 14 10:21:02 Dear all, I need some help with CursorAdapter in a ListView. On my display (bindView), I want to have an if statement that checks if the value of a column has been changed between the current row and the previous row. Anyone can guide me on how to do something like this? Jan 14 10:23:06 hackkitten: I'm making a test suite from scratch... Jan 14 10:23:08 it's painful Jan 14 10:23:44 * hackkitten hands p_l some morphine :o Jan 14 10:28:26 any ideas ? Jan 14 10:29:31 Morning all Jan 14 10:30:04 I'm trying to find a solution to have a cross-platform background on my application, anyone can help me? Jan 14 10:31:32 drastico I cant help, as I dont even understand what your asking :) Jan 14 10:32:04 ^_^ Jan 14 10:32:36 what is a cross-platform background ? Jan 14 10:32:53 i want to use a background in my app, but i want to make the bg working on all resolutions Jan 14 10:33:01 without cropping or stretching it Jan 14 10:33:52 How do you imagine that? Jan 14 10:34:07 fitting the same image in | | and | | without stretching Jan 14 10:34:25 ^ with different device aspects Jan 14 10:34:49 my tab 8.9 != nexus 7 ratio Jan 14 10:35:04 how to use ViewPager with ViewHolder? Jan 14 10:37:48 ang1 > has been changed in what way? Jan 14 10:40:14 drastico: something might be doable with a 9-patch Jan 14 10:41:06 hackkitten, I.e. if column value has been changed from "Michael" on row 2 to "Nick" on row 3 Jan 14 10:41:25 I don't get this, my socketchannel writing selecting is freezing up on the select when the data I want to send exceeds around 12kB... and this is only with mobile data connection Jan 14 10:45:34 mrenouf: there? Jan 14 10:48:38 any idea on how to save a SurfaceTexture object to a jpg file? Jan 14 10:48:42 is it possible? Jan 14 10:49:33 I mean this object: http://developer.android.com/reference/android/graphics/SurfaceTexture.html to a jpg file Jan 14 10:49:47 why would you want it as a jpeg ? Jan 14 10:49:52 out of interest Jan 14 10:50:38 well, it does not have to be a jpg, it can be any format. I just would like to have it on the sdcard Jan 14 10:50:50 @StingRay_ Jan 14 10:53:09 I have a MediaCodec object outputing decoded video frames from an mp4 file. I want to save some of this frames into sdcard. MediaCodec "sends" the frame to a Surface object which "sends" to a SurfaceTexture (as far as I understood from what I've been reading). Now I would like to save this texture to a file Jan 14 10:54:31 hackkitten: any idea ? Jan 14 10:54:40 i would have thought that for a texture/decode that jpeg would be rather heavy Jan 14 10:54:57 pallet png would be lighter Jan 14 10:55:47 StingRay_, well, it does not have save into a jpg file. I can be a png. How can I do that? Jan 14 10:57:36 You could take a screenshot lol Jan 14 10:59:23 any other suggestions? :) Jan 14 11:00:03 StingRay_, I'm following you, there is no problem about saving content to png file. Could you give me some reference on how to do this? Jan 14 11:01:02 http://stackoverflow.com/questions/13385056/saving-surfacetexture-to-jpeg Jan 14 11:01:27 howdy, I am probably doing this wrong.. by my navigation goes MainActivity -> CreateActivity -> MainActivity. What I don't want it to hit the back button, and return to the CreateActivity... Should Create even be an activity? Or do I manage this some other way? Jan 14 11:03:15 StingRay_, yeah, already been there, it's NDK, I would like to stay with the skk :-/ Jan 14 11:08:52 i've got quite an old PC, but is it android virtual devices that are slow or is there something wrong if i only can hit an FPS of ~10? Jan 14 11:09:07 it's AVD's fault :) Jan 14 11:09:12 ok Jan 14 11:09:37 welcome to the joy of emulating a whole system instead of small part of framework (like every other SDK except maybe Symbian does) Jan 14 11:09:54 hehe Jan 14 11:10:00 well, this is all new to me Jan 14 11:10:10 so i'm just trying to find out what i'm dealing with Jan 14 11:10:45 If you go more serious, I recommend getting a phone :) Jan 14 11:10:51 GNex sounds like a good choice, still Jan 14 11:10:55 well, that was my next question Jan 14 11:11:03 N4 if you don't mind lack of USB Host Jan 14 11:11:09 how hard is it to drop the project from eclipse onto my phone? Jan 14 11:11:19 debugging on a real device works better than the emulator Jan 14 11:11:20 lime: not hard Jan 14 11:11:20 i have an xperia s Jan 14 11:11:50 Gmag, can you attach the texture to the gl context and then get a pixel buffer that you can write to a bitmap/PNG/etc Jan 14 11:12:56 Xperia s >> avd Jan 14 11:13:34 hehe Jan 14 11:13:53 alright, so now the phone is plugged into usb.. how do i do this? :D Jan 14 11:14:06 i think opengl is the same way Jan 14 11:14:21 lime: you need to enable USB debugging in settings Jan 14 11:14:24 what Jan 14 11:14:33 Enable debugging on your phone Jan 14 11:14:33 i was to speaking to someone from days ago Jan 14 11:15:02 alright, time for another google session i guess Jan 14 11:15:02 Lol b33 definitely done that before Jan 14 11:15:30 Settings> developer tools > enable USB debugging Jan 14 11:16:06 Then try to run your app in eclipse and it should show up Jan 14 11:16:17 time to take a nice long break while i wati e emulator to boot Jan 14 11:16:25 abelianHorizon, erm... are you asking? I can do whatever needed to save that SurfaceTexture to a file. Any reference on how to do what you suggest? Jan 14 11:17:10 alright, something is happening :D Jan 14 11:17:12 exciting stuff Jan 14 11:17:30 Surface texture has a method to attach to context, I'm thinking then you could access the texture and get a pixel buffer Jan 14 11:17:50 oh woow.. suddenly i get 50 fps instead of 10 Jan 14 11:17:55 I've used open gl before but not on android, I don't know Jan 14 11:17:56 and it all looks much smoother Jan 14 11:18:04 i should've done this to begin with Jan 14 11:18:10 abelianHorizon, interesting, so a pixel buffer has some way to save to a file, right? Jan 14 11:18:12 omg what did u do Jan 14 11:18:22 hmm... anyone builds "normal" java stuff with maven here? Jan 14 11:18:52 Well you have the raw pixel information so you could write it to a file yes Jan 14 11:19:47 abelianHorizon, but a SurfaceTexture is raw pixel info as well, right? Jan 14 11:21:23 anybody here familiar with the use of URIs to contentproviders and assets as discussed in this "fixed" issue: http://code.google.com/p/android/issues/detail?id=17535#c146 Jan 14 11:22:32 The texture object uses the GL_TEXTURE_EXTERNAL_OES texture target, which is defined by the GL_OES_EGL_image_external OpenGL ES extension. Jan 14 11:22:32 Is a texture Jan 14 11:22:46 does the emulator support opengl ES 2 ? Jan 14 11:22:53 @ahhughes: did you already get an answer to your question? I disconnected for a while and couldn't check if you got an answer already.. Jan 14 11:24:43 abelianHorizon, so, there should be no problem in writing it to the file system. It does not have to be coded, I mean, the file could be a bmp Jan 14 11:26:39 alright, so now that i've finally got some usable results regarding FPS, i need to find out how to make it constant Jan 14 11:29:23 You would want to call glReadPixels and then yes Jan 14 11:29:41 Trying to figure out how to do that Jan 14 11:30:22 bakkes, nope.. and thank you for checking! Jan 14 11:31:04 Err get not read Jan 14 11:31:56 @ahhughes: how are you going from CreateActivity -> MainActivity? via a call to finish()? or via CreateActivity.startActivity(MainActivity)? in the first case (finish) you will be fine, in the second case you may need to do some extra work Jan 14 11:32:18 CreateActivity.startActivity(MainActivity) Jan 14 11:32:33 ok the first question would be: why? :D Jan 14 11:32:41 because Im a n00b Jan 14 11:32:47 :D Jan 14 11:33:22 is it important that CreateActivity stays around? Or do you "just want to go back" Jan 14 11:33:31 Hey I need to switch an actionbar item to it's actionview state programmatically, does anyone know how I can do that? It's for opening the search function with the hardware search button. Jan 14 11:36:51 @ahhughes: if you just want to go back, either do not provide a button to "go back to main" and instead let the user use his back button. If you WANT that button, or the transition is triggered by something else (an arrival of some event for instance) just call finish() instead of startActivity(MainActivity) Jan 14 11:38:57 thanks bakkes works kinda perfectly now :) Jan 14 11:39:10 np.. happy coding Jan 14 11:40:35 http://stackoverflow.com/questions/14317767/listview-item-background-hell Jan 14 11:40:44 hello dudes... any idea with this ? Jan 14 11:40:53 actually bakkes, after I call finish, the previous Activity now contains stale data... is there something that is called on the previous activity (or some kinda flag used) to refresh or get a new one each time (p.s. this is the root entry activity) Jan 14 11:42:22 abelianHorizon, ok, what if I just want to display it on the screen? What would you suggest? I mean, you have a SurfaceTexture and want to visualize it Jan 14 11:42:54 It seems like once you have the texture in the gl context, you can set it as the active texture and then call GLES20.glReadPixels, you should have the pixel buffer. Jan 14 11:43:57 Then I would set it as the active texture and draw it to something in Jan 14 11:44:10 In a surface view I think Jan 14 11:45:30 @ahhughes: methods like onResume() or on(Re)Start() Jan 14 11:45:47 abelianHorizon, ok, thanks Jan 14 11:46:26 bakkes, yeah.. I guess so.. but I would need the ListView within the activity to refresh (or recreate).. Sorry all of this is first timer stuff Jan 14 11:46:27 abelianHorizon, erm... what about the TextureView Jan 14 11:46:35 @ahhughes: but you should read the documentation of the Activity class and the guide on Tasks and Intents as a starter.. that will clarify a lot for you I think.. Nobody should probably start developing android apps before reading those few pages :D Jan 14 11:47:06 Ow and "application fundamentals" guide is also nice Jan 14 11:47:08 I don't believe texture view has everything set up for open gl stuff, look it up Jan 14 11:48:43 Take a look here, they are getting a frame of a video in a surface texture and then writing it to a pixel buffer and then writing that to a file Jan 14 11:48:46 http://www.google.com/url?sa=t&source=web&cd=7&ved=0CFoQFjAG&url=http%3A%2F%2Fandroidxref.com%2Fsource%2Fraw%2Fframeworks%2Fbase%2Fmedia%2Ftests%2FMediaDump%2Fsrc%2Fcom%2Fandroid%2Fmediadump%2FVideoDumpView.java&ei=w-zzUMT4EYStqQHproFo&usg=AFQjCNHRjvycdzy_ral10Sz2DYwfTpNpfg&sig2=KKmcM-8DHPMT3HEV578xmw Jan 14 11:48:54 Sorry for the long link guys Jan 14 11:48:59 lern2url Jan 14 11:49:04 Lol Jan 14 11:49:12 these google urls are soo evil Jan 14 11:49:21 he didn't have to use a google url Jan 14 11:49:28 It's a Java file download too sorry Jan 14 11:49:29 he could have pasted just the androidxref.com url Jan 14 11:50:13 I'm on my phone.. Jan 14 11:50:48 Hour that helps gmag Jan 14 11:50:51 Hope Jan 14 11:54:53 abelianHorizon, thank you very much. Where did you get this? Jan 14 11:55:01 Google search Jan 14 11:55:37 yeah, but is it some open source project, a blog? Jan 14 11:56:42 "surface texture android save to file" Jan 14 11:58:07 I am so embarrassed. I wrote "fourty-sex" instead of "forty-six" Jan 14 11:58:11 I don't really know what androidxref is and I'm not sure if it's open source Jan 14 11:59:01 http://androidxref.com/about/ Jan 14 11:59:38 Seems like they want to help Jan 14 12:00:52 Seems like it's actually from aosp? Jan 14 12:01:41 abelianHorizon: this is *extremely* useful. thanks! Jan 14 12:02:07 Glad I could help good luck with your development Jan 14 12:02:34 Oh wait, you're not gmag Jan 14 12:02:46 But tag yeahsure Jan 14 12:02:48 is it possible to change existing android icon set n change their color like those here, http://www.androidicons.com/ using a python script or something??? Jan 14 12:03:27 Put Image processing Python in Google Jan 14 12:09:30 i think if i run a script over icon pack from http://androiduiux.com/2012/09/03/action-bar-icon-pack-1-free-download/, it would be awesome! Jan 14 12:10:53 Quick regex question - I have a string that says: Create "SOME_TITLE" Jan 14 12:10:59 I'd like to extract SOME_TITLE Jan 14 12:11:12 I feel like this is stupidly obvious Jan 14 12:11:17 but I can't seem to figure it out Jan 14 12:11:58 There are quotes in the string? Jan 14 12:12:18 yes Jan 14 12:12:22 Use split on the quotation Jan 14 12:12:34 You need \" Jan 14 12:12:41 Since it'll always start with Create " and end with a " Jan 14 12:12:50 I might as well use a substring with constant characters Jan 14 12:12:56 but that feels cheap Jan 14 12:13:00 Just use split Jan 14 12:13:02 or that Jan 14 12:13:24 And grab the second element in the array Jan 14 12:14:52 Make sure the arrest has 2 elements before grabbing it though Jan 14 12:14:58 Array Jan 14 12:17:29 Funkbox, are you working with gmag? Jan 14 12:17:43 abelianHorizon: nope Jan 14 12:18:09 Hey guys Jan 14 12:18:11 You doing open gl stuff then? Jan 14 12:18:26 nah Jan 14 12:18:35 i just like references Jan 14 12:18:53 Word Jan 14 12:18:56 how can I strech an image in an ImageButton so it will cover all the button surface? Jan 14 12:21:40 It automatically does this I thought Jan 14 12:22:15 You might need to just crop the picture Jan 14 12:23:10 careful with stretching though, can get some very weird artifacts Jan 14 12:23:17 hi Jan 14 12:24:26 Has anyone here done anything with chips? Jan 14 12:25:29 I'm developing an android application, and I want to know how can I create to glsurfaceview context Jan 14 12:26:07 *two glsurfaceview context Jan 14 12:26:38 4 hours wasted to make checkable have a background Jan 14 12:26:41 great Jan 14 12:29:41 I'm trying to start a fragment from a button press within my game (so it's all a bit distanced from the activity), I can't do that with Context.getFragmentManager(); how should I do it instead? Jan 14 12:30:03 i can probably cast the Context to Activity Jan 14 12:30:17 Fdvalencia, you need to create the second one on a new opengl context thread Jan 14 12:30:34 or a static method within my activity that returns the fragment manager Jan 14 12:31:53 Syzygy, why can't you use fragment manager Jan 14 12:32:52 because I need to call getFragmentManager(), but as I said, I'm far removed from my activity so I would need to do it in one of those ways Jan 14 12:33:31 the first way doesn't work Jan 14 12:36:13 Can't do like getActivity or something? Jan 14 12:37:29 no Jan 14 12:37:37 but apperently i have misunderstood this anyway Jan 14 12:39:27 abelianHorizon thanx, i will search in how to ccreate multiple gl context Jan 14 12:39:58 Why not just have the button's onclick in the activity Jan 14 12:40:54 Then it's 3 lines to launch new fragment Jan 14 12:43:01 how I test the store from another phone point of view? Jan 14 12:43:12 Fdvalencia85, yeah good luck Jan 14 12:43:15 I had bad review from people with Intel Atom phones complaining that my app does not work Jan 14 12:43:29 I am wondering how they even saw my app, since I only compiled it for ARM anyway Jan 14 12:47:27 Speeder, there exists an atom x86 image for use with the avd emulator.I would start there Jan 14 12:47:52 can it access google play? Jan 14 12:47:58 (I never tried using google play from a emulator) Jan 14 12:49:04 speeder: http://developer.android.com/google/play/filters.html Jan 14 12:49:31 Look under Native Platform Jan 14 12:49:54 Ankhwatcher: it is not automatic? Jan 14 12:50:00 I really need a way to send links from my work computer to my laptop Jan 14 12:50:04 speeder: apparently not Jan 14 12:50:49 Ankhwatcher: that is really… shit :( Jan 14 12:51:05 I mean, I uploaded a ARM binary, I need now to tag manually all ARM binary as ARM binary? Jan 14 12:51:09 it is silly O.O Jan 14 12:51:10 Why do you need Google play? Just run the asp in the emulator from eclipse Jan 14 12:51:31 App Jan 14 12:51:41 abelianHorizon: speeeder wants to see what comes up when he searches for his app on an Intel device Jan 14 12:51:42 abelianHorizon: I want to know, why the hell my ARM app is showing for x86 people Jan 14 12:52:01 and how they could give me negative review for that Jan 14 12:52:08 (I suppose you cannot review what you did not download, right?) Jan 14 12:53:24 Ah Jan 14 12:55:03 speeder: http://developer.android.com/google/play/filters.html Jan 14 12:55:12 why can't I change override a method "like" ArrayAdapter.getValues() - at the moment values are set in the constructor. Means I can not easily update them... need to hold singleton references everywhere. Jan 14 12:55:32 this is ArrayAdapter Jan 14 12:55:35 ahhughes: sounds like you're doing something extremely wrong Jan 14 12:56:40 funkbox: why you are showing that to me? Jan 14 12:56:46 funkbox: it does not explain much actually Jan 14 12:56:57 speeder: you can find that filter in your listing and modify it Jan 14 12:57:06 i can't link you to the page inside the admin console :) Jan 14 12:57:30 funkbox: google play already detects lots of stuff automatically, it does not figure that a app is not form Intel? Jan 14 12:57:41 (in fact, it already do not show my apps correctly on ARMv6 phones anyway) Jan 14 12:57:44 from* Jan 14 12:58:02 hmmm ok funkbox I know what I can do... reload the data within the adapter when notify is called :) Jan 14 12:58:11 ahhughes: there ya go Jan 14 13:04:55 Hey I need to switch an actionbar item to it's actionview state programmatically, does anyone know how I can do that? It's for opening the search function with the hardware search button. Jan 14 13:05:28 actionview state? Jan 14 13:08:28 oh, I think I've found it Jan 14 13:09:55 I just need to know how to get the Action Bar Menu Jan 14 13:16:16 oh this is precious Jan 14 13:16:25 the inSampleSize works best with powers of two... which is great Jan 14 13:16:40 but, I get my sample size by dividing the target image width with 1024 Jan 14 13:16:54 now the question is... is it faster to just decode with whatever I got Jan 14 13:17:04 or find the nearest power of 2 to the number I get Jan 14 13:22:17 is anyone using bluestacks and eclipse? Jan 14 13:25:44 bakkes, cheers for your help tonight... I did things the opposite way around... started more with the application framework (i.e. maven, dagger, ormlite than I did the basics). Im gettin there tho so cheers :) Jan 14 13:26:29 nighto. Jan 14 13:34:10 hey, i think i'm confusing myself here... Jan 14 13:34:11 http://pastebin.com/Cft9zha9 Jan 14 13:34:23 i've set up this example which explains what i wanna do Jan 14 13:34:44 is it possible to make a method change a variable without defining it in the actual method? Jan 14 13:40:13 Hey. Does anyone have a Samsung phone with Samsung Apps installed on it? Jan 14 13:41:48 yeha a s3 Jan 14 13:46:51 hi Jan 14 13:47:18 oh hai Jan 14 13:48:32 is there an online list/matrix of Android devices with their screen configuration parameters (e.g. Nexus 7 - xhdpi/xlarge, 1280x800)? Jan 14 13:50:26 http://blog.blundell-apps.com/list-of-android-devices-with-pixel-density-buckets/ Jan 14 13:50:43 just a few one Jan 14 13:50:58 yeah, something like that, just with screen sizes as well Jan 14 13:51:17 (I've gotten badly bitten by some users with Note's which are set as "large" tablet screens -_-) Jan 14 13:52:33 hei guys there is a samsung url where you can get remote access to physical devices Jan 14 13:52:44 does anybody know here where that is? Jan 14 13:53:23 called samsung DIVE Jan 14 13:53:33 http://v2.samsungdive.com/help/guideRemoteControlsClear.do Jan 14 13:53:56 needs to be enabled on the device in question Jan 14 13:54:03 with valid samsung account Jan 14 13:54:11 other than that it works quite well Jan 14 13:55:01 Thanks! Jan 14 13:55:38 Amorgos: are you 25? female, cute, blond and want to thank us? Jan 14 13:56:22 i can fill some of those requirements Jan 14 13:56:26 Yes. I'm lonely and bored at home as well Jan 14 13:56:55 lime: lol :) Jan 14 14:19:35 I have a completely Dutch application, but the dates are still formated as 'Wednesday ...' instead of 'Woendag ...', how can I change this? Jan 14 14:20:16 Ah, I can just pass a locale, I see. Jan 14 14:29:40 Hei. One question. is it just me or what. But i cant use swipe gesture in SlidingMenu Changing Fragments example. https://github.com/jfeinstein10/SlidingMenu Jan 14 14:30:28 It's working on other sample but when using Fragments swiping is not registered. I can open with click on home button Jan 14 14:30:32 where do you pout the sdk on windows8? it sguggests under AppData...? Jan 14 14:31:15 When a dialog is hidden via the back key press, is it dismissed? Jan 14 14:31:21 i.e. can I capture that in the onDismissListener? Jan 14 14:35:23 ok :D i got it. you have to set setClickable to true in onCreateView for fragment root view Jan 14 14:37:58 qasd: make a folder in your user dir and put it there Jan 14 14:53:32 Is it possible to write my application, so I can disable landscape mode on small screens (i.e. phones), and force ONLY landscape on large screens(tablets= Jan 14 14:53:59 probably bad style, but time is currently essential, and that would take off time for more important things, and maybe later account for the other layouts Jan 14 14:58:27 sonOfRa yes and yes Jan 14 14:59:02 That sounds promising. The second yes is "bad style" i assume? Jan 14 14:59:06 but I would imagine it's hard to figure out the line that you will draw Jan 14 14:59:22 yeah, bad style'ish Jan 14 14:59:28 Noone is ever going to use this app in real life tbh. It's an overbloated university project Jan 14 14:59:43 Full of things that make implementation more complex just for the sake of more complex implementation Jan 14 14:59:57 well you can get the screen metrics in many ways and decide what to do on that Jan 14 15:00:19 quite easy to define flags for the window b4 showcontent Jan 14 15:00:41 or in this case request window features Jan 14 15:02:04 yeah, I guess I'l have to find a way, or just try to account for everything Jan 14 15:07:54 holy cow, so dagger is better than roboguice?! Jan 14 15:09:22 are there any android programming videos on the itunes university? Jan 14 15:10:35 AFAIK, no Jan 14 15:10:37 oh okay, it's still at its infancy, but man this is exciting! Jan 14 15:14:47 hi, can someone pass me a link of a tutorial for implenting an efficient opengl context in android Jan 14 15:29:17 how does one keep the debugger attached to the app when it calls and external activity and returns ? am I missing something ? Jan 14 15:50:43 Hi all Jan 14 15:51:04 Is it possible to run any code in UIThread from the Application Class ? Jan 14 15:51:49 Cause I want to put a Toast on all my activities when I receive a message from my Service Jan 14 15:51:57 So I have linked my service to my application Jan 14 15:52:06 and I try to start the toast Jan 14 15:52:14 but this one need to be run on UI Thread Jan 14 15:54:30 ? Jan 14 15:56:05 so your wanting to run Toast on the ui thread ? Jan 14 15:56:20 personally I dont quite understand your question Jan 14 15:56:44 yes it's possible to run any code on ui thread! .... ? Jan 14 15:56:56 I want to run Toast on application Class Jan 14 15:57:00 not on activity Jan 14 15:57:53 Titi you only need a Context to create the Toast, not an activity Jan 14 15:57:54 I will rewrite my question Jan 14 15:58:04 so when you app starts up store a reference to your application context somewhere Jan 14 15:58:12 yes, but I am on an other Thread Jan 14 15:58:14 then you can use it from anywhere in your application Jan 14 15:59:19 I have a service, and I linked this service to my application, and when the service receive a message, I want the application toast it. Jan 14 15:59:42 but when the application receive the message, it is in an other thread Jan 14 15:59:47 or toast it from your service Jan 14 16:00:10 and my application send an exception cause only UIThread can Toast Jan 14 16:00:30 In an activity I have runOnUIThread method for that Jan 14 16:00:40 but I dont found the same method on Application Jan 14 16:01:11 And thats my problem Jan 14 16:01:21 well if there is no UI thread how are you planning on running code there? Jan 14 16:01:43 idk Jan 14 16:01:48 ask to google Jan 14 16:03:16 i thought you could show a toast using the application context without an activity Jan 14 16:03:21 shows what i know Jan 14 16:03:59 did you get that error about UI thread when passing the activity context to Toast? Jan 14 16:04:11 yes I know, I can do it, but my service is on an other thread and the system refuse me to Toast Jan 14 16:04:53 My solution for the moment is linking to all the activities and puusing method runonUIThread Jan 14 16:05:00 but it's not really clean Jan 14 16:05:37 look at what this guy says: http://www.jjoe64.com/2011/09/show-toast-notification-from-service.html Jan 14 16:05:47 i used the Google as you suggested Jan 14 16:07:50 lol, when I say ask to google, I mean ask to google team xD which develop Android Jan 14 16:08:10 oh well i just used the search box instead ) Jan 14 16:08:11 :) Jan 14 16:09:27 but you answer is there, you can get a reference to your ui thread from within Service.onStartCommand Jan 14 16:10:36 what did you search to find it ? Jan 14 16:11:05 toast maketext from service Jan 14 16:12:31 thx, cause I search a lot of think in different language and I I found nothing interessant Jan 14 16:13:16 any ideas why URLUtil.isValidUrl or .isHttpUrl both return false for valid http urls? Jan 14 16:13:29 Titi: np Jan 14 16:14:58 hm... maybe roboelectric is being stupid Jan 14 16:35:18 When should you choose a worker thread and when a Service to do some time consuming Jan 14 16:35:18 task? Jan 14 16:36:17 Is really sad that the next Google Phone by LG have got no LTE :c( Jan 14 16:38:04 why would you need to use threads in Services? Jan 14 16:38:23 Because services run on the main thread? Jan 14 16:43:07 ok but when you start a service isnt it because you want the user to do other things so the app goes into the background then? or it could also be that the user is still interacting with the app in an activity? Jan 14 16:43:15 so it could block the uithread? Jan 14 16:43:37 When should you choose a worker thread and when a Service to do some time consuming task? Jan 14 16:43:58 You should always use a thread to do time consuming work Jan 14 16:44:29 ok Jan 14 16:44:38 and worker thread vs service? Jan 14 16:46:43 You still have to use a thread to do time consuming work in a service Jan 14 16:46:50 Look up what a service actually is Jan 14 16:48:41 ok ty Jan 14 16:58:22 ok now I'm very confused Jan 14 16:58:25 http://pastebin.com/w1MMMpf7 Jan 14 16:58:51 what would cause that when returning from the picture picking task ? (using android gallery) Jan 14 16:59:16 odd thing though, it's cause of a variable used in the onActivityResult being null Jan 14 16:59:30 it happens only 1 in 4/5 times Jan 14 16:59:37 That's usually the cause of a nullpointerexception Jan 14 16:59:45 says so in the trace Jan 14 16:59:48 and when leaving the activity the variable is fine Jan 14 16:59:50 onactivityresult Jan 14 17:00:03 fragment_record_editor.java:1061 Jan 14 17:00:14 yes Jan 14 17:00:16 I know Jan 14 17:00:47 however the variable that IS null on that exception is only null 1 time out of 5 when testing Jan 14 17:01:03 and when starting activity for result is NEVER is null Jan 14 17:01:12 hence my confusion Jan 14 17:01:40 So what happens in between Jan 14 17:01:49 android gallery Jan 14 17:01:51 Is your activity destroyed? Jan 14 17:01:56 no Jan 14 17:02:00 Did you check? Jan 14 17:02:05 on resume fires Jan 14 17:02:25 You didn't check Jan 14 17:02:26 gonna confirm Jan 14 17:02:27 have you tried setting break points? Jan 14 17:02:40 oh hang on Jan 14 17:02:51 how can it get "destroyed" ? Jan 14 17:03:01 A configuration change Jan 14 17:03:19 hmm lemme check Jan 14 17:07:02 hi, im trying to implement a volume rendering application for android, I have already implemented OpenGL raycasting needed, but I need some kind of widget to change some properties Jan 14 17:07:23 can someone give me any tips? Jan 14 17:09:03 onDestroy is not called b4 the crash Jan 14 17:09:11 so no dont think thats it Jan 14 17:09:29 the widget must be something like this http://www.slicer.org/slicerWiki/images/4/43/VolumeRendering-TransferFunction.png Jan 14 17:10:31 Well, either your activity is destroyed and you're not properly restoring its state, or you are manually setting the variable to null somewhere Jan 14 17:10:36 Take your pick Jan 14 17:11:10 I dont think it's any of them Jan 14 17:11:18 onDest not called Jan 14 17:11:32 That's kind of the only choices there are Jan 14 17:11:37 I handle all config changes but none are relevant onActRes Jan 14 17:11:37 Variables don't just randomly become null Jan 14 17:11:47 I know :) Jan 14 17:16:08 dammit, now I cant make it do it Jan 14 17:16:15 picked 25+ images and nothing Jan 14 17:16:26 all I changed was overide onDestroy Jan 14 17:16:29 with a log out Jan 14 17:16:49 So you haven't actually had it crash yet since you added the logging? Jan 14 17:17:13 well in onDestroy Jan 14 17:17:17 there is logging all over it Jan 14 17:17:26 but all I dont is add onDestroy Jan 14 17:17:29 ugh! Jan 14 17:17:41 done* Jan 14 17:18:06 So you can't say "StingRay_> onDest not called" .. since you haven't actually replicated the behavior yet Jan 14 17:18:22 will fopen() work with URIs in JNI? Jan 14 17:18:37 as in fopen ("file:///android_assets/etc/etc","rb") ? Jan 14 17:19:08 SimonVT I must have or I wouldn't have said it, maybe it's just a lucky streak then Jan 14 17:19:48 * novie runs code through breakpoints when this stuff happens. doesn't like to just guess. Jan 14 17:20:06 i did Jan 14 17:20:18 once the debbugger detached when it left my act Jan 14 17:20:25 to go to the gallery app Jan 14 17:20:33 2nd time is when I got puzzled Jan 14 17:20:46 hello? Jan 14 17:21:05 barque: it is possible no one here knows your answer. Jan 14 17:21:09 we can all see you. Jan 14 17:21:17 barque: check out AAssetManager * mAssetManager Jan 14 17:21:31 hi Jan 14 17:21:32 (if that was C/C++ oriented) Jan 14 17:21:53 JakeWharton i'm having some trouble changing tabs with ABS Jan 14 17:21:56 are you around ? Jan 14 17:22:02 negative ghost rider Jan 14 17:22:53 what's brokeN? Jan 14 17:23:48 barque: usage is shown here: https://bitbucket.org/sinbad/ogre/commits/a560c69800ec115810b126ef16e9b2ba19e98de1 Jan 14 17:23:53 JakeWharton i don't think it's because of your ABS, but maybe you can give me a hand anyway ? Jan 14 17:24:09 does it happen on Android 4.0? Jan 14 17:24:31 the only way i found to change tabs "artificially" (as to force a tab change without clicking) is by doing abs.removeAllTabs(); and adding them all again Jan 14 17:25:19 but this forces an abnoxious behaviour: my fragment with the tabs content is reloaded , of course Jan 14 17:25:19 hi is there someone that can help me in creating some type of widget for my opengl application? or some tips Jan 14 17:25:29 what's wrong with this? https://developer.android.com/reference/android/app/ActionBar.html#setSelectedNavigationItem(int) Jan 14 17:25:53 belgianguy: usage is shown.... where!?!? Jan 14 17:26:09 you just gave me a wall of text without a single mention of 'file' Jan 14 17:26:31 are you saying I have to use the assetManager? Jan 14 17:27:26 JakeWharton: this is the code i use to change the selected tab artificially: Jan 14 17:27:30 http://pastebin.com/p5q1BRZz Jan 14 17:27:42 barque: https://www.google.com/search?q=access+android+assets+in+ndk&oq=access+android+assets+in+ndk&aqs=chrome.0.57j62l3.7779&sourceid=chrome&ie=UTF-8 Jan 14 17:27:51 isn't there an easyer & better way ? Jan 14 17:28:44 did you read my link? Jan 14 17:28:50 or look at the action bar API? Jan 14 17:28:59 bar.setSelectedNavigationItem(0); Jan 14 17:29:14 yes, i use that code in conjunction with bar.setSelectedNavigationItem() Jan 14 17:29:22 but on its own it's not enough Jan 14 17:29:27 5min let me read further Jan 14 17:29:52 barque: how about a Ctrl + F before attacking me? Jan 14 17:30:08 and you'd seen that it has it's own open and close functions Jan 14 17:31:00 the examples are very hard to find, documentation is next to nil and this was the one example that showed me how to use my assets in C++ Jan 14 17:31:06 but really, sorry about that Jan 14 17:32:18 ddreamer0: that is how you programmatically change the selected tab Jan 14 17:32:25 JakeWharton, yeah i seem to recall that setSelectedNavigationItem() on its own isn't enough, it didn't refresh the fragment in my container Jan 14 17:32:43 well it invokes the tab change callbacks so that's on you Jan 14 17:33:06 only the selected tab ( tab goes red ) Jan 14 17:34:00 JakeWharton ah ok what further callbacks are there ? Jan 14 17:34:48 or do you mean i should change the content manually after setSelectedNavigationItem() ? Jan 14 17:35:37 That's kind of what the tablistener is for Jan 14 17:36:05 You get notified that a tab is clicked, that's it.. What happens when a tab is clicked is up to you Jan 14 17:37:37 ahaaa... got it to do it again took about 20 times with a 10 min pause, but onDestroy is not called when my var gets nulled Jan 14 17:38:20 something to do with calling startActivityForResult from a fragment ? Jan 14 17:42:26 your correct though, the fragment gets re-created Jan 14 17:42:33 thats why it's null Jan 14 17:42:44 but without a call to onDestroy Jan 14 18:17:11 I just developed my first [extremelly simple] android App. Eclipse+ADT generated the .apk, but when I send it to my phone and run it it says There was an error in the analisys of the package (that's a direct translation) Jan 14 18:17:15 What could it be? Jan 14 18:17:59 vuln: how did you generate the apk? Jan 14 18:18:00 try enabling "install unsigned packages" Jan 14 18:18:07 that too Jan 14 18:18:10 or something to that effect, in the settings Jan 14 18:18:26 Maurits_: Eclipse+ADT did it automatically Jan 14 18:18:32 when I said to run it in the emulator and so on Jan 14 18:18:57 ah, but if you connect your phone, enable debugging Jan 14 18:19:07 you can have eclipse do the uploading, etc for you Jan 14 18:19:32 Maurits_: ty Jan 14 18:20:05 also, if you're releasing your app on google play Jan 14 18:20:10 you should not use this apk Jan 14 18:20:20 but choose 'export' from the file menu Jan 14 18:21:31 Maurits_: the Play developer console won't let you use this APK anyway Jan 14 18:21:51 evanc: yeah, I'm pre-warning him of that Jan 14 18:21:54 ;) Jan 14 18:23:25 Maurits_: yeah, now it at least started to install Jan 14 18:23:26 Maurits_: my point is that "should use" is more accurate as "cannot use" :) Jan 14 18:23:31 but then it says "The app was not installed" Jan 14 18:23:31 :( Jan 14 18:50:01 JakeWharton bar.setSelectedNavigationItem(0); isn't workin either Jan 14 18:50:31 i think i got it to work in another app, with the code i showed you, only when i removed all the tabs and REadded them Jan 14 18:51:58 I can assure you that it works Jan 14 18:52:19 ABS Demos -> Feature Toggles -> Tab Navigation -> Select Random Jan 14 19:10:09 sigh Jan 14 19:10:31 I'm starting to make myself believe that my socket/select problems are because of the crappy mobile network and not because of my code Jan 14 19:10:45 very possible :D Jan 14 19:11:13 * Ge0rG wonders why people are using select() from java Jan 14 19:11:14 sometimes it "just works"... often select gets stuck on waiting for OP_WRITE because the send buffer is full and it's not getting empty :E Jan 14 19:11:47 Ge0rG, because I don't want to loop infinitely? Jan 14 19:11:56 well, busy looping that is Jan 14 19:12:34 * Ge0rG sometimes forgets how low-level java is if you want to do sophisticated things Jan 14 19:12:44 :p Jan 14 19:13:40 this thing is a custom procotol implementation library... most things have been easy and even the select just works ... but not very well with mobile data :( Jan 14 19:14:05 Zharf: mobile connections are very unreliable Jan 14 19:14:27 yeah I know, but still, everything else works much better than what I'm seeing here Jan 14 19:15:00 what I don't know is how I would handle such a case where it just gets stuck and doesn't get anywhere Jan 14 19:15:07 if you use select to prvent blocking and it blocks on you, you are using it wrong :P Jan 14 19:15:08 "gets stuck " ? Jan 14 19:15:29 if it uses TCP and you need it to be long lived that stuff won't work well Jan 14 19:15:34 Ge0rG, it doesn't block anything but the socket loop :p Jan 14 19:15:48 anyway, I've gotta go. bbl Jan 14 19:15:51 hmm Jan 14 19:16:45 it's a bit hard to test again because it just works ;) Jan 14 19:19:47 funkbox, what do you mean won't work well? Jan 14 19:19:55 Zharf: unreliable Jan 14 19:20:20 can't rely on keep alives, etc.. Jan 14 19:22:45 it'd be nice if it actually *ever* timed out somehow to realise that it has disconnected at least Jan 14 19:23:26 but on the other hand, it always has worked fine until I tried to send that one 14kB message :E Jan 14 19:23:49 the 20-40b messages run back and forth just fine :( Jan 14 19:30:00 I guess I could restrict the usage to wifi for now Jan 14 19:30:23 I don't really see it being very useful over mobile anyway Jan 14 19:30:34 what are you actually trying ot do Jan 14 19:30:59 talking with xmms2 server Jan 14 19:34:37 I wrote my (yet another) own client library for it Jan 14 19:51:16 JakeWharton you use getSupportActionBar().selectTab( getSupportActionBar().getTabAt( X ) ); Jan 14 19:51:37 instead of setSelectedNavigationItem() Jan 14 19:52:08 hello, i just bought a nexus phone and i built android from source. the first thing i noticed was that the freshly built rom was significantly laggier than the original google images. why is that? Jan 14 19:52:36 loin: what build target did you use? Jan 14 19:52:46 -userdebug and -eng builds will be larger Jan 14 19:52:50 full_crespo-eng Jan 14 19:52:51 anyway neither works here for me Jan 14 19:53:01 ddreamer0: why does it not work? Jan 14 19:53:03 romainguy, full_crespo-eng Jan 14 19:53:09 -eng builds contain a lot of stuff that's not in the final user builds Jan 14 19:53:15 it also enables a bunch of debug capabilities Jan 14 19:53:37 romainguy_, well, i'm interested in a bunch of debugging capabilities, since i'm in it for the development Jan 14 19:54:00 android development? or app development? Jan 14 19:54:06 Maurits_, android dev Jan 14 19:54:33 well, it's the price you pay for more debugging information I guess Jan 14 19:54:51 Maurits_, i'm pretty sure building for user won't make it faster Jan 14 19:54:54 but i'll try it Jan 14 19:55:10 user builds are faster to compile Jan 14 19:55:34 and they also perform a little better Jan 14 19:55:41 especially after a fresh flash Jan 14 19:55:52 there are a lot of other possible factors as well, I guess Jan 14 19:55:54 user builds perform the dex optimization pass ahead of time Jan 14 19:56:01 whereas eng builds do it on the fly Jan 14 19:56:08 the toolchain used to build, etc Jan 14 19:56:11 so the first few minutes after a flash tend to be laggy Jan 14 19:56:22 Maurits_: the toolchain comes with the source code Jan 14 19:56:30 JakeWharton it's quite similar to examples i've seen: http://pastebin.com/p2jfi2JX Jan 14 19:56:35 ah Jan 14 19:56:39 is doesn't change the selected tab Jan 14 19:57:09 romainguy_, it's not about the compiling time, i'm used to compiling stuff for hours, it's the fact that my cheap galaxy mini (full-eng) performs much better than my nexus s (full-eng) and the nexus s was supposed to be, by all means, better Jan 14 19:57:52 what version of Android are you compiling? Jan 14 19:58:15 romainguy_, 2.3.7 Jan 14 19:58:34 then I don't know Jan 14 19:58:43 except the Galaxy Mini has a much lower resolution Jan 14 19:58:52 for a pretty decent amount of RAM Jan 14 19:59:04 so I wouldn't be surprised if it performs better in some situations Jan 14 19:59:42 romainguy_, i forgot to take the resolution into account Jan 14 19:59:44 damn it Jan 14 19:59:52 romainguy_, thanks :) Jan 14 20:03:19 Hello all, I'm looking for some help with the NDK here; I'm getting "Undeclared reference to 'ReleaseByteArrayElements'" even though I'm already including ? Jan 14 20:06:23 if I'm building a 3d game with opengl es 2.0, would I handle vertex transformations on cpu or within the vertex shader? For animation Jan 14 20:06:52 JakeWharton in your demo you use getSupportActionBar().selectTab( getSupportActionBar().getTabAt( X ) ); I've tried that and setSelectedNavigationItem() and neither change the selected tab item Jan 14 20:07:13 SimonVT any idea why they aren't responding ? Jan 14 20:08:12 No idea, try stackoverflow Jan 14 20:08:29 If it doesn't work on ICS+, either you're doing it wrong or the framework is broken Jan 14 20:09:42 SimonVT for now the demo's working fine for me but my code doesn't budge Jan 14 20:09:48 althought it's quite similar.... Jan 14 20:10:32 to your demo and several other examples i've seen http://pastebin.com/p2jfi2JX Jan 14 20:10:50 once i got it working, but only after removing all tabs and adding them again Jan 14 20:13:16 and i had to do this every time i wanted to select a specific tab, but that defied my purpose because my fragment got reloaded all the time... Jan 14 20:16:06 Could anyone with some knowledge on using static libraries on NDK projects take a look at this? http://stackoverflow.com/questions/14325440/undefined-reference-to-function-in-static-library-with-ndk thanks in advance :) Jan 14 20:18:16 I'm looking at using Android with a custom Smart Card. The custom smart card already has linux/osx/windows implementations, all interfacing with the respective USB drivers in c libraries. Jan 14 20:20:17 What would be the intelligent way to start porting the smart card library to use the Android USB Host API? Jan 14 20:20:55 I'm assuming that I need to rewrite the lowlevel data transfers. Jan 14 20:42:00 when you take a byte and make it into an int, does it do sign extension? I would assume yes. Jan 14 20:42:46 is byte signed? Jan 14 20:43:10 i don't think so. lemme look at the docs Jan 14 20:43:17 yes, it is Jan 14 20:43:31 java doesn't have unsigned types Jan 14 20:43:35 if you do byte x = -1; int y = (int)x; .. you'd better get -1 Jan 14 20:43:45 Zharf: don't get me started heh Jan 14 20:44:11 wait really? there's no uints in java? I never even noticed Jan 14 20:44:20 :p Jan 14 20:44:56 wow that's kinda bizzare Jan 14 20:45:14 I mean, a byte isn't necessarily reflective of a number Jan 14 20:45:35 like, from a logical standpoint Jan 14 20:45:41 sure Jan 14 20:46:01 but signed byte and unsigned byte can represent the same values Jan 14 20:46:06 bitwise Jan 14 20:46:18 right, but that means you have to manually interpret them at the bit level Jan 14 20:46:19 it's pretty silly, especially since numbers don't need to be signed or not, there are only a very few operations that differ if a number is signed Jan 14 20:46:25 like i said, don't get me started Jan 14 20:48:49 I can't even begin to guess why the java developers wouldn't have included unsigned types Jan 14 20:49:27 http://darksleep.com/player/JavaAndUnsignedTypes.html#why_no_unsigned_types :( Jan 14 20:49:34 lol aha Jan 14 20:50:00 ah the old "no one really needs it" excuse Jan 14 20:50:21 grumble .. time for more coffee Jan 14 20:50:59 :) Jan 14 20:51:46 Not even that, he says that most C developers don't understand unsigned arithmetic Jan 14 20:52:16 if he's just talking about 2's complement and sign extension then i'd smack him Jan 14 20:52:55 Really? Leave out an entire feature because the programmers are too stupid to learn how it works? ugh. Jan 14 20:54:57 not much use whining about it really ;) Jan 14 20:55:47 I'm not whining, I'm complaining. and seriously, it's just insulting. Jan 14 20:55:54 :p Jan 14 20:56:16 java doesn't include unsigned because there was an aim towards simplicity and higher level code Jan 14 20:56:24 if you want to herp derp about it go to #java and complain there Jan 14 20:57:06 it's not really ever an issue except with reading data from other systems Jan 14 20:57:33 not like they'd change it just because I care. and don't worry I'm done Jan 14 21:08:55 Trying again: Could anyone with some knowledge on using static libraries on NDK projects take a look at this? http://stackoverflow.com/questions/14325440/undefined-reference-to-function-in-static-library-with-ndk thanks in advance :) Jan 14 21:10:36 Newbie question: I have a class I defined inside an Activity class that I now want to move to my Application class. Once the code is moved, what's the proper syntax for instantiating the class from within the Activity? something to do with getApplicationContext()? finding various answers on the net Jan 14 21:14:24 Fireblend, you'll want to move that libopus.a to PREBUILT_SHARED_LIBRARY Jan 14 21:14:50 Zharf: how would I do that? Jan 14 21:15:15 Fireblend, oh wait, sorry I misread... um, well anyway, hold on Jan 14 21:15:32 it's prebuilt though right? Jan 14 21:15:45 yes Jan 14 21:16:12 KaosMcRage: you can use getApplicationContext() with a cast to your application type Jan 14 21:16:21 I already have the libopus.a somewhere Jan 14 21:17:15 Fireblend, try putting the libopus into LOCAL_WHOLE_STATIC_LIBRARIES Jan 14 21:17:22 instead of LOCAL_STATIC_.. Jan 14 21:18:03 the problem is not with the code Jan 14 21:18:08 or its compilation Jan 14 21:18:09 Zharf: no luck =/ Jan 14 21:18:10 but with linking Jan 14 21:18:16 so it seems Jan 14 21:18:20 undefined reference = linking error Jan 14 21:18:33 is libopus.a, C or C++ code ? Jan 14 21:18:38 C Jan 14 21:18:42 ok Jan 14 21:18:43 AlCapwn: it's crying about calling a non-static method execute() (my class is an AsyncTask) Jan 14 21:19:10 do people use opus? should I compile it in for my next update of xmms2 in the store? <.< Jan 14 21:19:13 KaosMcRage: pastebin the code Jan 14 21:20:23 apparently? :P Jan 14 21:20:55 apparently? Jan 14 21:21:54 I have a layout that is expensive to render, but for some reason PerformTraversals keeps being performed on it even when the activity is paused. I can trace it back to the message being sent to the main app handler… anyone know how I can figure out why this thing keeps redrawing over and over again? It's fine during regular execution, but it's made it almost impossible to run my app in debug mode otherwise because of how slow it is. Jan 14 21:22:38 people apparently use Opus. Anyway, this is really weird, since if i remove my #include , where those functions are defined, then I break the opus_int16 and OpusDecoder declarations, so I know it *is* getting included. Jan 14 21:22:54 Fireblend, as I said, it is not a compiler error Jan 14 21:22:55 It just seems that for some reason it's ignoring the functions Jan 14 21:22:57 it's a linker error Jan 14 21:23:00 TWO DIFFERENT THINGS Jan 14 21:23:22 compiler handles the code, linker links whatever compiler produces with other things (libopus.a in this case) Jan 14 21:23:36 Zharf: did you check the output of nm libopusa | grep opus_decoder_create Jan 14 21:23:44 the code is fine, since it gets to the compiler phase Jan 14 21:23:52 bubbleguuum, talk to Fireblend Jan 14 21:24:22 correct Jan 14 21:25:16 AlCapwn: PM'd Jan 14 21:25:38 Hi Jan 14 21:25:43 PeteS: maybe some delayed Handler (or thread, or AsyncTask) doiung some UI work wile activity is paused ? Jan 14 21:26:20 bubbleguuum: It's there: "00000e30 T opus_decoder_create" Jan 14 21:26:32 ok Jan 14 21:27:03 KaosMcRage: you should post it here also in case anyone else can help Jan 14 21:27:14 try changing lib order in the LOCAL_STATIC_LIBRARIES statement Jan 14 21:27:23 bubbleguuum: a good thought, I'm searching for any possible remaining UI calls, but I have a breakpoint on every place I think is touching the UI and right now they're all being protected by a check to make sure the activity is resumed… meanwhile if I put a breakpoint in onMeasure for one of the special views, it gets hit nonstop by performTraversals Jan 14 21:27:32 KaosMcRage: your asynctask is in the wrong place, it should be in activity Jan 14 21:27:34 bubbleguuum: already did :( Jan 14 21:27:48 and you're using getApplicationContext but casting to an Activity Jan 14 21:27:52 AlCapwn: I was wondering that, actually. OK, so it should stay in Activity. Jan 14 21:30:47 Fireblend: sounds silly but are your sure your libopus.a was compiled for the same architecture you compile to ? Jan 14 21:31:30 bubbleguuum: I think so, I used this guide: http://mortoray.com/2012/08/21/android-ndk-cross-compile-setup-libpng-and-freetype/ Jan 14 21:32:56 you can check easily: ar x libopus.a . You'l get a bunch of .o. Then check the output of file Jan 14 21:33:26 it's easy to cross compile to x86 by mistake. Happened to me once =) Jan 14 21:33:51 JakeWharton should there be a problem selecting tabs from within onTabSelected ( of the tab listener ) ? i got it working in the oncreate just doesn't work from the tab change listener Jan 14 21:34:16 this may have been addressed but if it's a .a you can't load it in JNI Jan 14 21:34:26 that's a static library for linkage; you need to modify your build to generate a .so shared library Jan 14 21:34:47 also if 'nm' worked on it on your laptop, it's not compiled for arm. nm is platform specific. Jan 14 21:34:56 bubbleguuum: tables_other.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped Jan 14 21:35:01 (unless your distro plays some sort of funny signature game and runs the right crosstool nm) Jan 14 21:35:06 huhu Jan 14 21:35:11 huh* Jan 14 21:35:14 Fireblen: there you have the cause Jan 14 21:35:25 well damn Jan 14 21:35:26 thanks Jan 14 21:35:30 classic cross-compile mistake Jan 14 21:36:40 So that guide's no good? I'll see if I can figure out how to cross-compile it correctly then Jan 14 21:36:49 thanks for the help :) Jan 14 21:38:00 ddreamer0: yeah it might not work, try it with the native action bar and see if it works Jan 14 21:38:23 Fireblend: configure is picking up the wrong toolcahin Jan 14 21:39:14 try PATH="/path/to/toochain/bin:$PATH" ./configure ... Jan 14 21:42:16 JakeWharton how is that it only works on oncreate ? any workaround ? Jan 14 21:42:54 i have no idea, ABS mimics the native action bar behavior Jan 14 21:43:54 phuk Jan 14 21:43:57 ... Jan 14 21:44:14 changing a tab from within a tab change callback is an odd use case Jan 14 21:44:17 so if i try the same code on 4.0 will that be the native ABS ? Jan 14 21:44:40 yes, on Android 4.0+ the native action bar is used Jan 14 21:45:47 ok Jan 14 21:46:18 thx! Jan 14 21:59:11 Fireblend, got any opus sample files? :P Jan 14 22:00:26 Zharf: you can download opus-tools and encode them from a WAV file yourself. I have a couple I could upload but you'd have to give me some time. Jan 14 22:00:50 I finally fixed my issue, by the way. Thanks bubbleguuum, if you're still around :P Jan 14 22:01:04 http://android-developers.blogspot.com/2013/01/evolution-of-renderscript-performance.html Jan 14 22:01:32 Fireblend, I just compiled in opus plugin too, just for the fun of it Jan 14 22:06:19 what's the GNexus display density? Jan 14 22:06:32 xhdpi? Jan 14 22:06:55 what does that translate to when using adb shell am display-density? Jan 14 22:10:08 Fireblend, seems to work too Jan 14 22:10:11 xhdpi is 320, no? Jan 14 22:15:18 Fireblend, 160 lines of mk writing to get it done, egh... I need to build a better build system ;) Jan 14 22:15:41 evanc: yep, it is Jan 14 22:22:12 ctate: Did they do something about loop unrolling in llvm, in the end? Jan 14 22:22:20 no idea Jan 14 22:24:26 All the CPU improvements should be in AOSP, right? Jan 14 22:25:26 cpu + gpu, yeah Jan 14 22:25:42 4.2 is in aosp afaik Jan 14 22:32:51 ctate, it is Jan 14 22:44:06 Anyone know how to override explore by touch for a touch based view like a drawing surface? Jan 14 22:44:28 I want users who have explore-by-touch enabled to still be able to interact with this view. Jan 14 22:46:28 is there a way to get access to the default delay Android uses when hiding the scrollbars after the user scrolls? Jan 14 22:46:56 AlCapwn: look at ViewConfiguration Jan 14 22:47:16 usually our UI related constants can be found there Jan 14 22:47:50 found it, it's a static method, not an instance one Jan 14 22:49:26 another question, without using an ActionView, is it possible to get a popup menu achored to an action bar menu item when it's pressed? Jan 14 22:49:54 to do something like Windows' submenus? Jan 14 22:50:10 i guess so Jan 14 22:50:10 you can get the coordinates of the list item and show your popup there Jan 14 22:50:14 but the menu will close Jan 14 22:50:19 so it probably won't do what you want Jan 14 22:50:27 and it's definitely not how Android works :) Jan 14 22:52:13 hmm..well my implementation using an actionview works, but I was hoping there was something simpler available Jan 14 22:52:39 I / ActivityManager ( 203): Start proc com.angeldsis.lou for service com.angeldsis.lou/.SessionKeeper: pid=21472 uid=10023 gids={3003} Jan 14 22:53:04 why is it re-starting my process when i returned START_NOT_STICKY ? Jan 14 22:53:36 the app is closed, and the screen completely off Jan 14 22:54:29 So, to answer my own question, yes. Renderscript was worth it. I went from a compute taking 4. something seconds to 274 milliseconds. wow. Jan 14 22:57:19 MercuryTW: :D Jan 14 22:57:53 im still not accustomed to you missing half your name evanc Jan 14 22:58:30 haha Jan 14 22:59:24 canadiancow: I wouldn't really say I'm "missing it", Bob Jan 14 23:00:12 you know where its at then? Jan 14 23:00:18 lol Jan 14 23:00:38 jug6ernaut: http://www.youtube.com/watch?feature=player_detailpage&v=cf4veA65G-k#t=9s Jan 14 23:00:44 canadiancow: you should shorten yours to canadianc Jan 14 23:00:56 JesusFreke++ Jan 14 23:01:11 evanc haha nice Jan 14 23:03:41 there is a company here called innitech :| Jan 14 23:04:07 started by CEO Jason Hope, former Jawa … and its probably exactly like that movie Jan 14 23:08:26 canadiancow: you have any idea why the service is re-starting on its own? Jan 14 23:19:12 wow…fast intro screen Jan 14 23:22:07 an article on the future of mobile search; not too deep but similar in theme to what i read from Jakob Nielsen and his usability studies http://www.fiercedeveloper.com/story/how-google-and-mobile-search-are-redefining-what-we-call-successful-app/2013-01-14 Jan 14 23:24:53 seems like in usability studies, a user is likely to begin a search at the slightest provocation of disorientation; they expect to find relevant results in apps as well as pages deep in mobile websites Jan 14 23:25:32 So the future of Java in Android? Is the biggest change on the development os? Jan 14 23:26:01 does anyone here know the future of Java in android? Jan 14 23:26:20 i doubt it - unless you are a googler Jan 14 23:28:14 doubtless google is going to make android incompatible in the next version, thus rendering millions of apps and lines of code utterly useless, because that's a smart business move? Jan 14 23:28:39 how is that even a useful question Jan 14 23:30:53 i think its a very good question; we have google java and oracle java effectively Jan 14 23:31:08 and they are diverging Jan 14 23:31:20 for example, where is NIO.2 on android? Jan 14 23:31:41 Google java? Jan 14 23:32:00 Android Java, I guess Jan 14 23:32:37 I don't know about you but I use java 1.6 to compile my apps Jan 14 23:32:55 cool, but when Java 8 comes out I'll want to use lambdas - but can't Jan 14 23:33:04 (on android, anyhow, from how i see this being implemented) Jan 14 23:33:15 as well as optional methods, etc Jan 14 23:33:53 Well it's not Google java, it's just old java Jan 14 23:34:00 abelianHorizon: BTW, oracle doesn't even support JSE 6 any more Jan 14 23:34:21 or at least it ends Jan or Feb this year Jan 14 23:34:59 "After February 2013, Oracle will no longer post updates of Java SE 6 to its public download sites. " Jan 14 23:36:14 qq? Jan 14 23:37:12 meh .. stuff will happen, and it doesn't really apply to getting stuff out the door right now, so no, it really doesn't matter Jan 14 23:37:21 Hey! That's my work being mentioned in that blog! Me! On the internet! Woo! Jan 14 23:37:27 * Gumboot was slow to notice Jan 14 23:37:42 Gumboot: where ? Jan 14 23:38:14 An hour and 36 minutes ago. Jan 14 23:38:15 Actually only a tiny, tiny fraction is me. Jan 14 23:38:17 But that's enough! Jan 14 23:38:23 oGMo: still will happen … maybe. this isn't just a technical issue, its probably a political one also w/Oracle Jan 14 23:38:34 Gumboot: what blog ? Jan 14 23:38:53 hello, can someone make a zoomscreen on androidsmartphone? Jan 14 23:39:00 android-developers Jan 14 23:39:09 yes gum Jan 14 23:39:10 Gumboot Jan 14 23:39:24 erkan^: Sorry, that was an answer to something else. Jan 14 23:39:30 ah ok Jan 14 23:39:50 erkan^: we're not here to write your code for you Jan 14 23:40:12 I cannot make a applicate, evanc Jan 14 23:40:25 I am visualy impaired Jan 14 23:41:28 erkan^: if you're looking to hire a developer, you will need to use another resource Jan 14 23:41:31 What's a "zoomscreen" in this context? Jan 14 23:41:39 screen magnifier, probably Jan 14 23:41:52 standard accessibility stuff Jan 14 23:41:53 Magnifying the on-screen content, or a video magnifier? Jan 14 23:42:18 "on-screen" clarifies nothing... Jan 14 23:42:23 Magnifying other apps? Jan 14 23:42:28 yes Jan 14 23:42:34 and i am deaftoo, Gumboot Jan 14 23:42:37 *deaf Jan 14 23:42:47 Curious. How do you read us? Jan 14 23:42:52 deaf + visually impaired Jan 14 23:42:58 i can read little Jan 14 23:43:04 Oh, wait... with a magnifier... you just said. Jan 14 23:43:10 but some little text i cannot read, i need zoom, Gumboot Jan 14 23:43:14 yes magnifer Jan 14 23:43:53 can you make a maginify applicatie for androidsmartphone, Gumboot? Jan 14 23:43:58 Can that even be a straightforward app in Android, or do you need to mess with the OS? Jan 14 23:44:01 how, evanc? Jan 14 23:44:33 i have ssearch long to magifniy applicatie in Play Store, i cannot found, Gumboot Jan 14 23:44:34 erkan^: some exist, did you check https://play.google.com/store/apps/details?id=com.welldonecom.android.magnifier&hl=en Jan 14 23:44:57 I think it's the sort of thing that, in principle, charitable companies should sponsor students to take care of. Jan 14 23:45:03 no outsite zoom, but inside zoom in smartphone, g00s Jan 14 23:45:03 Like maybe Google. Jan 14 23:45:40 So, basically just lying about the DPI or screen size, then? Jan 14 23:46:35 I think I ended up trying to use something like that to get around some app store compatibility problems; but I had to root my device to run it. That can't be right; surely. Jan 14 23:47:01 Firefox have a applicatie: zoom: https://addons.mozilla.org/nl/android/addon/always-zoom/ . can Android make this app too, Gumboot? Jan 14 23:48:23 Pages can disable zoom? Why should they be allowed to do that? Jan 14 23:48:44 This is exactly what I hate about HTML. Jan 14 23:49:19 why hate you HTML, Gumboot? Jan 14 23:49:22 what is happend with HTML? Jan 14 23:49:23 remember that you can always use an accessibility magnifier Jan 14 23:49:31 for the whole device, not just for web pages Jan 14 23:49:52 Can Android make a zoom applicate, pleae, ctate? Jan 14 23:49:53 This sounds like the right thing. Are those standard apps or what? Jan 14 23:50:23 Or are they big fresnel lenses? Jan 14 23:51:09 I hate HTML (or rather, modern web standards) because the whole principle behind them is allowing the web developer to reinvent the whole user interface without regard to the preferences of the content consumer. Jan 14 23:51:11 why don't Android help people with visual impaired, Gumboot? Jan 14 23:52:10 I can't answer that. Jan 14 23:52:17 you can read more information example by www.zoomtext.com, Gumboot Jan 14 23:52:27 how do zoom applicatie on windows Jan 14 23:53:03 Yeah. I have a partially-sighted mother in law. Jan 14 23:53:04 and another program as zoom on iphone/ipad, they works very good, why cannot androidd do too? android do siri applicates for iphone/ipad too, why Gumboot? Jan 14 23:54:52 can you ask your mother how can she read a screen via smartphone, gnac? Jan 14 23:54:56 Gumboot? Jan 14 23:55:01 or doesn't she use a smartphone? Jan 14 23:55:10 She doesn't. She doesn't have a smartphone. Jan 14 23:55:36 that is a pity, Gumboot Jan 14 23:55:43 another can you learn more for her Jan 14 23:57:02 i have searching long, still no solved, Gumboot Jan 14 23:59:24 ctate: When you talk about accessibility magnifiers, are you talking about software or hardware? Jan 14 23:59:59 i don't care, Gumboot Jan 15 00:00:25 when i cannot little text read eample applicates : Androidworld, news, etc. than I can use a zoom, Gumboot Jan 15 00:00:41 is zoom same word for magifney? Jan 15 00:02:33 pardon quick question.. Jan 15 00:02:37 I'm trying To build the ActivityLifecycle.zip demo from developer.android.com in eclipse but you cannot pull it in as a new project it is missing some files that make it a project does anyone know how I should pull it in? Jan 15 00:02:54 erkan^: They'll both do. Jan 15 00:02:54 create a new project from existing sources Jan 15 00:03:12 thanks Jan 15 00:03:24 what, Gumboot? Jan 15 00:03:29 erkan^: Have you been through Settings -> Accessibility -> Font size -> Extra large? Jan 15 00:03:40 Is that too small, or do some applications not actually respond the way you'd like them to? Jan 15 00:03:45 yeah, but i musst often change Jan 15 00:03:51 some little and big large Jan 15 00:03:57 zoom is a best solve, Gumboot Jan 15 00:04:04 but big large doesn't works alwya Jan 15 00:04:16 Because th screen is too small to fit everything on? Jan 15 00:05:22 crap. I was hoping to learn from an actual user, there, rather than pushing ahead with uninformed guesses. Jan 15 00:06:30 Well... onward with the uninformed guessing, then. Jan 15 00:11:11 When I tried to import the demo project from existing sources it gave me an invalid project description: Invalid project description. Jan 15 00:11:11 C:\workspaceandroid\bitmapfun overlaps the location of another project: 'bitmapfun' ?? Jan 15 00:12:18 Yet I can't import it as its own project Jan 15 00:15:00 Multiple APK apps now editable! Jan 15 00:15:14 Alleluia! Alleluia! (Handel's Messiah continued...) Jan 15 00:15:30 ? Jan 15 00:15:50 Ologn, somehow I still don't trust the new interface enough Jan 15 00:15:56 I'll do it from the old :p Jan 15 00:16:11 marcab, In the new console you weren't able to edit apps with more than one APK Jan 15 00:16:31 Ah, ty Jan 15 00:16:42 yeah it took me a little while to figure out how multiple apks actually worked because of that though Jan 15 00:17:39 multiple apk apps are a failure of design Jan 15 00:18:02 rated 1 star and uninstalled. Jan 15 00:18:19 ? Jan 15 00:18:25 Are we talking about the same thing? Jan 15 00:19:06 ? is a question mark. Stop drooling stupidly and ask an intelligble question. Jan 15 00:19:12 A failure of design is being discussed in a channel with an OS which had stopgaps like Honeycomb... Jan 15 00:19:12 pragma- Jan 15 00:19:14 pragma- Jan 15 00:19:21 can you make an app for me? Jan 15 00:19:24 is it possible to change the screen density on a nexus 10 for testing purposes? Jan 15 00:19:34 Lieutenant: what app? Jan 15 00:19:40 pragma-, what's wrong with multiple apk apps? Jan 15 00:20:01 A failure of design is being discussed in a channel with an OS where methods in a DEX can't exceed 65,355... Jan 15 00:20:02 etc. Jan 15 00:20:24 suppose i had a list of people that may call me (vs the rest that may not), what would be a good short term for 'someone who may call me' ? Jan 15 00:20:43 xorgate: callMeMaybe Jan 15 00:20:43 xorgate: allowed, whitelisted, friend, etc? Jan 15 00:20:55 hm i like friend Jan 15 00:21:02 cheers Jan 15 00:21:03 pragma- it's super complicated to explain. can i PM you? Jan 15 00:21:12 why me? Jan 15 00:21:26 cause you're the first person to type something when i joined. Jan 15 00:21:33 it's your fault. Jan 15 00:21:35 :( Jan 15 00:21:39 ha Jan 15 00:21:47 i'd changa answer to 'no' ;) Jan 15 00:22:10 can you help me out? Jan 15 00:22:13 Lieutenant: ... why would you think that would be a good idea or that it would work? Jan 15 00:22:41 felt right at the time. Jan 15 00:23:04 count to ten in the future; if it still seems like a good idea, go ahead Jan 15 00:23:17 so much for my reputation preceeding me Jan 15 00:24:01 can u halp me out? :( Jan 15 00:25:07 is it possible to change the screen density on a nexus 10 for testing purposes? Jan 15 00:25:30 Winslow: download one of the bazillion density changing apps and give it a try? Jan 15 00:25:36 wait in the queue. my question is asked first Jan 15 00:26:04 Winslow: https://plus.google.com/107708120842840792570/posts/cz5TxuoNDfG Jan 15 00:26:35 <[7]> Lieutenant: a question? Jan 15 00:26:51 Lieutenant: you can't summarize it in one sentence? i cannot think of any app out there that cannot be summarized with one sentence Jan 15 00:27:20 you don't need to explain the details, just state what its general purpose is Jan 15 00:27:39 any1 here use intellij eap on osx? Jan 15 00:27:50 pragma-: oh didn't know those existed. Thanks :) Jan 15 00:27:58 kevinb: Thanks! Jan 15 00:27:58 here, i'll try my best: well, a program where i can set a number of "circles" to display. and then i can click on each circle, and it would allow me to add a name on that specified circle, connected to the specific name on the SMALLER circle. does that kinda make sense? Jan 15 00:28:21 here is a shitty picture i drew to explain it a little more Jan 15 00:28:21 http://i48.tinypic.com/swtzcg.png Jan 15 00:28:40 you're talking about details, not purpose. Jan 15 00:28:45 like, it would automatically space the names out according to how many names are on that one line. Jan 15 00:29:20 basically organize teams of people, teams of hundreds of people Jan 15 00:29:23 purpose ^ Jan 15 00:29:36 to see which team or which subteam each person belongs to Jan 15 00:30:16 so it's a team hierarchy/structure represented by circles Jan 15 00:30:29 doesn't sound very scalable Jan 15 00:30:29 exactly Jan 15 00:31:09 well, as the circles get bigger, there is more room to put more names on each circle, Jan 15 00:31:13 what if someone belongs to multiple groups, or what if one group controls multiple other groups, etc? Jan 15 00:31:36 someone would only belong to one group, and not others Jan 15 00:32:13 just wanting to be able to organize the hierarchy structure to see who is on whos team (teams wont change or anything) Jan 15 00:33:10 something where i would be able to simply tap on someones name let's say "kim" for example, and i would be able to put a couple names down for her (and the app would then automatically put names connecting to her on the NEXT circle) Jan 15 00:33:35 the pic as an example Jan 15 00:39:47 allllright then Jan 15 00:41:36 I / ActivityManager ( 203): Start proc com.angeldsis.lou for service com.angeldsis.lou/.SessionKeeper: pid=21472 uid=10023 gids={3003} Jan 15 00:41:39 why is it re-starting my process when i returned START_NOT_STICKY ? Jan 15 00:44:37 clever: i've seen this but couldn't figure out why it's happening. i hesitate to suggest it's a framework bug as i haven't research it enough Jan 15 00:45:51 kevinb: in my case, i never call stopSelf, i just wait for the system to kill it Jan 15 00:46:56 same. what i ended up doing is in my onCreate i postDelayed a message that does stopSelf and in my onStartCommand i remove the message if the intent is not null Jan 15 00:47:26 onStartCommand isnt even being ran Jan 15 00:47:35 yeah, that's why i do the postDelayed in onCreate Jan 15 00:48:41 i guess that can work, but ive already wasted some cpu cycles and ram re-starting and then shutting down Jan 15 00:48:50 in Android 2.3.0 or so there was a bug where START_STICKY would not cause onStartCommand to be called, even though the documentation suggests it should. but onCreate was still called and the service was still considered started. This was fixed in 2.3.3 or so? I don't quite recall. Jan 15 00:49:17 yeah it's not ideal. i've meant to investigate further to see if it is indeed a framework issue or something i'm doing wrong. if you find anything let me know. Jan 15 00:49:40 i'm running 4.x when i saw this Jan 15 00:51:14 how are you testing the process being killed, just filling up the memory and seeing it actually happen, or are you killing the pid from adb shell? Jan 15 00:51:47 just leaving it run while i do other stuff (facebook, netflix) Jan 15 00:52:07 after logging out (service remains idle) Jan 15 00:52:25 not doing anything evil on from within the service Jan 15 00:52:35 I / ActivityManager ( 203): Process com.angeldsis.lou (pid 20494) has died. Jan 15 00:52:45 thats the only evidence of its death Jan 15 00:53:27 another option might be to stopSelf in onTrimMemory or onLowMemory unless your activity (or whatever) is bound Jan 15 00:53:49 V / SessionKeeper (20494): onTrimMemory(ui hidden or worse 20) Jan 15 00:54:08 kevinb: it only gets called once with a value of 20, and doesnt get called again Jan 15 00:54:17 but i could check if its idle, and allow it to stop then Jan 15 00:54:37 yeah. still not ideal, but might be better Jan 15 00:55:03 i was expecting it to get called more later, as facebook eats up all the ram and wants to start a killing spree Jan 15 00:55:58 might also be changes that amazon made, there is no LRU menu to access recent apps Jan 15 00:56:10 so several of those levels have little meaning Jan 15 00:57:20 i think 4.1 or 4.2 made improvements to onTrimMemory but it still doesn't seem to be called often between hidden and just killing the process Jan 15 00:58:56 kevinb: now that i look closer, http://privatepaste.com/77d8e3825a Jan 15 00:59:00 it got re-started twice Jan 15 01:02:12 Make that 4 seconds -> 39 milliseconds Jan 15 01:02:25 holyyy crap that's lightening fast Jan 15 01:03:36 kevinb: yeah, it shows that 3 of the codes where added in api 16 (i'm running 15 Jan 15 01:13:41 hey folks, trying to write an app that can read midi input from a keyboard… anyone know how this can be possible? the web is saturated with sequencer questions, etc but I'm trying to read from a device… Jan 15 01:18:53 mkjackson: what kind of device? Jan 15 01:23:11 mkjackson: you can do usb host mode on some devices w/ an otg cable. You'd then have to write your own drivers in userspace for the midi device. It's doable but not necessarily simple; how much hassle depends on how complex the midi interface device is. If it isn't usb, you may have problems Jan 15 01:23:32 mkjackson: i don't recall how friendly the midi protocol is to latency, you MAY be able to make a BT bridge Jan 15 01:23:43 but those are generally your only two options Jan 15 01:24:36 dragorn: you can do usb host drivers without root? Jan 15 01:24:53 clever: yes Jan 15 01:24:55 clever: using the usb host api Jan 15 01:24:58 in 3.2+ Jan 15 01:25:03 it's essentially libusb Jan 15 01:25:09 ah, nice Jan 15 01:25:16 got a link to the docs on it? Jan 15 01:25:27 it's in the developer api list Jan 15 01:26:00 clever: an example of it, http://kismetwireless.net/android-pcap/ Jan 15 01:26:05 clever: just a USB MIDI keybaord Jan 15 01:27:02 mkjackson: so: yes, you can do it. you'll have to write the driver from scratch, though if a driver exists in BSD you can port that. If you port a linux driver your code will have to be released under the GPL; if this is fine, then you can look there, too Jan 15 01:27:07 mkjackson: that will need a USB OTG cable and the drivers that dragorn mentioned Jan 15 01:27:23 mkjackson: it may have power issues, will only work on 3.2+ (and generally 4.x) devices Jan 15 01:27:47 dragorn: I'm only aiming at 4.2… doing this for myself more than anyone else Jan 15 01:27:48 and it will only work on SOME devices. Generally tablets seem to work, tho the xoom is funky. Moto phones need hw hacks to work. Nexus4 has no usb host. Jan 15 01:27:57 mkjackson: what phone do you have Jan 15 01:28:03 n4 Jan 15 01:28:06 too bad :( Jan 15 01:28:08 won't work Jan 15 01:28:30 well, the device I'm writing for is the Ouya console Jan 15 01:28:32 afaik is unlikely to be possible to make it work due to the weird usb hw it uses, though i've heard w/ a hacked power injector you might be able to convince something to happen Jan 15 01:28:44 fair. I have no idea if it'll ahve USB host Jan 15 01:28:55 if you want to do dev in the meantime, the galnex has usb host Jan 15 01:28:56 I'm pretty sure that it does Jan 15 01:28:58 as does the n7 and n10 Jan 15 01:29:07 that's good to know Jan 15 01:29:26 right now I'm waiting for a hub to come in so that I can go into the shell while the kb is plugged in Jan 15 01:29:31 can't even debug for now Jan 15 01:29:50 that won't work if you mean what i think you mean Jan 15 01:30:03 if you're running in usb host you can't plug into a laptop as well Jan 15 01:30:17 however you can do adb over tcp Jan 15 01:30:21 \/facepalm Jan 15 01:30:36 clever@ramboot ~ $ adb shell pm list features|grep host Jan 15 01:30:37 so if you're on the same wireless network you can do all the debugging over that while in usb host Jan 15 01:30:38 feature:android.hardware.usb.host Jan 15 01:30:45 clever: on the n4? Jan 15 01:30:48 clever: or the ouya Jan 15 01:30:48 dragorn: my kindle fire HD lists usb host, but the OTG cable does nothing with usb mice Jan 15 01:30:53 ah Jan 15 01:30:58 yeah so... lots of things lie Jan 15 01:31:03 dragorn: is it a driver issue, or is pm giving false info? Jan 15 01:31:07 one thing you can try to do is plug in usb Jan 15 01:31:09 and then run dmesg Jan 15 01:31:14 if you have a rooted system you can run dmesg on Jan 15 01:31:21 (or an older system which doesn't need root) Jan 15 01:31:47 sheesh… this is going to be a very VERY slow and painful process Jan 15 01:31:49 :-/ Jan 15 01:32:04 mkjackson: usb host is a very poorly supported feature Jan 15 01:32:07 mkjackson: it's infuriating Jan 15 01:32:22 <6>[634455.117584] atmel_mxt_ts 2-004c: got action code 1 Jan 15 01:32:22 <6>[634465.125762] atmel_mxt_ts 2-004c: set antitouch 20 1 0 0 Jan 15 01:32:36 dragorn: only thing that comes up when i connect the mouse is touchscreen related stuff Jan 15 01:32:38 dragorn: honestly, I'm praying that theings work out for Ubuntu Smartphone… then I'm blowing off the android bandwagon Jan 15 01:32:51 clever: sounds like it's not going to USB host Jan 15 01:32:52 mkjackson: they won't Jan 15 01:32:57 mkjackson: not any more than they do on android Jan 15 01:33:02 mkjackson: oh, you mean the ubuntu only version Jan 15 01:33:08 mkjackson: maybe, if you have root, and the hw isn't all shitted up Jan 15 01:33:32 dragorn: I'm figuring once the OS is out then the hive mind will find a way to put it on whatever hardware is easiest to unlock the bootloader for Jan 15 01:33:36 dragorn: anything i can check in /sys, i know i found the usb slave files in there Jan 15 01:33:39 everything right down to the vid/pid config Jan 15 01:33:57 dragorn: then the world is our oyster Jan 15 01:34:22 dragorn: Linux is a virus of the best type… been rooting for it since '99 and it hasn't failed yet Jan 15 01:34:30 mkjackson: i've never seen it happen, everything that looks promising gets shitted up in the handheld world Jan 15 01:34:32 dragorn: sorry, don't mean to get off topic Jan 15 01:34:33 but we can hope Jan 15 01:34:52 * dragorn rode the nokia train from the 770 on up and each time they screwed it u Jan 15 01:35:04 my opinion is that android provided the incentive to have HW vendors create linux supported devices Jan 15 01:35:38 that leaves the door open for other opportunities on the Linux front Jan 15 01:35:57 just my opinion, but it excites me when the pillars start shaking Jan 15 01:36:35 well, I'm gonna start digging into my contacts to see if I can get some info from some linux devs Jan 15 01:36:36 mkjackson: they can always go the nvidia route, pre-compiled binary blob (in this case, armv7 only) Jan 15 01:37:03 clever: indeed… those linux folks are a resourceful bunch Jan 15 01:38:39 running linux on a given piece of hardware is relatiely straightforward Jan 15 01:38:52 it's getting it to do any I/O and display that is hard :) Jan 15 01:39:07 ctate: yep Jan 15 01:39:21 at one point, i was considering porting android to a treo 650 Jan 15 01:39:28 but then i gave up before i even started :P Jan 15 01:39:37 (plus, of course, when people talk about running linux on a given piece of hardware often what they really mean is running xwindows, which is basically an unrelated problem.) Jan 15 01:40:13 ctate: ive seen somebody run X on a harddrive dock Jan 15 01:40:24 complete with a mac emulator Jan 15 01:40:41 it's not called "xwindows" Jan 15 01:40:45 ctate: http://spritesmods.com/?art=macsearm Jan 15 01:41:07 and real linux users don't use it Jan 15 01:41:26 pragma-: only thing i use X for is firefox, skype, and high-res xterm Jan 15 01:41:32 pragma-: if people can use "linux" to mean anything including userspace, i can say "xwindows" :) Jan 15 01:41:35 203 line x 50 columns Jan 15 01:42:41 ctate: http://spritesmods.com/?art=macsearm&page=5 Jan 15 01:42:51 ctate: he made a custom USB based gpu, with (i think) a framebuffer driver Jan 15 01:42:54 the original xorg website had as its first paragraph a disclaimer informing people on how to refer to the project and that "xwindows" was the most egregous sinfully incorrect way of referring to the project Jan 15 01:42:59 so he could get video on a device that NEVER had a gpu Jan 15 01:43:02 clever: pretty slick project Jan 15 01:43:12 pragma-: ask me if i care Jan 15 01:43:17 the entire thing, was jammed into an old mac, and ran a mac emulator Jan 15 01:44:57 ctate: do you happen to know why my service keeps restarting on its own, even though i returned START_NOT_STICKY Jan 15 01:45:00 I / ActivityManager ( 203): Start proc com.angeldsis.lou for service com.angeldsis.lou/.SessionKeeper: pid=21472 uid=10023 gids={3003} Jan 15 01:45:35 clever: that suggests that the SessionKeeper app started or bound it Jan 15 01:45:42 or has a binding to it Jan 15 01:45:50 ctate: the program was completely closed, and the screen off Jan 15 01:46:09 (if anybody has your service bound but your service's process goes away, it'll be relaunched to keep the binding alive) Jan 15 01:46:16 private service Jan 15 01:46:34 adb shell dumpsys activity services Jan 15 01:46:37 may be useful Jan 15 01:46:43 (it's a big wodge of text, btw0 Jan 15 01:47:08 clever: like i said, that message says that SessionKeeper is explicitly asking for your service to be running in some way Jan 15 01:47:12 either 'start' or 'bind' Jan 15 01:47:14 https://privatepaste.com/0e701d0797 Jan 15 01:47:36 SessionKeeper is the name of the service, onstart and onbind dont get called Jan 15 01:48:23 how about onNewIntent ? Jan 15 01:48:40 i'll have to check that next... Jan 15 01:52:36 ctate: why are the create and restart times negative? Jan 15 01:52:45 because they're in the past Jan 15 01:52:50 that's how long ago it happened Jan 15 01:52:51 ah Jan 15 01:53:16 is lastActivity refering to an activity, or when it was active? Jan 15 01:53:54 hm see also adb shell dumpsys activity processes Jan 15 01:55:01 might provide a bit more info about who has references to your service Jan 15 01:55:22 ctate: https://privatepaste.com/ced27c0d09 weird, i'm seeing references to otter's and vending in here Jan 15 01:56:03 there's no way that is everythign that is running on your device Jan 15 01:56:13 ctate: on line 1, i gave it a package name Jan 15 01:56:21 that's everything mentioning your package name? Jan 15 01:56:23 yeah, um Jan 15 01:56:31 dump the whole thing and look for other references to it Jan 15 01:56:36 i'm guessing it will filter to only thing that are referencing (or referenced by) my package Jan 15 01:56:56 it looks like the service is not currently live, though Jan 15 01:57:04 its process is in {bg-empty} state Jan 15 01:57:27 logcat is showing that the process has been re-started 3 times in a row now Jan 15 01:57:35 and i havent even gone near the app Jan 15 01:58:20 are any of the timestamps etc in that dumpsys changing when it has been running again? Jan 15 01:58:47 have any broadcast receivers? Jan 15 01:58:52 ctate: dont have timestamps on my logcat to pair things up to, and it seems to restart at random points Jan 15 01:59:06 get in the habit of always, *always* using -v threadtime with 'adb logcat' :) Jan 15 01:59:10 no receivers in the app, enless the licensing stuff put one i wasnt expecting Jan 15 01:59:56 ctate: dang, that breaks proclogcat Jan 15 02:00:03 maybe -v time? Jan 15 02:00:27 logcat without timestamps will not go to space today :) Jan 15 02:00:28 the code expects a single letter (VEW...) at the first char in the row Jan 15 02:00:35 bah. stupid wrapper. Jan 15 02:00:40 so any timestamps break it Jan 15 02:00:48 i was considering adding timestamps to the wrapper Jan 15 02:01:07 adb shell dumpsys activity broadcasts Jan 15 02:01:19 will tell you tons of stuff including whether your package has any known broadcast receivers Jan 15 02:01:22 i'm not seeing any onNewIntent on Service either Jan 15 02:01:33 whether manifest or registered Jan 15 02:01:44 *something* is doing something that requires that your app be running Jan 15 02:02:06 Handler (com.android.server.am.ActivityManagerService$2) {415439b8} @ 634737775 Jan 15 02:02:09 only seeing this one Jan 15 02:02:20 that means starting activities, starting services, binding services, broadcasts, alarms Jan 15 02:02:45 no alarm manager, all binds are done by an activity i never touched, no broadcasts that i requested Jan 15 02:02:49 err, that doesn't mention your package name Jan 15 02:03:10 i think thats a receiver within my process? Jan 15 02:03:29 when you dump all the broadcast info, pipe it to 'less', and then look for your package name, are there any entries there? Jan 15 02:03:43 looking Jan 15 02:03:57 lou doesnt show up anywhere Jan 15 02:04:02 maaaan Jan 15 02:05:35 hm, it's saying start proc [blah] for service Jan 15 02:05:38 let me add more Log.v's Jan 15 02:05:48 yeah, and it lists the name of my service Jan 15 02:05:55 which does suggest that it's either startService() or bindService() Jan 15 02:05:56 and onCreate gets called, but nothing else, that i can see Jan 15 02:06:03 or someone firing a service PendingIntent Jan 15 02:06:18 the PendingIntents are only aimed at the Activitys Jan 15 02:06:43 i guess you can look at the intent in onCreate(), right? Jan 15 02:06:51 oh, didnt think of that Jan 15 02:07:01 how do i pretty-print the contents of the intent? Jan 15 02:07:06 public void onCreate() { Jan 15 02:07:16 hmmm, and i think i'll need getIntent too Jan 15 02:07:41 but neither onStart() nor onStartCommand() are called? Jan 15 02:07:57 yeah, not seeing either show up Jan 15 02:08:43 just installed the new version with more logs, used it for a moment, then closed everything Jan 15 02:08:59 nor onBind() ? Jan 15 02:09:15 i believe that was not running either, but i had its log off Jan 15 02:09:20 also see whether your onDestroy() is being called Jan 15 02:09:22 all the logs are back in now Jan 15 02:09:41 and uh remember to mark all your overrides with @Override to make sure you aren't accidentally typoing the signatures somehow Jan 15 02:10:06 yeah, i do that when i'm not sure Jan 15 02:10:12 eclipse complained about onDestroyed! Jan 15 02:10:19 it's a good habit to get into for *everything* Jan 15 02:10:26 it's onDestroy() not onDestroyed() Jan 15 02:10:28 ;) Jan 15 02:10:44 yep Jan 15 02:10:53 V / SessionKeeper (25000): onTrimMemory(ui hidden or worse 20) Jan 15 02:11:09 its sitting idle now, all automated actions are disabled Jan 15 02:11:32 Leeds, all changes were merged in :) Jan 15 02:11:39 canadiancow: yay :) Jan 15 02:11:54 i may need to do a massive s/retreiv/retriev/ though Jan 15 02:13:02 ctate: so far, the process hasnt died on its own Jan 15 02:13:33 did onDestroy() get called? Jan 15 02:13:36 nope Jan 15 02:13:42 and i didnt call stopSelf either Jan 15 02:13:43 then the OS thinks it's still started or bound Jan 15 02:13:55 and onStartCommand returned START_NOT_STICKY Jan 15 02:13:58 that's consistent then Jan 15 02:14:03 it should be un-bound and 'started' Jan 15 02:14:10 and non-sticky, so when it dies, it stays dead Jan 15 02:14:45 right Jan 15 02:14:53 if you have root you can kill it now to test Jan 15 02:15:04 otherwise you'll have to thrash memory a bit to force it out Jan 15 02:15:13 I / ActivityManager ( 203): Process com.angeldsis.lou (pid 25000) has died. Jan 15 02:15:25 I / ActivityManager ( 203): Start proc com.angeldsis.lou for service com.angeldsis.lou/.SessionKeeper: pid=25216 uid=10023 gids={3003} Jan 15 02:15:29 V / SessionKeeper (25216): constructor Jan 15 02:15:36 V / SessionKeeper (25216): onCreate Jan 15 02:15:38 in immedaite succession? Jan 15 02:15:46 very close, let me get timestamps Jan 15 02:15:48 k Jan 15 02:15:54 what device are you testing this on? Jan 15 02:16:07 kindle fire hd Jan 15 02:16:29 the screen os off right now, so its running at reduced cpu freq, that may be part of the delay between death and re-start Jan 15 02:16:30 oh! Jan 15 02:16:39 okay um Jan 15 02:16:40 well. Jan 15 02:16:44 clever: sorry, had to go help repair the dryer. I don't know what the status is of host on the kindle but they have no reason to implement it Jan 15 02:16:51 it's possible that Amazon has broken this. Jan 15 02:16:53 clever: If you can go low-bandwidth enough, use blutooth Jan 15 02:17:01 dragorn: hardware or software missing? Jan 15 02:17:05 clever: otherwise you're in for a bunch of misery Jan 15 02:17:11 do please remember that the Kindles are technically *not* compatible Android devices Jan 15 02:17:13 they do not pass CTS Jan 15 02:17:13 clever: either, or, both, or a weird broken bit of HW Jan 15 02:17:17 01-14 22:15:09.684 203 203 I ActivityManager: Process com.angeldsis.lou (pid 25000) has died. Jan 15 02:17:21 01-14 22:15:09.684 203 203 W ActivityManager: Scheduling restart of crashed service com.angeldsis.lou/.SessionKeeper in 5000ms Jan 15 02:17:34 yeah that looks like the not-sticky logic is simply not present Jan 15 02:17:36 ctate: proclogcat was hiding this one! Jan 15 02:17:37 clever: could be like the moto devices where it requires power in to activate host Jan 15 02:17:58 what version of the OS does it claim to be running? Jan 15 02:17:59 dragorn: my usb mouse was not lighting up at all, and dmesg showed no hint of it detecting anything Jan 15 02:18:16 clever: this does not, in and of itself, tell us anything Jan 15 02:18:25 ctate: sdk 15, release 4.0.3, Jan 15 02:18:36 [ro.build.description]: [tate-user 4.0.3 IML74K 7.2.3_user_2330720 release-keys] Jan 15 02:18:45 wtf, svn has no local commit before the push? Jan 15 02:18:59 clever: yeah okay, should be fine Jan 15 02:19:02 i feel primitive Jan 15 02:19:03 clever: it's not enumerating it, but it doesn't answer anything. OTG Host could be disabled in the drivers, the chipset could not support host, the port could be wired to ignore the host mode pin Jan 15 02:19:13 that is disturbing. i would certainly suggest that you test the app on a real Android device if possible Jan 15 02:19:19 superfluous: correct; in svn, everything moves w/ the remote repo Jan 15 02:19:37 ctate: ive been doing most of my dev on the kindle, but i have a galaxy S3 i can also test on some of the time Jan 15 02:19:43 dragorn: thanks ;_; Jan 15 02:20:05 superfluous: cvs->svn, bitkeeper->hg/git Jan 15 02:20:07 ctate: https://privatepaste.com/303cfabad9 the full output of adb logcat -d -v threadtime | grep SessionKeeper -C5 Jan 15 02:20:11 superfluous: if that helps you any to visualize it Jan 15 02:20:42 dragorn: i dont know anything about cvs or bitkeeper... or hg for that matter :D Jan 15 02:20:44 ctate: in the case of killing it with root, it registers it as crashed, and restarts it after 5 seconds Jan 15 02:21:01 and never calls onstartcommand or onbind Jan 15 02:21:13 i'll grab dads phone and see what that does Jan 15 02:21:46 clever: yeah this really sounds like maybe Amazon's fault Jan 15 02:21:46 ctate: i plan to put the app on both the play store, and amazon store, so i need to test on the kindle anyways Jan 15 02:21:51 oh sure Jan 15 02:21:53 superfluous: ok. well w/out going into scm stuff too deeply in the android channel, svn, everyone follows the leader and to commit you have to be in lockstep w/ them and pre-resolve conflicts, commits go directly to the remote repo. Your checkout is not a full repo. Jan 15 02:22:12 superfluous: git, every checkout is a clone of the base repo and all your changes are local to your clone, until you decide to merge and push upstream Jan 15 02:22:25 superfluous: so pretty much just centralized vs distirbuted Jan 15 02:22:33 distributed, too. i type good and stuff. Jan 15 02:24:01 ctate: hmmm, not seeing the galaxy S3 on usb adb... Jan 15 02:24:06 Bus 001 Device 009: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II], GT-I9300 Phone [Galaxy S III], GT-P7500 [Galaxy Tab 10.1] Jan 15 02:24:47 Yeah. I was 'raised' with git.. now this android project is using svn and i just commit. It feels...dirty and dangerous lol Jan 15 02:25:01 ctate: nmap says that port 5555 is only open on the kindle Jan 15 02:25:15 superfluous: i went the other way, i'll never go back Jan 15 02:25:22 superfluous: if i must, i'll use git-svn instead :P Jan 15 02:25:31 clever: anyway, this definitely sounds like not your fault. Jan 15 02:25:36 maybe give that a look Jan 15 02:25:44 ctate: i'll need to test on the galaxy to see what it does Jan 15 02:25:56 yeah, that'd be a good idea as a sanity check Jan 15 02:25:57 and maybe read AOSP out of bordom, now that i have some decent context Jan 15 02:26:06 * ctate makes a note to figure out a decent CTS test for this Jan 15 02:26:55 ctate: any idea why i still cant get adb to work on the galaxy?, it just isnt doing it today Jan 15 02:27:07 are you on a Windows box? Jan 15 02:27:13 linux of course Jan 15 02:27:27 Bus 001 Device 012: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II], GT-I9300 Phone [Galaxy S III], GT-P7500 [Galaxy Tab 10.1] Jan 15 02:27:28 when it's plugged in does it show up in lsof? you might need to tweak your udev rules for it or something Jan 15 02:27:34 not lsof. lsusb. Jan 15 02:27:38 clever: debug turned on on device? udev permissions? Jan 15 02:27:38 lsusb can see the device as a whole, but not 'adb devices' Jan 15 02:27:51 i'm in the usb group, so i have write perms to the nodes Jan 15 02:27:51 adb updated to recognize that vendor? Jan 15 02:27:52 clever: do you see the USB debug notification on the phone? Jan 15 02:28:00 and adb debuging is enabled in the settings Jan 15 02:28:12 Leeds: nope, says connected as a media device Jan 15 02:28:20 problem on the tab side then Jan 15 02:28:31 erm, i9100 is an SII, not a tablet Jan 15 02:28:35 wait a sec Jan 15 02:28:37 crw-rw---- 1 root plugdev 189, 11 Jan 14 22:26 /dev/bus/usb/001/012 Jan 15 02:28:42 why is it in plugdev now? Jan 15 02:28:45 well whatever; he listed a galaxy tab in one of his lsusbs :P Jan 15 02:28:51 it was a member of the usb group last week... Jan 15 02:29:07 anyhow, the device should say usb debugging enabled any time it's enumerated on usb Jan 15 02:29:13 regardless of if the debugger is attached Jan 15 02:29:15 yeah, that was it Jan 15 02:29:16 as far as I'm aware Jan 15 02:29:25 really? weird. Jan 15 02:29:26 dragorn: never seen it do that, even when it worked Jan 15 02:29:38 never seen it have the debug icon in the status bar? Jan 15 02:29:46 as best as i can guess, the mtp drivers i installed changed my udev rules Jan 15 02:30:00 let me install the latest app and test it out Jan 15 02:30:09 clever: fwiw, look at 'go-mtpfs' Jan 15 02:30:22 clever: it's the only MTP interface I've found for linux which doesn't enumerate the entire device before access Jan 15 02:30:33 clever: ie, the only one that doesn't pretty much lock up for 30 minutes before every operation Jan 15 02:30:55 dragorn: ive been using mtpfs, and yeah it does kinda suck Jan 15 02:31:17 clever: look at go-mtpf Jan 15 02:31:41 clever: go-mtpfs that is. Yeah, it's written in 'go', so... uh... go team on that? But it works a treat and interfaces via fuse Jan 15 02:31:57 ctate: so if i repeat the same procedure on the galaxy S3, the service sits idle like on the kindle, let me murder it Jan 15 02:32:14 yeah it will certainly sit idle until it's killed for some reason Jan 15 02:32:25 (typically, to free up memory for some other app) Jan 15 02:32:54 01-14 22:32:35.286 4513 4513 V SessionKeeper: onCreate Jan 15 02:33:04 ctate: if i kill it from root, same thing, gets re-made Jan 15 02:33:08 huh Jan 15 02:33:10 but no ActivityManager telling me why Jan 15 02:33:14 err Jan 15 02:33:22 there will always be an activitymanager log about it Jan 15 02:33:30 look at 'adb logcat' not just the eclipse view Jan 15 02:33:39 always using xterm and adb logcat Jan 15 02:33:45 that's ... weird. Jan 15 02:33:46 eclipse just word-wraps it to death Jan 15 02:33:50 let me go over it closer Jan 15 02:34:01 so i'm confused now :) Jan 15 02:34:06 8850 01-14 22:30:24.256 4162 4162 V SessionKeeper: onTrimMemory(ui hidden or worse 20) Jan 15 02:34:13 field field is a line-number in the file Jan 15 02:34:15 i really need to test this, clearly Jan 15 02:34:41 9741 01-14 22:32:35.286 4513 4513 V SessionKeeper: constructor Jan 15 02:34:50 and in a new pid, yeah Jan 15 02:34:52 ok, so i have nearly 1000 lines of logcat to dig thru Jan 15 02:34:55 that's freaky Jan 15 02:35:01 maybe there is an Android bug! :( Jan 15 02:35:23 9731 01-14 22:32:35.176 4513 4513 D dalvikvm: Late-enabling CheckJNI Jan 15 02:35:28 this is the first occurance of the pid Jan 15 02:35:36 no trace of ActivityManager saying it was started Jan 15 02:35:46 9707 01-14 22:32:30.100 715 1138 I ActivityManager: Process com.angeldsis.lou (pid 4162) (adj 9) has died. Jan 15 02:35:51 i do see the death report Jan 15 02:36:37 ctate: so the galaxy S3 gives the exact same symptoms, and the logs are LESS helpfull then the kindle! Jan 15 02:37:48 let me dig into AOSP with the error from the kindle Jan 15 02:37:57 which is in https://privatepaste.com/303cfabad9 Jan 15 02:39:36 frameworks/base/services/java/com/android/server/am/ActiveServices.java: Slog.w(TAG, "Scheduling restart of crashed service " Jan 15 02:42:57 ctate: hmmm, not sure where r.restarter came from Jan 15 02:46:53 ctate: i can see how it gets restarted, just not why Jan 15 02:53:12 dragorn: do you think android accessory protocol will work on the kindle fire, if i have a host most accessory? Jan 15 02:53:50 clever: i have no clue Jan 15 02:53:56 clever: can you enable adb? Jan 15 02:54:04 dragorn: i have root in adb shell Jan 15 02:54:08 clever: if so, probably. I believe it uses the same comms channel. Jan 15 02:54:16 but who knows what amazon did Jan 15 02:54:40 dragorn: do you know of any simple app that checks support from the software end? Jan 15 02:54:43 nope Jan 15 02:54:59 sorry. accessory protocol was never that interesting to me Jan 15 02:55:25 ive thought of using it to write custom accessoryes, to input data of use to me Jan 15 02:55:36 like adding a regular gps module, or OBD-II Jan 15 02:56:07 yup. those are all things you could do. Jan 15 02:56:13 you can do obd2 over bt Jan 15 02:56:16 for about $25 Jan 15 02:56:26 it's not very high speed; see also 'torque' Jan 15 02:56:36 id rather have fun making it myself Jan 15 02:56:53 fair Jan 15 02:57:02 plus i can add more inputs Jan 15 02:57:20 adb shell cat /sys/devices/virtual/android_usb/android0//functions Jan 15 02:57:20 mtp,adb Jan 15 02:57:36 dragorn: only mtp and adb are enabled in the usb slave, at this instant Jan 15 02:57:54 but within the list of things it 'supports' i can see accessory, acm, mass_storage, ptp, and rndis Jan 15 02:58:29 do you know how much of that is kernel side and how much is userspace, how hard it would be to add/enable the missing pieces **** ENDING LOGGING AT Tue Jan 15 02:59:58 2013