**** BEGIN LOGGING AT Sun May 13 02:59:59 2012 May 13 03:00:16 although, i bet c# 5 features would not be available in their tools for a while, but maybe i am wrong May 13 03:01:00 well xamarin doesnt even support all of .net 4 yet May 13 03:01:03 BUT May 13 03:01:13 most of the 4.0+ stuff is just syntactical sugar May 13 03:01:21 additional features, and things to make life easier May 13 03:01:33 hmm, ok May 13 03:01:54 I'm going to have to learn a bit of C#, to read at least... May 13 03:02:08 meh its not so different from java May 13 03:02:15 diff keywords, events are diff May 13 03:02:24 and public string Name {get; set;} May 13 03:02:27 beautiful May 13 03:04:02 yeah, it probably has some nice features, but its not a paradigm shift. still a { } language :) May 13 03:13:09 ron_frown, im a big fan of the ease of making getters/setters May 13 03:14:58 ron_frown: since you have used obj-c and c#, which do you like better ? May 13 03:15:13 meh May 13 03:15:16 c# for sure May 13 03:15:25 obj-c is fucking odd as fuck May 13 03:15:48 I like that you can basically just drop c++ code into a iphone app and be done with it (obj-c is a subset of c++) May 13 03:15:56 its smalltalk on top of c. message passing + processes were alan kays original intentions for OO May 13 03:16:02 I dont like that apple just took concepts from c++ and started making up new names =) May 13 03:16:27 you can basically drop c++ code into an android app cant you? May 13 03:17:21 not the same concept May 13 03:17:22 but yes May 13 03:17:30 you have to use shitty jni May 13 03:17:36 * Hiraghm screams May 13 03:17:44 no May 13 03:17:46 no no May 13 03:17:47 /me looks at Hiraghm May 13 03:18:12 I've been struggling for some time to get my program to work with C++ and jni May 13 03:18:18 Hiraghm: well, oracle said they were going to overhaul JNI in java 8 or 9, should be around the corner in about 10 years May 13 03:18:32 I've got a nice C++ class for loading a lightwave object. May 13 03:18:35 it would be a masterstroke if MS allowed f#, c#, and c++ as first class citizens on windows rt May 13 03:18:39 its not THAT hard, but it is like 10x the work than say pinvoke in .net May 13 03:18:55 who uses lightwave anymore =) May 13 03:18:57 and I can't freaking figure out how to access the functions within the C++ class from the java side May 13 03:19:00 I do. May 13 03:19:45 and for this project, I kinda want to use a LW object May 13 03:19:54 but i think ms would also need to have opengl to make the c++ people happy, since many of the c++ people are actually game devs May 13 03:20:14 (for windows phone 8) May 13 03:20:40 * Hiraghm sighs May 13 03:21:05 i remember SWIG could generate a lot of the JNI boilerplate May 13 03:21:14 not sure if thats useable for android though May 13 03:21:30 you actually can create soley c++ apps now May 13 03:21:37 no java c++ interchange May 13 03:21:45 yeah, but you still don't have access to stuff like content providers May 13 03:21:56 g00s: iirc windows RT allows all .NET langs as first class citizens May 13 03:22:16 native stuff has to go through DCOM, supposedly, but still can access it May 13 03:22:39 p_l: yeah - that was stupid of me to phrase it like that, i should restate it as - it would be great if windows phone 8 allowed that situation. whether ms allows c++ on windows phone 8 would be another issue altogether May 13 03:27:23 Windows Phone is supposedly getting C++ support sometime soon May 13 03:27:45 and in theory, it should be possible to compile C++ to .NET IL May 13 03:28:31 OTOH, there won't be OpenGL there :) May 13 03:29:23 yeah, the lack of openGl for porting ios and android game stuff is probably not a good situation for them May 13 03:29:36 but i would be interested to know if f# would work too May 13 03:29:40 ron_frown: actually Objective-C isn't related to C++. And isn't a subset of C++ (it's separate path, mostly) May 13 03:29:55 i thought it predates it also May 13 03:30:08 It might be contemporary. May 13 03:30:13 back to Cfront days May 13 03:30:19 hah, cfront 1.0 May 13 03:30:41 well I've been told it was a subset May 13 03:31:21 Still, Obj-C took inspiration from Smalltalk and stuck more to object-oriented programming... C++ was "let's add classes and some vague polymorphism, all styled (afaik) after Modula" May 13 03:31:32 and then they kept adding weird and unclear features May 13 03:32:05 amen to the last statement May 13 03:32:23 do you guys think its bad to use iso 8601 format in a user interface ? May 13 03:32:38 yyyy-mm-dd hh:mm:ss May 13 03:32:39 g00s: depends what you're doing May 13 03:32:52 it's either iso8601 or locale-specific May 13 03:33:23 as it happens, iso8601 fits most locales ;) May 13 03:34:41 p_l: so how is your vax port to the 4001 going :) May 13 03:35:01 lol May 13 03:35:10 4004 :) May 13 03:35:16 actually, I got a contract for an android app May 13 03:35:34 though despite my usual stance on it, we're going with phonegap May 13 03:35:44 hmm May 13 03:36:12 hopefully it will clear my debts ^_- May 13 03:36:27 * p_l needs ~£1000 May 13 03:36:45 if everything works okay, I might grab some extra stuff May 13 03:38:25 we are using phonegap to simplify the whole process and make it easier to update. Otherwise, we would be looking at either constantly redoing xml layouts, or generating layouts on the fly May 13 03:45:17 p_l: since you know some about obj-c, did you actually do any ios dev ? May 13 03:45:56 tried looking into it, didn't manage May 13 03:46:02 also, don't have a mac May 13 03:46:09 p_l: oh, and we're still waiting on the p_l super secure edition of android May 13 03:46:17 :) May 13 03:46:22 g00s: requires funding May 13 03:46:31 of the serious variety May 13 03:46:33 p_l: try kickstarter ? May 13 03:46:38 or consider it ? May 13 03:46:45 might look into it May 13 03:46:53 but right now I've got other commitments May 13 03:47:00 :) May 13 03:47:06 yes, the vax port comes first May 13 03:47:09 XD May 13 03:47:31 lol May 13 03:47:33 nope May 13 03:48:08 also, porting vms to anything older than 386 would require emulating a more capable architecture ;) May 13 03:49:21 while you guys talk about ancient OS, apparently today's youth doesn't even know who Paul McCartney is May 13 03:49:29 http://www.thestrut.com/2012/02/13/the-internet-wants-to-know-who-paul-mccartney-is/ May 13 03:50:18 lol May 13 03:51:49 I'll admit to being nearly completely unknowing about The Beatles, but (excuse any slip-ups in names) Paul McCartney, John Ringo, John Lennon are people I recognize (I had fourth name at the end of the tongue but now can't recall it) May 13 03:53:06 all that just from listening to the radio May 13 03:53:11 um... May 13 03:53:58 * p_l might be bloody wrong, but it was his father that was a Beatles fan ^_- May 13 03:54:52 then he failed in his fatherly duties May 13 03:55:14 :D May 13 03:55:45 John Ringo??? May 13 03:55:52 Leeds: he tried, and I ended up quite liking, but I'm not a big fan or anything. And I tend to ignore the whole details ;P May 13 03:56:31 my dad is not only a massive fan, but he studied in Liverpool (the Beatles' hometown) in the 60s... I studied there in the 90s :) May 13 03:56:32 Leeds: hmm... right where I suspected something went wrong with my recall May 13 03:56:50 too many "Ringo" in my memory May 13 03:57:01 and surnames aren't first in the recall list May 13 03:57:06 how many Ringos are there? May 13 03:57:40 Leeds: first definition that comes with my mind is "apple" May 13 03:57:56 yes, the May 13 03:58:14 though I do find *why* I mistook. Brainfart to John Ringo, the military scifi author May 13 03:58:15 my friend Tony was the Beatle's backup drummer May 13 03:58:19 :) May 13 03:58:30 Beatles' record company is called Apple Corps, and a certain computer company was named after it... May 13 03:58:57 Leeds: for me, "ringo" is primarily a noun. In Japanese :) May 13 03:59:12 ... so I checked the wikipedia page. LOL @ myself May 13 03:59:38 I do get it when people mention Ringo Starr, but recalling it myself was apparently a failure :) May 13 04:00:51 still, for only listening to occassional talks on the radio, that's quite good recall May 13 04:01:15 I guess I have listened to better radio than native english speakers ;) May 13 04:08:14 app that checks your voice mail for you and can either play the message or display it as text? May 13 04:11:38 im running to a problem trying to get the lat and long from a LocationListion class May 13 04:11:44 it doesn't work May 13 04:12:10 "couldn't get connection factory client" May 13 04:16:50 nvm May 13 04:21:18 g00s: anyway, right now, I've got a project that is kindof bussiness CRUD form stuff May 13 04:27:26 me too May 13 04:27:31 every damn project I get May 13 04:27:32 ;) May 13 04:30:07 heh May 13 04:30:26 We are keeping it more interesting by nearly completely avoiding Java ;P May 13 04:31:27 UI in HTML and JavaScript, packaged with PhoneGap, server side done with Common Lisp May 13 04:31:29 p_l: thats like 90% of all software May 13 04:31:35 (crud) May 13 04:32:54 : May 13 04:32:55 :D May 13 04:33:05 in both meanings ;) May 13 04:47:29 http://news.ycombinator.com/item?id=3964530 ubuntu at google May 13 04:49:30 the changes to goobuntu are slightly bigger than it seems from that talk, but can be done with any distro :) May 13 04:50:16 * p_l was listening to his friend when he got his google-issue thinkpad May 13 04:51:35 TPM-protected boot, encrypted everything, etc. May 13 04:52:32 <`z> wtf May 13 04:52:32 <`z> o.o May 13 04:53:54 you *do* get root, though May 13 04:53:55 i never tried xmonad May 13 04:54:18 it's just that the google-issued laptops are configured so that if swiped, it isn't easy to get in :) May 13 04:55:15 g00s: xmonad is nice May 13 04:55:27 tiling WMs are nice in general May 13 04:55:44 especially on laptops May 13 04:56:00 how can i send commands to my android test device? May 13 04:56:10 not an emulator May 13 04:56:24 the same way you'd send it to an emulator May 13 04:57:24 p_l: i would have thought tling would only be good for really large displays May 13 04:57:43 pfn: how goes the studing :) May 13 04:57:49 *studying May 13 04:58:46 g00s: well, XMonad allows for quite a bit of keyboard control, and there are little bits you can use tiling for anywya May 13 04:58:49 *anyway May 13 04:59:17 also, there are several different layouts that can be combined. My default one is "Full", meaning Fullscreen :) May 13 04:59:31 pfn: telnet session is refused May 13 04:59:48 g00s: but I can have, for example, two terminals side by side (or one over another) May 13 05:00:26 nvm May 13 05:02:45 i even tried the adb shell and that doesn't have the geo command May 13 05:04:06 p_l: cool, i'll have to try it sometime, hope i don't have to know haskell to configure it :) May 13 05:07:03 g00s: heh May 13 05:07:16 g00s: for other than some basics, you need to know *basics* of Haskell May 13 05:07:21 nothing special May 13 05:09:28 my head hurts.. May 13 05:09:49 i don't know if it is fro looking at the cmd or the beer? May 13 05:10:13 s/fro/from May 13 05:12:03 has anyone on the mac used this ? http://www.sourcetreeapp.com/ May 13 05:12:14 tower looks nice but costs a bunch May 13 05:25:34 g00s what ide are you going to be using? May 13 05:39:37 ron_frown: ide for what? May 13 05:39:49 right now i am using eclipse. its like an old abusive girlfriend May 13 05:40:15 i use vim for little things like popping into android sources once in a while May 13 05:40:18 you loose autocomplete functionality recently? May 13 05:40:22 ose May 13 05:40:23 lose May 13 05:40:29 hmm … no May 13 05:40:32 i have 3.7.2 May 13 05:41:09 but it often doesn't work if a symbol hasn't been imported yet May 13 05:42:20 does layout_below not work to place something below a view that has layout_centerVertical set to true in a RelativeLayout? May 13 05:44:24 readme: are you using a skin ? May 13 05:44:34 or plain android May 13 05:45:13 no skins May 13 05:45:17 this has got to be a bug. May 13 05:45:46 i've had plenty of infuriating moments with RL. any cycles in your graph ? May 13 05:45:51 http://pastie.org/3903484 May 13 05:45:57 thats the whole thing :) May 13 05:46:07 the email appears below the name, when the name should be below the email. May 13 05:46:39 this only happens when its inflated by SimpleCursorAdapter though. May 13 05:47:00 * readme tries coloring each view. May 13 05:49:59 it was because I had fill_parent on the width of the name and last name May 13 05:50:03 but even then, they overlap strangely. May 13 05:50:09 so I'll fix that with some margin :) May 13 05:50:27 or not. May 13 05:50:53 * readme ditches centerVertical. obviously a waste of time. May 13 05:52:14 yep, works great now. May 13 06:44:34 Hi, my R.java is not working properly - my programs won't let me import it. Any ideas how I can fix it? May 13 06:45:59 Hey, what's up guys. I found the right channel now lol... I am completely stumped with a problem i've got here. I've got two custom drawable buttons being rendered through XML. I have one layout which contains two table layouts each with a few rows of buttons. When its like that, everything is a-ok, no problem. However, I need a scrollview. Shouldn't be a problem, but when the ScrollView is put on something curious happe May 13 06:57:42 How to make a view vibrate when I long press on it anywhere (I don't want buttons)? (newbie) May 13 07:06:45 How to make a view vibrate when I long press on it anywhere? ( I don't want buttons). (newbie) (got disconnected last time) May 13 07:08:56 PowerInside, http://developer.android.com/reference/android/os/Vibrator.html May 13 07:12:07 Eclipse is telling me that I have a Class File Collision with R.java, how can I fix this? May 13 07:19:51 saruik, are you around? May 13 07:27:14 PowerInside: http://developer.android.com/reference/android/view/View.html#performHapticFeedback(int) May 13 07:27:27 PowerInside: run that in an onlongclicklistener for that view May 13 07:27:59 and you wont need the vibrate-permission May 13 07:28:11 Ok lets see.. May 13 07:28:13 thanks May 13 07:47:10 jakob|: hapticFeedback is not guaranteed May 13 07:50:11 can someone help me with my first simple vibration app? Hopefully I need to get the syntax correct. I am new into OOP programming so I thought I will start learning it with android. http://collabedit.com/quyjq May 13 07:55:18 PowerInside > did you check the docs on the vibrator? May 13 07:55:35 .. May 13 07:55:46 yeah I did check a few.. I got recommended to 2-3 android reference links.. Im confused May 13 07:56:01 http://developer.android.com/reference/android/os/Vibrator.html May 13 07:56:18 which android version are you developing for? May 13 07:56:24 2.3 or 2.2 doesnt matter May 13 07:56:46 okay, you can use API 7 or 8 and up, then May 13 07:56:54 that link is most of what you need May 13 07:56:57 yeah its API8 set in my eclipse May 13 07:57:17 okay thanks I'll look into it.. hope I get it May 13 07:57:22 np May 13 07:57:33 for the long press use a touch detector May 13 07:57:37 or listener May 13 07:57:44 hackkitten: I find the names involved in vibration functionality to be deliciously filthy sometimes :) May 13 07:58:20 PowerInside > Eclipse can show you a list of possible standard functions to implement in an activity... including the listeners, IIRC May 13 07:58:24 p_l > isn't it fun? :D May 13 07:59:58 * g00s imported java.sql.Date instead of java.util.Date and could not figure out wtf was going on May 13 08:00:09 never a good time May 13 08:01:05 I once saw a piece of program that threw a runtime exception because of use of a generic type in the superclass that did not match the expectations of subclass. Both called Date, of course. May 13 08:01:09 that was hard to debug May 13 08:02:04 g00s > Java imports are evil :D May 13 08:02:08 even if the superclass gets compiled to use Object in the actual implementation of the code, the subclass's super call had a cast inserted to ensure that the returned type matched May 13 08:02:38 and of course there is android.text.format.DateFormat and java.text.DateFormat, which have absolutely nothing to do with each other, err except the android version makes the other ones as a factory May 13 08:02:51 :> May 13 08:03:01 'well-designed library' May 13 08:03:05 * hackkitten falls over giggling May 13 08:03:14 android = bad java habits May 13 08:03:28 well yeah, Android has the worst Java version ever May 13 08:03:28 there's disappointing amount of that stuff in there. Not a whole lot, but enough to annoy May 13 08:03:29 oh man, its such a pile (both the java and android date bits) May 13 08:03:41 * hackkitten offers a hug to g00s :) May 13 08:04:04 hi hackkitten :) May 13 08:04:25 what annoys me about the sql Date is that it apparently exists only because the util Date doesn't have nanosecond precision May 13 08:04:45 :| May 13 08:05:22 * g00s is playing with AttributedCharacterIterator … FUN May 13 08:06:22 hackkitten: the kernel driver is often called "vibrator.ko" ;) May 13 08:07:26 but yeah I guess I got to admit that I don't really see much point in Date at all. Afaik it's barely doing anything more than holding a single long integer inside. All the methods about it which did something have been deprecated forever. May 13 08:07:35 anothe peave of mine - at least in froyo, i can'ttotally disable haptic feedback, or at least i have it disabled in settings, but some apps still do it May 13 08:08:56 alankila: i can't believe what a herculean effort is required to get a simple date + time *with seconds* that is localized *AND* reflects the users preferences in settings for numeric date format order and 12/24 preference May 13 08:08:59 private transient long milliseconds; May 13 08:09:23 well android did something weird with the date/time formats May 13 08:09:37 because I don't think I can even *today* get a date that is actual finnish date out of it May 13 08:10:09 yet java supports that without a problem. Android's just a fuckup May 13 08:10:24 for example, there is android.text.format.DateFormat.getTimeFormat but it does not return seconds, and android's resources (templates) for the time format are private … so you have to fuck around with the returned pattern and add ':ss' or some crap May 13 08:10:32 some idiot decided to reinvent the wheel and this time make it a pentagon May 13 08:11:34 there's in general terms one accepted and expected time format per locale. I would imagine java has supported them since version 1.0. But for some reason android just had to redo all that shite. May 13 08:12:34 alankila: that feels true with too many things heh May 13 08:12:37 you can still call the DateFormat.getXXXInstance() factory methods, but they won't reflect preferences for 12/24 among other things. yeah, its a … total mess May 13 08:13:00 "because android" May 13 08:13:41 the people who designed it originally were not great programmers. They were maybe 80 % there, judging from the results, but they screwed up every now and then. It happens. What we should have is a migration path to non-suck land. May 13 08:14:14 and yes, I would appreciate a finnish date format. It is dd.MM.yyyy. May 13 08:14:28 yeah, i have wondered that myself. they do seem to be deprecating some things. but it seems like a mass deprication is in order May 13 08:15:28 alankila: do you get dd/MM/YYYY or something ? May 13 08:15:45 I can pick between MM/dd/yyyy and dd/MM/yyyy among other things May 13 08:15:57 yeah, in the settings. May 13 08:16:01 this confusion alone ensures that I will never accept 2/2/4-looking date May 13 08:17:29 correction. Looks like it's fixed since then. I just have to change language to finnish... confusingly it still offers the unofficial arrangements too May 13 08:17:46 alankila: can you pull the int from the format and just reset it yourself in the right order? May 13 08:17:55 its dirty but it might work May 13 08:18:10 * alankila doesn't care one bit about this issue, not really. May 13 08:18:17 fair enough :P May 13 08:18:52 too bad Josh Bloch isn't working with the android guys any more; i think they need "help" May 13 08:19:05 I just wish they would get rid of unofficial ways to write the dates. Jesus, all you have to do is pick language and locale, it's two questions and after that it's supposed to just work. And yes, I'd like a frankenlocale of english with finnish format conventions May 13 08:19:13 alankila: dd.mm.yyyy is quite common in eastern europe May 13 08:19:20 eastern and central May 13 08:19:39 because finnish translations invariably suck. Our language is verbose. You can't write the equivalent thing, it's always like 30 % longer May 13 08:21:24 sounds like a good language to test localizations; see if the stuff fits on the screen May 13 08:21:34 "keypad sounds" or something becomes like "valintanäppäinten näppäinäänet". May 13 08:21:40 you're never going to win with this language May 13 08:21:44 or if the layouts are large enough to handle the verboseness May 13 08:22:32 is there any "Preference.persistStringSet(Set)" method for "SharedPreferences.getStringSet(String key, Set default)"? May 13 08:22:35 are there something in Android (Launcher/SurfaceFlinger?) that gives hint about screen resolution? I have a 1280x800 display, and on first boot the screen flickers, and the wallpaper isn't properly stretched. May 13 08:22:43 nah, not a chance. They should just pull tricks to fit variable amount of text in the fixed areas... spill to multiple lines, shrink kerning artificially, at extreme end shrink font size May 13 08:23:02 I suspect it first does 1024x768, then repaints to 1280x800 May 13 08:23:33 Using an OMAP4460 chip, and TI's Android port May 13 08:24:00 if I reboot, everything settles correctly May 13 08:27:45 alankila > one time someone tried to teach me a few Finnish phrases... I never got the hang of it :( May 13 08:28:04 * alankila thinks the problem with finnish is largely the older generation who approaches new words and concepts they have never heard before, and then after understanding what it is, write a word they wish they had heard originally to ease the transition. So "swap file" became "on-the-fly swapping file". That is part of the reason why finnish translations suck May 13 08:28:15 heh May 13 08:28:33 this disease was rampant in the 90s. It's better now, but the official forms of the words are still too long May 13 08:28:43 everybody cuts half of the letters out in ordinary speech to spare time May 13 08:28:53 that's worse than what the French try to do at times May 13 08:29:02 with their 'official' French versions of such terms May 13 08:29:20 of course the Germans just use their versions and like it May 13 08:29:24 but they're nuts May 13 08:30:23 but as an example, "näppäimistö" is a word that means literally an assemblage of keys, and is understood to be a (computer) keyboard. But ordinary people say "näppis" because it's just too many syllables. May 13 08:34:26 we still need to kind of allocate syllable-time at end of the words because we'll be appending 3 or 6 or even more letters to embed these words in actual written speech, and to give them their role in sentence and relationships to other words May 13 08:34:44 -written, that was unnecessary. May 13 08:35:10 as somebody who has to learn swedish and finnish..crap :p May 13 08:35:49 alankila: does finnish have some amusing out-of-date IT lingo? May 13 08:36:22 p_l: nah, I think it's actually pretty good. Computers are everday items now, a generation is in their 40s who has lived with them. May 13 08:36:46 the "on-the-fly swapping file" became a "paging file" because someone observed that this awkward 20 letters long word was ridiculous May 13 08:36:54 yeah its kind of weird to think the generation of OG gamers is approaching their 50's May 13 08:36:59 alankila: yeah, but did you get some finnish words/translations instead of blindly naturalizing english words phonetically? May 13 08:37:00 and the paging file is just as good and not awkward at all May 13 08:37:04 if they were 0. May 13 08:37:18 alankila: paging file is actually the correct name, sort of May 13 08:37:32 p_l: oh yes, we do try to finnishize the words for general consumption May 13 08:38:17 polish had some funny words, or different choices back in mainframe days May 13 08:38:22 there are even some kind of public competitions to suggest translations for things. Most famously, CD-ROM became "romppu", which is just one letter away from the word of apple. That was amusingly clever. It caught on like wildfire, everyone was using it not longer than month later May 13 08:38:53 and I think perhaps that marked the point in time when IT terminology became something that started to fit in the finnish mouth May 13 08:38:54 interface was literally translated to "inter face" using very colloquail words :) May 13 08:39:15 while the world for file used the same word as "mathematical set" for some time May 13 08:39:27 our word for interface is in fact more like "contact/border surface". But that is fairly logical. May 13 08:40:13 We derived our word for "file" from "collection of records". That is still not exactly right, but it probably arrived from old mainframe days and data processing time May 13 08:40:57 all these words sound and feel mathematical or scientific in origing May 13 08:41:30 yeah, polish word for file still relates a bit to "collection" May 13 08:42:39 in fact, our word for computer is not one that calculates, but one that holds information. It's like we call them data-machines. That betrays, perhaps, a lack of appreciation of the nature of the beast. May 13 08:43:40 I think that processing is the central aspect of a computer. When computer science was invented, we called it "data processing science", so that part went much better imho. May 13 08:44:54 its okay May 13 08:44:55 the phrase for data processing is incredibly long. We simply have not somehow invented or embraced "data processing" as a concept, we use these generic expressions which spend 20 or 30 letters explaining the concept each time, instead of something that is literally a few syllables. May 13 08:45:02 I love the chinese words for computers and electronics May 13 08:45:19 Electric Brain... Electric ear... Electric letter... Electric shadow May 13 08:45:41 what is electric shadow? May 13 08:45:44 movies May 13 08:45:50 oh. I see May 13 08:45:50 lol May 13 08:46:15 electric brain... damn, haven't seen that in a long time May 13 08:46:19 lol May 13 08:46:30 (comes from really old literature. 60's or earlier) May 13 09:13:36 pork and beans May 13 09:36:42 hi May 13 09:38:19 how to use myJson.getJSONObject(0).getJSONObject(0).getString("abc") instead of this: myJson.getJSONObject("foo").getJSONObject("bar").getString("abc") ? May 13 09:38:46 in other words, how to walk through a json file ? May 13 09:46:00 maxagaz: look for some thing like myJson.getKeySet() or whatever like keys May 13 09:46:12 there's probably one of those, then you know how to iterate a JSONObject May 13 09:46:22 alankila: maybe json.names() May 13 09:46:29 ah, quite likely May 13 09:46:36 ok, thanks! May 13 09:51:37 anyone have any idea? ... http://stackoverflow.com/questions/10570790/java-multiple-arrays-sharing-same-content-of-parent May 13 09:52:56 for some reason, sometimes when I run an app from eclipse, it runs the emulator because the connection to my phone has been lost, then I have to replug the phone to use it again with eclipse, does someone know about such problem ? May 13 09:53:51 tape your cable to your phone :) May 13 09:55:33 that happens to me when the phone temporarily disconnects due to electrical glitch with cable at least May 13 09:56:05 * alankila is talking to one indian guy who uses gosu, a sort of derivative with java May 13 09:56:40 I think he managed to write 'var foo = String[]' and I think that means: Class foo = String[].class, and now is confused why foo[x] where x is some integer claims that property access is only possible with strings May 13 09:57:02 I honestly think that var is nice but guys like this need the dumbness of the real java to be productive May 13 10:01:02 because shit like 'var' crashes in some incomprehensible compiler error very far away from the error. A little more checkpoints here and there would be good... May 13 10:13:41 alankila: it happens half of the time May 13 10:14:00 there must be command to run to "replug" it May 13 10:15:11 maybe get a better cable, or a better phone May 13 10:15:30 I imagine unloading usb driver and reloading it might result in full reset of the connection :-p May 13 10:15:38 obviously can't recommend it May 13 10:16:01 I have two cables and a galaxy s2... May 13 10:16:23 I never had that on linux May 13 10:16:42 but it happens all the time on mac May 13 10:27:39 hi May 13 10:29:31 what is best practice to provide data to my android app - i.e. 100 fixed phrases which i want to access through button clicks - like "show next" ?!? May 13 10:29:53 xml or sqlite or array in source? May 13 10:30:20 data like that should never be in the source May 13 10:31:27 joink - yeah i know :-) May 13 10:32:01 but what to prefer instead? sqlite isnt the right thing i think. because i dont update or write anything - just read next entry on click May 13 10:33:55 put it in a txt or xml May 13 10:35:37 tank-man - txt could be easy too - just read line per line - thats my index then - thx for the idea May 13 10:38:44 boy that still pisses me off at google May 13 10:39:23 I log in to google on my phone's email address (gmail) and it automatically switches my youtube login from my most-used youtube address (hotmail) May 13 10:41:09 can't understand why this Relative Layout won't work.. the button with id=accept does not show when i run this http://pastebin.com/xaPQTYbD May 13 11:07:17 I have a class SensorsService extends Service implements LocationListener ... How can I send updates to my main Activity when onLocationChanged() is called ? May 13 11:30:20 if a have a string like "This is a test" and a setText to a TextView - can I string.replace(); with something to write "test" strong? May 13 11:31:40 i just asked this in #android but wondering if anyone here has an answer: May 13 11:31:41 12:30 < GarethTheGreat> hi, quick question - i have an app which talks to my website by sending the user to a particular URL in the android browser, it uses SSL and i'm getting certificate errors as it seems android doesn't have the correct root cert May 13 11:31:45 12:30 < GarethTheGreat> is it possible to bundle the required root cert within the APK? May 13 11:31:56 so I want to have a part of a String bold May 13 11:33:52 I have ARSensorsService that extends Service and implements LocationListener ... How can I send the location updates "onLocationChanged()" to an Activity ? May 13 11:51:31 GarethTheGreat: it is possible.. at least for using apache's DefaultHttpClient, etc.. May 13 11:51:38 GarethTheGreat: dunno about the webview May 13 11:54:05 hi tapas May 13 11:54:07 Guys, how long google dev's registration takes? It's still displays me "You can upload applications to Google Play but you cannot publish until your registration is completed." May 13 11:54:12 i'm using the external browser May 13 11:54:34 i know it can be done with the HTTP client in java May 13 11:54:40 can't find any info on bundling it for the browser May 13 11:54:51 GarethTheGreat: that i don't know, sorry May 13 11:55:44 thanks anyway May 13 11:55:50 i may have to splash out on a new CA May 13 11:56:13 anyone know of a good one which is widely supported (including on android and all the popular desktop browsers)? May 13 11:56:35 GarethTheGreat: http://forum.xda-developers.com/showthread.php?t=579854 May 13 11:56:47 it seems there might be an android way to add the certificate.. May 13 11:56:54 but then the user would have to do it manually May 13 11:57:12 GarethTheGreat: the other option is to get your certificate chain in order :D May 13 11:57:18 so android accepts it by default.. May 13 11:58:50 didn't google also act as CA? May 13 12:00:19 tapas: yeah, android isn't the first platform to not accept my cert May 13 12:00:25 so i'm thinking i need a new CA May 13 12:00:57 are you trying to import custom certs into Android? May 13 12:03:16 Atarii: i'm looking at trying to do so yeah May 13 12:03:21 Try this: May 13 12:03:22 http://wiki.cacert.org/FAQ/ImportRootCert#Android_Phones May 13 12:03:43 seems to work well from what I hear May 13 12:03:43 no good if every user has to do that May 13 12:03:51 ah yes May 13 12:03:59 didn't realise that's the route you wanted May 13 12:04:00 i need to either include it in the APK or i need to buy a new cert that already works May 13 12:04:04 I'm trying to make a simple "vibrate on long press anywhere inside a screen" app but it force closes. Any ideas? http://pastebin.com/FpCNEbzP May 13 12:04:12 i'm thinking most likely i'll go the new CA route right now May 13 12:04:25 http://www.sslshopper.com/ssl-checker.html May 13 12:04:28 is it even possible? Sounds like a security risk if apps can do it on the fly... May 13 12:04:31 what does this say about your site? May 13 12:04:41 my company's starting to get nicely profitable these days so i can get a better CA than my current el-cheapo one May 13 12:04:51 Atarii: i'd imagine it needs a permission May 13 12:05:04 even still, sounds bad in general May 13 12:05:17 tapas: http://www.sslshopper.com/ssl-checker.html#hostname=www.bitinstant.com May 13 12:05:22 don't want to spam the channel by copy/pasting it May 13 12:05:47 You don't want to download a Angry Brids app and find out it's over-ridden your Google certs to point to badsite.com May 13 12:06:25 true, but then you would if sensible read the permissions it asks for May 13 12:06:32 and wonder "why does this game need to install a new SSL cert?" May 13 12:06:58 at least i would, the average user probably just clicks through but there's no hope for them anyway May 13 12:07:49 average use doesn't know what SSL is May 13 12:07:51 user* May 13 12:09:35 Atarii: yeah, but there's lots of dodgy permissions an app could ask for that an average user won't notice too May 13 12:09:51 most will just click through and not even read the permission list May 13 12:09:55 ah true May 13 12:10:00 doesn't mean we should forget about putting stuff there May 13 12:10:20 I guess that's a bigger discussion topic ;p May 13 12:15:57 Can anyone quickly point out why this simple "vibrate on long click app" FCs ?! http://pastebin.com/FpCNEbzP May 13 12:16:00 I have ARSensorsService that extends Service and implements LocationListener ... How can I send the location updates "onLocationChanged()" to an Activity ? May 13 12:27:03 greets gents. been developing for 6 months now and I'm wondering. Is there a general purpose cradle which I can use at my desk - some of the test devices' ports are getting hurt/bent from all the movement. May 13 12:27:15 Did anyone leave message to me regarding : http://pastebin.com/FpCNEbzP (I keep disconnecting due to bad connectivity) May 13 12:27:24 i'm considdering buying a carmount, but I don't know what to look for. May 13 12:35:17 PowerInside: paste is private / invisible May 13 12:35:37 Oh my bad.. lemme see May 13 12:36:15 ok updated it http://pastebin.com/FpCNEbzP May 13 12:37:37 PowerInside: several things wrong with that code... I'm guessing it's nullpointering on line 13, I suspect you can't do that before onCreate is called. May 13 12:37:46 PowerInside: but the stacktrace should tell you. May 13 12:38:20 TheTrash: Oh, how to stacktrace? I am newbie May 13 12:39:07 http://developer.android.com/guide/developing/tools/adb.html#logcat (or find that in eclipse, there's a panel somewhere) May 13 12:39:15 hey guys May 13 12:59:00 hmpf May 13 12:59:04 adb doesn't like me today May 13 12:59:11 always displays me device as "offline" May 13 12:59:11 Guys this is more java related question - I have list with repeating values and I need to find out which are most common in list which are second most common third etc May 13 12:59:12 wtf May 13 12:59:12 ... May 13 12:59:54 Aeefire: sometimes the only thing that helps is: a] reconnecting the device b] rebooting the device May 13 13:00:03 c] rebooting the computer [windows] May 13 13:00:23 Trudko: count unique elements, then sort May 13 13:00:44 ya... restarting adb didn't help, now trying to reboot device... windows would be the last step :PP May 13 13:01:07 tapas what do you mean ? can you give me some pseudocode May 13 13:01:34 Trudko: no i am too lazy :D May 13 13:01:37 :D May 13 13:01:40 fair enough :D May 13 13:01:44 same here lol May 13 13:01:46 but I found this Collections.frequency(animals, "bat"); May 13 13:01:57 that should help May 13 13:02:04 Aeefire, use Win OS? May 13 13:02:12 yes :(^^ May 13 13:02:15 Trudko: well for that you need to know what to look for May 13 13:02:21 now works again (after rebooting the device) May 13 13:02:28 still stupid :P May 13 13:02:44 . May 13 13:02:47 Trudko: create a hashmap; iterate through list.. for every list entry check if in hasmap May 13 13:02:56 if yes, increase count by one.. May 13 13:03:06 if not, create entry in hashmap and initialize with 1 May 13 13:03:13 Where did Google move all the open source apps they had for android? May 13 13:03:37 how about going through all list for each value run Collections.frequency and if that value isnt at hashmap I will store it May 13 13:03:43 Trudko: this makes some assumptions though about the way you chack for existance in the hashmap, etc.. May 13 13:04:17 Trudko: that might work, too.. May 13 13:04:26 Trudko: and if it's in the hashmap already just ignore it May 13 13:04:31 yeap May 13 13:04:38 Trudko: note though that each call to frequency has O(n) i assume May 13 13:04:47 tapas we are geniusis :D May 13 13:04:51 disconnect your device, then connect it and wait to the dialog "automaticali bla bla" than klick "devic to show the data open" or so. May 13 13:04:52 what do u mean? May 13 13:05:15 Trudko: for java to determine the frequency of an object in a list it has to go through the whole list May 13 13:05:36 so for a list of n entries and the worst case all being unique your method scales O(n^2) overall May 13 13:05:39 MarcAurelio ... you are still talking to me? sry I don't really get what you mean.. but ya... rebooting the device has worked already ;) May 13 13:05:48 while my method scales as O(n * log n) May 13 13:05:50 yes sry.. May 13 13:06:04 thanks though May 13 13:06:29 i'm not sure one can do better than O(n * log n) for your problem May 13 13:06:58 tapas ou then doing counting by hand will be more faster May 13 13:07:09 this ignores the final sort, btw.. May 13 13:07:27 Trudko: maybe there's some smart way to do it less manually though.. May 13 13:07:39 nah this is easy enough May 13 13:07:50 Trudko: i'm no java expert.. but generally i found the collections support to be inferior compared to other programming language standard libraries May 13 13:08:04 Trudko: is complexity an issue? May 13 13:08:12 Trudko: how big are the lists you expect? May 13 13:08:30 Trudko: if they are in the order of a few tens of entries it hardly makes a difference which method you sue May 13 13:08:33 s/sue/use/ May 13 13:09:00 it can be around milion theoretically May 13 13:09:14 basicly I have picture and I take each pixel and determine it color May 13 13:09:16 then complexity is an issue i suppose :D May 13 13:09:17 that I put into list May 13 13:09:29 yeah May 13 13:09:33 so you calculate a histogram? May 13 13:10:43 yeah May 13 13:11:02 ok, so i suppose you have some sort of binning? May 13 13:11:24 or is there only a few colors present in the image? May 13 13:12:15 Trudko: use a library for that :D May 13 13:12:18 :D May 13 13:12:20 unless it's homework May 13 13:12:30 tapas yeas it is more or less May 13 13:12:45 not more than 10 colors May 13 13:13:20 is it grayscale? May 13 13:13:35 if so your hashmap can be of type HashMap May 13 13:13:44 given that the color is represented as an int May 13 13:14:26 tapas its color I hsv model May 13 13:14:56 and it will be String because i am converting integers to string as same color does not have always same H value May 13 13:15:25 rather have a HSV class and implement the equality check May 13 13:15:34 dunno about how HashMap checks for existance of a key May 13 13:16:08 nah I will probably use your way May 13 13:16:59 http://www.javaworld.com/javaworld/jw-06-2004/jw-0614-equals.html May 13 13:17:38 class HSV { int h; int s; int v; public boolean equals(HSV other) { .. } } May 13 13:17:44 HAshMap May 13 13:18:06 implement equals to return true if the other HSV object represents the same color May 13 13:18:47 coding all sunday May 13 13:18:51 coding all sunday is fun May 13 13:18:52 :D May 13 13:19:18 or use hashCode() to make it even faster. May 13 13:19:37 given that hashCode() returns the same number for two different HSV objects representing the same color May 13 13:20:41 i have a listview and onListItemClick opens a dialog and starts a method. at the end of this method i want to cancel the dialog May 13 13:21:12 in onListItemClick has final ProgressDialog progress = new ProgressDialog(Main.this); May 13 13:21:54 but in my class progress.cancel() does not exist May 13 13:21:59 what do i have to change? May 13 13:23:06 I have ARSensorsService that extends Service and implements LocationListener ... How can I send the location updates "onLocationChanged()" to an Activity ? May 13 13:24:39 vorwaerts.... for me, ProgressDialog.cancel() does exist :D May 13 13:25:57 i have a class foo that extends ListActivity so there i have protected void onListItemClick(ListView l, View v, int position, long id) and public void my_method() and in my_method i want cancel the progressdialog from onListItemClick() May 13 13:26:40 vorwaerts have you already looked at http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog May 13 13:27:04 yes May 13 13:27:31 tried : When you're ready to close your dialog, you can dismiss it by calling dismiss() on the Dialog object. If necessary, you can also call dismissDialog(int) from the Activity, which effectively calls dismiss() on the Dialog for you. May 13 13:27:31 ? May 13 13:28:55 hi. i am using git to develop an android app with a couple of friends. anyone here using git? i want to know whether it's good to git add * or just the src, res, etc folders skipping .class files etc? May 13 13:29:35 vorwaerts progressDialog.dismiss(); did the job for me.... tried this? May 13 13:31:20 When we are trying to run an app using the google maps api from netbeans, the emulator tells us the AVD is missing kernel files. May 13 13:31:28 tty_: basically.. put an ignore on bin/* and gen/* (you can let git create/manage the dirs but not their contents). May 13 13:31:41 We did create the AVD with Google APIs as target, though May 13 13:31:48 Any ideas how to fix this? May 13 13:32:17 Hello, I am getting an issue with setText where I am recieving a nullpointerexception. This is when using setText with a TextView variable equal to (TextView)findViewById(R.id.output) (the textview id is called output). This doesn't happen when I create a new textview though May 13 13:32:31 Aeefire but progressDialog does not exist in my_method() May 13 13:32:52 drwho: calling it before you call setContentView? May 13 13:33:00 you have a constructor like... ProgressDialog blarf = .... May 13 13:33:03 then do May 13 13:33:04 TheTrash: yes May 13 13:33:08 blarf.dismiss(); May 13 13:33:12 drwho: ...don't. May 13 13:33:18 tapas, I will do the list with Hashmap May 13 13:33:30 Aeefire but i need to find the dialog first!? or can i cancel all dialogs May 13 13:33:45 you need to specify the dialog yes. May 13 13:33:56 how? May 13 13:33:59 tapas by anychance do you remembe rhow to at the end order values in hash map according the value?(number of color) May 13 13:34:01 lol gawd May 13 13:34:06 or it is done automatically? May 13 13:34:07 do you have any idea of java? May 13 13:34:30 Don't manage dialogs yourself.. Use showDialog/dismissDialog .. or even better, use dialogfragment May 13 13:34:30 Aeefire please help me out May 13 13:34:39 ok vorwaerts May 13 13:34:49 TheTrash: it works fine that way with the TextView variable set to new TextView(this) May 13 13:34:53 you said you have ProgressDialog progress = new ProgressDialog(Main.this); ... to close it, just put progress.dismiss(); May 13 13:35:04 weird if it doesn't when its set the other way May 13 13:35:11 I'll try it May 13 13:35:12 TheTrash: thanks. that's what i thought. so i should just add the important folders and git will take care the files in it right? May 13 13:35:17 drwho: sure. It just doesn't do what you think it does :P May 13 13:35:26 Aeefire ProgressDialog progress = new ProgressDialog(Main.this); is in another method May 13 13:35:35 tty_: yeah, pretty much git add . in the root. May 13 13:35:46 so you'll have to make the variable "progress" global. May 13 13:36:07 so put ProgressDailog progess; into the class, but not into any method. May 13 13:36:24 Aeefire http://nopaste.info/1642ff987a.html in line 125 there is the dialog. in line 117 i want to close it May 13 13:36:38 and afterwards just do progress = new ProgressDialog(Main.this) and later progress.dismiss(); May 13 13:36:44 TheTrash: you mean in the root inside of the folders to track right? for instance inside the res/ folder ? May 13 13:37:39 tty_: no. What I do is, make a .gitignore, add the dirs I want to ignore.. then add and commit just the .gitignore. Then, I git add . (and the .gitignore will make sure the ignored dirs will be skipped). May 13 13:37:52 Then git commit that May 13 13:38:23 do what i said and you'll be fine May 13 13:39:43 Aeefire afer public class Main extends ListActivity { public ProgressDialog progress = new ProgressDialog(Main.this); May 13 13:39:58 ah ok I understand now had to set the setContentView(R.layout.main) in the beginning of oncreate May 13 13:40:01 thanks TheTrash May 13 13:40:31 drwho: yes, that's what actually connects the layout to the activity. May 13 13:40:55 The activity doesn't know which layout to use for finding that id before that. May 13 13:41:43 I see May 13 13:41:46 ye.. not bad... but now you have to hand "progress" over to your ASyncTask class.. (probably with a cunstructor or method variable) May 13 13:41:58 so you can refer to it inside the asynctask class May 13 13:42:17 so better this way: http://nopaste.info/641775fb5f.html ? May 13 13:42:25 ah stop May 13 13:42:44 ah its okay May 13 13:43:31 line 40 is bullshit May 13 13:43:34 actually May 13 13:43:35 lol May 13 13:45:40 Aeefire http://nopaste.info/54c699f958.html May 13 13:46:02 for http://nopaste.info/6180281b68.html May 13 13:46:53 Trudko: sorry, i couldn't parse your sentence May 13 13:47:02 also i was away for election :D May 13 13:47:18 what election lol ? :D May 13 13:47:39 community election in bielefeld, nrw, germany May 13 13:48:04 yes vorwaerts because progress = null .. May 13 13:48:06 oh you want to sort the entries in the hashmap? May 13 13:48:11 hashmap is a collection May 13 13:48:18 now go to onCreate and set progress = new ProgressDialog(this); May 13 13:48:56 and either hand over progress to ASyncTask via constructor, method variable or static reference.. (first would be my prefered one) May 13 13:49:19 Trudko: i think you can create a "list view" on the map and then sort that using Collection.sort May 13 13:49:24 not sure on the specifics right now May 13 13:49:30 aeefire i dont knwo how May 13 13:50:23 ok will check it May 13 13:50:28 Trudko: in the worst case, just copy the key/value pairs to a list May 13 13:50:31 and then sort that.. May 13 13:50:36 if I'd be cruel, I'd say: take a java book and learn how to. (which would be the better way to do so :D ) but yeah... give me some minutes May 13 13:50:54 implement a comparison function that compares based on the value part.... May 13 13:50:59 haha thanks May 13 13:51:00 tapas btw this mighy be useful in future http://stackoverflow.com/questions/81346/most-efficient-way-to-increment-a-map-value-in-java May 13 13:51:41 Hi, I keep getting this error java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.a.ff.act/com.a.ff.act.FitFrayActivity}: java.lang.NullPointerException May 13 13:51:53 I'm not sure where it is adding com.a.ff.act May 13 13:52:17 Aeefire when the class starts - i want a dialog to show me, that it is loading - and if i click an item i want a dialog to - and when manage_data() is through - i want close every dialog May 13 13:52:40 my manifest: http://pastebin.com/rjMnYDeD May 13 13:54:33 Aeefire inlistitemclick() loads manage_data again - but at the first time, when manage_data() is executed, i have no dialog - but i want May 13 13:54:33 Trudko: you could just use SortedSet maybe May 13 13:54:40 vorwaerts .. there are about a thousand ways to achieve what you want... give me a minute.. i have to do things on my own at first.. May 13 13:54:43 and put the count into the HSV class May 13 13:54:56 Aeefire okay no stress May 13 13:54:57 and compareTo takes only the count into account.. May 13 13:55:22 Trudko: just research a bit more :D May 13 13:55:29 yeap May 13 13:56:54 ok thx a lot! May 13 13:57:03 for a lazy guy you do a quite lot :D May 13 13:57:09 you vote you give advice for java :D May 13 13:57:29 man what do you do when are productive? :D May 13 13:57:46 I have ARSensorsService that extends Service and implements LocationListener ... How can I send the location updates "onLocationChanged()" to an Activity ? May 13 13:58:21 Aeefire please qry me, when your ready May 13 13:59:55 Trudko: i do this when productive: http://soundcloud.com/fps-2/phosphorus May 13 14:00:54 making music? May 13 14:01:00 yeah :D May 13 14:01:06 vorwaerts actually.. have u read through a serious asynctutorial? there are some things really wrong May 13 14:01:47 Could someone help tell me why com.a.ff.act/ is being added to ma activity path? I keep getting error java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.a.ff.act/com.a.ff.act.FitFrayActivity}: java.lang.NullPointerException May 13 14:01:57 Trudko: or writing software for making music.. sometimes i'm productive in my dayjob, too, though.. May 13 14:02:00 my* May 13 14:06:17 vorwaerts : this should work: http://pastebin.com/SVP9ETjF May 13 14:07:20 vorwaerts : uppps... i forgot something May 13 14:07:40 actually May 13 14:07:43 its a bit wrong May 13 14:15:13 is it bad to have more than one android project in a single workspace? May 13 14:15:46 * Jug6ernaut has like...20 May 13 14:16:04 whether thats good or not i can not say :P May 13 14:17:34 Jug6ernaut, because I'm suspecting it may be causing problems with my R.java could that be? May 13 14:17:45 no May 13 14:18:13 I've got this error Class file collision: A resource exists with a different case: '/Fit Fray/bin/classes/com/a/ff/act/R$String.class'. May 13 14:18:20 I've tried cleaning, rebuilding many times May 13 14:18:36 if u have problems with your R its a problem in ur xml files May 13 14:19:51 Jug6ernaut, there's not a single error in the xml files May 13 14:19:55 maybe in the manifest? May 13 14:20:04 manifest is also xml yes May 13 14:20:28 My compiler isn't bringing up any, could you have a look? : http://pastebin.com/rjMnYDeD May 13 14:21:50 looks fine to me May 13 14:22:14 ugh, I have no idea what to do - I've reset the project around 3 times. May 13 14:23:04 Jug6ernaut, would deleting R be a good ide? May 13 14:23:06 idea* May 13 14:23:26 would make any difference, R is recreated every compile May 13 14:24:36 Any idea what the class file collision might mean? May 13 14:24:43 I'm getting restless. May 13 14:25:05 never seen it b4, try googling around May 13 14:27:41 Is there any alternative rather than alt+r+t+enter to terminate process in eclipse? Sometimes default hotkey ctrl+f2 doesn't work and I have to use mouse. Grr. May be someone knows how to fix this? May 13 14:28:54 xa0c: i suppose you mean when testing. write it into the process, as a debug measure? May 13 14:29:53 Jug6ernaut, Just fixed it. May 13 14:30:01 what was it May 13 14:30:25 Jug6ernaut, I had this element in my layour files which I thought could keep the same id. I switched around the ids and it worked. May 13 14:30:36 vectory_: sorry, what? what I should write? :) May 13 14:30:41 ahh May 13 14:30:42 very weird because It never used to matter with my other apps May 13 14:30:50 (or I don't think it used to) May 13 14:31:13 xa0c: if you want to have a key to terminate a process, while testing it. or what kind of process? May 13 14:31:33 Yes, of cause I meant terminate while testing. May 13 14:32:07 xa0c, can't you assign a key yourself? windows general preferences keys. May 13 14:32:33 Sometimes ctrl+f2 worksand when it is, I can see in the 'run' menu that hotkey is 'ctrl+f2', May 13 14:32:56 tapas, coool nice song btw and I think I am idiot official because I realized that in the end i wont be able to use that solution. you know my taks is to take reissitor and take its color stripes in order to get value of that resistor problem is that I cant just take all of colors in cpicture of resistor and simply get which are most common May 13 14:33:10 I just cant get it: why sometimes this hotkey is switched off. May 13 14:33:23 xa0c: guess ctrl+f2 injects an exit command, which wont work, if the proc is not responding May 13 14:33:23 tapas because that way I cant differentiate if I have two stripes of color with same color divided by some other stripe May 13 14:35:03 All is ok with process. I cant stop it even if I just started and dont do anything yet. Clicking by 'terminate' toolbat button and 'alt+r+t+enter' works fine. May 13 14:35:13 toolbar* May 13 14:36:13 kg020: checked prefs: ctrl+f2 set as 'terminate' when 'debugging'. May 13 14:40:03 hi May 13 14:40:32 I'm using an external library with a project, but it becomes a problem when sharing it through git May 13 14:40:55 how should I integrate this library to my project May 13 14:42:28 is it possible to display high-res images (>10k x 10k pixels) on android? May 13 14:42:40 please help, I am trying to connect galaxy to kies but it is showing connecting and taking forever to connect in kies although the usb connection is working fine in windows explorer May 13 14:47:48 * hoangtran writing note about a game idea just came suddenly May 13 14:48:16 vectory_: well... I found: it works when I have set (and stopped at) some breakpoint. How I could fix it to work in any cases, even if no breakpoints was hit? May 13 14:49:14 *were hit May 13 14:50:50 Hey guys, I am running eclipse now.. but my logcat is no longer responding with logs.. its not on pause.. what could be wrong? May 13 14:51:18 check if pause button pressed (right top logcat's corner) May 13 14:51:28 xa0c: im not familiar with eclipse tbh May 13 14:51:54 xa0c: it isn't paused. the button isn't pressed. I even tried toggling it on and off May 13 14:52:13 PowerInside: filespace could be full May 13 14:52:15 PowerInside, have you selected your device? May 13 14:52:32 switch to DDMS and check if you are on the right device. May 13 14:52:32 kg020: Uh where would a selection be? May 13 14:52:53 eah... for java I prefer netbeans, but until I'm newbie in android, I have to use eclipse. That's sad. :( May 13 14:53:22 xa0c: You can set up netbeans for android programming too May 13 14:53:48 vectory_: Which filespace? My phone? May 13 14:53:55 xa0c: IntelliJ IDEA/Netbean, then Eclipse May 13 14:54:00 wherever logcat saves May 13 14:54:10 Yeah.. Without almost native google support and UI editor... Not now. No time to fix intergation problems. May 13 14:54:55 err, 'native g support', 'UI editor', o.O May 13 14:55:12 read above: "until I'm newbie in android" May 13 14:55:51 So you're not a newbie yet? May 13 14:56:31 yeap, then Eclipse should be the first choice, but keep an eye on others, they're not so bad :) May 13 14:56:38 Well.. I think, I reached newbie level. I hope so, at least :) May 13 14:57:32 I know. As I said: I prefer netbeans. :) May 13 14:58:12 ugh I think my R.java is corrupted. May 13 14:58:15 I just restarted eclipse and that fixed the logcat problem. :D May 13 15:02:23 If I wanted an application to, instead of using a computer's connection, use the connection provided on a Android device, would using ADB's forwarding of ports be a decent start? May 13 15:02:42 guys May 13 15:02:57 do you happen to know anything about time of flight cameras? May 13 15:03:04 Then writing a TCP/UDP server on the device to capture these requests and then ship them off to their queried source? May 13 15:03:26 in theory, would a driver be enough to make them work with an android device May 13 15:10:12 hello, I can't find a way to capture only a box instead of the entire picture with camera api May 13 15:10:16 is there a way? May 13 15:10:30 The_Jag, ehm... what box May 13 15:11:05 a "virtual" box of like 300x300 pixels in the center of the image May 13 15:11:05 BlackBox. :) He means a rect, I think. May 13 15:11:15 yes May 13 15:11:16 uhm... May 13 15:11:28 The_Jag, store the picture in a buffer and clip it May 13 15:11:38 so that when i snap a pic I only get that crop and not the entire photo May 13 15:11:59 ah May 13 15:12:06 thanks Dany0 May 13 15:12:07 The_Jag, dude, the android camera app is open source, look how it changes res/ratios May 13 15:12:16 easiest solution May 13 15:12:33 I updated Kies but still I am trying to connect galaxy to kies but it is showing connecting and taking forever to connect in kies although the usb connection is working fine in windows explorer May 13 15:12:45 I don't want to change res, I want to crop :) May 13 15:12:47 jennie, kies sucks :) May 13 15:12:59 what to do then ? May 13 15:13:06 The_Jag, told ya, it can do ratio too, check out the MIUI camera app if it's out already May 13 15:13:15 jennie, search XDA-dev not here May 13 15:13:25 ok May 13 15:13:26 ok thanks May 13 15:13:32 np May 13 15:19:03 How do I make a view inside a TableRow align to the center of the tablerow? May 13 15:21:46 Trudko: true May 13 15:22:03 i am trying to import an android project to eclipse but i get "No projects are found to import" what are the most commons cases for this? May 13 15:22:07 Trudko: do you have guarantees about the background and the position of the object in the field of view? May 13 15:22:15 I'm still struggling with this error: Description Resource Path Location Type Archive for required library: '...' in project '...' cannot be read or is not a valid ZIP file SP-Reversi Build path Build Path Problem... if anyone has any solutions it would be appreciated. May 13 15:22:39 tty_, depends what you're trying to import May 13 15:22:58 I usually use project > other > from source to workspace or something of the sort. May 13 15:23:04 it's a simple android app. something a bit more complicated than a hello world. May 13 15:23:27 tty_, but what are the files... a project? May 13 15:24:29 kg020: it contains a android manifest.xml the pogaurd-project.txt and project.properties along with bin, gen, res and src folders. May 13 15:24:42 tty_: what menu entries do you use to import the project? May 13 15:24:47 then create new project from existing source. May 13 15:25:14 the ADT plugin is a bit weird in this regard: create new android project May 13 15:25:23 and in its wizard select" from existing source" May 13 15:25:59 kg020: i tried but it don't copy the files inside the res and src folders. May 13 15:26:29 tapas: i tried File > Import and File > New > Project May 13 15:27:06 tty_, make sure you are selecting the right directory. May 13 15:27:27 kg020: i am sure. May 13 15:32:42 I'm using an external library with a project, but it becomes a problem when sharing it through git May 13 15:32:45 how should I integrate this library to my project May 13 15:33:26 Is there a way to display a tickerText in a notification until the user clears the notification? May 13 15:54:36 hmmmm May 13 15:55:20 i want to have a dialog dismissable by just clicking it anywhere, but still there should be clickable buttons (with other actions) in it... can i just set some listener to the sorrounding view and a different listener for those buttons inside the dialog? May 13 15:57:02 touchinterceptor May 13 15:57:24 Aeefire: are you extending a Dialog? May 13 15:58:10 not yet :) that's why i am asking if it's doable how i thought ( i would have done it inside XML) May 13 15:58:39 well i suppose you could May 13 15:58:47 not had a reason to try May 13 15:59:01 ya I guess I'll just try, shouldn't be that much work anyway :) May 13 15:59:49 see the problem is you couldnt make an outside linearlayout for instance clickable and have the buttons inside clickable, since the linearlayout would take the click i believe and never reach the buttons May 13 16:00:08 that's what i fear too May 13 16:00:31 on the other hand May 13 16:00:50 the new listener could "overwrite" the old one jsut for the element May 13 16:00:55 both possible :) May 13 16:01:31 so the best way would be to override ontouchevent or other, if the event is not in the hit rectangle of the buttons then perform a default action May 13 16:01:53 this feature could be provided by a custom layout and you can reuse it as a base layout in any other layouts also May 13 16:02:24 pretty advanced method though... will try the easy solution first ;) May 13 16:04:50 Aeefire: it really depends on your layout, if your buttons are in the middle of an area you need to me clickable then the only way would be to exclude that area from the interest of the containing view May 13 16:05:17 are you sure of that or just assuming it? May 13 16:06:12 im pretty sure May 13 16:17:50 hm it seems to differentiate May 13 16:17:51 just May 13 16:18:03 assigning the xml clicklistener doesn't work like i thought May 13 16:18:28 because it seems to take the Dialog class as activity where the listener should be in it and not the actual activity or something May 13 16:18:29 CVirus, have you viewed the Activites Loaders? I think that can you help. http://developer.android.com/guide/topics/fundamentals/loaders.html May 13 16:19:18 MarcAurelio: they're from a higher API level than the one I'm using ... I'm using 10 here May 13 16:19:19 admob mediation is supposed to work without network-specific code right? I've set up mediation and it works fine for admob requests, but when it recieves an adfonic request (which is succeeding in the log) it just never displays the ad itself. anyone have any clues as to why? (yes, I know I can e-mail them with the issue which I'll do if no one has any advice on here) May 13 16:19:22 gotta do it hardcoded then :) May 13 16:21:53 Aeefire: are you using a actual Dialog May 13 16:22:00 can you pastebin some code? May 13 16:22:01 yep May 13 16:22:38 hmmm.. can you using methods from another Activity? Is my first time codig java and for android. CVirus May 13 16:23:01 http://pastebin.com/vEejSATG May 13 16:23:10 just the referencing of onClick doesn't seem to work May 13 16:23:25 MarcAurelio: depends on what you are calling and from where May 13 16:23:41 but according to my logcat it differentiates between the image view and the rest of the linear layout May 13 16:25:21 Aeefire: btw, using onClick attribute is normally frowned upon because you cant tell the direct linkage May 13 16:25:56 Aeefire: its good for one reason and thats when you need to handle an onclick based upon what overrides and uses the view, but even then coding the setonclicklistener is still better May 13 16:27:09 i've just read that handling layout in xml is a good thing to do, so i did it mainly there ;) May 13 16:27:37 yes, thats correct, but not click May 13 16:28:11 does logcat have a string length limit for the text field? May 13 16:28:20 haha first time i hear that... May 13 16:28:39 Aeefire: hear what? May 13 16:28:41 but yes... it seems to have a reason. May 13 16:29:00 Aeefire: second, you will have some code May 13 16:29:18 xertoz that you shouldn't use onClick in xml code to get button clicks. May 13 16:29:56 anyone know if ICS supports crash reports ? when my application crashes on my GS2 with ICS I get no option to submit a crash report, on other versions this works just fine however May 13 16:30:28 rvsjoen: do you have a google account registered on the phone? May 13 16:30:29 Napalm ...ok?... did i ask for some? :D ... still i am interrested in it :) May 13 16:30:38 nope, but im bored May 13 16:30:43 :DD May 13 16:30:47 less thinking for me :P May 13 16:31:00 ge0rg: yes May 13 16:31:26 well, at least it's listed under "Accounts and synchronization" May 13 16:33:57 * Aeefire is so excited about Napalm's code :PP May 13 16:37:51 when using the gravity attribute in XML, how do "fill_horizontal" and "fill_vertical" differ from "fill_parent" when specifying the width of a widget? May 13 16:38:40 Could anyone please enlightnen me why would this Layout file give me a force close: code: http://pastebin.com/61gAG3D1 | snapshot: http://postimage.org/image/y9nbwvqaf/ May 13 16:42:40 so.... napalm? May 13 16:42:45 hang on May 13 16:42:52 kk May 13 16:44:58 Aeefire: are you overridding the dialogs title with a custom one? May 13 16:45:09 at the moment yes.. but it looks like shit May 13 16:45:15 lol May 13 16:45:20 soo I am going to exclude it via theme May 13 16:48:19 Can anyone tell me where I can get the R.java library on its own? May 13 16:48:37 I need to place it into my project again as it seems like its not reading it. May 13 16:48:40 (the jar file) May 13 16:48:47 k020 May 13 16:48:51 go to project => clean May 13 16:48:56 (in eclipse) May 13 16:49:16 do not import the file. May 13 16:49:19 Could anyone please enlightnen me why would this Layout file give me a force close: code: http://pastebin.com/61gAG3D1 | snapshot: http://postimage.org/image/y9nbwvqaf/ May 13 16:49:20 thats important :() May 13 16:49:33 Aeefire: just did a test project, what sort of problem were you having, but it seems to be working for me May 13 16:49:43 i can click the children without the parent getting notified May 13 16:49:45 w/ onClick in xml? May 13 16:49:56 the parent is only notified if a child does not process the click May 13 16:50:03 yes May 13 16:50:07 that's what i was saying May 13 16:50:13 what is it you wanted? May 13 16:50:25 onClick caused a crash May 13 16:50:33 because "method wasn't found" May 13 16:50:37 thats because your using onClick May 13 16:50:39 Hi May 13 16:50:41 yes May 13 16:50:45 that's what i was saying May 13 16:50:47 and afterwards May 13 16:50:55 you said, you'd give me some code May 13 16:50:55 lol May 13 16:50:57 xD May 13 16:51:07 I have a question about what i should use to achieve what i need. May 13 16:51:17 Aeefire: and those methods must be declared in the Activity May 13 16:51:25 this is another reason why they are not used May 13 16:51:43 Mantas322: just ask May 13 16:51:54 ye they are.... but not found ( i guess it's because it takes the dialog as activity) so I'll do it the better way, like you suggested May 13 16:51:55 :) May 13 16:52:06 I want to have a custom dialog with a bunch of images that the user can scroll from left to right within the dialog. should i just populate a bunch of images ina horizontal scroll view? or should I use a gallery control? May 13 16:52:13 yea, dialog is the context of the onclick's May 13 16:52:46 Aeefire: so all you need to do is call d.findViewById(R.id.button_search).setOnClickListener(...); or whatever May 13 16:52:51 I want to also be able to programmatically scroll this horizontal image list to a random point, prorgrammatically May 13 16:53:09 Mantas322: Gallery control May 13 16:53:13 ya i did that at some other place already... :) May 13 16:53:23 thats what i figured May 13 16:53:54 oh and a side question... May 13 16:53:55 Mantas322: Gallery like a ListView recycles its views and therefore is better for performance May 13 16:54:00 whats everyone targetting these days? May 13 16:54:39 well with a scroll view I know you can programmatically scroll it somewhere but is that as easy on a gallery control? May 13 16:54:45 Aeefire, I've tried cleaning, re-building and starting a new project already. May 13 16:55:04 did you manually delete the R.java too + project => clean ? May 13 16:55:19 aeefire, yes. May 13 16:55:26 weird May 13 16:55:32 this is my error: Description Resource Path Location Type Archive for required library: 'gen/com/android/fitfray/R.java' in project 'FitFray' cannot be read or is not a valid ZIP file FitFray Build path Build Path Problem May 13 16:55:55 Mantas322: its the same i believe, you can just set call scrollTo and you can get the position of a child view, if not you can always just setSelection or something and bring it into view May 13 16:55:56 have you deleted all R.java imports (they often get in there by pressing automatic imports) May 13 16:56:03 I've been trying to tackle it for three hours, I'm guessing its something wrong with the sdk. May 13 16:56:24 are you trying to import it? May 13 16:56:28 im curious about whether or not I will be able to achieve the scrollign animation May 13 16:56:42 thanks for your input Napalm May 13 16:56:48 so are you trying to import the project? May 13 16:57:20 aeefire, as things stand - I'm not even able to import R. May 13 16:57:36 but referencing R.id.xxx is allowed May 13 16:57:53 Mantas322: it wont take you a second to simply add a Gallery and set an adapter to it May 13 16:57:57 you don't need to / must not import r, as it is automatically compiled / created May 13 16:58:34 to import an android PROJECT => create a new project and select "from existing source" or something like that May 13 16:59:25 aeefire, I'm wondering - is there some way of checking the paths? to see if they are correct? May 13 17:00:16 you could look up the project's .classpath or project.properties (which are eclipse IDE specific afaik) May 13 17:03:07 * Ge0rG wonders which string he should add to the about dialog, "vote on play store" or "give feedback"? May 13 17:04:09 Aeefire, weird... it just worked May 13 17:04:15 haha May 13 17:04:16 ^^ May 13 17:04:53 I created an linux abstract unix domain socket in native side (with \0 as the first byte in sun_path of the sockaddr_un) and I tried connecting to it using LocalSocket but I keep getting connection refused, sun_path and the name I used in LocalSocketAddress are the same... any tips? May 13 17:04:54 as in, I didn't do anything and I just checked the app to see if it worked (not sure why, I was getting desperate) and it did. May 13 17:06:04 aeefire, and now it stopped working again. R.java be tripping May 13 17:06:29 lol weird May 13 17:06:35 reinstall sdk / eclipse? :PP May 13 17:06:58 I'm so annoyed, my application was nearly finished - Just needed to set up bluetooth May 13 17:08:45 Aeefire, now I got this 05-13 17:08:10.756: E/AndroidRuntime(555): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.a.ff.act/com.a.ff.act.FitFrayActivity}: java.lang.NullPointerException May 13 17:08:58 wth. May 13 17:09:01 never seen this sry May 13 17:09:12 Hi people. I'm having some trouble with alarm manager. How do I even check if it is getting scheduled? May 13 17:09:22 my guess would be that its something to do with the manifest? May 13 17:09:30 My receiver never gets anything + I dont see anything in the logs. May 13 17:11:35 hi May 13 17:18:16 aeefire, if I re-install the sdk on its own, will it affect the eclipse plugin? May 13 17:18:37 i guess it shouldn't May 13 17:22:02 Is there a standard way to take screen shots? May 13 17:22:10 On a device May 13 17:22:27 no May 13 17:23:30 Thanks, Anyone know how to take one in a kindle Fire specifically then? May 13 17:24:05 ah eric posted some May 13 17:24:07 TheBunny: are you talking about programmatically? May 13 17:24:13 no May 13 17:24:19 TheBunny: then just use ddms or adb May 13 17:24:24 both support screenshotsd May 13 17:24:35 hmm can you programmitcally set which layout an xml - should include? May 13 17:24:43 * TheBunny looks May 13 17:25:02 Aeefire: you dont, you simple do ViewGroup.addView() May 13 17:25:23 so that could be the parent layout.addView May 13 17:25:56 ViewStub might also help you May 13 17:26:29 Aeefire: http://developer.android.com/reference/android/view/ViewStub.html May 13 17:26:38 thx. May 13 17:30:09 can't understand why this Relative Layout won't work.. the button with id=accept does not show when i run this http://pastebin.com/xaPQTYbD May 13 17:30:12 Good afternoon! May 13 17:31:37 strangebrew: remove android:layout_marginTop from the accept button and see what happens May 13 17:34:16 hmm can i create folders inside of /layout/ ? May 13 17:34:28 nope May 13 17:34:33 grml May 13 17:34:40 i know, wish we could May 13 17:34:45 Got a SS, thanks Napalm May 13 17:34:45 ya May 13 17:34:54 getting quite a bunsh of stuff in there May 13 17:35:44 Aeefire: you've never seen a proper bunch of stiff May 13 17:35:47 stuff in layouts May 13 17:35:53 :P May 13 17:36:05 it's just a hobby right now for me.. so no.. i guess not :) May 13 17:38:24 thanks Napalm, but no..it's still not there May 13 17:40:14 strangebrew: it was just a first guess, have you tried to align it to the bottom of the parent May 13 17:40:25 strangebrew: so that the bottom edge of your view is the bottom edge of the layout? May 13 17:41:17 i haven't but i'll try it now, brb May 13 17:41:22 strangebrew: why are all these margin's in here? May 13 17:41:33 is it so your views appear underneath others? May 13 17:47:20 strangebrew: still around? May 13 17:47:27 yeah Napalm May 13 17:47:28 sorry May 13 17:47:41 wasn't here May 13 17:47:46 your play button should be an ImageButton with src rather than background May 13 17:47:58 that might be the cause, at a outside guess May 13 17:48:21 seems like a good guess, i'll try it May 13 17:48:32 sorry for the slowness:) May 13 17:48:45 does it look ok in the graphical layout editor? but not on device? May 13 17:48:49 yeah May 13 17:49:05 in the graphical editor looks ok May 13 17:49:14 *it looks May 13 17:50:28 i'll be back soon(not on my developing pc) May 13 17:50:28 your centerInParent should be centerHorizontal really May 13 17:52:25 here i am. sorry bout that May 13 17:52:35 trying what you've said May 13 17:54:30 hmm can't a relativelayout be clickable? :/ May 13 17:54:58 I've been stuck with this problem for the past few days ... I have ARSensorsService that extends Service and implements LocationListener ... How can I send the location updates "onLocationChanged()" to an Activity ? May 13 17:56:16 CVirus: have the activity bind to the service and register a listener @onResume and deregister it @onPause or hand over a Handler and use messages May 13 17:56:29 Napalm: can you link me to a sample code ? May 13 17:57:44 CVirus: google and you'll find some May 13 17:58:08 Napalm: can you please explain what do you mean by register a listener @onResume ? May 13 17:58:09 still doesnt work, i've changed all of the centerinparent to center horizontal and the play button to an image button May 13 17:58:53 why is this relativelayout so complicated:O May 13 17:59:13 because your making it complicated May 13 17:59:36 why not just use a LinearLayout and a RelativeLayout to position the two buttons or something May 13 18:00:35 thought that it's better to use less layouts May 13 18:00:59 but i'll do that May 13 18:01:29 thank you Napalm May 13 18:02:06 CVirus: http://developer.android.com/reference/android/app/Service.html#RemoteMessengerServiceSample May 13 18:03:15 Napalm: thanks a lot .. I'll see what I can do May 13 18:05:44 Hi people May 13 18:05:45 Recently my avd manager seemd to stop working. I´m not able to make it display my i9000 as an available option to launch my projects. I´ve tried 5 or 6 different drivers, also pdanet drivers and google drivers, reinstalling eclipse, updating tools and I don´t what to do May 13 18:05:47 can anybody help me please? May 13 18:06:44 Shogo: unplug your device from usb, then enable and disable usb debugging May 13 18:07:06 of course that´s the first thing I did May 13 18:07:14 Shogo: then do: adb kill-server then plug your device back in and do adb devices May 13 18:07:24 and I also think that it is not a problem of the rom I flashed on it because it worked until yesterday May 13 18:07:32 k May 13 18:07:33 gimme a minute May 13 18:10:29 shit May 13 18:10:31 it´s strange May 13 18:10:46 platform-tools directory has disappeared but I have platform tools installed May 13 18:10:47 :/ May 13 18:10:57 I mean, android sdk tools May 13 18:11:17 what OS you on? May 13 18:11:21 since some release time ago, the location of adb.exe changed to another directory within sdk May 13 18:11:27 win 7 x64 May 13 18:11:49 you could at least try "adb" from commandline to check that at least it works there? first locate adb.exe May 13 18:12:06 i´m looking for adb.exe. I haven´t added it to the path so I ´ve to find it May 13 18:12:17 Napalm May 13 18:12:25 yus May 13 18:12:51 i am somehow to stupid to reference a RelativeLayout inside my code.... i need something like findViewById, just for layouts, any suggestiosn? can't find it. May 13 18:13:40 Eh May 13 18:13:44 RelativeLayout is a View May 13 18:13:51 just give it an id May 13 18:13:51 well, it shows my device May 13 18:14:14 then probably the error is somewhere else *grml*.. doesn't seem to work.. ok anyway. May 13 18:16:29 List of devices attached -> 38324F351E0E00EC device May 13 18:21:03 Napalm, is that ok? May 13 18:22:15 SuD ? May 13 18:22:55 When I launch a new Activity from my main activity all goes well but when press the phone's back button I get the SuperNotCalledException. Both my Activities have super.onCreate(savedInstanceState); on their first onCreate line. What is wrong? May 13 18:23:11 so was it that it detected your phone, but not as a suitable device for the app? what are min-sdk and target-sdk and your phone version? May 13 18:23:53 wargh i am getting angry.. i seem to be too stupid for everything today.. May 13 18:24:00 SuD that´s the strange thing.. I also tried to kill, restart and that stuff some hours ago.. I´m checking it, 1 sec May 13 18:25:18 target is 7... I´ll see if I can tell you the other 2 values May 13 18:25:19 back May 13 18:25:31 my phone version es 4.04 May 13 18:25:34 is* May 13 18:25:34 i'm trying to modify an application, and i cannot figure out where to find / modify a theme. what file is the section in? May 13 18:25:53 Shogo: looks like its showing your device in adb May 13 18:26:07 min sdk is 7 also May 13 18:26:10 so if its still not working in ADT then its an ADT/Eclipse issue May 13 18:26:12 Napalm, yes it shows it May 13 18:26:50 everything it´s being working until yesterday May 13 18:26:52 Shogo: se me acaban las ideas May 13 18:27:03 SuD Español?¿ May 13 18:27:23 si, and your "es" te ha delatado May 13 18:27:35 :) May 13 18:29:17 has* not it´s May 13 18:29:19 sorry about my english May 13 18:30:13 and the last thing you did is update the phone? May 13 18:30:19 Hi having some trouble with adb, i used 'adb clean debug installd', and from the output it says it used 'test-debug.apk' i then try 'adb unistall test-debug.apk' and i get output 'Failure' .. any clues? May 13 18:30:35 ive tried searching /data/app/ and using the apk filename there but no luck either May 13 18:30:56 SuD, i flashed a new rom few days ago but I´ve been able to launch the project on my phone several times since I have this rom May 13 18:31:20 I´ve also tried with a pair of htc desire and they also don´t work May 13 18:31:36 doesn't AVD give an explanation message? May 13 18:31:42 j0hnsm1th: adb unistall takes package path as parameter not apk May 13 18:32:19 Napalm, i was wondering what in the adb help output alluded to... so i should use /data/app/test-debug.apk ? May 13 18:32:29 SuD where?? When I open AVD it just shows a virtual device that I created some time ago.. May 13 18:32:50 j0hnsm1th: no the java package path NOT path to file May 13 18:33:04 j0hnsm1th: like adb uninstall com.my.package.app May 13 18:33:36 maybe AVD was only to work with virtual devices? you were on Eclipse, tried editing "run configurations" option? May 13 18:33:42 Hi I'm trying to import an R.layout. and not all the layouts are showing up... what's wrong? May 13 18:34:04 yes, that is where it used to show my device usually ... May 13 18:34:29 If everything is ok, it shows your device if you have connected it, installed proper drivers and have debug enabled May 13 18:34:34 kg020: check your imports, you are probably importing the android.R rather than R from your app May 13 18:34:37 or at least it should May 13 18:35:16 In run configurations> target it used to show my galaxy May 13 18:35:16 Napalm, but I can reference any layour in my app apart from the one I want, I think I have the right import May 13 18:35:27 kg020: do a clean build May 13 18:38:17 Napalm, thanks! May 13 18:39:03 I also tried to launch eclipse adding -clean parameter which seems to clean some kind of caché but got nothing May 13 18:40:14 Shogo: do you have another computer to test? May 13 18:40:46 yes but I´d have to install eclipse+sdk+adt+drivers... :/ May 13 18:40:53 Well, I´ll try May 13 18:40:57 gimme a lot if minutes xD May 13 18:42:18 of* May 13 18:42:20 Shogo: also try google: http://stackoverflow.com/questions/2256884/android-device-chooser-device-not-showing-up http://stackoverflow.com/questions/3429959/why-is-eclipses-android-device-chooser-not-showing-my-android-device May 13 18:43:27 um May 13 18:43:28 :/ May 13 18:43:36 I ´ve done anything and it´s working now May 13 18:43:38 wtf?! May 13 18:44:03 may the antivirus be causing troubles? May 13 18:47:39 aliens May 13 18:48:31 help!!!! aliens!!!! help!!!! OMG!!! May 13 18:48:54 :/ May 13 18:49:12 I have been trying to solve this since yesterday 4:00 pm (Spain hour ) :/ May 13 18:50:35 anyway .. thank you all :) May 13 19:03:09 hi guys, anyone have any suggestions as to why adb sees my device as offline? I've tried reinstalling drivers, using different USB ports, etc May 13 19:03:12 its a droid X btw May 13 19:03:40 different cables too May 13 19:04:11 tnzr: unplug your device, turn off usb debugging under settings, then turn it back on, open cmd enter: adb kill-server, plug device back in, enter: adb devices May 13 19:04:24 Napalm: awesome I'll do that now May 13 19:06:00 Napalm: holy moley, that worked May 13 19:06:13 thanks :) May 13 19:06:16 :P May 13 19:07:41 Napalm: that should go in the topic :) May 13 19:07:50 yes indeed May 13 19:08:33 hi, i have a mixed mode java/C++ application, is there a way to know the package name of the current application from NDK without getting it from java : context.getPackagemanager().getPackageInfo(); and passing it to jni ? May 13 19:15:10 Hi people. Need help with alarm manager May 13 19:15:14 I am scheduling an event May 13 19:15:17 but it never fires May 13 19:15:20 Any pointers? May 13 19:16:56 How do I specify to an activity which interface.xml to use? May 13 19:20:03 firc: your probably using the wrong time base May 13 19:20:21 Napalm: you mean timezone? I set it as GMT May 13 19:20:25 no May 13 19:21:03 Napalm: http://pastebin.com/vuLNHdA9 May 13 19:21:33 doesnt help May 13 19:21:39 what function is setRecurringAlarm(); May 13 19:23:51 how about getting the current time, adding 1000 milisec and trying that May 13 19:23:55 instead of fiddling with timezones May 13 19:24:06 I'm having an issue with a handler not executing its Runnable and freezing the app May 13 19:24:24 is there something i have to do other than define the Handler, Runnable, and postDelayed() ?? May 13 19:28:41 Depends what you expect to happen May 13 19:29:49 mcmlxxix: by default, a handler runs on the main thread unless you use HandlerThread or something else, so if you dispatch a runnable that takes a long time - yeah - if you installed it on the main thread it would mess things up May 13 19:29:59 firc: well... May 13 19:30:08 well, i think i found the issue.... infinitely pushing the same event into the handler in a while loop whose break condition wouldnt be true until the event executes May 13 19:30:23 im awesome :| May 13 19:33:58 while overridePendingTransition does the job to change the transition animation between activities. how can I use it when the activity is closed (back button)? May 13 19:35:29 janhouse: try http://developer.android.com/reference/android/view/Window.html#setWindowAnimations%28int%29 May 13 19:36:14 janhouse: so getWindow().setWindowAnimations(R.style.blah) May 13 19:36:26 in the oncreate? May 13 19:36:39 hmm, says it must be a system resource, yet popupwindow can use custom styles from app May 13 19:36:46 perhaps a bug in documentation May 13 19:37:24 janhouse: pass, try and see May 13 19:37:52 Hey guys! I need some advice.. my app runs a webserver. When I request /cam/, it takes a webcam picture. But the Webcam class fires an event when that is finished. How can I acquire the picture from within my Webserver Response code? May 13 19:38:00 janhouse: doesnt overridePendingTransition have exitAnim? May 13 19:38:42 well, adding it to the oncreate doesn't help. and that override... example was here: https://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/Animation.html May 13 19:38:46 i'd be really happy if you Runnables could be given a context May 13 19:39:02 so, the fade in works fine but going back uses the old animation. May 13 19:39:05 im not keen on making metadata global May 13 19:39:31 oh May 13 19:39:39 actually... it doesn't use the detault animation anymore. May 13 19:39:55 maybe I just have to change the fade way :D from 1 to 0 May 13 19:41:07 nope.. May 13 19:45:00 Is it impossible to take a Camera picture when the device is locked? May 13 19:45:52 grrrr why isnt this working b.setOnClickListener(new OnClickListener()){ May 13 19:45:57 hey guys, can anyone give me a hint? http://stackoverflow.com/questions/10562549/send-android-h264-capture-over-a-rtp-stream May 13 19:47:22 hey Napalm May 13 19:47:31 sorry was dc May 13 19:47:40 wb May 13 19:48:03 Napalm: http://pastebin.com/Fdh2LA0v May 13 19:49:25 firc: log your cal.getTimeInMillis() and tell me what you are getting May 13 19:49:59 java date and time stuff claims another victim :/ May 13 19:50:12 lol May 13 19:50:27 hang on May 13 19:50:38 * g00s hangs on May 13 19:52:35 1336938750070 May 13 19:53:06 enter it here: http://www.epochconverter.com/ May 13 19:53:09 is it correct May 13 19:53:43 if i want to create an xml file for a style (make all text same size / big), what type of resource should the file be? the doc just says to create a set of styles, save an xml file in the res/values directory of the project while another tutorial says to save one in the xml folder of the res directory. what is the right way, and what type should it be? May 13 19:54:19 firc: see your problem? May 13 19:54:23 eclipse also asks for a root element. neither of these are mentioned May 13 19:54:25 hmmm May 13 19:54:43 jnewt: you can try giving it a beet May 13 19:54:43 Napalm: yeah.. how do I go about doing it then? ( BTW this output it from the emulator ) May 13 19:54:46 you fix the GMT timezone even though the device is probably in a different timezone or daylight savings May 13 19:55:02 correct May 13 19:55:23 i would assume if you remove your setTimezone it will use the Locale default May 13 19:55:28 try it and see what number you get back May 13 19:55:43 lemme try May 13 19:55:49 pragma-: thanks, i'll try that May 13 19:56:02 firc: wait a sec, its also not 12:00 which is the time of day you wanted May 13 19:56:16 unless your settings are customizing it May 13 19:56:27 I wanted 19:53 May 13 19:56:30 yeah May 13 19:56:40 what time is it now for you May 13 19:57:13 1336939035065 May 13 19:57:25 firc: i mean what timezone are you in? May 13 19:57:30 EST May 13 19:57:48 But on the emulator timings are different May 13 19:58:05 hmm May 13 19:58:10 what timezone is your emulator in? May 13 19:58:53 i think you'll find if settings of the emulator are set to automatic it will get them from the host May 13 19:59:06 yeah. How do i check that? May 13 19:59:17 grrrr why isnt this working b.setOnClickListener(new OnClickListener()){ May 13 19:59:29 firc: look at the date and time settings in the emulator May 13 19:59:30 lol May 13 19:59:40 droidbuster: new OnClickListener() { ... } ) May 13 20:00:02 to be more specific, b.setOnClickListener(new OnClickListener() { code goes here } ); May 13 20:00:04 Napalm: oh yeah. It's automatic there May 13 20:00:20 i have that May 13 20:00:22 Napalm: it shows 8PM on the emulator but it actually is 4PM May 13 20:00:32 droidbuster: what do you have actually? can you paste it somewhere May 13 20:00:36 its importing dialog onclick listener May 13 20:00:49 ill pastebin part of it May 13 20:00:49 yeah, that happens sometimes May 13 20:01:05 firc: so the emulator is in GMT May 13 20:01:21 import android.content.DialogInterface.OnClickListener; May 13 20:01:36 thats the problem but what is the correct onclick class May 13 20:01:44 android.view.View.OnClickListener May 13 20:01:51 tyty May 13 20:01:53 i think May 13 20:02:08 Napalm: so the GMT setting should work, isnt it? May 13 20:02:38 yes is the time of the alarm being set in the future May 13 20:03:18 no wrong i guess i will look at the refs May 13 20:03:37 i wildcarded the entire view.*; still not fixed May 13 20:05:02 Napalm: yeah May 13 20:05:34 hrnt, CAN I PM U May 13 20:05:36 Napalm: http://pastebin.com/Fdh2LA0v I set it as INTERVAL_DAY and then use a future time May 13 20:05:40 opps sorryy for caps May 13 20:05:46 to set the alarm May 13 20:05:54 firc: compare them, in your log output, also log System.currentTimeMillis() May 13 20:06:03 oh hmm May 13 20:06:09 Hi I wanted to ask a question about app architecture May 13 20:06:39 When developing for bluetooth, would you have a separate package for all the bluetooth classes? would you do it through an activity which notifies other activities? May 13 20:06:41 the cal.getTimeInMillis() and current time? May 13 20:06:42 droidbuster: don't wildcard anything May 13 20:06:49 droidbuster: import specifically android.view.View.OnClickListener May 13 20:06:50 ok May 13 20:06:51 firc: yes May 13 20:06:53 and remove the dialoginterface import May 13 20:07:06 or you can import android.view.* but then you need new View.OnClickListener() ... May 13 20:07:11 ok May 13 20:07:18 it worked thank you May 13 20:08:15 is it possible to have two equally active activities? May 13 20:09:25 kg020: only one activity is presented to the user at a time May 13 20:09:36 kg020: sounds like you want fragments May 13 20:09:44 Or you could use fragments :p May 13 20:09:59 I am looking to have a specific class to interact via bluetooth and send information to an activity May 13 20:10:12 kg020: Like some kind of service? May 13 20:10:14 ActivityGroup! ;P May 13 20:10:27 (don't use it) May 13 20:10:36 QuackWare, yes for bluetooth May 13 20:12:18 Yeah you can use a service for bluetooth, it depends on how much bluetooth stuff you are doing May 13 20:12:36 For example in one of my apps I just have a scanner for bluetooth devices and you don't really need a service for that May 13 20:13:26 QuackWare, I've got an Activity to set up the devices... so I guess I can make a service call the activity? May 13 20:13:53 I'll be passing a maximum of 2 messages per second May 13 20:14:02 Well you initialize the service in your activity and register a handle in between the service and the activity May 13 20:14:13 Your service does all the bluetooth stuff and passes messages back to the activity whenever something happenbs May 13 20:14:28 Sounds good, I'll read up on it. May 13 20:14:31 Thanks May 13 20:14:37 have any of you tried to send a h264 encoded video in a rtp stream ? I've an h264 encoded video that I get using the LocalSocket "trick" but I quite don't understand how it is encoded. It looks like a raw h264 stream but how should I extract nal units from it? May 13 20:14:39 Yeah theres some good stuff about services in the developer guide. May 13 20:22:42 if I start wireless settings page from my app ( new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS); ), can I make the settings page show the it use the "back/up" button in the actionbar? May 13 20:40:16 janhouse, no May 13 20:40:35 ok, thx May 13 20:57:15 how do i make the title bar for my base layout taller? i made the text bigger, and can move the other elements in the layout down, but can't get the titlebar hight to be big enough to show all the text. maybe i can set the padding somehow? May 13 21:03:16 it is unbelievable May 13 21:03:35 I am checking for 4.0+ features in my app which requires android 4.0+ May 13 21:04:03 there seem to be no shortage of broken roms out thre May 13 21:22:36 what is the convention for updating a view with something from another thread? May 13 21:23:08 my thread is running in a loop, but my activity (in a different thread) isn't really, so how do I constanly keep part of the view updated by what's going on in the thread? is that what a Handle is for? May 13 21:23:35 I don't really know but for me a Handler worked great :) May 13 21:23:53 ahh Handler :) May 13 21:23:54 I am updating a log window from a background thread May 13 21:24:08 * tnzr to The Google May 13 21:24:08 A handler, or runOnUiThread (latter is slightly simpler). May 13 21:24:22 hmm interesting, I shall google that as well May 13 21:24:24 thanks guys May 13 21:33:05 http://pastebin.com/wamYsqTV May 13 21:33:47 ZTE will fix it May 13 21:35:18 test May 13 21:37:58 test test May 13 21:37:58 g00s: urks May 13 21:37:59 for what a test msg Dany0? May 13 21:38:49 * plaisthos ' telephone now has ipv6 via vpn and no real benefit from it May 13 21:40:18 plaisthos: wohoo! May 13 21:46:00 if i load a file with approx. 500 lines and save the lines into an array, does it need to much memory for an app? May 13 21:46:25 i want to work with that array also - acces via index and so on May 13 21:52:38 Hi, eclipse is telling me that my project contains errors but I can't find the error. How can I find it? May 13 21:53:06 there should be an error list pane May 13 21:54:14 hello May 13 21:54:26 is there a conflict if you use both MediaPlayer and SoundPool with STREAM_MUSIC? May 13 21:54:43 kg020: its the 'problems' tab May 13 21:54:44 I'm getting "unknown stream type" errors with my sounds/music May 13 21:55:03 it plays ok tho (both) May 13 21:58:46 g00s, it tells me The project cannot be built until build path errors are resolved... not sure how I can fix that May 13 21:58:50 Tried cleaning May 13 21:58:55 if I use just the soundpool I don't get the error May 13 21:59:15 but if I use mediaplayer and soundpool together I get the error on any sound/music being pause or played May 13 22:17:01 how do i keep my memory usage down when working on android app in eclipse. it's taking up to 12+GB of memory and causing my computer to freeze May 13 22:17:17 whoah wtf? May 13 22:17:52 i've tried some of the online solutions to eclipse.ini, and #eclipse, they said it's an android / java issue. May 13 22:18:04 which OS? May 13 22:18:16 win7 May 13 22:19:14 16GB RAM, SSD, core i7. computer is blazing fast, I use it for CAD work, and it never gets over 6GB, this is new to me May 13 22:19:22 what kinda changes were suggested in eclipse.ini ? i thought eclipse.exe could take direct args to limit it's memory usage May 13 22:19:47 http://stackoverflow.com/questions/94331/how-can-i-reduce-eclipses-memory-use May 13 22:20:09 i could paste here, but risk ban for flood. May 13 22:20:16 pastebin May 13 22:20:44 http://pastebin.com/yfX6MUxv May 13 22:22:28 it seems that every view or property i change, the memory usage grows a little, and is never released, doesn't seem to happen when editing .java or .xml files directly May 13 22:22:47 only in the graphical layout or android xml views May 13 22:23:58 run eclipse through MAT May 13 22:26:10 hmm May 13 22:26:20 I get unknown stream type errors reported on all games on this phone May 13 22:26:23 weird May 13 22:28:40 Hi, I'm experiencing an unknown build path error in my project - I've tried cleaning, opening new projects and arranging the order of export but none of these worked. Any ideas? May 13 22:31:31 pragma-: I'm new to the MAT, but I get < 1MB of leaks, with two major suspects, both < 400k. seems small when javaw.exe is running at 8GB right now. May 13 22:32:33 maybe that's not what i'm looking for? May 13 22:33:03 jnewt: i i haver seen mine get over > 600 mb; but i installed the platform runtime + JDT + ADT so its pretty slim. also , i don't really use the ADT much in the sense of the graphical layout editor. only for previewing really; i do everything in xml May 13 22:33:42 if it continues to be an issue, you can try intelliJ May 13 22:34:20 kg020: is this your first time making a project? May 13 22:34:20 g00s: i just followed the install guide on the developer manual. not sure what all i did, that was a couple of weeks ago, just opened it up today to try and get something done. May 13 22:34:27 QuackWare: yeah May 13 22:34:42 QuackWare, no - in fact the project was working before. May 13 22:34:45 hmm May 13 22:35:05 I'm not quite sure where everything went wrong, but at a point in time I pasted some classed into the project. May 13 22:35:19 I'm not sure why that would have caused a build path error though May 13 22:35:29 I've done it many times before. May 13 22:35:54 yeah, my eclipse has been up all week and its sitting at 433mb May 13 22:36:17 QuackWare, it also shows this Type Archive for required library: 'gen/com/android/fitfray/R.java' in project 'FitFray' cannot be read or is not a valid ZIP file FitFray Build path Build Path Problem May 13 22:36:36 but eclipse is pretty agressive lazy loading stuff, so i may not have gone to some part of the UI loading a plugin May 13 22:38:09 kg020: there is an error somewhere in your xml that is probably keeping R from being generated. May 13 22:38:19 check the problems and console views carefully May 13 22:38:26 and check your XML files for stray tokens and syntax errors May 13 22:39:32 ? doesnt work... :-( any ideas how to use only the question mark? May 13 22:41:05 toxz: try just adding "?" instead of ? May 13 22:43:31 even ? doesnt work - wtf May 13 22:44:03 readme, here is my manifest and strings.xml - I can't see anything wrong http://pastebin.com/DqECA7pB http://pastebin.com/4rhjVwmc May 13 22:44:13 toxz: "?" should do what you are asking May 13 22:44:13 my layouts are ok. May 13 22:45:03 kg020: So there are no specific error messages in the Problems tab May 13 22:45:26 QuakeWare, just BuldPath Error and the one I mentioned above: May 13 22:45:36 Type Archive for required library: 'gen/com/android/fitfray/R.java' in project 'FitFray' cannot be read or is not a valid ZIP file FitFray Build path Build Path Problem May 13 22:45:51 What do you see when you right click your project and go to "Java Build Path"? May 13 22:46:00 right click -> properties -> java build path May 13 22:46:01 sorry May 13 22:48:00 QuakeWare, FitFray/gen, FitFray/src, R.java, Android4.0.3, Android Dependancies May 13 22:48:12 in that order May 13 22:48:15 kg020: unfortunately I'm working right now and don't have time to inspect your XML. May 13 22:48:19 take my word for it, there is a problem May 13 22:48:22 check all your layouts, too. May 13 22:48:28 check the problems view and console view. May 13 22:48:39 make sure "Build Automatically" is checked. May 13 22:48:54 kg020: Are there any red X's or anything on any of those things listed? May 13 22:49:07 Also R.java should not be listed there May 13 22:49:09 Try removing it May 13 22:49:20 QuakeWare, nope. May 13 22:49:32 readme, will do. May 13 22:49:48 I would remove everything except Android4.0.3 and Android Dependancies May 13 22:50:29 QuakeWare, would that remove my code? May 13 22:50:38 No May 13 22:50:58 also, do a build clean. May 13 22:55:42 QuackWare, I've removed it... but now R.java is nowhere to be seen. May 13 22:57:55 You removed it in your android build path not your actual project right? May 13 22:59:09 QuickWare, from properties > built path > configure May 13 23:00:01 Now just try cleaning your project May 13 23:00:08 And rebuilding it May 13 23:03:32 QuackWare, R still doesn't show up... May 13 23:03:51 R is usually automatically generated by Android May 13 23:04:04 located in your gen folder May 13 23:04:13 yeah its not there... May 13 23:04:17 it stopped being generated May 13 23:04:58 Only other reason I could think it is not generating is if you have an error somewhere in one of your .xml files. May 13 23:05:29 Do xml files have some sort of naming convetion? May 13 23:06:32 no spaces, special characters etc May 13 23:06:42 i think they can not start with _ also May 13 23:07:46 special characters, as in _? May 13 23:08:07 I had one in the middle May 13 23:09:23 _ is fine May 13 23:09:35 aapt might ignore files that start with _, however May 13 23:09:41 filenames May 13 23:18:53 i think microsoft's documentation for java is better than java's http://msdn.microsoft.com/en-us/library/aa987865(v=vs.80).aspx May 13 23:19:10 "Localization of the pattern is currently not supported by the J# Class Libraries. Calling this method has the same effect as calling applyPattern." May 13 23:19:19 well, same on android - except i had to find out the hard way May 13 23:19:38 oh, and thanks for the example ms :) May 13 23:20:20 also the 'community comment' part on the bottom of the page is nice. android should have that also May 13 23:20:42 that comment part would be quite handy May 13 23:27:04 i think there should also be a 'rate this topic' like the top of the MS page also May 13 23:27:19 so if something gets rated low, the google guys can fix it May 13 23:27:46 can anyone point me in the right direction for android networking with java application? May 13 23:29:36 what do you want to do exactly ? May 13 23:30:36 i want to send command to a java application on my linux machine and get them executed, then return a status to my app May 13 23:30:38 is there a straight forward way in a Grid layout to take 3 buttons and make them evenly spaced across the screen horizontally? May 13 23:30:56 use the weights May 13 23:31:06 pragma-: ok i'll read up on those, thanks May 13 23:31:38 TM89: just use plain sockets May 13 23:31:58 TM89: you can look at iosched app, see the Service which communicates with HTTP May 13 23:32:13 SomethingService.java, it will be obvious May 13 23:32:24 Something ~ internetish May 13 23:32:34 bankai_: never used sockets before, is it hard to get the grips on? May 13 23:32:56 g00s: i'll look into that May 13 23:34:23 TM89: For sockets I would suggest reading this tutorial- http://www.helloandroid.com/tutorials/simple-connection-example-part-ii-tcp-communication May 13 23:34:25 Helped me out some May 13 23:34:43 QuackWare: thanks May 13 23:38:26 TM89: can we call you U-turn? May 13 23:39:06 HacDan: i'm not sure? why? May 13 23:39:17 TM89 could be a pokemon reference May 13 23:39:33 tm89 is the pokemon 'u-turn' â„¢ =/ May 13 23:39:57 http://bulbapedia.bulbagarden.net/wiki/TM89 << May 13 23:40:44 HacDan: you're kidding... XD May 13 23:40:53 sadly, no May 13 23:41:02 =P May 13 23:42:27 HacDan: better? May 13 23:42:49 haha =P May 13 23:43:23 HacDan: i'll keep my nick:) May 13 23:43:52 U-turn is probably registered anyway May 13 23:44:19 HacDan: probably.. is there a pokemon-channel on freenode? May 13 23:44:45 is this #android-dev? May 13 23:45:01 bankai_:yes May 13 23:45:50 TM89: most likely May 13 23:46:03 oh, is it possible to write android apps in C++? May 13 23:46:04 strangest topic i've seen in this channel lol May 13 23:46:05 bankai_: only when someone asks May 13 23:46:21 bankai_: seems pretty standard to me =/ May 13 23:46:29 bankai_: if this is the strangest topic you've seen you haven't been watching very closely. May 13 23:46:31 I choose you, Android Froyo! May 13 23:46:44 TM89: haha you loser :P May 13 23:47:09 * readme chooses iphone. iphone uses fragmentation. it's super effective. May 13 23:47:32 bankai_ : I see what you did there! good job trying to cover over you using Android Donut! May 13 23:48:10 * bankai_ throws an exception at TM89 May 13 23:48:14 bankai_: your donut is no match to my froyo! xd May 13 23:48:18 i think over the years, the word fragmentation as applied to android has changed. when i first heard about it, its connotation was 'all these different kinds of devices'. now, when i hear it, its more about OS version fragmentation May 13 23:48:19 I'm still stuck with the alarmmanager :( May 13 23:48:29 the time I'm setting is in the future May 13 23:48:37 i.e > current. Still it never gets triggered. May 13 23:48:47 The future is awesome, whats wrong with that? -.- May 13 23:49:00 http://pastebin.com/index/Fdh2LA0v this :( May 13 23:49:00 in two years most will be on ICS and things will be better assuming no more major overhauls to the APIs take place. May 13 23:50:12 readme: i think 2 years from now, the situation will be exactly the same as it is now. ics will be the new froyo, then. jelly bean with be the new GingerBread. May 13 23:50:16 readme: I have a funny jellybean is going to be another major overhall =/ May 13 23:50:28 s/funny/funny feeling May 13 23:50:50 oh well May 13 23:50:57 nobody know, but … its reasonable to expect that android must keep evolving quickly … now not just competition from iOS, but possibly windows phone also May 13 23:51:03 i'll still be developing for android :) May 13 23:51:12 I don't think windows phone is going to be a problem =/ May 13 23:51:28 * readme is waiting for microsoft to full-collapse. May 13 23:51:32 i don't think windows will be in the game much longer :S at least not till windows 8 May 13 23:51:43 I don't think windows 8 is going to help the platform any May 13 23:51:55 in _any_ aspect May 13 23:51:55 probably right, is that .NET dev or something else? May 13 23:51:56 one of my friends started developing for windows phone.. He has never used C# or windows phone SDK before, but he could just drag stuff over to the GUI and everything started working:S May 13 23:52:05 a lot of people are going to out right stop using desktops and laptops for casual use May 13 23:52:08 oh my May 13 23:52:10 you said c# May 13 23:52:12 and didn't bash it May 13 23:52:14 gtfo. May 13 23:52:27 HacDan: I'm sorry, do you still love me? May 13 23:52:38 quick, say something bad about c# May 13 23:52:43 =P May 13 23:52:43 c# isnt bad May 13 23:52:44 c is for crap May 13 23:52:48 even if it isn't windows phone, oems might want more control over the platform and opt for something like Tizen or whatever. so many things can happen in 2 years. But launch of WP8 will be a critial window for MS, if they mess it up, they may never get a foothold May 13 23:53:17 C# is super bad! (It's all i could come up with...) May 13 23:53:44 nokia should have teamed up with google, not MS. They do make great phones (hardware) May 13 23:54:02 the lumia 900 is honestly a great piece of hardware May 13 23:54:08 c# is pretty great May 13 23:54:10 true! May 13 23:54:10 htc are the best phones May 13 23:54:23 and paved androids way May 13 23:54:23 HacDan: i've never actually seen one - did they sell any ? May 13 23:54:29 bankai_: a few, lol May 13 23:54:35 nice looking hardware though May 13 23:54:36 i know you will shoot me, but I actually like my motorola droid a lot :) May 13 23:54:36 4? May 13 23:54:46 i'm really glad google bought motorola May 13 23:54:52 whats wrong with my code? http://pastebin.com/index/Fdh2LA0v ! Am I making soem obvious mistake? May 13 23:54:53 readme, still? May 13 23:55:05 firc, of course you are May 13 23:55:09 i've got a droid 3 as my primary phone with ICS on it.. heh. May 13 23:55:15 pfn: which is? May 13 23:55:16 a new galaxy nexus with no contract is pretty pricy. May 13 23:55:22 I could buy one but I'm kind of cheap May 13 23:55:27 firc, no idea, but if you have to ask that, then you are May 13 23:55:33 $430 isn't bad for an offcontract device =/ May 13 23:55:34 pfn: :( May 13 23:55:37 granted it's hardware is over a year old May 13 23:55:38 I'm not going to read your code without any idea of what you're trying to accomplish May 13 23:55:55 and what is not working May 13 23:55:55 what do you think of Huawei? May 13 23:55:57 HacDan: this is true.. I'm saving up for a big move to texas though so I am going to pinch my pennies for a bit. May 13 23:56:17 move to texas? why May 13 23:56:21 Anyone here have experience with the NDK and JNI /native libs ? I'm tyring to incorporate Ffmpeg but am running into issues with link_dependency issues .. May 13 23:56:22 readme: understandable, I haven't dropped the cash for one yet either May 13 23:56:45 pfn: austin, tx has amazing rent and property prices, and it's a good tech/startup city with a great live music scene and no winter. May 13 23:56:54 pfn: I'm trying to schedule an event using alarmmanager May 13 23:57:03 pfn: but it is never getting triggered. I checked the timings are in the future. May 13 23:57:04 considering my off contract wing was 360 and g1 was 400 in the day May 13 23:57:44 readme, that's the case with anywhere outside of california, I guess that's decent then May 13 23:57:59 chech craigslist May 13 23:58:22 can always find slighty used in great condition May 13 23:58:22 pfn: heh, yeah.. boston is actually a little expensive May 13 23:58:35 it's less expensive than SF but it is also blistering cold in the winter. May 13 23:58:53 great mass transit system there though May 13 23:58:55 firc, how are you certain that it's never delivered May 13 23:58:57 also people here are generally not super friendly unless you already know them. May 13 23:59:25 pfn: I am logging something in the Receiver. It never gets printed at the time it should be. May 13 23:59:43 pfn: But the moment I SET the alarm, it gets printed once. But never after that. May 14 00:00:02 ok, time for some focusing. May 14 00:00:16 firc, then you're doing something wrong with your receiver and/or broadcast May 14 00:00:57 pfn: I have a receiver which extendss BroadcastReceiver May 14 00:01:27 and I've put in the manifest.xml May 14 00:01:42 what could I do wrong with that? May 14 00:02:42 lots, apparently, re-read the documentation for setRepeating and what it expects with RTC_WAKEUP May 14 00:03:09 I had setInexactRepeating earlier May 14 00:03:20 But that didn't fire even once. So I changed it to setRepeating May 14 00:03:38 Now it fires once. The moment I set the alarm. May 14 00:03:42 log the value of updateTime May 14 00:04:52 * pfn goes back to studying his algorithms book May 14 00:05:18 pfn: which book are you using ? May 14 00:05:25 updateTime.currentTimeMillis() ? May 14 00:05:29 err sorry May 14 00:05:31 one by dasgupta that was published free in 2006 May 14 00:05:37 updateTime.getTimeInMillis() May 14 00:06:04 a good one was the algo design manual May 14 00:06:07 Skienna May 14 00:06:17 Skiena is awesome :D May 14 00:06:31 firc, .getTime May 14 00:06:33 I am going to take his class next semester. May 14 00:06:52 must do well on interview tomorrow May 14 00:07:05 which interview? May 14 00:07:12 job May 14 00:07:44 i don't think i could study an algo book over a weekend; pfn must be super smart May 14 00:07:53 hopefully this is just a refresher or something :) May 14 00:08:10 not gonna absorb it all May 14 00:08:14 hopefully enough to do well, is all May 14 00:08:31 getTime returns a time in the future May 14 00:08:42 pfn know your Os :) May 14 00:09:01 some stuff is trivially easy to remember May 14 00:09:12 i have been meaning to read this http://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/098478280X May 14 00:09:12 basically anything involving trees has something log n as a level of complexity May 14 00:09:30 everything else is linear, constant or a power thereof, depending on what it's doing May 14 00:09:54 for P problems, of course May 14 00:10:46 not really. Finding the LCA in a binary tree. May 14 00:10:52 kinda pissed that book isn't on kindle. i haven't ordered a physical book in a long time May 14 00:11:03 you can do it in O(n) given the nodes *are* there. May 14 00:12:39 generally O(m), not O(n) May 14 00:13:22 but in a btree, dunno May 14 00:13:23 * pfn shrugs May 14 00:14:33 i wonder if the fizzbuzz is still asked a lot May 14 00:15:00 not that I hear of, I do it sometimes for shits and giggles May 14 00:15:17 (ask it, that is) May 14 00:18:01 I got asked a pretty cool question last month May 14 00:19:27 given a micro, java-like language that does not have primitives, or flow control constructs, but everything else (no library, other than Object); implement a positive, integral number system; also implement addition and multiplication and subtraction May 14 00:22:48 Where are you interviewing pfn? May 14 00:22:56 I'll not jinx it yet by saying May 14 00:23:00 aha cool May 14 00:23:15 I have 2 interviews tomorrow, at one more later on this week or next May 14 00:23:19 s/at/and May 14 00:24:59 one is for a java-based social project, another one is scala-based and android-related, and another one is scala-based content discovery May 14 00:34:32 Good luck, pfn May 14 00:34:36 pfn: good luck on your interviews; don't let anything get in the way of 7.5+ hours of sleep the days before May 14 00:34:58 I know May 14 00:35:05 because it's gonna be exhausting tomorrow May 14 00:35:14 9:45 to 2:45, then another one scheduled 3:30 to 6:30 May 14 00:35:26 if they are late enough; i would do strenuous aerobics in the morning to get the brain cranked May 14 00:35:55 mostly it's the social project that seems like it'll be the most difficult interview May 14 00:36:26 hopefully its not about sharing cat pictures XD May 14 00:38:17 no one interested in that micro-java, numbers interview Q? May 14 00:47:20 i think i would have been able to do the number system question out of school, when i was doing circuit design May 14 00:47:32 but i'm too risty now May 14 00:47:34 unrelated to circuit design, though May 14 00:47:35 *rusty May 14 00:47:47 you can do it purely in OO and stuff May 14 00:56:09 can a non-ui thread change members in the ui thread that aren't related to the ui? May 14 00:56:20 yes May 14 00:56:28 ok thanks May 14 01:32:23 Any JNI / NDK developers ? May 14 02:30:48 http://www.theverge.com/2012/5/13/3016276/baidu-introducing-new-cloud-os-next-week-purported-device-pictures May 14 02:35:23 i wonder what exactly makes it a "cloud OS" May 14 02:36:01 Hey. I'm having some trouble. I am able to install shortcuts of apps on my home screen using "com.android.launcher.action.INSTALL_SHORTCUT" May 14 02:36:03 they say 100gb of cloud storage , heh May 14 02:36:13 But when I try to use UNINSTALL_SHORTCUT. Nothing happens. May 14 02:36:28 I have also given permissions in the manifest file. May 14 02:36:32 So permission is not an issue. May 14 02:37:46 canadiancow: just came across this :) http://www.bigzaphod.org/cow/ May 14 02:38:12 moo : "This command is connected to the MOO command." May 14 02:38:27 http://pastebin.com/ysprbc1Z This. **** ENDING LOGGING AT Mon May 14 02:59:59 2012