**** BEGIN LOGGING AT Wed Jun 06 02:59:58 2012 Jun 06 03:08:52 Ok i def need help. Just rebuilt kernel and im still herting no permissioms on adb Jun 06 03:09:13 And my udev rules are fine Jun 06 03:09:36 to get the bearing between two locations do they both have to have the bearing parameter set?? Jun 06 03:17:39 2 locations should be able to produce a bearing Jun 06 03:17:46 regardless of any other settings Jun 06 03:18:30 where are the intellij users? Jun 06 03:18:43 I am trying to edit my color scheme but it is broken :( Jun 06 03:18:50 trying to figure out where it keeps the actual files. Jun 06 03:28:42 I'm getting "Installation Unsuccessful" & "package file was not signed correctly" from my uploaded app. Jun 06 03:28:56 did you sign it? Jun 06 03:29:02 I use Eclipse, ADT, Jun 06 03:29:09 I did :o) Jun 06 03:29:19 what did you do, to sign it? Jun 06 03:29:51 you did sign it with a real key, not a debug key... right? Jun 06 03:30:13 eytool -genkey -v -keystore my-release-key.keystore -aliaskey -keyalg RSA -keysize 2048 -va Jun 06 03:30:30 keytool -genkey -v -keystore my-release-key.keystore -alias key -keyalg RSA -keysize 2048 -va Jun 06 03:30:57 then File > Export > ..... Jun 06 03:31:00 if you used eclipse then why did you need to also use keytool? Jun 06 03:31:10 it doesn't make that for you? Jun 06 03:31:56 I was under the impression you make the key with the tool, then use Eclipse to export Jun 06 03:32:11 it may be. i made my keystore with it Jun 06 03:32:25 I figured there would also be wizard for that, though. Jun 06 03:32:36 https://github.com/tom-dignan/notes/blob/master/Android/building_release.rst Jun 06 03:32:39 abra cadabra! Jun 06 03:32:58 i usually just build the whole release build on the command line. Jun 06 03:33:11 you can generate the build.xml with android update project -path . -target # Jun 06 03:33:18 ant clean && ant release && adb install -r bin/foo.apk Jun 06 03:33:59 Hmmm - The -va argument appears to be missing Jun 06 03:34:11 I thought it was just cut off in your paste. Jun 06 03:34:15 i.e. va's value Jun 06 03:34:19 it's -validity, IIRC Jun 06 03:34:25 -validity 10000 should be good Jun 06 03:34:51 It is cut off from my paste Jun 06 03:35:01 Its :o) Jun 06 03:35:49 keytool -genkey -v -keystore my-release-key.keystore -alias droidkey -keyalg RSA -keysize 2048 -validity 10000 Jun 06 03:36:24 type your keytool password in channel. it gets starred out Jun 06 03:36:28 ******* Jun 06 03:36:29 see? Jun 06 03:36:51 xyzzy Jun 06 03:36:57 oh yeah - cool Jun 06 03:37:25 i haz ur keys Jun 06 03:38:52 :o) Jun 06 03:45:48 readme: are you sure that works? it said < readme> hunter2 Jun 06 03:50:48 to get the bearing between two locations does both locations have to have the bearing member set? Jun 06 03:50:49 =o Jun 06 03:50:58 pragma-: u have pass sniffer? Jun 06 03:51:35 mylocation.bearingTo(yourLocation) <-- does myLocation and yourLocation have to have a bearing for this to work correctly? Jun 06 03:51:36 dlaroche: a) there is context missing from your question and b) having asked it repeatedly all morning and had no response at all, have you considered looking somewhere else for an answer Jun 06 03:52:10 myLocation.setBearing(float bearing) Jun 06 03:53:04 just read the code for bearingTo and see what it does Jun 06 03:53:19 dlaroche: do you know what a bearing is? Jun 06 03:53:50 yes, it's the direction from one point to another read in degrees from true north Jun 06 03:54:17 but I also know that a location can be returned and not have a bearing set except 0.0 Jun 06 03:54:27 "0.0" Jun 06 03:54:36 so why would the bearing between two points depend on the bearing of either of them? (and how does a point have a bearing, anyway?) Jun 06 03:54:59 so does the method bearingTo require this info? Jun 06 03:55:10 an initial bearing Jun 06 03:55:28 location.setBearing() will set the initial bearing Jun 06 03:55:45 meh, whatever Jun 06 03:56:05 just going off the documentation Jun 06 03:56:38 does wanting to use 14pt font mean I probably need glasses Jun 06 03:57:01 having major issues with seemingly valid SSL certs on service urls throwing ssl errors in my app.. Any ideas why I'd be getting "No Peer Certificate" yet the phone's browser works just fine? Jun 06 03:57:37 something to do with the intermediaries not supporting BKS? Jun 06 04:39:16 TextView.getLayout() "can be null if the text or width has recently changes." -> should I do something specific when it's null? Jun 06 04:40:48 my listview is displaying black on it when i scroll even though i set the cachecolorhint to transparent….any ideas? Jun 06 04:48:42 I have never seen this before Depends on: !S390 && INPUT [=y] && INPUT_TOUCHSCREEN [=y] && TOUCHSCREEN_USB_EGALAX [=y] && EXPERT, whats expert? Jun 06 04:59:20 luxurymode, how's your scala-android journey working out? Jun 06 05:07:05 so i created a class that extends SurfaceView. when i call setContentView(myCustomSurfaceView), MyCustomSurfaceView.onDraw does not seem to be called. any ideas? Jun 06 05:10:00 I can't tell if its just me or if some of the icons like borwser and sound recorder are not perfectly round and slightly oval on landscape, the screen is set on 1024 x 720 on a 7" display Jun 06 05:10:07 on landscape Jun 06 05:11:25 does anyone know of a good C based sqlite tutorial? i mean, c not c++ and NOT that horrendly bad "wall of text crits you for 6 million, your dead" crap on the sqlite page itself. thats so horrendously badly written that only a sqlite GURU would know wtf it was saying. Jun 06 05:22:38 uhh arent the c++ examples just c anyway? I thought the libs were pretty much just c Jun 06 05:23:51 i dont need examples. i NEED a tutorial lol Jun 06 05:24:00 how the fuck hard is it Jun 06 05:24:10 you just open up a database and start querying away Jun 06 05:24:12 i can find 384568345734873654 examples that dont teach me SHIT lol Jun 06 05:24:35 http://www.lemoda.net/c/sqlite-select/index.html Jun 06 05:24:44 about as simple as it gets Jun 06 05:24:58 this is for an android app but the data is being compiled on my pc. i want to create the db on the pc and just have the android access it. i can find 2456297642 tutorials on that for the android :) Jun 06 05:24:58 including in the 4 or 5 books i own Jun 06 05:25:04 if you cant figure out how to utilize that in your c apps, you shouldnt be writing c Jun 06 05:25:07 not trying to be an ass Jun 06 05:25:24 but I'm no c/C++ guru, and I could knock out a rudimentary example in no time flat Jun 06 05:25:26 i can't believe i just stumbled upon this http://www.amazon.com/Android-SQLite-and-ContentProvider-ebook/dp/B006YUWEFE Jun 06 05:25:46 actually, i can't believe somebody wrote a book about it Jun 06 05:25:54 honestly I dont like android's database provider shit Jun 06 05:26:36 yeah, i dont either Jun 06 05:27:25 I440r: looks like you will have to get this http://www.amazon.com/Definitive-Guide-SQLite-Experts-Source/dp/1430232250 Jun 06 05:27:55 seems like they were trying to wrap stuff to make it simpler, and yet... it seems like its more complicated than if you were just to have included native java implementation Jun 06 05:28:17 goos no i cant buy anything. im earning $1500 a week and in 12 weeks ive saved 1k total. my overheads right now are FUCKING HORRENDOUS Jun 06 05:28:20 :( Jun 06 05:28:33 i started with 4k in my bank. 12 weeks later i have a little less than 6 Jun 06 05:28:40 well, my app is earning $9 a week so you're ahead of me :) Jun 06 05:29:15 that example is about as simple as it possibly could be Jun 06 05:29:20 lol Jun 06 05:29:28 so just get it the fuck done Jun 06 05:30:27 I think I finally found out how my database engine is really going to be able to take off Jun 06 05:30:47 goos whats your app? Jun 06 05:31:27 goos you did the nav todo or whatever? Jun 06 05:31:40 was that you at the g+ hangout the other day? Jun 06 05:31:43 ron_frown: no, todomapr is qubeq Jun 06 05:31:48 *qubez Jun 06 05:31:52 oh fucking qubes Jun 06 05:31:55 fck him Jun 06 05:31:56 hehe Jun 06 05:32:24 ron_frown, btw, C is my MOST hated language of all. i think its responsible for 99% of what is wrong with the software engineering industry today. 25+ years of working as an embedded software engineer just reinforces that opinopn Jun 06 05:32:56 my #1 choice of language will always be forth. some time i wouldnt mind porting my linux forth to android as a native alternative VM Jun 06 05:33:01 some day Jun 06 05:34:29 hmm, is san jose pretty congested ? Jun 06 05:35:31 i heard guys in their 40s are getting botox to interview at silicon valley companies Jun 06 05:35:36 haha Jun 06 05:36:07 i fuck that. if they dont want my gray hairs and wrinkly skin then fuck em Jun 06 05:36:26 honestly Jun 06 05:36:42 i'm fucking serious http://news.cnet.com/8301-17852_3-57446235-71/how-older-men-can-get-a-job-at-google-facebook-brotox/ Jun 06 05:36:50 I've started c/c++ a number of times only to walk away from it in favor of things like c# and java etc etc etc Jun 06 05:36:52 i guess its brotox now XD Jun 06 05:37:14 honestly my last attempt at c/ and c++ just made me realize that c/c++ in its crudeness... there is a fair amount of elegance to it Jun 06 05:37:22 I find it strangely theraputic Jun 06 05:38:39 heh. right now the only thing stopping me from porting my forth to android is the choice between writing an arm assembler from scratch or using gnu. the gnu development tools are my most hated.... Jun 06 05:38:48 yes, its therapeutic like acupuncture is; all those tiny needles stimmuate the immune system Jun 06 05:39:47 nah its not that.. but more how c/c++ you can build templates and macros, and overload pretty much everything, so you can make the language work anyway you want Jun 06 05:40:02 It does a different kind of brain damage than BASIC does. :) Jun 06 05:40:20 my biggest brainfuck with c++ came from using the boost spirit libraries Jun 06 05:40:27 and ron. thate page you linked is an EXAMPLE. an example pof how to READ an sqlite database in C. Jun 06 05:41:08 i had already found that page, its TOTALLY useless to me Jun 06 05:41:22 it doesnt show a single example of any of the operatings i will need to perform Jun 06 05:41:26 I440r: are you referring to http://www.sqlite.org/c_interface.html ' Jun 06 05:41:28 ? Jun 06 05:41:55 no. thtas the "Wall of text crits you for 6 million, your dead" Jun 06 05:42:15 I440r: I meant if you were referring to the linked page with that phrase Jun 06 05:42:22 thats not a tutorial. its 386583645873645 examples mashed togehter into a single unreadable BLOB Jun 06 05:42:29 doesn't seem horrendous Jun 06 05:42:40 http://www.lemoda.net/c/sqlite-select/index.html <-- this is what i was refering to Jun 06 05:42:58 addam the sqlite page is GREAT if you want to use it as a refresher on how to interface to c Jun 06 05:43:08 its not very well presented for the nub Jun 06 05:43:09 <-- Jun 06 05:43:10 although not a step by step tutorial Jun 06 05:43:21 which is what im going to need Jun 06 05:43:59 wtf Jun 06 05:44:00 dude Jun 06 05:44:08 thats what you need to do Jun 06 05:44:09 haha Jun 06 05:44:14 include god damn sqlite3.h Jun 06 05:44:17 and go to town Jun 06 05:44:53 I bet you can find anything on the interweb, still that's not a wall or a blob, there're much worse thing. Just save the html and split it in chapters if you like it more Jun 06 05:45:34 anddam, trust me, ive looked. ive found plenty on c@ c++ java php BASH awk sed grep brainfuck Jun 06 05:46:05 not one single tutorial on how to use sqlite with c Jun 06 05:46:22 What search queries are you using? Jun 06 05:47:15 then this is a point in favor of reading the sqlite.org page Jun 06 05:47:32 c sqlite tutorial. using sqlite with c. writing sqlite apps with c. etc etc etc etc etc Jun 06 05:47:54 ive tried multiple. i see alot of C "Examples" of "reading crap from an sqlite database" Jun 06 05:48:08 addam the problem is NOT sqlite Jun 06 05:48:18 the problem is using sqlite from within a C application Jun 06 05:48:43 the sqlite page is fucking horrendously BAD as anything other than a reference Jun 06 05:49:14 I440r: does the application on your computer already exist or are you writing it? Jun 06 05:50:38 anddam, i have data. i wish to plug parts of this data into sqlite database and put other parts in resources dir Jun 06 05:50:48 i have nothing but a very very very minute part of the data Jun 06 05:51:18 pick another language with an easier setup time for you Jun 06 05:51:32 I mean you state C is your most hated language and you're sticking with it? Jun 06 05:52:06 it is. but i have reason for using C Jun 06 05:52:36 also. my data has already been semi processed with a huffman encoder i wrote (in c) Jun 06 05:52:50 I dont get what the problem here is Jun 06 05:53:02 its ilke you dont want to try and take something in the simplest fucking possible example Jun 06 05:53:16 but rather just have someone walk yu through it Jun 06 05:53:18 i need a tutorial on how to interface to sqlite from within a c application Jun 06 05:53:24 include sqlite3.h Jun 06 05:53:26 haha Jun 06 05:53:30 make sure you link it Jun 06 05:53:39 right. ty for that Jun 06 05:53:42 my guess is that you should quit irc and spend more time browsing for a tutorial, or accept the sqlite.org page that isn't bad at all Jun 06 05:53:56 thats all there is to it Jun 06 05:53:56 Lua comes to mind if you want to integrate with an existing C app Jun 06 05:53:59 how could it be easier Jun 06 05:54:04 cuz we all know C coders NEVER even fucking comment their code so a fucking .h file is going to be an awesome TUTORIAL amirite? Jun 06 05:54:17 if you've got embededed programming surely you must be familiar with linking libs Jun 06 05:54:30 the database connection concepts arent unique to sqlite Jun 06 05:54:30 ron_frown: well, and C Jun 06 05:54:39 yeah Jun 06 05:55:34 guess it's time to ask again my question Jun 06 05:55:45 TextView.getLayout() "can be null if the text or width has recently changes." -> should I do something specific when it's null? Jun 06 05:56:38 anddam - what do you mean Jun 06 05:56:54 are you trying to get layout? Jun 06 05:57:01 you can try calling requestLayout() Jun 06 05:57:14 but I think even then its not guarenteed Jun 06 06:10:35 I just did a new install of the sdk and tried adding action bar sherlock to eclipse, but it fills with errors after the workspace builds itsellf. Is this a known bug or is it possible I did something wrong? Jun 06 06:12:35 You installed the Java SDK and then installed the extension in Eclipse that allows you to use the SDK? Jun 06 06:12:53 Yes Jun 06 06:13:16 And download API 15 Jun 06 06:15:05 What's the first error message? Jun 06 06:15:38 Type Jun 06 06:15:38 The method add(CharSequence) of type MenuWrapper must override a superclass method Jun 06 06:16:58 Here's a screenshot of my eclipse: https://dl.dropbox.com/u/3270519/pics/Screenshots/errors.png Jun 06 06:17:44 http://groups.google.com/group/actionbarsherlock/browse_thread/thread/98e4acdb3fe09892/203c1fc509efa116?show_docid=203c1fc509efa116 Jun 06 06:17:55 "You have Java 1.6 installed but you are not using Java 1.6 compliance. Go Jun 06 06:17:56 to Project properties > Java compiler and ensure it's set to 1.6. Jun 06 06:17:59 "You have Java 1.6 installed but you are not using Java 1.6 compliance. Go Jun 06 06:17:59 to Project properties > Java compiler and ensure it's set to 1.6. Jun 06 06:19:17 That fixed it, thanks Bryden Jun 06 06:19:28 yw Jun 06 06:19:50 I just pasted that error message into Google and looked at the first result. ;) Jun 06 06:21:45 bryden infecting all the channels I'm in Jun 06 06:22:04 Didn't I direct you to #unity3d a week or so ago? Jun 06 06:22:05 or just 2 Jun 06 06:22:11 no no Jun 06 06:22:18 I've been well aware of #unity3d for ages Jun 06 06:22:42 What about Heroengine and #heroengine? Jun 06 06:22:51 havent been terribly active in there for the past year or so Jun 06 06:22:58 not familliar with heroengine Jun 06 06:25:26 I really like how it allows you to collobrate in real time. Jun 06 06:26:15 well I'm confident I could be the network stuff to handle collab stuff Jun 06 06:26:19 unles syou mean during dev Jun 06 06:27:14 Yes. Develop in the game engine while it's running and while others are in it. Apparently, even players. Jun 06 06:28:18 heroengine wouldnt be particularly useful for what I want to do necessarily Jun 06 06:28:34 btu I do recall reading about another unity like engine that sounded interesting Jun 06 06:29:12 You missed the period when it was completely free. Now there's a $99/year maintainence fee. Jun 06 06:29:25 and the whole 30% of your profits Jun 06 06:29:29 http://www.heroengine.com It's worth a tree. Jun 06 06:29:39 No, 30% of the revenue. Jun 06 06:29:44 not saying they shouldnt be able to do that Jun 06 06:29:50 Hosting, billing, and marketing is included in that. Jun 06 06:29:54 but I dont agree with that business model Jun 06 06:30:23 If you don't charge, they don't charge the 30%. :) Jun 06 06:30:42 just reminds me of the current cc processor scam thats going on Jun 06 06:30:53 lets ding you per usage, and a percentage of the charges Jun 06 06:30:57 and your first born child Jun 06 06:31:17 The Rumplestkin model. Jun 06 06:35:48 all I recall about rumplestilkskin was that he was a ugly midget that spun something into gold Jun 06 06:37:18 Spun straw into gold for a princess. Wanted her firstborn as payment unless she guessed his name. Jun 06 06:37:41 what a twisted son of a bitch kiddy molester Jun 06 06:37:49 if u embed some html with a textfield in it in a webview shoudl the keyboard pop p when u hit the textfield? doesnt seem to Jun 06 06:38:45 i presume it should Jun 06 06:38:50 ? Jun 06 06:40:17 pop up* Jun 06 06:40:44 i loved webviews a week ago now they pain me badly Jun 06 06:40:57 not scaling to right size on diff devices etc, thought that was the point of em Jun 06 06:41:18 not bringign up keyboard ;-/.. Jun 06 06:42:06 someone must have done this before? Jun 06 06:42:11 quick yes or no pls :) Jun 06 06:42:16 http://stackoverflow.com/questions/3372380/how-to-force-keyboard-with-numbers-in-mobile-website-in-android Jun 06 06:42:57 Read Answer #2. Jun 06 06:43:29 god damn android for its keyboard handling Jun 06 06:43:51 i cant get the keyboard to come up at all even tho the cursor flashes etc Jun 06 06:43:53 Dianne likes to bitch me out for everything (dont get me wrong, I'm not singled out or anythign) Jun 06 06:44:24 but that was thing I got really chewed out for... suggesting androids keyboard handling in its default form, was flawed Jun 06 06:44:35 hm it works once ive used trackball to select one Jun 06 06:45:52 is touchEnabled = true? Jun 06 06:46:17 nope Jun 06 06:46:41 where do i set that Jun 06 06:46:44 I am guessing by that yo umean touchenabled isnt specified Jun 06 06:46:55 yeh its not Jun 06 06:46:58 i had no idea it existed Jun 06 06:47:06 ok then it should be setup for touchmode Jun 06 06:47:14 Alright, I got a tree of dependencies here. I want to see what you guys think I should do. I got com.ZettaZete.test which goes down to com.ZettaZete.test. Jun 06 06:47:37 Wrapper, then goes down to com.ZettaZete.base Jun 06 06:48:00 However the Wrapper won't access the components of base because it can't see that jar file when it is compiled. Jun 06 06:48:33 ron_frown any tips on how to do this Jun 06 06:48:54 nothin is ringing a bell as being wrong =( Jun 06 06:49:27 Actually let me correct myself a little. com.ZettaZete.test -> com.wrapper -> com.base Jun 06 06:50:03 Is com.base compiled first? Jun 06 06:50:36 ron_frown android:focusableInTouchMode? Jun 06 06:50:40 Yes. It is compiled then imported into my com.wrapper project, which is then compiled and imported into my com.ZettaZete.test project (I know its stupid but I'm testing around) Jun 06 06:53:18 ron? Jun 06 06:53:49 Bryden, I think it is because my com.wrapper project is having hard time accessing the class through a compiled jar. Like when it is compiled it is included but not associated correctly. Jun 06 06:55:15 I was thinking along those lines. Like it is unable to access the class because it sees a binary, or the like. Jun 06 06:55:58 However, if I access the class through the first project directly it works just fine. I just want to see if I can make a middle man. Jun 06 06:59:42 No idea, sorry. Jun 06 07:01:01 Jenus Dong added me to his circle. yeah, that sounds legit Jun 06 07:01:12 Bryden, no problem. Jun 06 07:02:17 Google isn't being of much help with this so far. Jun 06 07:03:32 looking at german code, why do I find it humorous that instead of calling a child a child (in regards to tree datastructures), they call them "son" Jun 06 07:04:00 I know, I've looked for a while. Its kind of a weird subject, but I can think of some good uses for it. Primarily plugins. Jun 06 07:05:09 Does anyone know what EXPERT means in menuconfig? Jun 06 07:05:29 advanced kernel options that may or may not affect stability Jun 06 07:05:41 kernel debug, etc Jun 06 07:05:51 how do you enable expert mode? Jun 06 07:06:03 I've not seen it disabled Jun 06 07:06:18 you are talking about configuring linux kernel for android usage? Jun 06 07:06:27 yes Jun 06 07:06:39 are you making menuconfig with arch set? Jun 06 07:06:47 eg, make ARCH=arm menuconfig Jun 06 07:07:00 ron_frown got it working but now the submit button also brings up a keyboard! Jun 06 07:07:16 such is life Jun 06 07:07:23 as I said, keyboard handling in android is a pita Jun 06 07:08:10 mmm... pita Jun 06 07:08:13 welp time for sleepy Jun 06 07:08:20 I know how to use that yes, I have never seen this before Depends on: !S390 && INPUT [=y] && INPUT_TOUCHSCREEN [=y] && TOUCHSCREEN_USB_EGALAX [=y] && EXPERT Jun 06 07:08:55 weird, I've recently setup egalax multitouch panels and never had to worry about that Jun 06 07:08:58 Im stuck on how to enable that Jun 06 07:09:20 its a patch to fix flipped axis Jun 06 07:09:36 just enable HID_MULTITOUCH and then in specific device drivers make sure egalax and other panels are selected Jun 06 07:09:47 Borillion does the egalax panel work, just axis are wrong? Jun 06 07:09:51 yes Jun 06 07:09:52 if so I think you can fix that in the idc file Jun 06 07:11:02 ron_frown: http://code.google.com/p/android-x86/issues/attachmentText?id=670&aid=6700000000&name=0001-Faytech-Automotive-Touchscreen&token=d3ULAwb7o6-UINuveANkQErS7GI%3A1338966645381 Jun 06 07:11:13 I was told I have to use that ^ to fix it Jun 06 07:11:33 its more than just flipped apparently Jun 06 07:12:33 weird, I'm not familliar with the 0eef device, mine is like 04aa or something Jun 06 07:12:38 based off this it seems http://code.google.com/p/android-x86/issues/detail?id=474 Jun 06 07:12:55 ron_frown, is yours multi-touch capacitive? Jun 06 07:12:59 there are different chips Jun 06 07:13:00 yep Jun 06 07:13:03 but its 10" panel Jun 06 07:13:08 I imagine that is 7 Jun 06 07:13:21 and this is why I have the issue, mine is a 7" resistive Jun 06 07:13:29 oh balls Jun 06 07:13:42 you have the potential of having issues with orientation *AND* calibration =) Jun 06 07:14:04 yea Jun 06 07:14:19 this goes into deep details if you want http://code.google.com/p/android-x86/issues/attachmentText?id=474&aid=4740002000&name=new+file&token=Er_ZX6_c8klfqWqdEjJc18oycWI%3A1338966741213 Jun 06 07:14:28 its not fun Jun 06 07:14:28 in anycase it looks like with that patch ou should get the touchscreen_USB_EGALAX_REVERSE Jun 06 07:14:29 :P Jun 06 07:14:44 I patched, but I dont see it Jun 06 07:14:53 I suppose it has to do with expert mode Jun 06 07:14:57 :\ Jun 06 07:15:19 Bryden, well got it working externally. Guess that works for now. Jun 06 07:15:33 in drivers->input->touchscreen Jun 06 07:15:35 ? Jun 06 07:15:42 Sometimes you have to make do. :) Jun 06 07:15:50 nope its not there, I see it in the code tho Jun 06 07:16:08 its an option when I search for it with / Jun 06 07:16:20 is there a certain group of people who are figuring out how to root specific devices? and if so, do they have a blog? i would like to see if my device has been figured out, but google is littered with useless crap Jun 06 07:16:25 i odnt have my linux box Jun 06 07:16:28 in front of me Jun 06 07:16:46 what linux is this, android-x86 or ubuntu or something Jun 06 07:17:05 because I build aosp source for one of my pandas with the egalax stuff Jun 06 07:17:07 Im working on just ARM linix Jun 06 07:17:17 and the kernel menuconfig has no reference to expert whatsoever Jun 06 07:17:28 its rowboat Jun 06 07:17:29 oh wait Jun 06 07:17:32 maybe thats the issue Jun 06 07:17:45 I seem to recall there was a place you had to tell it like advanced configuration Jun 06 07:17:51 or expirimental or something Jun 06 07:18:05 hmmmm ok, Ill see if I can find anything Jun 06 07:18:19 googling expert and android kernel was giving me nuthing Jun 06 07:19:36 hmm looks like people have built patches to rip out EXPERT shit from kconfig Jun 06 07:19:46 oh lol Jun 06 07:20:01 you know you can just make a defconfig and then edit .config in kernel source root Jun 06 07:20:17 so you could just manually stick in EXPERT and TOUCHSCREEN_EGALAX=y Jun 06 07:20:30 thats what Ill do, both of us should go sleep :P 12:20AM here Jun 06 07:20:40 here as well Jun 06 07:20:48 And here. Jun 06 07:20:48 Cali? Jun 06 07:20:53 yes sir Jun 06 07:21:07 NV Jun 06 07:21:14 bloody westerners Jun 06 07:21:22 haha Jun 06 07:21:30 I'm about 60 miles from Leeds, Utah. :D Jun 06 07:21:30 gotta be up in like 4.5hr anyhow Jun 06 07:21:47 anyways thanks ron_frown Jun 06 07:21:48 I'm, dunno, 6000 miles from Leeds UK? Jun 06 07:21:51 np Jun 06 07:21:58 feel free to hit me up anytime you see me online Jun 06 07:22:04 thanks Jun 06 07:22:13 I've done a lot of porting of android to diff hardware and diff touchscreen/lcd panels etc Jun 06 07:22:37 Just don't hit him up for cash. :D Jun 06 07:22:52 hit me up all you want, doesnt mean I have cash to hand out =() Jun 06 07:23:52 $balance += $cash. Jun 06 07:24:06 fuck php. Jun 06 07:24:29 while(true) cashOnHand++; Jun 06 07:25:03 anyway time ot crash Jun 06 07:25:20 gotta let my 3d datastructures reading set in Jun 06 07:25:32 Crash and reboot in the morning. Jun 06 07:25:32 while I sleep Jun 06 07:39:43 aaaauuuugh Jun 06 07:40:04 Jesus, I spent 3 hours chasing this stupid bug...bleh....oh well, found the file Jun 06 07:40:39 Hi guys I got a big problem: do you know how can I list music by folders and how can play music in folders? http://stackoverflow.com/questions/10894576/android-mediastore-know-scanned-paths Jun 06 07:41:25 stermi: There's an open source thing you might check out Jun 06 07:41:47 really? do you have a link? Jun 06 07:42:49 https://github.com/Kaloer/Android-File-Picker-Activity Jun 06 07:43:08 It has some of the functionality, not all Jun 06 07:43:39 I'm creating a toast with a view's context and anchoring it to said view. When calling .show() I'm getting an exception that the view isn't attached to the window. I obviously clicked on the view to trigger toasting so I know it is, in fact, attached. Any ideas what's going wrong? Jun 06 07:43:42 I'll take a look :) Jun 06 07:43:50 you'll have to launch the files with an Intent to play the song if it is picked Jun 06 07:44:33 no exception is thrown when I do not anchor the toast Jun 06 07:45:03 ah, nevermind Jun 06 07:45:13 it's not an anchor, it's a custom view Jun 06 07:47:01 JakeWharton: to anchor, i think you need PopupWindow … at least in the old days Jun 06 07:47:14 nah Jun 06 07:47:17 it takes gravity and offsets Jun 06 07:47:23 Ologn, well I've already made it but what I also want to do is to play folders Jun 06 07:47:30 music into folders Jun 06 07:48:26 my mac fonts look so much better with light hinting Jun 06 07:48:39 goooooooood morning Jun 06 07:49:09 quick question, is there a way for the android default video player to stream an flv file from a URL? Jun 06 07:59:31 sorry Ologn that project don't solve my problem :( Jun 06 08:00:44 I am trying to connect adb to pidion bip 6000 (http://www.mypidion.com/product/product_tab.asp?bmenu=1&t_idx=24) but windows does not find a driver, i can't find a driver on the company website either. Is there some sort of standard android driver i can use? Jun 06 08:08:27 g00s: fmauro here? Jun 06 08:21:43 thepoosh: I'm here. Jun 06 08:22:03 fmauro: just a sec Jun 06 08:25:20 fmauro: what do you think of this? Jun 06 08:25:21 http://stackoverflow.com/questions/10910637/android-play-flv-video-stream-from-url Jun 06 08:28:00 thepoosh: what's the issue, can't open another app from within yours? Jun 06 08:29:58 thepoosh: ah, nvm, actionview yes. Jun 06 08:30:24 no no no Jun 06 08:30:38 fmauro: it opens "videos" but nothing happens Jun 06 08:30:50 why wont it stream?!?!?!?! Jun 06 08:30:57 thepoosh: is the url preceeded by "http://" Jun 06 08:31:05 yes Jun 06 08:31:29 hmm, can you give me some code so I can mess around with it? Jun 06 08:33:12 ohhhhhhhhhhh god yes!!!! Jun 06 08:33:18 I found the answer maybe Jun 06 08:33:27 now I only need some query help :D Jun 06 08:34:31 stermi: hmmmmm not really, I can give you a link to the stream Jun 06 08:35:10 thepoosh: was that to me maybe? alright, pass me the link and I'll implement it myself. Jun 06 08:35:19 Hi I have a rather basic issue, just starting up with android development. I have a SearchView and I have overridden the onKeyUp. Now from the onKeyUp I try to use this.toString() and pass that to the setText of a TextView I have. This does not work! Please help me Jun 06 08:35:21 oh Jun 06 08:35:21 thepoosh, Oh sorry this time I was talking about my problem :D Jun 06 08:35:25 yes sorry Jun 06 08:36:54 fmauro: did you get the link? Jun 06 08:37:54 thepoosh: no, but I have to mail something (real life!!). I'll be back in like 15 minutes to try this out myself, k? Jun 06 08:40:13 when will you developers help me Jun 06 08:40:42 TheLastNinja: relax, I think I can help you but gotta go. brb Jun 06 08:40:49 TheLastNinja: what's the question? Jun 06 08:41:10 i posted it 6 min ago Jun 06 08:44:37 thepoosh: why aren't you using mp4 video? this should play/stream fine in native player? Jun 06 08:45:50 thepoosh: Do you see it? Jun 06 08:48:47 brian_de: I'm using a third party service Jun 06 08:52:22 fmauro: let me know when you're free Jun 06 08:53:01 oh ok ... and this is real flash video? if it's not the flash from the old days, this should be an mp4 video just sitting in the flv container, so maybe you could force it to be played as mp4 Jun 06 08:53:34 i don't know, I guess I can ask the service provider Jun 06 08:54:04 you all talking what bout? Jun 06 08:55:27 * fmauro is back Jun 06 08:56:07 thepoosh: you can pass me that link if you want. I'll just use an ActionView to do just as you did. Jun 06 09:00:51 i am becoming a sad mac Jun 06 09:02:07 TheLastNinja: alright man, let's look at your issue then Jun 06 09:05:36 TheLastNinja: can you elaborate, what doesn't work, how is your searchView implemented. why not use the standard way of getting the query result. Jun 06 09:07:27 TheLastNinja: why override the onKeyUp and not onClick, why use this.toString() it will only get you a parseable string of the class and not the query Jun 06 09:08:01 TheLastNinja: As you're not responding I'll just write away :), override onClick instead and use this.getQuery() Jun 06 09:08:43 hello all Jun 06 09:08:50 ello Jun 06 09:09:52 * fmauro *chirp* Jun 06 09:13:19 morning all - ive been playing with MediaMetadataRetriever to get the METADATA_KEY_DATE from a video which is created from the device's camera - but when I call this i get a year which is 1949 or something odd like that - should I be calling something else ? Jun 06 09:14:31 hey folks, did you have a bunch of "Took to long to deliver" cancels too from google play store today? Jun 06 09:15:16 Ge0rG: in checkout? Jun 06 09:15:24 fmauro: yeah Jun 06 09:16:42 Ge0rG: no, but I only recently noticed between actually purchasing and final delivery lie 1.5 hours. on every purchase, so I guess that's normal Jun 06 09:17:24 Ge0rG: have had one customer cancel the purchase but that's it. Jun 06 09:22:52 fmauro: http://www.flixwagon.com/clientinterface/GetFLV?sid=6696609&x=.flv Jun 06 09:22:59 I was in lunch Jun 06 09:25:43 thwpoosh: beeing curious ... it's mp4: "Codec: H264 - MPEG-4 AVC (part 10) (avc1)" Jun 06 09:33:16 How can I frameLayout.addView(child) from another class? Jun 06 09:34:38 ZettaZete, elaborate. Jun 06 09:35:39 is there an API to put controls on lock screen the way Music does? Jun 06 09:35:42 191vista22_ Jun 06 09:36:05 Sorry. I am at explaining things. Alright, so I got a FrameLayout set up in another class but I want to be able to add views to it from the class it isn't initialized in. Jun 06 09:36:23 I am bad at explaining things. Also a bad typer at 4 AM Jun 06 09:36:27 fmauro: I am entirely new to this, so I will make stupid mistakes like that ;) Jun 06 09:36:55 TheLastNinja: don't worry, practice is what it takes. Jun 06 09:37:30 thepoosh is gone huh... Jun 06 09:38:34 fmauro: So the thing I want to do, is update a list of items while the user is typing Jun 06 09:38:47 the list of items will be fetched from a server Jun 06 09:39:13 ZettaZete, create a getter/setter method to change whatever you want to change. Jun 06 09:39:15 TheLastNinja: so this isn't a regular searchView? Jun 06 09:39:28 fmauro: I don't know what a regular one is... Jun 06 09:39:36 kg020, do those have to be static methods? Jun 06 09:39:51 fmauro: here? Jun 06 09:39:57 TheLastNinja: :3 how have you implemented it so far, how are you getting your data? Jun 06 09:40:05 It depends, this situation is very strange, why would you want to do this? are both classes activities? Jun 06 09:40:18 fmauro: The "getting data" part comes later, I am focusing on UI now Jun 06 09:40:28 But it will be with TCP communication Jun 06 09:40:37 thepoosh: hey , I got a ActivityNotFoundException, seems the android video doesn't handle flv at all. Jun 06 09:41:14 fmauro: that's weird... the startActivity sent me to videos Jun 06 09:41:14 kg020, one is a "wrapper" class and the other is where the main activity happens. Jun 06 09:41:16 When I use HTTP, the IOException catches the error. What I'd like to know is, why doesn't my server respond with a valid HTTP respond? I've been looking at tutorials to see if they differ much from what I've done, and they don't Jun 06 09:41:20 what device are you working on? Jun 06 09:41:41 examples* Jun 06 09:41:51 ZettaZete: sounds to me like you doing it wrong. Use interfaces or extend your classes in a meaningful way Jun 06 09:42:31 TheLastNinja: yes, but how is your data formatted, if you are constantly fetching new stuff, you know... how are you adding this to your list? is the amount of data really that big? could you initialize a regular searchView with a prefetched data-set? Jun 06 09:42:45 brain_de, however JNI can't access classes that extend the Activity Class. Jun 06 09:43:00 ZettaZete, Yeah it sounds like you need to arrange the structure... is the view you want to change in the activity class? Jun 06 09:43:01 you haven't said anything about JNI! ;) Jun 06 09:43:16 Anyone who can help me with an HTTP IOException issue? Jun 06 09:43:20 fmauro: it is impossible to prefetch, the remote database is huge (100k+ possibilities) and I want it to neatly show the results as the user types Jun 06 09:43:53 the search should be a simplified search field supporting *? Jun 06 09:43:54 kg020, kg020 yes it is. I wish I could get away from that, but I have to set the furthest back view to my Main interface. Jun 06 09:44:07 At startup. Jun 06 09:44:08 ok, so with every search change you want to update the dataSet. AND regex to? Jun 06 09:44:20 no regex, just the simple * and ? Jun 06 09:44:41 the search change will be updated asynchronously Jun 06 09:44:46 ZettaZete, then your second class should be a class which simply does the work... and has getter and setter methods Jun 06 09:44:52 TheLastNinja: well, that would be server side anyway I guess. Jun 06 09:45:11 and you initialize that object in your main, pass parameters and get what you want out of it Jun 06 09:45:21 yes, the actual filtering is server side Jun 06 09:45:24 it's a very strange situation but it should work Jun 06 09:45:54 kg020, so have the activity just access other class where it will have all the paremeters initialized in that class? Jun 06 09:45:54 Nevermind, got it to work =D Jun 06 09:45:57 fmauro: so is a SearchView appropriate? Jun 06 09:45:59 fmauro: ? Jun 06 09:47:02 TheLastNinja: so you have everything you need. You create a new Thread when the search is changed (be careful not to spam the activity with threads) that updated your data set on a queryChange. A searchView basically would do that for you with a static data set but I guess you could enforce your own policy and still use the function of selecting an item. Jun 06 09:47:07 ZettaZeta, yeah but keep all the UI updates in the main activity Jun 06 09:47:42 fmauro: And how do I know that the search is changed? Which onX function? Jun 06 09:47:45 thepoosh: well, I had the MXVideo player first, I uninstalled it now, and I'm getting ActiviyNotFoundException, on both MIME types video/flv video/* Jun 06 09:48:05 that's very weird Jun 06 09:48:11 kg020, Hmm.. I'll figure it out. I think. Jun 06 09:48:33 Because I"m only catching half of what your talking about. :P Jun 06 09:48:40 TheLastNinja: http://developer.android.com/reference/android/widget/SearchView.html Jun 06 09:48:52 ZettaZete, just create a class with methods which do whatever you want them to do... Jun 06 09:48:53 TheLastNinja: you need a onQueryTextListener Jun 06 09:49:11 kg020, oh no I get it. Just its 4 Am :P Jun 06 09:49:42 go have some coffee dude ;) Jun 06 09:49:53 this post http://goo.gl/33xHM suggests WinAmp and PowerAmp offers lock screen controls so it should be in SDK, can anyone give me a hint? what to search? Jun 06 09:50:04 s/offers/offer/ Jun 06 09:50:47 kg020, wait quick question. Can I not just add a view outside of the UI thread? Jun 06 09:50:52 fmauro: Is that an interface that the SearchView class implements? Cause I can't find that in context Jun 06 09:51:15 What the heck is a nested class Jun 06 09:51:51 think of a bird making a nest... it's like that, only for groups of students in a school Jun 06 09:52:15 TheLastNinja: this class gives you the functions to implement change of query, query submission etc... Jun 06 09:52:16 TheLastNinja: "inner class" Jun 06 09:52:19 <[oC]UnknownzD> I wonder is there any existing library for checking empty / space character in Unicode (not written in Java) Jun 06 09:52:53 ZettaZete, no because that's the way UI works. Jun 06 09:53:06 That might be my problem then. :P Jun 06 09:53:16 i.e not android is not thread safe Jun 06 09:53:22 most frameworks aren't Jun 06 09:53:28 ZettaZete: you need a handler in the UI thread to take care of that. Jun 06 09:54:07 Great, I hate handling UI threads. The best way of doing that is Async Tasks? Jun 06 09:54:39 the best way is to be single-threaded as far as possible, and carefully encapsulate the slow bits in asynctasks, imo Jun 06 09:55:14 the trouble with asynctasks is that there's no guarantees the views and activities still exist by the time asynctask is done, so it's not so great as it might originally sound like Jun 06 09:55:23 fmauro: I am a bit lost on what I should do with this inner class, how do I link my action into it? Jun 06 09:55:34 Too delete an entry from a Table in a Database can I do: ourDatabase.delete(DATABASE_TABLE, KEY_ROWID + " = " + id, null); Jun 06 09:55:37 ?? Jun 06 09:55:50 ZettaZete: maybe look at this: http://stackoverflow.com/questions/4562988/getting-force-close-when-i-add-view-to-other-view-when-a-thread-is-running Jun 06 09:56:02 TheLastNinja: ok , let's go through this. :3 Jun 06 09:56:09 Tsukaza: yes, but you're supposed to do KEY_ROWID + " = ?", new String[] { STtring.valueOf(id) }) Jun 06 09:56:13 fmauro: Upon creation of SearchView, do I have an instance of the inner class as well? Jun 06 09:56:23 TheLastNinja: I haven't used SearchView myself but it doesn't seem too hard. Jun 06 09:56:25 fmauro: Or should I create one and use the set? Jun 06 09:56:26 Tsukaza: so don't embed values in queries, use ? Jun 06 09:56:39 Is there a way to get only distincts ina content provider? Jun 06 09:56:39 alankila, is that so? Jun 06 09:56:51 it is so. Jun 06 09:56:51 TheLastNinja: you have to create one and set it as listener to override the default actions. Jun 06 09:56:55 alankila: Thank you ill test it out :) Jun 06 09:57:24 fmauro: Just to straighten this out, SearchView.InnerClass is different from any other InnerClass in any other place? Jun 06 09:57:41 For example TextView.InnerClass (same name) Jun 06 09:57:45 TheLastNinja: sure, it has a different name Jun 06 09:57:45 nevermind I'll just build it into the content provider Jun 06 09:58:06 TheLastNinja: nah the . is part of the name. The compiler convers it to $ in fact when building, so you get Foo$Bar and Foo2$Bar as class names Jun 06 09:58:23 it's a bit confusing but that's the way it works Jun 06 09:58:27 TheLastNinja: I have some time on my hands, let me whip you up an example project. Jun 06 09:59:31 TheLastNinja: the inner class is, from java point of view, just a normal class with a compiler-managed reference to the outer class Jun 06 09:59:36 alankila: But it seems that it is common practice to have the same name of innerclasses for many parents when the innerclass implements the same interface, I guess this is common practice? Jun 06 09:59:49 so when you do 'new Foo.Bar()' with a non-static inner class, compiler actually invokes 'new Foo$Bar(this)' Jun 06 10:00:06 TheLastNinja: sure, it doesn't matter for most people, although I grant that it can lead to confusion Jun 06 10:00:18 I try to avoid referencing inner classes without the outer class name to accompany it Jun 06 10:00:32 so for instance, I always write View.OnClickListener because there are many OnCLickListeners in the android class tree Jun 06 10:01:05 and I really dislike confusing two of them because they aren't the same type, yet for a stupid human brain it looks like it should work Jun 06 10:01:24 Ok, I think this sorts it out a bit, so I need to create the SearchView.OnQueryTextListener and register it somehow with the SearchView itself Jun 06 10:01:40 TheLastNinja: yes Jun 06 10:01:51 sure, it's probably searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() { ... }) Jun 06 10:01:57 we like to be as brief as possible with these things Jun 06 10:02:04 lovely Jun 06 10:02:17 Haven't used Java since school, all C for me Jun 06 10:02:27 if you have never seen the syntax before then the { ... } part is extending an interface in this case, and it is called anonymous inner class Jun 06 10:02:42 alankila: yes yes, it is all coming back to me now Jun 06 10:03:00 anonymous because there is a type defined for it, but it has no name you have given. Compiler picks integers, this is likely FooActivity$1 after javac is through with it Jun 06 10:03:15 assuming this thing is contained in class called FooActivity Jun 06 10:06:24 TheLastNinja: oh and notice, the SearchView widget is API 11+, just to let you know. Jun 06 10:07:13 TheLastNinja: for backwards compatibility you might want to use the search dialog. Jun 06 10:08:01 Can you override the back button on a HC tablet? Jun 06 10:08:13 JoeTheGuest: I imagine the onBackPressed in activity works the same Jun 06 10:08:31 why, do you have some evidence that it doesn't? Jun 06 10:10:34 http://codr.cc/1992f3 Jun 06 10:11:07 hello every1 Jun 06 10:11:36 can you please help me with this 1 .. i wana download gmail-inbox mails in my app Jun 06 10:11:45 JoeTheGuest: I would use Log.d(String tag, String message) to print stuff to logcat Jun 06 10:11:56 I know. I get lazy lol. Jun 06 10:12:04 yes, System.out actually doesn't print anything afaik Jun 06 10:12:09 there's no connection from that to the log Jun 06 10:12:24 i have seen k9 mail code .. but its too much to integrate my app with it Jun 06 10:12:44 Still nothing though. Jun 06 10:12:53 dopeshope Gamil API Jun 06 10:12:57 Log.i is what I use because Log.d gets compiled out unless you do debug builds Jun 06 10:13:28 https://developers.google.com/google-apps/gmail/ Jun 06 10:14:04 JoeTheGuest: how about calling the parent-method after your Log entry? maybe your activity is being killed before it can print to log. Jun 06 10:14:07 JoeTheGuest try onKeyDown Jun 06 10:14:33 I've tried it both ways and using onKeyEvent. Jun 06 10:14:34 yeah I don't know what happens after the super call... I'd hope it still returns from that, but don't know Jun 06 10:14:40 guys is there a way to know which are the directories scanned by the MediaScanner for Music? Jun 06 10:14:51 strange Jun 06 10:15:24 stermi: I've read somewhere is scannes everything unless there's a .ignore (<-- not sure about this filename) in a folder Jun 06 10:15:38 stermi: this is absolutely not verified info though Jun 06 10:15:54 there is some ignore mechanism, yes. Jun 06 10:16:09 .nomedia is the file Jun 06 10:16:20 This, is very annoying lol. Jun 06 10:16:29 JoeTheGuest: still not working? Jun 06 10:16:36 Nope. Jun 06 10:16:36 Well I think that he stores some folder list cache Jun 06 10:16:53 JoeTheGuest: let me try to override here Jun 06 10:16:54 JoeTheGuest or is this some device-dependent problem? Jun 06 10:17:25 Toshiba Thrive on 3.2.1 Jun 06 10:17:42 Can anybody else not access google? Jun 06 10:18:15 ZettaZete it's just you ;) Jun 06 10:18:18 http://www.isgoogledown.com/ Jun 06 10:18:23 JoeTheGuest: my override works both before and after the super.onBackPressed() call. I log with Log.d("testapp", "onBackPressed()"); Jun 06 10:18:52 I'm on the google webpage and it says error 502. ;) Jun 06 10:18:58 Shit, I'm using a tabhost. Jun 06 10:19:09 My tab might be stealing the onBack Jun 06 10:19:26 fmauro: worth proving that you can see any Log.d statements in the first place Jun 06 10:19:45 like do Log.i("foo", "this works for sure"); Log.d("foo", "don't know if this appears also") in onCreate or something Jun 06 10:19:53 Works like a charm Jun 06 10:20:02 Grr... Jun 06 10:20:18 oh, failhost Jun 06 10:20:22 and on android 3.0 no less :-) Jun 06 10:20:35 alankila: well if he uses eclipse with the new adt all non-export builds are debug by default, but good point nonetheless Jun 06 10:21:08 yeah IDK, I've had annoyance with Log.d so I never use it. I should probably test if I could use it nowadays Jun 06 10:21:41 alankila: you've been burrrrrrned ^^ Jun 06 10:22:06 don't need multiple levels of logging anyway, I have to focus the log statements to where I actually care about the text rather than just enable debug and then watch the interesting info scroll past hidden in 100s line of nonsense Jun 06 10:22:07 alankila: oh well if Log.i suits your needs, whatever floats your boat Jun 06 10:22:41 Logging focused on particular classes would work, like in log4j or something, but sadly android logging is incredibly primitive to the point of being worthless Jun 06 10:23:11 in fact it has sort of negative value, the default implementation is so poor that it actually stops better implementations from gaining traction :-p Jun 06 10:23:15 millenomi: WAT? Jun 06 10:23:24 Hello all. Do I have to do anything quirky to use «macro» mode of the camera? It seems to focus on infinity. Jun 06 10:23:32 I'm taking a screenshot of this Jun 06 10:24:27 alankila: I agree Jun 06 10:27:13 I'm running Addview on a UI thread but still nothing :( Jun 06 10:27:34 Regarding the google API to use for downloading the mails in the app .. is there any other method .. becoz i wana download mails from yahoo n other vendors too Jun 06 10:27:58 ZettaZete: care to share your code? or at least the parts that matter? Jun 06 10:29:30 dopeshope might want to step back and design it appropriately. Jun 06 10:29:47 fmauro, here is my way of threading it to the UI I'm not sure if that is the most proper way. http://pastebin.com/zFZaVm2J Jun 06 10:29:48 dopeshope there is no magical method that gives you everything you want, they are 2 different services with 2 different API's. Jun 06 10:30:54 ZettaZete: oh god, why do you do this Thread stuff Jun 06 10:31:08 ^ exaclty my point. XD Jun 06 10:31:10 ZettaZete: this is implemented where, in the Activity? is it called from the outside? , why not use a handler? Jun 06 10:31:10 I was thinking the same thing lol. Jun 06 10:31:13 does the adView.loadAds() really have to be done in a thread anyway? Jun 06 10:31:37 My guess is they do the threading in their API. Jun 06 10:31:43 my guess also Jun 06 10:32:04 Alright, might as well try a handler then. Jun 06 10:32:06 The way to write android application, or any application, is to just write the simplest possible version with *no* extra code that doesn't really have to be there Jun 06 10:32:26 then if that doesn't work well enough, you add the minimum amount of shit like worker threads or error handling or whatever Jun 06 10:32:26 Uhh... Jun 06 10:32:29 ZettaZete... Jun 06 10:32:49 but the point is, don't just randomly add a Thread on the theory that it might need one Jun 06 10:33:06 Why not just add the view to your xml layout. Jun 06 10:33:22 com.package.for.AdView Jun 06 10:33:27 JoeTheGuest, I am compiling to a jar, no xmls ^^ Jun 06 10:34:10 I'm in a very weird situation just for testing purposes. xD Jun 06 10:34:48 Oh! a question comes to mind... I have made a few library projects, but cannot seem to access assets saved in their resources. now I know google specifies this but is there a way around this? Jun 06 10:35:39 I'd like to put controls on lockscreen (like Music does) but I cannot find anything useful on developer.android.com - can anyone give me some pointers? Jun 06 10:35:39 http://codr.cc/2007e8 Jun 06 10:35:42 ZettaZete Jun 06 10:35:44 JoeTheGuest, I"m staying away from xmls just saying. Jun 06 10:35:45 for example a ttf font I use to generate a typeface I have to include into all my projects that use this lib. I'd like to keep this as close to the lib as possible Jun 06 10:36:10 Did you click my link? Jun 06 10:36:13 ZettaZete ^ http://codr.cc/2007e8 Jun 06 10:37:31 JoeTheGuest, You have to addviews in the UI thread don't you? Jun 06 10:37:44 That's how you should be doing it. Jun 06 10:38:19 UI interactions aren't Thread safe. Jun 06 10:38:45 ZettaZete: yes, define the addView like in the lower example and use a handler to call it from outside of the ui thread. Jun 06 10:39:04 fmauro he doens Jun 06 10:39:08 t need a thread at all Jun 06 10:39:17 stupid question: Content provider, how do I sort by alpha using the sortOrder field? I cant find the docs on what your actually supposed to put in as vars Jun 06 10:39:37 JoeTheGuest: if he calls addView from another thread (say GameThread) this code will crash Jun 06 10:39:47 JoeTheGuest: if it's just regular activity , fine Jun 06 10:39:53 Yea, but he isn't in that example. Jun 06 10:39:57 And he shouldn't. Jun 06 10:40:02 are there any logs for this channel? Jun 06 10:40:04 He's just writing a custom view from what I understand. Jun 06 10:40:46 Yea, but I am calling that function from a button event. Jun 06 10:41:02 ZettaZete which, doesn't need threaded. Jun 06 10:41:05 ZettaZete: this should be inside the UI thread. Jun 06 10:41:23 ZettaZete don Jun 06 10:41:30 It sounds safer fmauro's way because it doesn't work now. Jun 06 10:41:32 damn, keep bumping enture. Jun 06 10:41:42 ZettaZete don't thread.. Jun 06 10:41:51 Post the class code so I can see what else you have. Jun 06 10:42:11 There is a bigger problem because usually it will crash if you do a UI interaction that on a thread that isn't the UI thread. Jun 06 10:42:55 ZettaZete: CalledFromWrongTreadException < this one Jun 06 10:43:01 my listview is displaying black on it when i scroll even though i set the cachecolorhint to transparent….any ideas? Jun 06 10:43:03 Exactly. Jun 06 10:43:16 luxurymode turn scrolling cache off or on, I forget which one. Jun 06 10:43:18 Well, if you want to flame me. You could on how I am calling a nonstatic function with new OnCreate().addView(); Jun 06 10:43:35 ZettaZete please post more code so we can see what you are doing. Jun 06 10:43:56 listView.setScrollingCacheEnabled(false);? Jun 06 10:44:05 luxurymode try that. Jun 06 10:44:07 Sounds right. Jun 06 10:44:36 JoeTheGuest, I'll show you the basics of what I have Jun 06 10:44:52 And ZettaZete we aren't flaming, you aren't listening lol. There is a bigger problem and addView shows us nothing. Jun 06 10:45:34 Can't fix something we can't see. Jun 06 10:45:41 new OnCreate()? Jun 06 10:45:47 seriously? Jun 06 10:48:37 JoeTheGuest, http://pastebin.com/XnVtBuQv http://pastebin.com/fiUvEsYZ Jun 06 10:48:55 JoeTheGuest, think that worked thanks! Jun 06 10:49:32 JoeTheGuest, that is everything that involves that section of the code. Not much really. Jun 06 10:49:41 So... Nothing has changed. Jun 06 10:49:55 That shows me nothing lol. Jun 06 10:50:06 Yea, but that is all I have really. Jun 06 10:50:07 What are you doing in the onCreate Jun 06 10:50:14 Well, then that's your problem.... Jun 06 10:50:20 ZettaZete: are you trying to add the adView directly at startup? Jun 06 10:50:21 no setContentView Jun 06 10:50:45 fmauro after I press a button on the main UI Jun 06 10:51:04 ZettaZete: you need a regular setContentView, then you need a reference to the current layout, then add the adview to the layout you have referenced. Jun 06 10:51:23 also, you're instantiating an activity Jun 06 10:51:33 you should never do that Jun 06 10:51:39 give me a sec I'll give you some more. Jun 06 10:51:42 I currently have a filtertext at the top of my application that allows users to search through the active listview. However.. its a bit ugly, can I incorporate the search widget with the filtertext? OR does that just replace the filtertext? Jun 06 10:51:47 ZettaZete: lose the wrapper class, not needed. Jun 06 10:51:51 ZettaZete might want to take a look at some examples. Jun 06 10:51:59 http://pastebin.com/pip546VV Jun 06 10:52:23 fmauro, it is. I can't access a class that extends Activity with JNI. Jun 06 10:52:36 Or is there a way to just have the search icon in the actionbar and that then drops the filtertext box down? Jun 06 10:53:21 ZettaZete: then just make the method static Jun 06 10:53:22 ZettaZete: ok, how do you define the button to call this addView() method Jun 06 10:53:56 fmauro, it is on Unity3d and it sends a JNI message to addView() Jun 06 10:54:04 ZettaZete: there's no point in creating an activity yourself, since 'this' will not work as a Context until onCreate() is called by the android system Jun 06 10:54:15 which will never happen if you do new OnCreate() yourself Jun 06 10:54:34 ZettaZete I think you need to step back and re design this a bit. Jun 06 10:54:44 You seem to have lost your way I think. Jun 06 10:55:20 Well, I have a wrapper to handle JNI calls, I have OnCreate to initialize Unity3d onto a view, then I"m trying to initialize another view on top of that. Jun 06 10:55:31 After I press a button on the Unity3d view. Jun 06 10:55:55 I have no experience with unity3d so i'm lost on that part. Jun 06 10:55:59 why not simply call addView from onCreate? Jun 06 10:56:22 MDijkstra, I need to make it where I can make it popup when I want from JNI calls. Jun 06 10:56:52 ZettaZete: sounds like you want a native activity Jun 06 10:57:21 2.3+ though Jun 06 10:57:24 Mdijkstra, didn't think about it that way. However, can JNI start activities? Jun 06 10:57:33 ZettaZete: yes, since android gingerbread Jun 06 10:57:49 http://developer.android.com/reference/android/app/NativeActivity.html Jun 06 10:58:37 Mdijkstra, this is what I would be looking at http://unity3d.com/support/documentation/Manual/Android-Launch%20an%20Android%20Application%20from%20a%20Unity%20Application.html Jun 06 10:59:36 ZettaZete: can't tell what they're doing from that example Jun 06 10:59:41 but it seems kind of wrong Jun 06 10:59:55 Exactly what I was thinking. Its not really using JNI Jun 06 10:59:58 is there an application that will allow me to configure application level permissions ? Jun 06 11:00:16 i want to give specific application access to specific folders only. Jun 06 11:00:42 bsilwal: nope. can't be done Jun 06 11:01:02 really :s Jun 06 11:01:06 bsilwal: you can share files between a group of applications Jun 06 11:01:19 bsilwal: and that group only (I think) Jun 06 11:01:47 what do i have to read to understand this more ? Jun 06 11:01:58 * fmauro is going to nom smth Jun 06 11:02:10 bsilwal: http://developer.android.com/guide/topics/data/data-storage.html Jun 06 11:02:27 cheers MDijkstra Jun 06 11:02:48 the Internal and External Storage bits are the most interesting for you Jun 06 11:03:05 cool Jun 06 11:08:49 JoeTheGuest, could it be that I"m trying to call the fuction with new OnCreate().loadAds(); ? Jun 06 11:11:27 http://www.theverge.com/2012/6/6/3067386/acer-iconia-tab-quad-core-tablet-price Jun 06 11:13:05 'new OnCreate()'? Jun 06 11:13:29 OnCreate is the class that is holding my function because the function can't be static. Jun 06 11:28:03 I have an activity inside a tab and there is a textBox outside the tab. When I try to type something in the textbox the focus is lost. what could the reason? Jun 06 11:28:35 can anyone point me where i can get Odin 1.83 Jun 06 11:28:36 ? Jun 06 11:28:50 like all the links are dead Jun 06 11:30:31 nvm Jun 06 11:30:39 finally a link that works Jun 06 11:32:41 Blou_Aap: wrong channel... Jun 06 11:32:57 i realized after i found my link Jun 06 11:33:36 i have to test my app on ics on a tablet Jun 06 11:33:52 so trying to flash cm9, so in a way no that far off Jun 06 11:38:03 It works just fine if Its running from the Activity. -.- Jun 06 11:46:03 What do I have to do to make adb devices show the device I have attached? Jun 06 11:46:07 I have USB debugging enabled Jun 06 11:46:13 I have an activity inside a tab and there is a textBox outside the tab. When I try to type something in the textbox the focus is lost. what could the reason? Jun 06 11:48:33 thenovelist: what OS? Jun 06 11:48:42 Mac OS X Jun 06 11:49:28 officially you shouldn't have to do anything on OSX, apparently... what device? Jun 06 11:50:03 Google Nexus Galaxy Jun 06 11:50:49 um... you mean Samsung Galaxy Nexus? :) Jun 06 11:51:14 hehe Jun 06 11:51:26 I guess Jun 06 11:51:57 I'd double-check your USB cable, eliminate a hub if appropriate, maybe try a different port Jun 06 11:52:06 do you get the debug notification when you plug in? Jun 06 11:52:09 on the phone, that is Jun 06 11:52:25 heh Jun 06 11:52:44 The phone should pop-up a notification when it's plugged in? Jun 06 11:52:56 yes Jun 06 11:53:31 nope Jun 06 11:53:38 hrm Jun 06 11:53:51 then the phone isn't seeing the computer on the other end of the USB cable Jun 06 11:53:54 put android tools and platform-tools on your bash profile thenovelist Jun 06 11:54:37 also double check that you have debugging switched on the phone Jun 06 11:54:47 yup, USB debugging enabled Jun 06 11:55:02 then do the bash profile thing Jun 06 11:55:08 fixed the same issue for me Jun 06 11:55:34 or Jun 06 11:55:45 try run dab from the terminal at least once as root Jun 06 11:55:50 sudo adb Jun 06 11:55:54 adb Jun 06 11:55:59 didn't think you had to do that on OSX? Jun 06 11:55:59 damn autocorrect Jun 06 11:56:14 well on snow an lion Jun 06 11:56:19 i had to do that Jun 06 11:56:43 pain actually if you new to os x Jun 06 11:58:11 sudo ./adb devices didn't help Jun 06 11:58:36 are you in the right folder Jun 06 11:58:42 ? Jun 06 11:59:17 yea, it just lists no devices Jun 06 12:00:01 ye but that would always be the case if you run it as root Jun 06 12:00:20 sudo dab kill-server Jun 06 12:00:23 anyone know what can cause my app to throw SocketException Bad file number when I run on a device with only wifi internet and no sim card, but whne it runs on a device with simcard it works fine Jun 06 12:00:25 then start-server Jun 06 12:03:38 if you're not getting the notification on your phone, it doesn't matter how much you play with adb Jun 06 12:04:08 blah Jun 06 12:05:32 are you using the original cable? are you plugging straight into your machine? can you change to a different USB port? Jun 06 12:05:44 I'm using a cable from my external hard drive Jun 06 12:05:47 it works with the hard drive Jun 06 12:05:57 different USB port seems to do nothing Jun 06 12:06:08 try using the original cable Jun 06 12:09:08 how can i format a new Date() to a yyy-mm-dd hh:mm:ss Jun 06 12:09:24 yyyy-MM-dd HH:mm:ss Jun 06 12:09:26 sorry Jun 06 12:09:36 trying to google but cant find exactly what i need Jun 06 12:10:15 has anybody worked on an application which communicates with Jira ? Jun 06 12:11:32 Bear10: SimpleDateFormat Jun 06 12:11:45 wongk just found that, hoping im doing it right Jun 06 12:11:46 lol Jun 06 12:11:57 SimpleDateFormat outFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Jun 06 12:11:57 then did a outFormat.format(new Date()); ? Jun 06 12:12:10 looks right Jun 06 12:12:32 did it work? Jun 06 12:12:43 yeah Jun 06 12:12:44 :) Jun 06 12:12:45 thanks Jun 06 12:12:55 i guess that's sufficient evidence :P Jun 06 12:22:53 is sqlite most popular db used in android applications or is it the only db used in android application ? What other db are used ? Jun 06 12:24:27 well not the only one of course Jun 06 12:24:37 i heard people using couchdb or mongo Jun 06 12:25:28 whatever database people need is typically what they use Jun 06 12:25:47 i don't have a representative sample of all android applications, though Jun 06 12:26:45 sqlite is built into Android, of course Jun 06 12:29:43 How do I export a Java library in Eclipse, for use in Android in other projects - which export file do I select, for it to import properly? Jun 06 12:30:14 .jar Jun 06 12:30:25 Jobo: if you don't use any resources, you can export it as a regular jar. If you do, it should be a library project, I guess, which is slightly more complicated. Jun 06 12:31:09 is there online viewing of android sources? Jun 06 12:31:25 Yeah I've tried .jar, the importing is just a little funny. Jun 06 12:31:28 i think there's a github repo, but i don't know how up to date it is Jun 06 12:31:46 Jobo: how? Jun 06 12:31:55 When importing, it adds a META-INF folder, and an empty package Jun 06 12:31:56 AFAIK you just dump it into the lib/ dir? Jun 06 12:32:20 Oh, did you export it as a web project instead of a regular jar? Or check some of the wrong boxes? Jun 06 12:32:32 No, a plain old Java .JAR Jun 06 12:32:44 And I only exported the java files Jun 06 12:33:25 Do you import, though? As in, File > import? Because I've never done it that way. Jun 06 12:33:53 Am I doing it wrong by simply going Rightclick -> Import -> Archive File? I recall having done it differently when I set up AdMobs for the very first time, but I don't have any files any longer Jun 06 12:34:04 Create a lib folder and drag it in there? Jun 06 12:34:26 libs, in fact Jun 06 12:34:28 But yes Jun 06 12:35:03 It's a mystery to mewhy they haven't added that folder as a default Jun 06 12:36:09 Thanks Hdroid :) Jun 06 12:36:20 Haven't been using Java for a while, wee bit rusty hehe Jun 06 12:36:22 Apparently it does have to be added to the build path, still. Jun 06 12:36:42 http://developer.android.com/resources/faq/commontasks.html#addexternallibrary and that doc neglects the fact that it has to be in libs/ Jun 06 12:36:53 I recall this simply pressing "Copy files" does the trick, no? Jun 06 12:37:02 - this Jun 06 12:37:19 Oh yes like this Jun 06 12:37:22 once it's in libs, you can right click on it and add it to the build path Jun 06 12:37:29 Not sure, I haven't seen that button (is it a button?) Jun 06 12:37:49 Ah neat wongk Jun 06 12:38:42 Very neat wongk, thanks Jun 06 12:42:16 Thanks guys, figured it out Jun 06 12:42:27 shitty cable (jiggle it and it works) Jun 06 12:42:50 oops Jun 06 12:48:15 thenovelist: what was the very first thing I said? :) Jun 06 12:48:20 Hello colleagues. I am facing a weird issue: When exporting .APK the .APK is missing all classes from any reffered projects (both Android Libraries and simple Java ones). Jun 06 12:49:06 If I mark the appropriate libraries and projects as exported I get a 'Conversion to Dalvik format failed with error: 1'. Jun 06 12:50:34 whats the best way to deal with preferences... PreferenceFragment is required on multi-pane layouts (and PreferenceActivity is deprecated), but theres no PF in the support lib Jun 06 12:50:48 some kind of wrapper around the logic that can fit into PF or PA? Jun 06 12:50:51 Lachezar: using proguard? Jun 06 12:50:57 wongk: Nope. Jun 06 12:51:38 canadiancow|work: do you have enough preferences to even warrant PreferenceFragement? Jun 06 12:51:44 i just use the deprecated API Jun 06 12:52:28 im writing a lib project. i cant guarantee how many prefs an app will have Jun 06 12:52:46 oh, interesting Jun 06 12:53:19 so you're trying to provide a UI for the preferences related to the lib? Jun 06 12:53:38 among other things Jun 06 12:53:38 Having some difficulty applying a shape-created gradient to be my background color: http://pastebin.com/UA05Ntyn Jun 06 12:53:53 Was wondering if anyone could be so kind and point me in the right direection Jun 06 12:54:07 I use this layout xml : gist.github.com/2881650 I'm unable to type something in the EditText in the layout. Can someone help me out to find why? TIA Jun 06 12:54:37 ouch, i don't see a clean solution for that Jun 06 13:06:59 Timmaah1201: does that not work? Jun 06 13:07:36 Guys... Really... I can no longer export my application... Jun 06 13:07:54 nope, just gives me the default black background, Hdroid Jun 06 13:08:23 In the .APK I only see the R.class (and R$*.class) from the library projects. No classes whatsoever! Jun 06 13:08:53 Or it just claims that 'Conversion to Dalvik failed...'. Jun 06 13:09:00 Lachezar: is this after updating the sdk? They changed a few things about how libraries are linked. Jun 06 13:09:02 napster: what if you set the android:inputType to text Jun 06 13:09:15 Can be tricky to solve, but there's a few posts on stackoverflow et al about it. Jun 06 13:09:20 Hdroid: Yes, that's after an SDK update. Jun 06 13:09:36 Is there any ability to tell from the LockScreen API if the LockScreen is displayed? Ie in logcat there's I/WindowManager( 134): Lock screen displayed! Jun 06 13:09:59 Hdroid: Tried cleaning up: does not work. Tried juggling with which libraries are exported: Nada. Jun 06 13:11:08 jrock20041: No difference :( Jun 06 13:11:23 Lachezar: this might help http://tools.android.com/recent/dealingwithdependenciesinandroidprojects Jun 06 13:11:52 Hdroid: does the background.xml have to be in all the drawable folders? Jun 06 13:12:01 i made a generic drawable/ folder Jun 06 13:12:04 Timmaah1201: nope, just one Jun 06 13:12:20 Timmaah1201: if it can't find it, it'll give an error Jun 06 13:12:40 Timmaah1201: just to be sure, though, you don't have another drawable called background floating around in one of the other drawable dirs? Jun 06 13:13:27 Lachezar, either turn on verbose builds, or use ant, and get a real error Jun 06 13:13:31 DOH! Stoopid ADK: I have a library, that has a dependancy to a simple Java2 project library. Jun 06 13:13:53 napster: This may help http://developer.android.com/resources/tutorials/views/hello-formstuff.html#EditText Jun 06 13:14:10 i did, but deleted it and tried it again but still just gives me a black background Jun 06 13:14:12 android:shape="rectange"> if that's a direct copy and paste, you might want to replace that with "rectangle" :) Jun 06 13:14:18 aaah! Jun 06 13:14:32 It appears that android:inputtype is for textview Jun 06 13:14:42 sadly didnt fix it though :( Jun 06 13:15:02 does anything need to be added to the manifest for shapes? Jun 06 13:15:21 Timmaah1201: I'm surprised that didn't throw an error, is your app even building, as opposed to running an oldeer version? Jun 06 13:15:27 No, no manifest for shapes Jun 06 13:15:54 napster: I believe you will have to set a permission too in your manifest Jun 06 13:16:27 yep, builds etc. fine Jun 06 13:16:33 Hi ! I would like to develop an application for Bluetooth Smart for Android for the HTC One X, but it seems like there are no android API's for this. Does anybody know if google is going to create these ? Jun 06 13:16:50 so i have drawable (i made), then drawable-xhdpi/hdpi/mdpi/ldpi Jun 06 13:16:56 and its in the drawable/ Jun 06 13:16:57 Hi all..is it possible to continuously rotate the model on orthographic view?..thanks Jun 06 13:17:31 canadiancow|work: Now what?!? I have to manually build every dependency project to produce a .JAR to copy into the Android project? Jun 06 13:18:10 ? Jun 06 13:18:15 Timmaah1201: yes that should work Jun 06 13:19:07 :/ Jun 06 13:19:18 canadiancow|work: Application depends on Android-Library1 and Android-Library2. Android-Library1 depends on Java-Library1. Jun 06 13:19:55 ok? Jun 06 13:20:14 so you include JL1 in AL1 Jun 06 13:20:19 and link App to AL1 and AL2 Jun 06 13:20:21 and all is good Jun 06 13:20:37 im working on a project with a rat's nest of a dependency graph, and it works fine Jun 06 13:20:44 Hdroid: I don't need to specify a size for the shape either? Jun 06 13:20:45 canadiancow|work: There is no way to «include» JL1 in AL1. The're both Eclipse Projects. Jun 06 13:20:59 Timmaah1201: nope, it should stretch to fit. Jun 06 13:21:33 and I don't need to do anything in the main activity other than call the activity layout xml file? Jun 06 13:22:21 Lachezar, make a jar? Jun 06 13:22:28 dunno Jun 06 13:22:34 turn it into an android lib project? Jun 06 13:22:39 canadiancow|work: DOH. That would be like WTF! Jun 06 13:23:20 canadiancow|work: That used to work easily: AP1 depends on AL1, AL2 and JL1 and it was peachy. Jun 06 13:24:08 ive never used a "java library" that wasnt a jar Jun 06 13:24:54 canadiancow|work: No Project dependencies?!? You do what? Build manually every project, and copy the .jar to every dependent project?!? That's like Double-Face-Palm. Jun 06 13:25:04 no Jun 06 13:25:14 all our internal projects are android projects Jun 06 13:25:20 because android is the only java-based platform we use Jun 06 13:25:30 and all the third party libs are closed-source Jun 06 13:25:32 so we only get jars Jun 06 13:25:33 DOH. Discrimination! Jun 06 13:25:56 Q: Can I somehow revert my SDK to previous version? Jun 06 13:26:24 Hdroid: Incase you were wondering.. fixed it. I inserted an Android xml file, rather than create my own.. Jun 06 13:26:49 Timmaah1201: doh Jun 06 13:27:10 Lachezar, you dont want to do that Jun 06 13:29:02 Hello everyone. I stumbled on a problem when trying to implement a view pager. The program works fine with all layouts i've tested it with. But when i throw in a video and a media controller, The mediacontroller will start floating over wrong pages a bit when i slide thru the views on my app. I might have some very fundamental probles in my coding since i'm pretty new to this stuff. Jun 06 13:29:02 Here is the source: http://piratepad.net/8duHlB3kNk (Feel free to comment it). Thank you! Jun 06 13:29:17 canadiancow|work: OF COURSE not! Touching a single file in any of the base libraries would be like comitting self-sacrifice. Jun 06 13:30:09 canadiancow|work: About the revert: I have no idea how to actually build my project with the current SDK. Simple as that. Jun 06 13:30:41 im sure theres a way :) Jun 06 13:30:47 i just dont know what it is Jun 06 13:32:35 canadiancow|work: Reading the http://tools.android.com/recent/dealingwithdependenciesinandroidprojects it seems that th eonly way to actually build an Android project is ugly. WTH did they do that? Jun 06 13:33:37 ? Jun 06 13:33:58 it works fine for everyone else Jun 06 13:34:05 Yeah right! Jun 06 13:34:55 So I have two ways: revert to jar-hell once more, or copy-paste my libraries' content into every Android project. Jun 06 13:36:22 Has anyone coded/used a viewpager? Jun 06 13:40:54 how is it I fix my project when I tried to debug while in a xml file Jun 06 13:41:02 it complains about R Jun 06 13:41:22 R cant be built why you have xml errors Jun 06 13:42:21 and motodev cant tell me where the xml errors is? Jun 06 13:42:50 no idea about motodev Jun 06 13:43:03 valiolap whatcha need Jun 06 13:45:23 Jug6ernaut i'll paste a link here. Read the comment i made on top: http://piratepad.net/8duHlB3kNk Jun 06 13:45:42 Mech0z, eclipse gives you an error for R if you've never built the application before.. not sure if thats the issue.. but it will build anyway, and the error disappears Jun 06 13:45:48 You can make comments on that page if u like Jun 06 13:46:13 I had to delete a login.out.xml file that was generated when I tried to run while having a xml file up front Jun 06 13:46:17 now it works Jun 06 13:47:19 valiolap i have no idea off hand, never used media controller Jun 06 13:47:23 ill look through it Jun 06 13:48:15 Ok thanks man Jun 06 13:48:28 i dont see any viewpager on there? Jun 06 13:48:42 its not the viewpager but it works the same way Jun 06 13:48:53 I can slide thru different views Jun 06 13:49:21 Is there another way to show video. Do i need a mediacontroller? Jun 06 13:49:56 im sure there are others, but i doubt that is your problem Jun 06 13:50:10 you need to look into w/e your using to house the views Jun 06 13:51:59 Hmm.. I'm not sure if that is my problem either. But if i slide from view to another view with a video and do it very slowly, it wont break the next slide. If i slide fast it looks like the mediacontroller breaks-out of its own layout, going slightly on top of other. Jun 06 13:53:45 Jug6ernaut i have to go deal with other things for an hour or so. I appreciate very much that you look into the code. I'll msg you once i'm back. And you can comment the piratepad ofc. Jun 06 13:54:06 ok Jun 06 13:59:19 Is there a simple way of moving a filtertext to the action bar (android 3+) and have it so it pops down after the user presses a search icon? Jun 06 14:00:34 good morning evancharlton! Jun 06 14:02:08 it's 7 AM in his part of the world :P Jun 06 14:03:18 * Lachezar scratches his head in complete and utter puzzlement... Jun 06 14:03:24 yea hes usually here by now Jun 06 14:04:08 I was able to *somehow* build my Android applciation to contain all libraries' code 9inluding plain java and Android), and _NONE_ of the actual application code. Jun 06 14:05:34 argh i forgot to add a new actrivity to my manifest Jun 06 14:05:39 now i have to wait another hour for it to build Jun 06 14:08:56 an hour? Jun 06 14:09:20 canadiancow|work: Cruise Control? Or what? Jun 06 14:09:55 ok not an hour Jun 06 14:10:00 but these builds are not fast :( Jun 06 14:10:18 http://www.componentowl.com/blog/2012/02/zen-coder-vs-distraction-junkie/ Jun 06 14:11:14 * Jug6ernaut loves when eclipse freezes Jun 06 14:11:43 Ugh. My router is not being happy today. Jun 06 14:13:05 * readme is using intellij now. goodbye sweet prince. Jun 06 14:13:31 intelli? Jun 06 14:13:34 fuck people need to stop using relativelayout when linearlayout does just fine Jun 06 14:13:36 +j Jun 06 14:13:39 like, say, laying things out linearly Jun 06 14:13:40 Just the plugin brower is enough :) Jun 06 14:13:48 canadicancow|work agreed Jun 06 14:13:55 i blame romainguy Jun 06 14:13:56 readme: I use intellij for my java and android development Jun 06 14:14:04 because one time he wrote a blog post about one specific example where relativelayout was more efficient Jun 06 14:14:17 and that turned into "ZOMG LINEARLAYOUT SUCKS ALWAYS USE RELATIVELAYOUT" Jun 06 14:14:24 I find it to be better and not as much setup Jun 06 14:15:29 intellij is nice Jun 06 14:15:32 dont get me wrong Jun 06 14:15:38 but all hte official support is for eclipse Jun 06 14:15:43 and until that changes... Jun 06 14:15:48 relative layout means no depth Jun 06 14:15:50 no depth is good Jun 06 14:15:52 jrock20041: there is one bug that annoys me with selecting the menus on linux Jun 06 14:15:55 depth is bad for business and performance Jun 06 14:16:04 I could probably fix it... but meh. Jun 06 14:16:05 mikedg, but if you're just doing [A B C D E F] Jun 06 14:16:08 that would be hard. Jun 06 14:16:37 readme: I like how the autocomplete has more options in intellij Jun 06 14:16:53 I find intellij can't even autocomplete overriden class methods correctly Jun 06 14:16:56 You can autocomplete from the string calues Jun 06 14:17:07 in eclipse I can do onC Jun 06 14:17:11 in an activity Jun 06 14:17:19 and it pulls in the entire onCreate signature Jun 06 14:17:28 I can't do that in intellij Jun 06 14:17:59 ctrl+space does not work? Jun 06 14:18:06 it works, but not for that purpose. Jun 06 14:18:13 it isn't smart enough to do it, I guess Jun 06 14:18:47 C-p gives you parameter info Jun 06 14:18:49 which is pretty cool Jun 06 14:19:07 but doesn't work with my vim emulation plugin. Jun 06 14:19:33 mainly I'm excited about the solid vim emulation, and the layout previewer that actually works Jun 06 14:19:43 yeah yeah, we all have our favorite IDE :P Jun 06 14:21:18 wongk: I have seen many devs argue over IDE. Its crazy Jun 06 14:21:55 when you've been on freenode for a while, you've seen the dsicussion 100 time before :P Jun 06 14:22:01 I'm not sure when we were arguing. This is waxing Jun 06 14:22:14 Random Question : what is the coolest android application to build while learning? Jun 06 14:22:19 I'm just dipomatically discussing the features of two things, without declaring one is better Jun 06 14:22:27 bsilwal: anything but 'todo list' Jun 06 14:22:33 because that is what everyone does Jun 06 14:22:39 then they go on to publish it, too Jun 06 14:22:40 bsilwal: definitely a todo list! Jun 06 14:22:44 and there are now like 100000 todoo lists Jun 06 14:22:48 i did planning poker for agile estimation :) Jun 06 14:23:00 now i want to do bit complex one. Jun 06 14:23:02 much better idea. Jun 06 14:23:12 a phone book! Jun 06 14:23:38 make a program that automatically finds cat pictures for your contacts that don't have an avatar Jun 06 14:23:41 Snuffel: that'd require a db as well .. i should think about it Jun 06 14:23:50 nah Jun 06 14:23:54 just write them to a file Jun 06 14:23:58 one line per person Jun 06 14:24:01 i want to do some db ones Jun 06 14:24:11 i have a great idea, but not sure if that works Jun 06 14:24:17 dude you need to use NoSQL Jun 06 14:24:27 use it for the cat picture idea Jun 06 14:24:43 all the kids are doin it Jun 06 14:24:46 can i communicate between divices using bluetooth if bluetooth is set to un-discoverable ? Jun 06 14:25:00 no Jun 06 14:25:11 you need to discover and pair the device Jun 06 14:25:11 hello, I have added 10 TextViews to my app. But all the texts are over one another... what am I doing wrong? Jun 06 14:25:13 Do you have a website or blog. You could write an app that pulls in your blog posts or news updates Jun 06 14:25:45 TheLastNinja: uh, probably you used RelativeLayout and don't know how to use it right Jun 06 14:25:49 can i not create some type of server which can pair with multiple devices using bluetooth ? Jun 06 14:25:49 just switched to LinearLayout Jun 06 14:25:50 TheLastNinja: Can your pastebin your layout? Jun 06 14:26:01 switch* Jun 06 14:26:02 I dont have a layout, i write it in code Jun 06 14:26:15 bsilwal: no, they must communicate directly Jun 06 14:26:22 TheLastNinja: OH Jun 06 14:26:23 argh Jun 06 14:26:25 well, don't do that Jun 06 14:26:35 because if you can't figure it out I'm not going to support it :) Jun 06 14:26:36 I just create the TextViews and then I call addContentView on them Jun 06 14:26:42 what are you adding them to Jun 06 14:26:48 what kind of ViewGroup/Layout? Jun 06 14:26:58 this, which is an activity Jun 06 14:27:02 no Jun 06 14:27:04 just because i don't know the syntax needed to represent an idea doesnt mean I can't understand the concept and basis for it. Jun 06 14:27:07 kill this guy =/ Jun 06 14:27:13 TheLastNinja: show us the code I guess Jun 06 14:27:18 you're Doing It Wrong (tm) Jun 06 14:27:20 oh well i will develop a bluetooth chat app , but it wont be scalable (puke) Jun 06 14:27:25 you should follow the tutorials instead of guessing. Jun 06 14:27:30 readme: be nice :) Jun 06 14:27:42 he is being nice Jun 06 14:27:52 he's giving him solid advise Jun 06 14:27:53 lol Jun 06 14:28:00 this.addContentView(tvs[i], new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); Jun 06 14:28:08 He is Jun 06 14:28:45 TheLastNinja: Why are you not using the the xml files for you layouts? Do you have a reason? Jun 06 14:28:58 jrock20041: I want to learn it this way first Jun 06 14:29:14 http://stackoverflow.com/questions/9979648/activity-addcontentviewview-viewgroup-addcontentviewview Jun 06 14:29:17 read this Jun 06 14:29:53 you're adding children to a FrameLayout Jun 06 14:29:55 that's why Jun 06 14:30:31 if it were a LinearLayout you were adding elements to, they would not overlap. Jun 06 14:30:38 readme: cool Jun 06 14:30:42 so do make that happen, you need to first insert a LinearLayout Jun 06 14:30:46 then you call addView on THAT Jun 06 14:30:51 sweet Jun 06 14:30:59 there is almost never going to be a reason to use "addContentView" Jun 06 14:31:02 just forget it exists. Jun 06 14:31:51 you will need to set its orientation to vertical, to get the behavior you probably expect. Jun 06 14:32:17 i have a button in a scrollview Jun 06 14:32:26 why is the orientation parameter an int... Jun 06 14:32:29 it seems the click only comes through if (a) the scrollbar has disappeared Jun 06 14:32:35 (b) i click more than once.. Jun 06 14:33:06 Trying to get a filterText to work in a searchview widget within an action bar.. I'm wasting my time aren't i? Jun 06 14:33:21 setContentView(LinearLayout) and then addView to the ll? Jun 06 14:33:28 essentially Jun 06 14:33:38 but you don't need to call setContentView before adding views Jun 06 14:33:40 just fyi Jun 06 14:33:52 also read the docs if you want to know why orientation is an int Jun 06 14:33:55 How do I associate the LinearLayout to my activity? Jun 06 14:34:07 if not with setContentView Jun 06 14:34:09 setContentView would work fine. Jun 06 14:34:16 ok thanks Jun 06 14:34:19 I'm just saying you don't need to call it *before* adding views Jun 06 14:34:23 it can be in any order Jun 06 14:34:27 oh, ok Jun 06 14:34:42 you need to call it before calling the activity's findViewById delegate Jun 06 14:34:57 don't mess with order Jun 06 14:35:10 i learned this week at work lol Jun 06 14:36:26 i have to do some app using calendar... is it possible to test it on emulator...? Jun 06 14:36:38 emulator is like real hardware.. Jun 06 14:36:48 everything is possible Jun 06 14:37:46 i read before that calendar still does not work on emulator... so just wanted to check this... as i atm dont have any real android device... Jun 06 14:37:55 hardly Jun 06 14:39:04 Hey all, I am currently reading in files from a server and then writing them to persistent storage. For the next time the app runs, instead of reading them in again I want to just grab them out of the internal storage. Now I haven't tried anything yet, but I am thinking I am going to need a fileExistsInStorage method? Has anyone here implemented this before, and have any tips on the matter? Jun 06 14:41:03 gowie: File#exists Jun 06 14:42:18 gowie: http://media.tumblr.com/tumblr_lopyvzPT4X1qileo4.png Jun 06 14:43:14 evancharlton I have seen that before, but is that actually checking if the file exists in the internal storage? Or is it checking if it exists in the assets folder? Or where ever path you gibe it. Jun 06 14:43:43 canadiancow|work Aw dude come, is that really that rediculous of a question? Jun 06 14:43:43 wut Jun 06 14:44:01 So what I actually want, is a list of "clickable" items. But actually the list should have a button on each side, for example A and B, and you can click the buttons and scroll the list. How is this possible? Jun 06 14:44:03 it...checks...if a file exists Jun 06 14:44:49 gowie: give it the path you are going to save the file to ... call .exists() ... Jun 06 14:45:38 that chrome remote shit is pretty sweet Jun 06 14:45:51 fucking chrome to mobile doesnt work Jun 06 14:45:53 i put some chrome on your chrome so you could chrome while you chrome Jun 06 14:45:53 for me Jun 06 14:46:17 mikedg: for fun, chromote into your own box Jun 06 14:46:24 infinite depth! Jun 06 14:46:42 i did that first Jun 06 14:46:56 then i chromed to one computer and chromed to the one i was originally chroming from Jun 06 14:47:09 that was confusing Jun 06 14:47:15 canadiancow|work Alright, maybe I just had something confused. Creating a new FileOutputStream and then writing to it is not what I am thinking it is. It is a just writing a file to the local apps storage. Looking at the code somebody else wrote on my project is making that more clear. Jun 06 14:49:29 Anyone know how to make such a layout? Which components are involved? Jun 06 14:50:02 like a viewpager? Jun 06 14:50:12 I don't know what that is Jun 06 14:50:20 it's a built-in component of the support lib Jun 06 14:50:27 i htink it does exactly what you want, but better Jun 06 14:50:51 Does it have buttons on the sides or possibility to add them, and is scrollable? Jun 06 14:51:41 it sounds like you want ListView Jun 06 14:52:30 I also want a context menu if you press and hold the item, except on the buttons of course Jun 06 14:52:50 Is it also possible to "drag" these list items? Jun 06 14:53:18 How do I make this happen with a listview? Jun 06 14:53:38 that's against the android ui guidelines now isnt it? Jun 06 14:53:43 the context menus Jun 06 14:53:53 lol, what? I see them in every app Jun 06 14:54:17 Are context menus against guidelines? Are context menus long-press menus? Jun 06 14:54:23 yes, and yes Jun 06 14:54:28 oh Jun 06 14:54:29 they're not very discoverable Jun 06 14:54:34 that's kind of true Jun 06 14:55:02 contextual action bars are the new hotness Jun 06 14:55:12 evan, how do they work Jun 06 14:55:32 press the list item, and an action bar pops up? Jun 06 14:55:44 they work as documented on http://d.android.com/ Jun 06 14:55:56 take a look at the gmail app for an example Jun 06 14:56:29 gmail has a context menu, when you long press the item Jun 06 14:56:49 "delete, report spam, etc". Jun 06 14:57:41 http://developer.android.com/design/patterns/actionbar.html#contextual Jun 06 14:58:36 Are they easy to use Jun 06 14:58:45 its all relative Jun 06 14:58:48 for a phone developer targeting Android 2 and up Jun 06 14:59:41 This is useless. Please tell me which is the best book on the market for learning UI fast? Jun 06 15:00:10 in return, penguins Jun 06 15:00:10 Mike DG's book of oooey Jun 06 15:00:14 fwiw, a lot of apps do use long-press context menus Jun 06 15:00:21 but that doesn't make them "good" Jun 06 15:00:21 it's $499.99 Jun 06 15:00:34 mikedg: amazon link? Jun 06 15:00:38 paypal Jun 06 15:00:42 it's an ebook via email Jun 06 15:00:56 strange? they have website? Jun 06 15:01:10 nah, less overhead so cheaper Jun 06 15:01:18 it's very grassrootz Jun 06 15:01:38 i don't know about the technical, where do I get it? Jun 06 15:01:43 so need to lose the idea of "fast", it's not realistic Jun 06 15:01:56 s/so/you/ Jun 06 15:01:57 TheLastNinja: http://www.amazon.com/Designing-iPhone-User-Experience-User-Centered/dp/0321699432/ref=sr_1_1?ie=UTF8&qid=1338994898&sr=8-1 Jun 06 15:02:05 paypal: ebooksoooey@mikedg.com Jun 06 15:02:10 and they will send you the details Jun 06 15:02:31 i will check it later Jun 06 15:02:54 hi. how do you make the width of an edittext in a tablelayout cell less than the width of the column? Jun 06 15:03:15 without adding margins to the edittext Jun 06 15:03:19 ptm only sends waypoints Jun 06 15:03:43 I don't get this In-app billing stuff Jun 06 15:03:59 thenovelist: strawberry 800 $ Jun 06 15:04:01 I request to buy a product with my unpublished app and it returns "android.test.purchased" for the productID I just bouhght Jun 06 15:04:18 that's useless Jun 06 15:04:31 mikedg what's your dayjob? Jun 06 15:04:53 Senior Devtrolololoper Jun 06 15:05:02 Awesome Jun 06 15:05:09 you want a job in NYC, you can be my apprentice Jun 06 15:05:24 Hm do you have h1b's? Jun 06 15:05:29 it'll be like Return of the Jedi Jun 06 15:06:00 hmm not sure Jun 06 15:06:01 mikedg: no recruiting in here, take it to /msg Jun 06 15:06:16 "Professional Android Development" or "Android Fully Loaded" ? Jun 06 15:06:31 Android Fully Loaded sounds like a porno Jun 06 15:06:46 Easy choice Jun 06 15:06:48 evancharlton: why? this is android application development, how are people supposed to develop if they have no jobs Jun 06 15:06:49 "How to become and android ninja assasin in 21 days" Jun 06 15:06:53 Leeds you posted an iPhone book link???? Jun 06 15:07:12 "Stacktrace or GTFO: Android developer fundamentals" Jun 06 15:07:15 wongk: get down to business… Install eclipse, code code, throw away, recode recode... Jun 06 15:07:22 mikedg: it's not up for debate Jun 06 15:07:24 It starrs Mr.Data and his fully functional body, he just installed his eroticism chip and is ready to explore Jun 06 15:07:27 any help please? Jun 06 15:07:31 hi. how do you make the width of an edittext in a tablelayout cell less than the width of the column? Jun 06 15:07:50 I ignored evancharlton, does this mean he cant hear me either now? Jun 06 15:07:56 yes Jun 06 15:08:03 Hm that would be an interesting IRC feature Jun 06 15:08:48 that would be an interesting life feature Jun 06 15:09:04 mikedg: no it means you can't hear evancharlton Jun 06 15:09:17 luyang: not sure if serious... Jun 06 15:09:21 I think he can still see the effects of the kicks Jun 06 15:09:27 evancharlton: ah ok Jun 06 15:09:30 ;) Jun 06 15:10:27 Is wine ported to android? Jun 06 15:10:40 that is an awesome question Jun 06 15:10:42 haha, no Jun 06 15:10:48 maybe you could port it Jun 06 15:10:59 wine only runs on x86 Jun 06 15:11:06 qemu! Jun 06 15:11:06 What do people use as server for their android apps if they don't use AppEngine? I don't like their quota and consider writing my own server in Java with NIO and host it on my Mac Mini... Jun 06 15:11:12 because It's Note an Emulator Jun 06 15:11:19 "not" Jun 06 15:11:50 luyang: depends a lot on the requirements Jun 06 15:11:58 I host on EC2 mainly, though. Jun 06 15:12:03 Hdroid: but just for a generic community kind of app t hen? Jun 06 15:12:20 Anyone ever ported iOS to android sold phone? Jun 06 15:12:35 If you stay within the free limits, EC2 micro or Heroku are options. Jun 06 15:13:05 i love how all the blogs are saying "nexus tablet with 4.1, commonly thought to be jellybean" Jun 06 15:13:08 no it fucking isnt Jun 06 15:13:16 you stupid fucks have been calling jellybean 5.0 for months Jun 06 15:13:42 Hdroid: "within the free limits" huh… Jun 06 15:13:50 sounds like quota based to me Jun 06 15:13:58 mikedg: how does that make you feel? Jun 06 15:14:07 luyang: duh Jun 06 15:14:16 angry Jun 06 15:14:17 Do you dislike appengine's quota or quota in general? Jun 06 15:14:23 I have a web hosting with apache httpd and php and that might work too… but I have an OpenFire XMPP server on my machine too… useful to have total freedom. Jun 06 15:14:26 If latter, then... good luck :) Jun 06 15:14:34 luyang: if you can write your own server and host it on a mac mini, i get the feeling you will fit within any quotas Jun 06 15:14:43 Is there any articles on setting up Event Log in ddms without eclipse? Jun 06 15:14:44 Hdroid: I dislike AppEngine's low quota Jun 06 15:14:49 unless you have some weird exception like giant fucking files Jun 06 15:15:01 or continuous cpu eating Jun 06 15:15:07 appengine's quota is only low if you write stupid code Jun 06 15:15:12 luyang: yes, it was a joke Jun 06 15:15:35 dejavu Jun 06 15:15:41 yeah, whenever i ran into an app engine quota issue, it pretty much just brought a stupid bug to the surface Jun 06 15:16:10 evancharlton: no it is very low, it has low read/write datastore quota per application instance Jun 06 15:16:30 like I said, your code is probably very inefficient Jun 06 15:17:09 no Jun 06 15:17:17 it was basically updating something every two seconds Jun 06 15:17:19 24/7 Jun 06 15:17:22 ran over quota Jun 06 15:17:43 I was using Task Queues Jun 06 15:17:47 ... like I said :) Jun 06 15:17:57 you're just ranting Jun 06 15:18:29 if you can survive with free quota on app engine you probably have a toy app Jun 06 15:18:41 :/ Jun 06 15:18:47 i think thats bad design Jun 06 15:18:56 it sounds terrible Jun 06 15:19:06 why Jun 06 15:19:10 what is bad design Jun 06 15:19:34 running anything every 2 seconds on a mobile device Jun 06 15:19:40 NO Jun 06 15:19:42 on AppEngine Jun 06 15:19:56 oh, ill shut up because i don't know what app engine is Jun 06 15:20:02 what were you doing every 2 seconds Jun 06 15:20:17 "checking the time" Jun 06 15:20:20 I was calculating events in a 2D world… just for fun Jun 06 15:20:25 Where can I find someone to code the framework of my solution, UI part? List of items, 2 buttons, 1 on each side, context menu and scrollable list. Possibility to add/remove items runtime. I would be willing to pay upwards 10$ Jun 06 15:20:50 TheLastNinja: check the many "coder for hire!" sites, not in here. Jun 06 15:20:51 TheLastNinja: no here Jun 06 15:20:53 not Jun 06 15:20:54 I had a map with lots of things in it and wanted to make things move around and so on… just labbing… and ran out of quota Jun 06 15:21:15 picture this scenario - user takes a photo - can i register my app to listen for this broadcast or event and to record the time the picture was taken? Jun 06 15:21:32 evancharlton: I am not asking in here for the hire, I am just asking about the sites Jun 06 15:21:52 TheLastNinja: elance is decent Jun 06 15:21:54 $10 wouldnt even pay for my text messaging plan Jun 06 15:22:20 mikedg: so u can do some more job Jun 06 15:22:40 $10 gets you a non-western student Jun 06 15:22:54 and about a thousand lines of the worst code you'll ever see Jun 06 15:23:05 i wouldn't even boot up my computer for $10 Jun 06 15:23:26 What do you make? Jun 06 15:23:41 a month I mean, and how many hours Jun 06 15:23:50 i think we're a bit off topic Jun 06 15:23:52 $10,000s per month Jun 06 15:25:32 i make a million billion cents a month give or take Jun 06 15:25:35 * luyang hates bad code Jun 06 15:26:40 Anyway… How do y'all come up with Android app ideas? Jun 06 15:26:52 imagination Jun 06 15:26:55 Do you learn from existing apps and get inspired and sit down coding? Jun 06 15:27:07 Zider: imagination doesn't necessarily result in a good app Jun 06 15:27:16 who says I do good apps? :P Jun 06 15:27:21 I haven't made a lot of apps lately but I have a few ideas that started like that. Jun 06 15:27:23 luyang: i steal them Jun 06 15:27:27 Zider: =) Jun 06 15:27:27 there's no original ideas left Jun 06 15:27:27 scratch an itch Jun 06 15:27:29 no point in trying Jun 06 15:27:41 mikedg: I guess you have a point… I wanna make WhatsApp Jun 06 15:27:42 find an app that *you* want, which isn't there, and write it Jun 06 15:27:46 even indie games is starting/already copies :P Jun 06 15:27:47 actually I haven't made a single app for android.. yet.. Jun 06 15:27:51 Mostly, investigate the competition (lots of good concepts, poor execution apps) or look at iOS and make the same for Android :D Jun 06 15:28:02 and never assume you'll get more than a few users - so avoid anything which relies on network effects Jun 06 15:28:07 Hdroid: isn't that a recipe for lawsuit? Jun 06 15:28:10 look at Atari 2600, get an artist, and remake games Jun 06 15:28:12 luyang: not at all Jun 06 15:28:22 Android needs a fucking Taz game Jun 06 15:28:22 It's quite hard to copyright or patent functionality. Jun 06 15:28:26 Leeds: I wanna have lots of users Jun 06 15:28:34 luyang: no you dont Jun 06 15:28:37 I could make a draw something clone and get away with it. Jun 06 15:28:37 you think you do, but you dont Jun 06 15:28:43 you just want one big fat rich user Jun 06 15:28:47 who showers you with money Jun 06 15:28:48 As long as I don't rip the artwork and the trademarks Jun 06 15:28:51 Hdroid: I thought all americans sued each other for software patents all the time Jun 06 15:28:52 like a sugar daddy to his whore Jun 06 15:28:58 you want to be an app whore Jun 06 15:29:35 the point is that you may *want* to have lots of users, but if you write an app which relies on it, you'll almost certainly fail Jun 06 15:29:42 luyang: maybe.. I'm not an American :) but it's still relatively rare in the app business. Jun 06 15:29:44 Say I wanted to make an app which automatically logged in to Wifi hotspots... Jun 06 15:29:53 Any ideas on how to make such a simple app? Jun 06 15:30:12 luyang: yeah, I wrote one of those years ago... Jun 06 15:30:15 Listen for the right intent Jun 06 15:30:17 I could listen for network SIDs and when wifi connects I would get a broadcast and if it matches the sid I would post to a URL right? Jun 06 15:30:27 Leeds: URL? Jun 06 15:30:35 never got around to releasing it Jun 06 15:30:43 Leeds: That doesn't make it uninteresting for me to make such an app Jun 06 15:30:46 my itch went away when my 3G got better than the wifi network Jun 06 15:30:50 I've actually bought lots of Android books... Jun 06 15:31:16 Just super hard to get down to business... Jun 06 15:31:59 did you read them or just buy them? Jun 06 15:32:04 you usually have to read them to benefit Jun 06 15:32:09 nah, it isn't... the most important thing you need to do to write an Android app? write some bloody code Jun 06 15:32:11 mikedg: I read them quickly Jun 06 15:32:21 read them slowly Jun 06 15:32:23 that helps Jun 06 15:32:34 I browsed through them… Android tools… Intents… Services… Location… Multitouch… ok done Jun 06 15:32:44 mikedg: but I wanna do hands-on Jun 06 15:32:57 and write my own things Jun 06 15:33:13 luyang: what's an IntentService do? Jun 06 15:33:23 then write, who's stopping you? Jun 06 15:33:33 mikedg: isn't that a service which automatically finishes itself when job is done? Jun 06 15:33:56 A service should not stick around when job is done Jun 06 15:34:02 luyang: what's an ActionBear? Jun 06 15:34:10 growl Jun 06 15:34:30 ActionBar is a design pattern to look like Facebook or Twitter I thin it was… and I think it was included in Android … 3 or 4? Jun 06 15:34:46 is there a job interview taking place right now? Jun 06 15:34:47 wongk: growl is a crapware which charges you money to display popups Jun 06 15:34:55 wongk: =) Jun 06 15:35:13 FALSE, Action Bear is the reporter of the Latest News Stories, Articles And Information Pertaining To Endangered Animals, Animal Rights And Actions Which May Be Taken To Protect And Help Our Friends Of The Wilderness. Jun 06 15:35:18 * Zharf goes on to write an actionbar pedobear impl Jun 06 15:35:25 mikedg: LMAO Jun 06 15:36:16 It would actually fun to write a browser which only displays the main DIV content as text which auto-flows with the viewport Jun 06 15:37:03 it would be funer to write a browser that lets you remote desktop into it Jun 06 15:37:03 anyway… thanks for your suggestions that I should read my books more slowly. Gonna try that now actually. Jun 06 15:37:14 mikedg: u serious? Jun 06 15:37:16 is it wrong to repeatedly call startForeground to update the notification? :) Jun 06 15:37:42 luyang: yeah Jun 06 15:37:45 every browser has web browser Jun 06 15:37:49 and they are easy to install Jun 06 15:38:08 so you wanna remote into your laptop and control the browser from the phone or vice versa? Jun 06 15:38:40 I have thought that I lack an app which makes all my computer files available on the phone for streaming Jun 06 15:39:08 I want to remote into the laptop and control the entire laptop from the browser Jun 06 15:39:08 connectBot must be one of the best apps ever Jun 06 15:39:23 isually Jun 06 15:39:28 mikedg: Tried TeamViewer? Jun 06 15:40:09 TeamViewer seems to steal the full-screen DirectX capabilities in Windows though Jun 06 15:40:18 I couldn't play BF3 full screen while TeamViewer was running Jun 06 15:40:51 I'm using this CSS class to hardware accelerate certain elements. however, on android, all images become grainy. any way to revert that? http://pastie.org/private/ocge5zuijgd9ujbklvo1g Jun 06 15:41:04 mikedg: plain old VNC would work fine for that, wouldn't it Jun 06 15:41:59 http://www.tightvnc.com/ Jun 06 15:42:14 iirc it has a java applet Jun 06 15:42:47 although I admit that's outdated tech. Jun 06 15:42:52 ugh, there are native vnc clients Jun 06 15:43:04 yeah but mikedg says he wants to use it from the browser Jun 06 15:43:46 I think there are VNC servers in Windows which allow people to remote control the computer via a web server on the Windows machine so it runs as a Java applet in a browser window Jun 06 15:43:57 Not sure if Android supports java applets though :P Jun 06 15:44:12 Oh, are we talking about from Android's browser? In webkit? Jun 06 15:44:25 because then we'd be somewhat on topic! Jun 06 15:44:50 topic went out the window like an hour ago ;) Jun 06 15:45:50 I only care about being on-topic when someone has an on-topic question and other people won't stfu Jun 06 15:46:33 I hardcoded all my version checks to prevent running on Jellybean to check if version >= 5.0, because all the blogs said it was going to be 5.0, but now they are saying it's going to be 4.1 Jun 06 15:46:41 i cant really deal with this fragmentation much more Jun 06 15:48:07 i like starburst jellybeans Jun 06 15:48:30 evancharlton: that's good Jun 06 15:49:37 mikedg: you should probably just maintain a list of build fingerprints which aren't allowed to run. Job security! Jun 06 15:50:16 good idea Jun 06 15:50:17 I am a perfectionist and can therefore not release crappy apps and therefore I get stuck in dreaming Jun 06 15:50:19 :/ Jun 06 15:50:40 I guess I should just let go and release some crappy unit conversion app Jun 06 15:51:15 you could call it "siri" Jun 06 15:51:18 ohh! Jun 06 15:51:35 wolfram|beta Jun 06 15:52:58 wongk: I read Apple have been sued for saying that siri works better than it actually does. Made lots of people angry Jun 06 15:53:04 funny that in software, alpha means the opposite of what it means when you are referring to wolves Jun 06 15:53:13 hah Jun 06 15:53:47 just think of it as a distinct subclass Jun 06 15:53:58 where the base class is still "first" Jun 06 15:54:14 readme: or male Jun 06 15:54:32 nerds are usually beta-male right? Jun 06 15:54:44 except for their brains and actual capabilities Jun 06 15:55:04 luyang: beta is relative to whatever tribe you are in Jun 06 15:55:22 readme: oh… so hanging out with losers makes one into alpha=? Jun 06 15:55:26 on an irc channel, the beta is the guy with +v Jun 06 15:55:29 alpha has @ Jun 06 15:55:32 everyone else nada Jun 06 15:55:52 beta means lamer? Jun 06 15:56:33 luyang: if you have a family or a faithful girlfriend, then that makes you an alpha male, in at least one context. Jun 06 15:57:01 readme: that is just bad… to make people relatively valued to each other Jun 06 15:57:11 sociology meets dynamic scoping Jun 06 15:57:16 bad? that's how it actually is Jun 06 15:57:19 it's just reality Jun 06 15:57:20 :) Jun 06 15:57:31 readme: I thought alpha males were having multiple women and got away with it since they were so damn attractive and dominant Jun 06 15:57:44 luyang: sure, if you lived in a 30-40 person tribe in africa Jun 06 15:57:53 readme: doesn't have to be… why would some people wanna live then if they were very low status Jun 06 15:58:11 is there no built in file selector dialog type thing? Jun 06 15:58:20 you can be alpha other ways.. like, being the lead programmer Jun 06 15:58:34 make your own popular open source project and be the boss Jun 06 15:58:34 or alpha loser Jun 06 15:59:32 readme: or not do anything Jun 06 15:59:35 and not be alpha =) Jun 06 15:59:40 http://halcy.de/kopipe/index.html.down#Alpha_Male Jun 06 16:00:21 so many spelling errors make me sea sick Jun 06 16:00:23 really alpha is just what you call the leader of a pack of wolves. it's just another word for 'leader' Jun 06 16:00:39 anyone make a Unity 3d game? Jun 06 16:00:53 luyang: its satire :) Jun 06 16:01:21 some like satire a lot I hear Jun 06 16:02:43 For some reason setText isn't changing inside my onClickListener. There's no formal error or exception. It just doesn't change. Jun 06 16:02:55 code, do you paste it Jun 06 16:05:06 Just a snippit: http://codepaste.net/1hffhj Jun 06 16:05:36 Paulcasals: consider runOnUiThread or similar? Jun 06 16:05:55 not saying that'd help but might perhaps...? Jun 06 16:06:19 if it is not in the ui thread, it wouöd throw an exception Jun 06 16:07:02 Zharf: so it wouldn't be swallowed Jun 06 16:07:45 then that's not the thing to check then… But I see he does new CountDownTimer{…..}.start() and does a countDown.setText() inside that thread Jun 06 16:08:09 he gets no exception because the countdowntimer never fires Jun 06 16:08:13 that's the only logical explanation Jun 06 16:08:17 ok Jun 06 16:08:25 you're correct luyang Jun 06 16:08:33 he needs to run that on the UI thread. Jun 06 16:08:41 but the thing is, the timer must not be firing Jun 06 16:08:45 readme: thanks! :D fun to be right for once Jun 06 16:08:52 so he never crashed Jun 06 16:09:34 unless countdowntimer just uses a handler. Jun 06 16:09:36 * readme looks Jun 06 16:09:40 hey all: how can I force my app to die in the background so I can test it's recovery when the users resumes the activity? Jun 06 16:10:03 there's no mention of it starting a thread in the docs. Jun 06 16:10:51 smit: there's an option to "kill apps always" in developer settings Jun 06 16:11:17 ther is? since when Jun 06 16:11:29 honeycomb i think Jun 06 16:11:32 I remember it at least since 1.6 Jun 06 16:11:37 smit: adb shell kill $(adb shell ps | grep com.your.package | sed -e "s/^[^ ]* *//;s/[^0-9].*$//") Jun 06 16:11:41 but it might have been part of spare parts back then Jun 06 16:11:42 Mavrik, I see an option to kill activities, but not the app. Jun 06 16:11:47 luyang: nah, it's already on the UI thread Jun 06 16:11:58 all CountDownTimer is is a wrapper around a Handler Jun 06 16:12:03 smit: oh I see, you mean the process Jun 06 16:12:04 which in this case was created on the UI thread Jun 06 16:12:07 so it's just fine Jun 06 16:12:15 I know an app that has multiple activities and one of the activities seems to have a static variable that becomes null when the app has been in a background for a while. Jun 06 16:12:25 It would be nice to force that behavior to reproduce a bug Jun 06 16:12:33 evancharlton: will this trigger the appropriate save state callbacks as if the sdk killed the app? Jun 06 16:12:38 null a static var in one of the activities due to background gc? Jun 06 16:13:38 smit: which kill are you talking about? when the platform kills you because of e.g. memory pressure, you get kill -9 Jun 06 16:13:46 Mavrik: yeah, I've got a bug where it looks like the activity is receated before the application object. Jun 06 16:14:00 smit: I highly doubt that Jun 06 16:14:40 smit: that's highly unlikely, are you storing parts of context? Jun 06 16:15:07 evancharlton: not sure if it is memory pressure or just cleanup after a period of idle cleanup. What I have experienced prior to 4.0.4 was that it just cleaned up the activities, but left the app state. my activities handle the recreate appropriratly, but I'm now noticing an issue where i'm accessing some global state in the application object and it is not created yet. it's probably my bug but I need to reproduce it and trace it Jun 06 16:15:57 evancharlton: oh yea, I don't think it's a framework issue. It's certainly my issue. Jun 06 16:16:08 how can i make the context parcelable so i can send it via intent Jun 06 16:16:49 I got it to work. I had a stupid double-negative thing going on in my loop Jun 06 16:16:49 just use nosql Jun 06 16:16:53 All good now Jun 06 16:16:53 its way easier Jun 06 16:16:55 document based Jun 06 16:17:55 Hi, using adb shell from windows cmd. vi screen shows control chars, see http://pastebin.mozilla.org/1657129 how to fix that? TERM setting? currently it's vt100 Jun 06 16:18:27 mavrik: are you asking if i'm holding a reference to a context? Jun 06 16:18:45 I'm asking if you're storing a state of your local activity context in saveInstanceState Jun 06 16:18:51 oh, yea, of course. Jun 06 16:18:53 that isn't the issue though. Jun 06 16:18:57 and if you're by any chance trying to save stuff just into objects without using saveInstanceState Jun 06 16:19:03 that's working properly. Jun 06 16:19:07 (with state I mean Context) Jun 06 16:19:16 nope Jun 06 16:19:19 local activity context shouldn't be stored Jun 06 16:19:39 I can find the issue, heh, I just need to be able to reproduce the environment so I can take a look at it. Jun 06 16:21:58 mavrik, perhaps I'm not sure what you are asking. i'm just storing a few data elements in saveInstanceState that are used to recrete state when necessary. Jun 06 16:25:15 apparently there is a state that a process can be in where all state is saved, but the processes is dead. Then, when the user goes back to the task (which will load proper activity depending on Intent Flags) it recreates the process as if it's new, then sends the state back to the apropriate activity. i'd like to be able to recreate this without just having to launch an app and wait 2 hours to be put into that state. Jun 06 16:29:04 mikedg: just saw your troll. nice. Jun 06 16:42:25 wrong room sorry Jun 06 16:42:27 So it makes sense that when a device is swithching from wifi to mobile network and vice versa that there'll be a moment where the connection is interrupted, right? Like the transition is obviously not seamless. \ Jun 06 16:45:06 the connection would be interrupted either way since you're moving to a new IP and network interface, unless the device was using lots of special magic Jun 06 16:45:19 (which exists, but i don't think any android devices implement it) Jun 06 16:45:26 right Jun 06 16:45:36 yes Jun 06 16:45:37 you are correct Jun 06 16:45:44 so theres no way to avoid my mediaplayer's oncompletion or onerror getting called and then resetting or it whatever my response is Jun 06 16:46:09 like i cant tell the media player to stop its buffering when i lose connection and continue when i regain? Jun 06 16:46:16 im assuming theres no way in hell that works Jun 06 17:03:01 i found my bug. kill in adb shell did the trick. thanks all. Jun 06 17:43:52 Morning everyone. Is it possible to have a sharedpreference visible outside the current application's context? Jun 06 17:45:00 joem86: it needs the context to determine where the preference file is Jun 06 17:45:53 wongk: That makes sense. Thanks Jun 06 17:48:13 can you load axml ad-hoc? Jun 06 17:49:17 i don't know what that question means Jun 06 17:50:15 http://tech.chitgoks.com/2008/03/19/android-how-to-load-layout-xml-files-dynamically-during-runtime/ Jun 06 17:51:16 so should i take this to assume you found your answer? Jun 06 17:53:28 http://developer.android.com/reference/android/app/Activity.html#getLayoutInflater() Jun 06 17:55:41 hello. i have one screen with a text input box. you click a button and another screen appears. How can I reference the text in that textbox on that first screen (activity) ? Jun 06 17:56:10 the Intent Jun 06 17:56:14 seems like youd pass it's value as a parameter to the new class Jun 06 17:56:25 intent extras Jun 06 17:56:57 ok thanks Jun 06 17:58:19 shutin: wait, what? Jun 06 17:58:44 are you trying to have one activity manipulate the views in its spawning activity? because don't do that. Jun 06 17:59:04 i have a button and a text input field on one activity. I want to access that text froma different activity Jun 06 17:59:39 in winforms i would probably make it a global variable updated wheneer it is changed Jun 06 18:02:24 intent extras are exactly what i need Jun 06 18:11:37 hi, I have a weird issue when taking snapshots (using capturePicture()) of a webview: when I load a random webpage the snapshot works fine, but when I load my flot graph (which renders fine by the way), the snapshot it makes is empty - it's only filled with the background color of the original page. The picture is taken manually using a simple 'Button' so it's probably not some "not yet Jun 06 18:11:37 done rendering" issue. Does anyone have an idea what this can be? Jun 06 18:15:38 mkay, seems to be related to flot using :/ Jun 06 18:19:32 anyone in here had any luck getting ahold of the __SDK__ source code on windows? Jun 06 18:21:09 I tried to follow this guide: but it is clearly not designed for windows users (http://source.android.com/source/downloading.html) Jun 06 18:24:52 Jhnclvr: do you want all the source so you can build it or so you can reference it in eclipse when debugging, etc? Jun 06 18:25:47 hi group, how do I test the Canvas UI? Jun 06 18:26:15 with the @UiThreadTest annotation Jun 06 18:26:20 is possible ? Jun 06 18:29:52 Alright good news, my app is crashing now! :D Jun 06 18:30:14 Hi smit, we actually use a jar from the sdk in our project, as our project works with a desktop/phone pair over ADB Jun 06 18:30:29 I found the particular jar on grepcode, but I am not sure it is the most recent Jun 06 18:30:38 I think it will work for now though... Jun 06 18:30:54 but man i wish there was some way to get that "repo" tools working on windows... Jun 06 18:31:44 it does Jun 06 18:32:05 Jhnclvr: http://lmgtfy.com/?q=android+repo+windows Jun 06 18:32:38 for future reference: (ab)using the drawingcache using setDrawingCacheEnabled(true), getDrawingCache(), setDrawingCacheEnabled(false) seems to work. Not sure if it works reliably tho, but time will tell ;) Jun 06 18:33:33 anyone has an upto date stock nook color? Jun 06 18:33:45 hi evan, if you look at the results the answer is basically "use a linux vm" :) Jun 06 18:35:32 Jhnclvr: that's not true at all Jun 06 18:35:49 Jhnclvr: to build, yes. To pull source? no. repo is just a python script around git. Jun 06 18:42:25 ok thanks evan, I was trying to use http://android.git.kernel.org/ but apparently it has moved to https://android.googlesource.com/ ... but i am not sure where the sdk source is at that url (I figured it might be https://android.googlesource.com/sdk.git, but no luck, and I do not know a way to browse the repo) Jun 06 18:43:23 jhnclvr: the code that matches the release is in the jar that is available via the android sdk manager Jun 06 18:44:25 right the android source code is available there but not the source for the sdk :D (at least I am 99% sure) Jun 06 18:56:13 Jhnclvr: all you have to do to get the SDK source is follow the instructions on s.android.com Jun 06 18:56:16 I have it checked out here Jun 06 18:56:30 the whole platform and sdk source is all pullable in one job by repo Jun 06 18:56:35 sans kernel Jun 06 18:57:28 but yes, I use linux, which probably makes it easier to configure all the tools I need. It's not essential as evancharlton pointed out, but I seriously recommend having it for these things. It's just easier. Jun 06 18:58:45 Anyone here have a foolproof way of understanding whether or not the soft keyboard is visible/ Jun 06 18:59:12 Is it safe to assume that the inner dialog held by a DialogPreference will be an AlertDialog? Jun 06 18:59:23 I'd like to hide the cancel button and I believe to do that I must cast it upwards to AlertDialog Jun 06 18:59:33 the source shows it is clearly an AlertDialog Jun 06 19:00:08 readme, guess what I'm closer but my app is crashing again ^^ Jun 06 19:00:31 ZettaZete: :( Jun 06 19:01:02 It works just fine if I have everything in my onCreate but as soon as I try to make the ui dynamic it crashes. Jun 06 19:01:45 hi guys, whenever I rotate my phone, the Thread in oncreate gets run twice Jun 06 19:01:54 so it starts printing my log statements twice in a row Jun 06 19:01:55 wtf Jun 06 19:02:31 you can adapt evancharlton's example of using an AsyncTask and handling rotation Jun 06 19:02:55 http://evancharlton.com/thoughts/rotating-async-tasks Jun 06 19:02:56 how can i just stop it Jun 06 19:03:05 you need to keep a reference to it Jun 06 19:03:09 im not using asynctask and dont care to change my code to it Jun 06 19:03:10 I'd stop it in onPause Jun 06 19:03:13 and throw the reference away Jun 06 19:03:22 do you need the thread to continue running between rotations? Jun 06 19:03:24 mikedg: system.exit(0) Jun 06 19:03:27 heh Jun 06 19:03:33 i cant stop it, it needs to keep running, it's the main control Thread for a life support system Jun 06 19:03:45 people could die if it messes up Jun 06 19:03:46 onRetainNonConfigurationInstance, return a ref to the thread Jun 06 19:04:11 but honestly, you know it should be in a Service. Jun 06 19:04:20 I can't tell if your questions are trolling or serious Jun 06 19:04:22 or both Jun 06 19:04:59 both Jun 06 19:05:11 thats like 73% of the questions in here Jun 06 19:05:11 readme: always trolling Jun 06 19:05:20 i probably saved us 5 people asking that question Jun 06 19:05:27 best practice: thread in service. will work but meh: follow evan chartlon's article except substitute Thread wherever you see AsyncTask Jun 06 19:06:49 https://github.com/commonsguy/cw-android/blob/master/Rotation/RotationAsync/src/com/commonsware/android/rotation/async/RotationAsync.java -- this is good too Jun 06 19:07:08 readme, if you don't mind when your free could you help me figure this out? Jun 06 19:07:18 ZettaZete: ask a question and if I know the answer I will answer Jun 06 19:07:23 see how mikedg does it Jun 06 19:07:27 do it like him Jun 06 19:08:25 i think there is an issue with this asynctask code: if the aysnc task completes before "mTask.activity = this" then the new activity will never be notified. Jun 06 19:09:55 I don't think it can Jun 06 19:09:59 smit: it can't happen Jun 06 19:10:05 because onCreate is on the same queue as onPostExecute Jun 06 19:10:07 it must return first Jun 06 19:10:08 yep Jun 06 19:10:13 what readme said Jun 06 19:10:21 ah, sweet. k. Jun 06 19:10:23 I just said what oyu were going to say :) Jun 06 19:10:47 readme, melon? That good enough? Alright, so if I run this command adview.loadAds(); in the onCreate funciton it works perfectly, however when I run it in a seperate command to be ran after a button event it crashes. Jun 06 19:11:01 ZettaZete: melon? Jun 06 19:11:10 what about: activity starts async task. activity closes due to rotate. async task complets. oncreate is called in new activity. Jun 06 19:11:23 readme, its a word that fits everywhere. Jun 06 19:11:51 ZettaZete: ask a good question. i am not really entertained by debugging your adware for you Jun 06 19:11:53 However when I call it in another function I"m calling it from another class. By using new OnCreate.adview.loadAds(); Jun 06 19:12:00 i do this for entertainment, not charity Jun 06 19:12:27 readme, fair enough. Jun 06 19:12:36 Just curious why it would work one place but not another. Jun 06 19:12:49 the answer is written into your code Jun 06 19:12:52 read it you must Jun 06 19:18:56 so, is SUPPOSED to work with a shape drawable? Jun 06 19:19:50 so, is the closing of an activity due to rotation and the creation of the activity always placed back to back on the queue such that when onPostExecute is added it is always added before or after but not between? Jun 06 19:21:12 sigh, I have a google play app page whose only content is "App has moved to " and whose apk's sole function is to display a dialog that says "App has moved" and has a button that opens a market link to the new app Jun 06 19:21:36 and this app continues to get more and more installs Jun 06 19:21:44 5*! Jun 06 19:21:47 works as expecte Jun 06 19:21:48 d Jun 06 19:21:50 :/ Jun 06 19:22:29 Even the "latest version" field shows "AppMoved" Jun 06 19:25:09 is there a way to define the height of a gradient in xml? Jun 06 19:28:41 look, it's an article that explains android for ios developers Jun 06 19:28:47 http://getpocket.com/blog/2012/06/pockets-tips-for-aspiring-android-developers-its-not-really-terrifying-and-in-fact-quite-enjoyable/ Jun 06 19:28:49 anyone out there know if font sizes can't be changed if being rendered as Html.fromHtml Jun 06 19:29:02 that would be on a textview Jun 06 19:30:00 android development... enjoyable? what are they smoking? Jun 06 19:30:05 amateurs. Jun 06 19:31:46 I enjoy it. Jun 06 19:31:52 Covered in peanut butter Jun 06 19:32:02 and bacon. Jun 06 19:33:26 * pragma- ponders the resultant taste of peanut butter and bacon combined. Jun 06 19:36:03 "I am Peanut Butter!" "And I am Bacon!" "By our powers combined, we are... Failed Product!" Jun 06 19:36:46 Are there even peanut butter + bacon dog treats? Jun 06 19:40:26 Except for Elvis Presley, whose greasy tastebuds could barely taste anything -- apparently he enjoyed such concotations as the "Fool's Gold Loaf" -- a loaf of Italian bread filled with a pound of bacon, peanut butter, and grape jelly. Jun 06 19:41:55 did you know there are numerous cookbooks for your dog and/or cat? Jun 06 19:42:02 I've had bacon and peanut butter before. It's really not bad. Jun 06 19:42:24 Not something I'd have often.. Jun 06 19:42:27 but not bad. Jun 06 19:45:07 bacon bacon bacon baaaacon Jun 06 19:45:09 bacon bits Jun 06 19:47:02 onBufferingUpdate for the MediaPlayer gives you the percent: "For example a buffering update of 80 percent when half the content has already been played indicates that the next 30 percent of the content to play has been buffered." So i suck at math, but how can i figure out whether the entire track has been buffered or not Jun 06 19:47:05 ? Jun 06 19:47:27 its some forumla of percent with the duration and the currentposition.... Jun 06 19:47:45 try E = m*c^2 Jun 06 19:48:01 hehe Jun 06 19:48:10 I tried that once Jun 06 19:48:14 it blew up my laboratory Jun 06 19:48:17 eek :) Jun 06 19:48:25 for real though, im sure its simple but i suck at math Jun 06 19:48:32 anyone know of a springboard control for android that does osmething like the android launcher screen or the iphone springboard Jun 06 19:49:40 how about 80 = 50 + 30 Jun 06 19:49:43 die irccloud Jun 06 19:49:43 die irccloud Jun 06 19:51:17 so b_u = played_time + c_u ... you want c_u, so c_u = b_u - played_time ( 30 = 80 - 50 ) Jun 06 19:51:27 does that sound reasonable? Jun 06 19:54:21 thanks younos i think so Jun 06 19:54:24 appreciate it Jun 06 19:54:48 wait, whats c_u there? Jun 06 19:57:00 got a service question Jun 06 19:57:29 I really want to bind to services, and have them stop when not needed, but I don't want them to shut down/destroy immediately after onUnbind() Jun 06 19:57:48 if they still have more work to do, they should continue running until they are done Jun 06 19:58:26 I think this is a start+bind situation, but I dont want to have to do both. can the service "start" itself? Jun 06 20:02:45 c_u = uhh Jun 06 20:02:52 i suck at math o.O Jun 06 20:03:12 anyone know of a springboard control for android that does osmething like the android launcher screen or the iphone springboard Jun 06 20:03:28 I'm going to try the hack: onBind(Intent intent) { startService(new Intent(this, MyService.class)); } Jun 06 20:03:31 10+10 = 100 Jun 06 20:03:36 to "pin" itself running Jun 06 20:07:10 ? Jun 06 20:07:38 ! Jun 06 20:24:49 looks like someone just learned binary Jun 06 20:25:10 10101010101010101 Jun 06 20:25:31 ^ 0xdeadbeef Jun 06 20:25:49 well, currently just 0xbeef Jun 06 20:38:43 hi, i am storing a pref using PreferencesInstance.getEditor().... and then try to read it using PreferenceManager.getDefaultSharedPreferences(anotherActivityInstance).getString(...) back Jun 06 20:38:54 but i dont see the key, getAll() returns an empty map Jun 06 20:39:16 i missed the google tv dev hangout AGAIN Jun 06 20:39:18 ffs Jun 06 20:39:20 both activities are in the same package Jun 06 20:40:37 xorAxAx: getEditor() does not store the pref. Jun 06 20:40:48 ctate: i call commit() Jun 06 20:40:52 okay good :) Jun 06 20:40:54 in the end Jun 06 20:41:00 and it returns true Jun 06 20:42:24 wb ctate Jun 06 20:42:27 sorry about that Jun 06 20:43:12 ctate: ah, does it matter when i call referenceManager.getDefaultSharedPreferences(this)? Jun 06 20:43:28 ctate: i called it before opening the prefact and now i call it later Jun 06 20:43:32 and then i seem to see the value Jun 06 20:43:33 i posted to the adt-dev group yesterday and my post is gone... :( Jun 06 20:44:12 xorAxAx: interesting. Jun 06 20:44:42 so it looks like there is some weird caching involved? Jun 06 20:45:18 anyway, i need a way to propagate the setting from one act to another Jun 06 20:46:14 do you need to refresh it when the user leaves one activity and goes back to the first? Jun 06 20:46:25 because that suggests that you update in onResume() Jun 06 20:48:12 also, in the case where you get a SharedPreferences object "too early," are you not using a listener to receive update callbacks? Jun 06 20:48:54 so whats the deal with us not having a support lib PrefFrag Jun 06 20:49:29 who are you, seinfeld? Jun 06 20:49:35 wat Jun 06 20:50:04 ctate: i am not using a listener. i think fetching onresume would be enough. btw, found my bug - had one line of code duplicated Jun 06 20:50:06 he might be too canadian to get that ;) Jun 06 20:50:16 xorAxAx: aHA Jun 06 20:50:28 ctate: do you know whether i can ping bluetooth devices easily? Jun 06 20:50:33 i do not know Jun 06 20:50:35 without querying their services etc. Jun 06 20:50:47 the bluetooth api is so limited :-( Jun 06 20:51:12 it is limited, but i wrote my app for android because at least it exists :) Jun 06 20:51:28 can't get to it easily on ios, and wp7.x doesn't have anything yet Jun 06 20:53:05 ctate: ah, actually i am querying the pref from a service Jun 06 20:53:14 ctate: which doesnt have onresume :) but i could bind to it Jun 06 20:54:38 anyone know what can cause build button to be disabled in motodev? Jun 06 20:56:18 reading about the Google Maps announcement - i think they should have waited until there was something better to say Jun 06 20:57:44 like "here's the download" ? Jun 06 20:57:58 i'm wondering if apple will force developers to use the sdk for their new mapping api Jun 06 21:01:45 g00s, i think the closer they get to that, the closer they get to lawsuits Jun 06 21:06:28 hello Android devs. Jun 06 21:06:50 I am trying to get GPS working with Android on custom hardware Jun 06 21:07:16 I wrote gps.c which implements gps.h and built libgps.so Jun 06 21:07:38 I put it in /system/lib however it seems Android does not pick it up Jun 06 21:08:15 I have a GPS app I wrote that works fine in the emulator Jun 06 21:08:25 In my layout I have an extra icon on the top and not sure if the issue is in the xml itself. http://pastebin.com/CHquPBj0 Jun 06 21:08:37 when trying to run on the device, I get a java.lang.IllegalArgumentException: provider=gps Jun 06 21:09:13 i'm using LocationManager.GPS_PROVIDER which equals "gps" and therefore should be valid, it just seems Android does not find a gps provider presumably because it's not picking up libgps.so Jun 06 21:09:44 Is it valid to just drop the .so file in /system/lib or do I need to integrate the build into the Android build? Jun 06 21:11:35 btw that error was from locationManager.requestLocationUpdates() Jun 06 21:11:39 anyone here? Jun 06 21:12:09 droid_noob: if you dont get an answer ron_frown might know; he's in later in the evening. this channel is more java-framework related app dev Jun 06 21:12:25 maybe #android might know Jun 06 21:12:40 ah ok thx Jun 06 21:13:18 i don't recall him doing anything specifically with gps, but he works at that level a lot it seems Jun 06 21:14:42 whats the point of having disable apps in ics when oem roms disable the feature anyways Jun 06 21:14:48 For some reason, when I start my app, it chooses to recognize Chinese characters on top of the keyboard screen. Anyone have any clue what it could be? Jun 06 21:15:34 birbeck, do they ALL disable that feature? Jun 06 21:15:45 its a useful feature Jun 06 21:15:49 if a specific device disalbes it, dont buy that device Jun 06 21:16:19 canadiancow|work: im not sure, its not there on my htc evo 4g lte Jun 06 21:16:19 Okay, so... I'd like to send data periodically to a server. Should I use a Service + AlarmManager + BroadcastReceiver? Jun 06 21:16:36 canadiancow|work: so i imagine its removed from all htc sense 4 devices Jun 06 21:18:20 canadiancow|work: on my galaxy nexus i used it to disable the stock browser so i didnt get the choose app dialog, effectively making chrome my only browser, on the one x it has a default apps settings (to get around itc ban ala apple), but it comes with a few bundled apps like dropbox, visual voicemail, etc that i will never use Jun 06 21:18:32 i have google drive and google voice ;) Jun 06 21:18:42 heh Jun 06 21:18:45 speak with your wallet Jun 06 21:18:51 the biggest problem with phones is that they're "free" Jun 06 21:18:53 so oems do shit Jun 06 21:18:55 and no one relaly cares Jun 06 21:19:00 $0 phone? CANT COMPLAIN Jun 06 21:19:12 their not free tho, i bought my last 4 phones outright Jun 06 21:19:53 5 if you count both galaxy nexus' Jun 06 21:20:07 but for most, they are Jun 06 21:20:20 if HTC lost every customer in the USA who bought phones outright, i doubt theyd care Jun 06 21:20:45 what is that, like 2% of 100 customers? Jun 06 21:20:53 hah Jun 06 21:23:36 i would bet samsung removes the feature as well Jun 06 21:23:45 In my layout I have an extra icon on the top and not sure if the issue is in the xml itself. http://pastebin.com/CHquPBj0 Jun 06 21:26:55 lets say you wanted to be able to swipe between a few fragments in a viewpager. but those fragments had graphs in them, so you want to be able to scroll with the same horizontal touch gesture. how would you handle this from a ui perspective? just not use swiping between fragments ? Jun 06 21:28:54 maybe hold and flick? Jun 06 21:29:04 or flick header bar Jun 06 21:29:47 either might be confusing to users, tho Jun 06 21:30:07 yeah. trying to find a precedent where this exists already Jun 06 21:30:33 * shoerain is dying of not understanding these stuffs. Jun 06 21:31:02 AlarmManager + Service example to send data, would anybody know where I ought to look? Google isn't helping me out... Jun 06 21:40:31 shoerain: what part of it are you having trouble with? Jun 06 21:40:47 the easy case, when you don't need the service to run when the phone's asleep, is really quite easy Jun 06 21:41:08 the hard case, when you want to fire off Service work that happens unattended while the phone's asleep, requires some wakelock work Jun 06 21:44:08 ctate: well I just wanted to see a really good example to work with Jun 06 21:44:16 That I could meld to my needs. Jun 06 21:44:30 * shoerain didn't find any, though. Jun 06 21:44:38 the easy case is trivially easy Jun 06 21:44:50 you get a service PendingIntent that will launch your service Jun 06 21:44:57 and pass that when setting the alarm Jun 06 21:44:58 done. Jun 06 21:45:21 That is not something I knew, by the way. Jun 06 21:45:31 Is there a place that I should have found it? Jun 06 21:46:26 hi ctate Jun 06 21:46:28 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/index.html#Alarm Jun 06 21:46:46 did you see my question from earlier? Jun 06 21:47:00 g00s: maybe using edge swiping like chrome? Jun 06 21:47:13 shoerain: well, http://developer.android.com/reference/android/app/AlarmManager.html#set(int, long, android.app.PendingIntent) is the method for setting an alarm Jun 06 21:47:17 birbeck: hmm, this is chrome for android ? Jun 06 21:47:25 btw g00s: #android really does not like dev questions :P Jun 06 21:47:34 g00s: though i imagine that would be a pain for most users going between views Jun 06 21:47:41 g00s: yeah, chrome beta for android Jun 06 21:47:42 if you follow the type link for PendingIntent you get to http://developer.android.com/reference/android/app/PendingIntent.html which describes activity vs service vs broadcast pending intents. Jun 06 21:48:07 birbeck: thanks, will check it out. i have froyo, hopefully it works there Jun 06 21:48:49 g00s: hmm, might need a gesture detector, im not sure really. i think it works by detecting the origin of the swipe Jun 06 21:49:07 hm, i dont chrome think this works on froyo Jun 06 21:49:17 O.o Jun 06 21:49:18 no, ics only Jun 06 21:49:46 viewpager + fragments + gesture detector should work on froyo Jun 06 21:50:10 yeah Jun 06 21:50:22 though i think this problem is kinda like putting a list inside a scrollview Jun 06 21:50:34 grr what input type do i want for writing "sentences" Jun 06 21:50:41 text Jun 06 21:50:53 oh Jun 06 21:50:54 well then Jun 06 21:50:57 :) Jun 06 21:57:21 ctate: you there? Jun 06 22:01:32 http://favstar.fm/users/hipsterhacker/status/48814217763110912 Jun 06 22:05:41 droid_noob: sort of. what's up? Jun 06 22:05:44 besides the sky Jun 06 22:06:22 i have a problem implementing GPS on custom hardware Jun 06 22:07:08 if you scroll up I typed a few lines an hour ago Jun 06 22:07:15 hmm. your best bet might be the android-porting@ mailing list Jun 06 22:07:22 birbeck "text" doesn't capitalize my sentences Jun 06 22:07:26 which has hardware companies as its intended audience Jun 06 22:07:31 (google groups list, that is) Jun 06 22:08:12 let us try text|textCapSentences Jun 06 22:08:14 thanks Jun 06 22:08:16 canadiancow|work: textCapSentances Jun 06 22:08:20 droid_noob: good luck Jun 06 22:08:22 well i had that before :( Jun 06 22:08:29 get rid of text| Jun 06 22:08:38 ctate can you ping tor/xav and ask them how to get manifest merging to work in eclipse/adt and ant? :) Jun 06 22:22:23 is there anywhere where I can find a super simple tutorial that will just grab GPS points while I walk? Jun 06 22:24:05 anyone know if it's possible to have non-symmetric fades for a scrollview? Jun 06 22:42:57 whats the difference between a i9250T and i9250M Galaxy Nexus? Jun 06 22:44:44 about 7 letters, birbeck Jun 06 22:45:07 about 1 that i can see Jun 06 22:45:09 i know what a Galaxy Nexus is, i thought, but i have never heard the terminology "i9250" around it Jun 06 22:45:35 ctate, that is just sammys model number Jun 06 22:45:41 Galaxy SIII is i9300 iirc. Jun 06 22:45:50 http://forum.xda-developers.com/showpost.php?s=df5499af8f67098c85a3a8a4510dd0db&p=22580054&postcount=5 Jun 06 22:46:05 but i just bought the one from play store, and it is i9250T Jun 06 22:46:23 like i said, i have never heard the model numbers used Jun 06 22:46:27 so, y'lknow, wtf. Jun 06 22:46:39 remember that not all of them have software builds done strictly by Google Jun 06 22:46:50 most of them *don't*. Jun 06 22:46:56 but hte ones from the play store do. Jun 06 22:47:06 yeah, thats why i gave my wife my cdma/lte sprint one and ordered the gsm one from play store Jun 06 22:47:25 hello Jun 06 22:47:28 oh, is one of those the Sprint hardware then? Jun 06 22:47:43 not according to that post on xda Jun 06 22:47:44 (which i assume is different from the VZW hardware) Jun 06 22:47:55 birbeck: ... because XDA is a reliably accurate source? Jun 06 22:48:13 generally pretty good Jun 06 22:48:30 http://code.google.com/p/9patch-resizer/ Jun 06 22:48:57 don't you think this kind of tool should be included in adt ? Jun 06 22:50:34 xda, lol. Jun 06 22:54:40 I really dislike Apple, but those scumbags at Google really make me want to switch to supporting and developing for iOS. Jun 06 22:54:46 * Hiraghm scowls menacingly Jun 06 22:55:49 Hiraghm: hey! Jun 06 22:55:55 hey Jun 06 22:56:02 hi to both of you Jun 06 22:56:09 i accept that you are irritated but i don't *think* i count as a scumbag.... Jun 06 22:56:41 you responsible for celebrating the first drive-in on Google's home page today? Jun 06 22:56:56 redwarp: our sdk people know about it and yes it's a neat kind of thing Jun 06 22:57:03 any math nut here able to tell me what the "function for calculating distance" on this stack overflow is doing? Is it converting to meters? Kilometers? http://stackoverflow.com/questions/9664587/using-gps-get-the-distance-a-person-has-walked Jun 06 22:57:03 we can't use *that* one, obviously, because it's GPL Jun 06 22:57:28 Hiraghm: err, not at all. but i fail to see the relationship between today's doodle and iOS dev :) Jun 06 22:57:39 June 6th Jun 06 22:57:40 does anyone have experience passing a result from a child tab inside a TabActivity, which has been instantiated via TabHost.TabSpec.setContent(Intent intent) ? Jun 06 22:57:41 ctate: So is there another one not GPL? Jun 06 22:57:46 kakazza: no clue Jun 06 22:57:57 i'm just addressing the specific tool that he was pointing to Jun 06 22:58:00 @ctate hum, i could change the licence or something, I don't really care Jun 06 22:58:08 oh that's yours? Jun 06 22:58:11 Hiraghm: well, they are celebrating source of population increase ;) Jun 06 22:58:12 sure Jun 06 22:58:23 why? Jun 06 22:58:39 ninjai give me a moment, that equation looks familiar Jun 06 22:58:47 thanks robb_www Jun 06 22:58:48 whats wrong with the doodle? Jun 06 22:58:54 it's June 6th Jun 06 22:59:00 oh dday? Jun 06 22:59:11 oho, right Jun 06 22:59:19 I'm fcking sick and tired of Google either ignoring or denigrating events of significance to Americans in favor of BS Jun 06 22:59:28 did google do a d-day doodle in the past? because if so, i can imagine they didn't want to repeat Jun 06 22:59:29 in this case, events of significance to the world Jun 06 22:59:32 but yeah Jun 06 22:59:35 o.O Jun 06 22:59:50 and what the link between a doodle and wanting to do iOs ? Jun 06 22:59:54 not want to repeat celebrating D-Day? Jun 06 22:59:59 Hiraghm: um, you know that Doodle's aren't global? Jun 06 23:00:07 *Doodles Jun 06 23:00:09 ninjai, its the spherical law of cosines: http://www.movable-type.co.uk/scripts/latlong.html Jun 06 23:00:13 redwarp: being pissed at Google Jun 06 23:00:16 Because any success I have developing for Android is going to help google. Jun 06 23:00:24 yep, I don't see the doodle here is france Jun 06 23:00:26 and yes that doodle is probably US-only Jun 06 23:00:28 http://www.seroundtable.com/first-drive-in-theater-15255.html Jun 06 23:00:36 O.O Jun 06 23:00:47 robb_www, i found this link already, just wasn't sure if it was the same. so then this is converting to KM then? Jun 06 23:00:51 I would think D-Day would be one hell of a big thing to celebrate in France. Jun 06 23:00:53 oh ! well. what's wrong Jun 06 23:00:59 drive in are pretty kick ass Jun 06 23:01:09 Hiraghm: quite often, Doodles are made so that they are specific to events of that country only, and I'm not sure if I have ever seen a *war* related one Jun 06 23:01:27 redwarp: if you could contribute that tool under the Android license to AOSP then we could use it :) Jun 06 23:01:30 o.O Jun 06 23:01:36 ninjai, given that the radius of the earth is roughly 6371km, and the algorithm you linked has a scaling constant of 6371, yes, it must be in km Jun 06 23:01:51 ok thanks robb_www Jun 06 23:01:52 Hiraghm: Yeah, well, you know, that's, just like, your opinion, man. Jun 06 23:01:53 @ctate okay, no problem Jun 06 23:01:54 * robb_www used the page linked in his thesis Jun 06 23:01:56 p_l|backup: err, the US has seen doodles for memorial day / veterans day / etc, no? Jun 06 23:02:00 redwarp: great thanks! Jun 06 23:02:17 if true, that would make Google ignorant scumbags Jun 06 23:02:30 ctate: those are also national remembrance days Jun 06 23:02:34 So you judge Google by their doodles? Jun 06 23:02:34 what would such a doodle look like? a bunch of white crosses on a green lawn? the red beaches of normandy? Jun 06 23:02:51 ctate: and iirc, those didn't link specifically to exact events Jun 06 23:02:59 kakazza, you remind me of Larry Phillips and Vic Wagner Jun 06 23:02:59 true Jun 06 23:03:04 so does anyone know how to return a result from an activity within a TabHost? Jun 06 23:03:21 pragma - heroic men storming a beachhead? Jun 06 23:03:44 Hiraghm: as for being a day to remember... I'd like to point out that WW2 was heavily complex conflict, and celebrations regarding it are still marred by western propaganda where they tried to "erase" some of the allied contributors from public conscioussness Jun 06 23:04:04 so far ive tried using getParent() but that didnt get anywhere, I dont see any sensible solutions on stackoverflow other than using the application context, which is a bit crap Jun 06 23:04:26 @ctate is apache 2.0 licence ok ? Jun 06 23:04:34 erase? so now you're going to cite some revisionist history that suggests the Russians stormed Omaha beach? Jun 06 23:04:50 @ctate I admit understand quite little about licence :P Jun 06 23:05:19 my favourite licenses are CC, predominantly because they are very, very clear Jun 06 23:05:24 Hiraghm: no. But countries that were sold to Soviets where then avoided in mentions or mocked Jun 06 23:05:36 *were Jun 06 23:05:47 which would have nothing to do with D-Day. Jun 06 23:05:57 much like this channel Jun 06 23:06:00 redwarp: mostly the issue is that we do not take anything that is GPL Jun 06 23:06:03 Hiraghm: Spoiler: Android doesn't have anything to do with D-Day. Jun 06 23:06:12 ctate, why not? Jun 06 23:06:20 kakazza, Android has to do with Google Jun 06 23:06:24 Hiraghm: it goes to even such simple things as "which flags do you put to suggest biggest allied armies" :) Jun 06 23:06:27 Hiraghm: I looked and I don't see any D-Day remembrance stuff on Apple's website either, guess that rules out iOS dev too? Jun 06 23:06:28 too restrictive and next to impossible to maintain compliance Jun 06 23:06:34 And Google has nothing to do with D-Day either. Jun 06 23:06:41 redwarp: re your asking is Apache 2.0 okay: "yes. it should be contributed as a standalone library so that we can integrate it wherever we can. APL2 is preferred for those. Only the Eclipse plugin uses EPL Jun 06 23:06:42 this one: http://www.apache.org/licenses/LICENSE-2.0" Jun 06 23:07:11 jreck, does Apple commemorate something OTHER than D-day today? Jun 06 23:07:14 @ctate makes sense. so apache 2.0 it is then Jun 06 23:07:38 Hiraghm: yes, Steve Job's death and shiny new stuff to buy Jun 06 23:07:56 ctate, since you work for google, tell them that some of us don't want our Youtube accounts welded to our google accounts. Jun 06 23:08:11 let's just see... Jun 06 23:08:34 it's not like i have any say over anything in big-Google land :) Jun 06 23:08:37 no, www.apple.com just returns an advertisement for one of their products. Jun 06 23:08:54 Hiraghm: And google.com doesn't have a doodle for me today. Jun 06 23:08:54 ctate, okay so maybe you personally are not a scumbag Jun 06 23:09:08 as someone from the UK, i couldnt care less if a company decides not to commemorate a day associated with a war Jun 06 23:09:21 but I'm fed up with having to switch back and forth between my hotmail and gmail accounts when switching between Google Play and Youtube. Jun 06 23:09:35 robb_www, then you're a sad human being. Jun 06 23:09:48 and rather limited in your thinking. Jun 06 23:09:55 Explain. Jun 06 23:10:00 you sound very open minded Jun 06 23:10:02 Hiraghm: Chrome's multi-user mode works well for the multiple accounts problem Jun 06 23:10:25 robb_www, for one, did not come to #android-dev and let off his steam about a non existing doodle he - subjectively - thinks is important. Jun 06 23:10:27 I use firefox Jun 06 23:11:13 fine, we'll let it rest that Google has as screwed up a values system as many of its users and proponents. Jun 06 23:11:19 @ctate well, it's done. long live jautodoc Jun 06 23:11:36 \o/ Jun 06 23:11:56 [18:48:58] don't you think this kind of tool should be included in adt ? Jun 06 23:11:56 no Jun 06 23:12:01 because android does that for you at run-time Jun 06 23:12:05 jreck, 1) I'm not going to give all my internet control over to Google, 2) I literally have 10s of thousands of bookmarks I'd have to xfer somehow. Jun 06 23:12:08 if a DESIGNER is not creating the image, it's not worth doing Jun 06 23:12:13 ctate: So, that will be part of ADT 42? ;p Jun 06 23:12:28 no clue Jun 06 23:13:08 @canadiancow I respectfully disagree because : not everybody has a designer Jun 06 23:13:15 you're missing my point Jun 06 23:13:26 if all you're doing is autogenerating different densities Jun 06 23:13:30 android already does that at runtime Jun 06 23:13:46 in theory, yes Jun 06 23:13:54 Does Android resize or resample? Jun 06 23:14:03 resample Jun 06 23:14:08 Bilinear? Jun 06 23:14:15 And your program? Jun 06 23:14:46 divide by two (bilinear) then again and again Jun 06 23:14:54 until reaching the proper size Jun 06 23:15:20 photoshop might be a better job (I don't know) but gimp doesn't Jun 06 23:15:43 I mean : I compared output Jun 06 23:15:47 Hi, I have several Activitiies within a TabHost. When I click on a Tab an Activity gets instantiated (onCreate), when I click on some some other and then back on the one before then it will be just shown and not instanceiated a second time. Is there an event listener that tells me that the activity is shown again? Jun 06 23:16:28 sebastian, welcome to my hell, im trying to return a result from an activity in a tabhost, no luck yet :/ Jun 06 23:17:31 @canadiancow on shitty cellphones (and we have a few at work to try out our aps), resampling sometimes does odd things so... I'd rather do it before hand Jun 06 23:17:44 robb_www: hehe - what's you delegate? Jun 06 23:17:44 and quintuple your apk size? :) Jun 06 23:18:18 * Jug6ernaut inserts sarcatic answer Jun 06 23:18:43 well... I guess it all depends on you aim Jun 06 23:19:12 Does runtime resampling really give satisfying results? Jun 06 23:19:18 sebas, dont have anything working at the moment, returning a result has absolutely no effect, will have to rewrite it with views i think Jun 06 23:19:36 but strangely, when you create an Android project, the icon is created in several size... wonder why... Jun 06 23:20:05 kakazza: as good as a tool that does it a compile time Jun 06 23:20:17 redwarp, because it's not auto-scaled Jun 06 23:20:20 its done by a real person Jun 06 23:20:25 it is Jun 06 23:20:25 who perfects it at each resolution Jun 06 23:20:27 But, isn't that discouraged by d.android.com? Jun 06 23:20:29 hence my original statement Jun 06 23:20:34 kakazza i have a file browser activity where i leave an ImageView to resize the file icons, it looks absolutely fine Jun 06 23:20:42 I guess you're right Jun 06 23:20:49 should be part of adt per say Jun 06 23:21:06 So as long as I pack in an xlarge 9patch, I'll be fine for most cases? Jun 06 23:21:06 but might be nice to have such a tools along the 9patch maker and so on Jun 06 23:21:21 no, not xlarge Jun 06 23:21:23 xhdpi Jun 06 23:21:30 same thing, no? Jun 06 23:21:32 and then the only time i would even bother with others is for like...text Jun 06 23:21:32 OI File Browser resize their file icons manually, but then they support image thumbnails so it makes more sense to Jun 06 23:21:34 nope Jun 06 23:21:36 or stuff that looks blurry Jun 06 23:21:44 xlarge about screen size Jun 06 23:21:46 xlarge is size, xhdpi is density Jun 06 23:21:49 while xhdpi is about density Jun 06 23:21:50 my tablet is xlarge mdpi Jun 06 23:21:54 my phone is normal xhdpi Jun 06 23:21:56 Yeah, well. It's probably bound to look like shit on ldpi. Jun 06 23:22:18 Try to make something made for 512x512 look good in 20x20... You kinda have to correct the pixels manually. Jun 06 23:22:25 true Jun 06 23:22:26 anyway, good night (good day ?) all Jun 06 23:22:39 good morning redwarp ;) Jun 06 23:23:06 I read this : http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html Jun 06 23:23:08 Hmm, we are very concerned about .apk size. (recently went down from 3.7 to 1.7MB), so I'll see how it works out with just xhdpi Jun 06 23:25:09 I only read http://www.pushing-pixels.org/2011/11/04/about-those-vector-icons.html Jun 06 23:26:06 canadiancow: http://developer.android.com/guide/practices/screens_support.html Jun 06 23:26:10 2nd paragraph Jun 06 23:26:34 that paragraph has NOTHING to do with images Jun 06 23:26:41 Only layouts? Jun 06 23:26:55 if I have two or more apps with the same content provider which isn't exported, there won't be any kind of conflict...maybe? Jun 06 23:27:11 its saying "don't layout_width="320dp" to make it look like iOS" Jun 06 23:27:59 robb_www: my problem could be solved overriding onPause and onResume ;-) Jun 06 23:28:05 'To ensure your bitmaps look their best, you should include alternative versions at different resolutions for different screen densities.' Jun 06 23:28:42 Is that to be read as 'SHOULD' or 'CAN'? Jun 06 23:28:48 seb i had a feeling they might still be called, glad you worked it out Jun 06 23:29:06 "should" Jun 06 23:29:14 because the scaled ones will not look ideal Jun 06 23:29:26 also note that it does not say "must" Jun 06 23:29:30 strike a balance Jun 06 23:29:40 if your bitmap is a freaking button background Jun 06 23:29:45 and you include an xhdpi version Jun 06 23:29:46 Ok, so canadiancows approach with 'only xhdpi, let Android do the rest' is only if you don't have optimized graphics for each density? Jun 06 23:29:49 i dont think you have much to worry about Jun 06 23:30:01 no, its if you want to save the effort of making a white square look like a white square again Jun 06 23:30:13 include xhdpi Jun 06 23:30:18 if it loads a scaled one in, is it going to take up more memory than necessary also? Jun 06 23:30:19 Is the scaling done at runtime? Thus, costing lots of performance? (An ldpi device usually doesn't have much performance) Jun 06 23:30:24 then for an that dont look good on hdpi/mdpi, include versions of those Jun 06 23:30:35 kakazza, density has nothing to do with performance Jun 06 23:30:44 in fact, i would argue it has BETTER performance because there are fewer pixels Jun 06 23:30:46 It has to resample, no? Jun 06 23:32:06 canadiancow: depends on whether it caches the resampled destination-size image Jun 06 23:32:08 canadiancow, even if you are only resizing, not optimizing for different densities, then you should still do that ahead of time Jun 06 23:32:17 if it does, then you're paying extra memory but no extra cpu for the blit Jun 06 23:32:31 if not, then you're not using extra ram, but each blit will take more cpu for the scaling Jun 06 23:32:32 ctate: Well, you tell us :D Jun 06 23:32:38 canadiancow: even if android can do it at runtime, and kinda poorly, why take the hit? Jun 06 23:32:45 apk size? Jun 06 23:32:56 apk size is once, scaling is all the time. Jun 06 23:32:57 again, you're missing my point Jun 06 23:33:15 if it looks bad, include desnity-specific versions Jun 06 23:33:19 if it doesnt, dont Jun 06 23:33:23 What do you consider a big .apk anyway? Are we talking 'zomg, over 1024KB' or 'zomg over 10MB'? Jun 06 23:33:24 canadiancow: i thought that... but i have a very graphic intense app now with mdpi/hdpi/xhdpi assets, and its 3.2MB Jun 06 23:33:25 i have never noticed a perf hit Jun 06 23:33:39 kakazza, well past the 10MB mark Jun 06 23:33:45 birbeck, that is not a very graphic intense app Jun 06 23:33:46 :P Jun 06 23:34:05 words with friends is the least graphic intense i have worked on, and its twice that size Jun 06 23:34:05 it is... but it has tons of 9-patches Jun 06 23:34:06 Ok, well, we were concerned about our 3.7 and were able to go down to 1.7 without deleting anything in use. Jun 06 23:34:22 kakazza, that means you have poor code maintenance Jun 06 23:34:24 canadiancow: heh, thats also using HUGE libraries Jun 06 23:34:25 stuff not in use shouldnt be there Jun 06 23:34:35 Wish it was that easy to detect. Jun 06 23:34:37 birbeck: not really Jun 06 23:34:46 the size is all in res/ Jun 06 23:34:58 lint is doing a so-so job on unused resources. I still use some google code project for that. Jun 06 23:35:04 canadiancow: get some better graphic artists at zygna :P Jun 06 23:35:06 kakazza: mine? Jun 06 23:35:15 http://code.google.com/p/android-unused-resources/ ? Jun 06 23:35:27 Yes Jun 06 23:35:30 :) Jun 06 23:35:42 Better than lint, imo. Jun 06 23:35:51 birbeck, theres nothign wrongw ith the images themselves Jun 06 23:35:55 theres just a lot Jun 06 23:35:55 how is it better than lint? Jun 06 23:36:02 because lint blows chunks last time itried Jun 06 23:36:07 for finding unused resources Jun 06 23:36:09 lmao Jun 06 23:36:10 it does many things amazingly Jun 06 23:36:16 finding unused resources is not one Jun 06 23:36:18 But how do you include that into a code management workflow without forcing everyone to run it manually all the time? Jun 06 23:36:19 also, i wrote that in fall 2010 Jun 06 23:36:29 which is like 18 months before lint came out Jun 06 23:36:45 kakazza, that's a fair question Jun 06 23:36:51 i hsould write a hudson plugin :) Jun 06 23:37:08 Please do. If it it's compatible with Jenkins, I'll so use that. Jun 06 23:37:21 i should fix the bugs that have been filed against it Jun 06 23:37:24 and verify it still works Jun 06 23:37:26 Woot, a 1mb file to go through to figure out why my app is crashing :D Jun 06 23:37:45 canadiancow: move to github and I'll send pull requests if there's open tickets ;) Jun 06 23:38:01 yea i should do that, shouldnt i Jun 06 23:38:05 google code... psh Jun 06 23:38:11 github needs a "migrate from google code" feature Jun 06 23:38:25 Indeed. Bitbucket has that feature actually. Jun 06 23:39:03 I think 'fast-export' can convert svn to git without losing commit history. Jun 06 23:39:16 Not entirely sure, though. And I think github has a svn to git guide? Jun 06 23:39:18 oh i can do the conversion of that Jun 06 23:39:23 but i mean issues as well Jun 06 23:39:23 wiki Jun 06 23:39:25 etc Jun 06 23:39:47 For Issues, I found a script on github, never tried it, though. Jun 06 23:39:48 our manager is so awesome... nothing on the calendar, no warnings... just comes in and says "i'm outta here, see you guys on tuesday" Jun 06 23:40:03 And you have no Wiki pages on that particular project. :) Jun 06 23:40:15 doesnt matter if anyone has any questions or is blocked or anything, lol Jun 06 23:40:26 kakazza that is fair Jun 06 23:40:28 but i have issues! Jun 06 23:40:32 Oh joy, 2000 lines. :( D: what should I be looking for exactly? Jun 06 23:40:37 Sure you do ;p Jun 06 23:40:55 https://github.com/arthur-debert/google-code-issues-migrator Jun 06 23:41:10 Not sure if or how that works. But worth a try in a test-repo Jun 06 23:41:19 (By the way the Android-dev is a way better than the iPhonedev. ;) Jun 06 23:41:29 Even has a dry-run flag. Jun 06 23:41:50 ZettaZete: heh, i used to hang out there, bunch of self-righteous assholes Jun 06 23:41:59 ^ Jun 06 23:42:15 im so glad i dont do that stuff anymore Jun 06 23:42:25 I just wish the Android had better sells. Jun 06 23:42:41 its what you make it Jun 06 23:42:55 im very happy with my sales Jun 06 23:43:34 I guess I haven't developed any sellable apps just saying from past veterans. (However who know how reliable they can be.) Jun 06 23:43:37 ok i got an Android Key mismatch, the pic is here and u can see the secret key http://i.imgur.com/TCD5k.jpg ...but if i go to android developers and see my key is different from what i get from the app http://i.imgur.com/TCD5k.jpg Jun 06 23:43:56 and its not like indie developers have a big chance on itunes, there is just a larger market for big devs there Jun 06 23:45:17 birbeck, if your looking to increase sales. (I"m being a full on asshole right now.) Check out TapForTap.com Jun 06 23:45:41 im not looking to increase sales, in fact, i want less sales Jun 06 23:45:47 Haha, really? Jun 06 23:45:50 Sounds strange. Jun 06 23:45:58 but i dont do ads or any cross sharing stuff Jun 06 23:46:34 * robb_www trying to do some freeware atm Jun 06 23:46:35 ZettaZete: more sales means more support, when you have to support a third-party service you cant control then that can be a real pita Jun 06 23:46:56 birbeck, ah, I can see the issue there. Jun 06 23:47:15 im definitely cutting off canada and android 1.6 in the next release Jun 06 23:47:16 [19:40:56] https://github.com/arthur-debert/google-code-issues-migrator Jun 06 23:47:21 i hate stupid shit like that done in python Jun 06 23:47:32 i dont want to install python Jun 06 23:47:48 do it in something like java, where everyone has the runtime Jun 06 23:47:57 canadiancow: you use windows? Jun 06 23:48:03 primarily Jun 06 23:48:13 oh :) Jun 06 23:48:17 you don't have the java runtime by default on windows Jun 06 23:48:19 I need to install linux for Android development. If I get strongly into it. Jun 06 23:48:26 MDijkstra, but everyone gets it... Jun 06 23:48:28 MDijkstra: +1 Jun 06 23:48:39 even my mom has JRE Jun 06 23:49:10 canadiancow: maybe she shouldnt... are applets used for anything but viruses these days? Jun 06 23:49:15 I dunno, I don't see the JRE on many computers anymore Jun 06 23:49:23 my bank uses it for scanning checks, but i can do that with mobile Jun 06 23:49:24 ok let me rephrase then Jun 06 23:49:25 especially since browsers now block applets by default Jun 06 23:49:35 write in something like java, where the runtime is EASY to isntall on windows :) Jun 06 23:49:43 yeah, fair enough Jun 06 23:50:12 ... umm, they don't. block applets, that is. And asking whether it should launch an applet based on sigature is old thing.. Jun 06 23:50:34 we're not talking to you! :P Jun 06 23:50:45 is there a nice list of styleable action bar attributes somewhere? Jun 06 23:50:53 jayd16: in themes.xml Jun 06 23:50:55 or styles.xml Jun 06 23:50:56 in android source Jun 06 23:50:57 :) Jun 06 23:51:00 or hceck out the styles in ABS Jun 06 23:51:35 Can anybody do me a huge favor and look over a crashlog and figure out why the hell I"m crashing/ Jun 06 23:51:41 ah ok…I thought I was blind for not finding it in the docs Jun 06 23:52:34 ZettaZete: pastebin it Jun 06 23:52:39 ZettaZete: and your source code Jun 06 23:52:55 Can anyone tell me how to turn on this "EXPERT" , !S390 && INPUT [=y] && INPUT_TOUCHSCREEN [=y] && TOUCHSCREEN_USB_EGALAX [=y] && EXPERT is this an x86 only feature or what?/ Jun 06 23:53:05 evancharlton, just the portion that actually maters? I got a lot of source code. Jun 06 23:53:20 ZettaZete: start with the error log Jun 06 23:53:27 we'll tell you what source to paste :) Jun 06 23:53:38 ZettaZete: please paste it into pastebin.com and send us the link Jun 06 23:54:20 evancharlton, good luck my good sir. http://pastebin.com/xBqVrBuy Jun 06 23:54:59 stacktrace or gtfo :( Jun 06 23:55:29 ZettaZete: E/AndroidRuntime( 1145): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Jun 06 23:55:59 ZettaZete: it scares me that you have a class called OnCreate Jun 06 23:56:28 Ok 1, how the hell.. 2. Yea, I figured on that part, I can change it just idk doesn't seem to imporntatn. Jun 06 23:56:52 Alright, so now the source code? or should I trying using a looper. xD Jun 06 23:58:09 Oh I see what the problem is. hmm.. so I have to have a looper thread if I want to call a handler from it? Jun 06 23:58:11 Does anyone know information on when http://source.android.com/porting/ will be back? Or another place where I can find that kind of info? Jun 06 23:59:11 there are probably a few apps ideas here, if you are in the US http://news.ycombinator.com/item?id=4076253 Jun 07 00:02:12 anyone know if it's possible to have non-symmetric fades for a scrollview? Jun 07 00:06:56 evancharlton, sound like a good idea to switch to an Async? Jun 07 00:11:23 Does the Async class have to be static to access it from another? Jun 07 00:17:35 Who else uses Ant for building? :D Jun 07 00:18:11 seems your in the minority there Jun 07 00:18:17 Shame :( Jun 07 00:19:45 i came across a file manager app last week which supports SAMBA shares, but.. if you called it with an ACTION_GET_CONTENT intent, and the user selected a file on a share, it returned a URI containing the login credentials in plain text Jun 07 00:20:02 * robb_www was not impressed Jun 07 00:20:04 ha ha ha Jun 07 00:20:21 Woot more crashing :D Jun 07 00:20:33 i was hoping (in vain) that they would download it either to cache or perhaps the downloads folder, but no Jun 07 00:24:48 evancharlton, alright just changed to an Async class and getting the same error. Any ideas? Jun 07 00:26:04 I've downed an image to my sdcard (the file is there checked via adb shell) when I try to read it I'll get a java.lang.IllegalArgumentException … contains a path separator but the path is ok. Any ideas? Jun 07 00:28:23 seb, have you tried using getExternalStorageDirectory() ? Jun 07 00:28:46 you might want to check what thats returning as opposed to your hard-coded path Jun 07 00:30:36 robb_www: actually I'm using that method to determine my file "String unzipLocation = Environment.getExternalStorageDirectory() + File.separator + "HausManager" + File.separator + "tipps_unzipped/rubrik_" + id + "_bild.png";" Jun 07 00:31:32 what are you doing with that string? Jun 07 00:31:38 Alright, I'm getting an error about handlers when my project doesn't have anything about them?? Jun 07 00:31:40 use pastebin or something plz Jun 07 00:33:15 robb_www: http://pastebin.com/dwjm4HNL Jun 07 00:33:25 ty Jun 07 00:34:21 sebastiandeutsch: Context#getFileStreamPath() does not do what you think it does Jun 07 00:34:25 exactly Jun 07 00:34:34 you want to create a new File object directly, not using that Jun 07 00:34:39 ctate: robb_www ah ok Jun 07 00:35:30 ctate, i take it your the local guru? Jun 07 00:35:46 check the +o, bucko. Jun 07 00:35:54 :) Jun 07 00:35:57 true, missed that :P Jun 07 00:36:15 * ctate works on the Android framework @ Google Jun 07 00:36:28 sounds like a very fulfilling job Jun 07 00:36:32 you bet Jun 07 00:36:47 cant wait to change employers in a few months myself Jun 07 00:37:40 ctate: robb_www: cool it works - thank you guys Jun 07 00:37:46 np Jun 07 00:45:11 Why would my async class work fine from onCreate but on in a button event? Jun 07 00:45:59 nobody can answer wihtout seeing the code Jun 07 00:46:20 Sure thing. just thought with this case. Idk, I'm going to blame me being tired. Give me a min. Jun 07 00:48:27 ctate im not sure if you saw my question earlier, is there a mechanism for returning a result from a child activity held by a TabHost? Jun 07 00:48:31 Alright, so here is the code that can call my code. If I call loadAdsStart() from onCreate, all is well. However if I call it from any other function it crashes. http://pastebin.com/pb8nS2Um Jun 07 00:48:44 not meaning to spam, so sorry in advance if you did see that already Jun 07 00:49:09 "returning a result" meaning what? Jun 07 00:49:28 activities don't "return" results except when going *away*, after they'd been started via startActivityForResult() Jun 07 00:49:37 the child activity can call setResult, but the result isnt passed anywhere Jun 07 00:49:43 so should I use Void instaead? Jun 07 00:49:47 intsead* Jun 07 00:49:49 ugh Jun 07 00:49:58 but the activity being one fo several tabs sort of suggests that it isn't actually going away Jun 07 00:50:03 *also*, TabHost is deprecated. Jun 07 00:50:11 grar no TabActivity is, never mind me Jun 07 00:50:36 im calling finish() directly after Jun 07 00:51:23 Alright ctate, lead me through in how I'm thinking through this wrong? Jun 07 00:51:30 robb_www: it's not going to wherever you called startActivityForResult() ? Jun 07 00:52:08 since the activity isnt started with startActivityForResult, but rather held by an ActivityGroup populated by TabHosts TabSpec.setContent(intent) Jun 07 00:52:09 ZettaZete: the important parts of this are what loadAdsStart() is a method of, how you're calling it and from where, etc. you've got some kind of deep structural problems. Jun 07 00:52:37 or atleast I assume TabHost uses an ActivityGroup for that Jun 07 00:52:39 robb_www: like i said, activities dont' return results unless they were launched via startActivityForResult() Jun 07 00:52:48 so if that is not your flow, then you need to take other steps. Jun 07 00:53:06 so i really do need to rework this in terms of adding views to the TabHost then :/ was hoping to avoid that Jun 07 00:53:09 ctate, not the first time I heard that. I think me using JNI has really screwed that up for me. Jun 07 00:53:14 nevermind, thanks for clarifying Jun 07 00:53:41 ZettaZete: no, at least some of your problems are unrelated to JNI if you're getting "no you have to do this on a looper thread" errors Jun 07 00:55:23 Alright good. Sounds like I really screwed this up then. Wait.. I'm curious see if I can combine classes real quick. Maybe that will fix some of it. Jun 07 00:56:56 I used this patch http://code.google.com/p/android-x86/issues/detail?id=670 on ASOP to solve an issue with a restive touch controller described here http://code.google.com/p/android-x86/issues/attachmentText?id=474&aid=4740002000&name=new+file&token=tgsAdAkCTDKmkuzGPpZ8UTB7EIU%3A1339030237458 Now I see inorder to enable this new kernel driver, I have to enable something called EXPERT, what is expert? Jun 07 00:57:28 you need a channel that isn't about userspace app development, Borillion. Jun 07 00:57:43 * ctate notes that the channel topic says "Root/custom ROMs, head to irc://irc.freenode.net/#android-root" Jun 07 00:57:52 [silly client] Jun 07 00:58:20 Im sorry ctate Jun 07 00:58:25 I didnt read it all :P Jun 07 00:58:46 although it has nothing to do with rooting Jun 07 01:00:15 i submit that when you're talking about a new kernel driver you qualify under the "custom ROMs" clause. :) Jun 07 01:00:23 mostly the point is that there's basically nobody here who knows anything about that realm Jun 07 01:00:30 ahh Jun 07 01:00:45 so another forum is likely to be a lot more productive for you Jun 07 01:00:51 point taken Jun 07 01:00:59 ctate: or doesn't want to deal with it without money ;) Jun 07 01:01:14 * p_l|backup has ... mixed opinion on modders Jun 07 01:02:09 I wouldn;t be modding if the device manufacturer didn't have two completely different forms of hardware with the same device id's Jun 07 01:04:58 Hey what's up guys, I'm havin a world of hurt tryin to figure out how to save SVG files in inkscape. I have one image thats a .svg file, and it renders perfectly. Its actually one I took from AndEngine. But if I make any changes or do anything and tweak it, and then do the whole retrace, save as custom SVG , yadda yadda, the .svg file itself appears changed. When I load it onto the phone, its still the default image. If I Jun 07 01:06:19 everyone saw this, right? :) http://getpocket.com/blog/2012/06/pockets-tips-for-aspiring-android-developers-its-not-really-terrifying-and-in-fact-quite-enjoyable/ Jun 07 01:07:21 What is the Class for the current activity for JNI calls? Jun 07 01:12:33 ctate, alright I cleaned up my programming some. Its all in one class now and the calls are a little more streamline. I'm ready to debug. :) Jun 07 01:21:15 p_l|backup it's good to have mixed opinions about things that are worth having mixed opinions about. In other words: most things are somewhat good, somewhat bad. Woo. Jun 07 01:21:42 Why can't non-static variables and static classes work well together. :( Jun 07 01:23:29 ctate: just curious since you're all over this channel: do you get paid to IRC? Jun 07 01:25:09 Hi all Jun 07 01:25:10 well its been my first time in here, and very much enjoyed it so will probably be coming back again, thanks all, goodnight Jun 07 01:26:34 I have a question which I could google but I wanted to know for definite - if I make an app for ICS will I be able to add libs to make it run on older androids? Jun 07 01:26:39 Alright, I have a whole bunch of static functions, (required for JNI in my case) and I need to have adview static but at the same time being able to change the value for the first second of the program. http://pastebin.com/jfzBt50L Jun 07 01:27:06 shoerain: no, it's volunteer Jun 07 01:28:00 std0s: http://developer.android.com/sdk/compatibility-library.html Jun 07 01:28:06 Is it normal for my code to have a lot of try {} catch{}? Eclipse seems to be suggesting that A LOT. Jun 07 01:28:15 see also external utilities like ActionBarSherlock Jun 07 01:28:23 thanks ctate Jun 07 01:28:28 JustSighDudes: obviously you're kind of new to Java :) Jun 07 01:28:44 ctate: Yeah. New to programming in general. Jun 07 01:29:08 I thought I was good cuz I made a jabber bot in python once. WRONG. Jun 07 01:29:50 JustSighDudes, a switch statement may make your code shorter Jun 07 01:30:54 std0s: How so? Jun 07 01:31:23 sorry JustSighDudes it very much depends on the code Jun 07 01:31:29 if i want to view a certain webpage in an android application do i just create a mobile version in html and then use webview or how should i go on about this? theres some interaction involved Jun 07 01:31:45 sorry for the vague question Jun 07 01:32:09 what interaction eSatsu ? Jun 07 01:32:12 Bah. I'll just keep them in. Code still seems to work fine. Jun 07 01:32:35 its all compiled down anyway - if it ain't broke... Jun 07 01:32:43 Yeah, true. Jun 07 01:33:04 mainly pushing buttons to change values Jun 07 01:33:38 like a rating system from 0 to 5 stars etx Jun 07 01:33:38 etc Jun 07 01:34:05 using irc from galaxy s3 so excuse any typos Jun 07 01:34:19 eSatsu, probably easier to get the web content you need then render as a normal activity Jun 07 01:34:42 "oooh look at me I have an s3" Jun 07 01:34:50 exactly Jun 07 01:35:20 Can I change a static variable by accessing its pointer? Jun 07 01:35:25 must shoq off my new phone, was stuck with a bad one for far too long Jun 07 01:35:30 show Jun 07 01:36:43 just made an app for a friend and submitted it to the market. dev console says its available for like 1365 devices including ours but none of us can find it in the market. the developer account is around an hour old Jun 07 01:36:54 app status is published Jun 07 01:36:58 woho Jun 07 01:37:01 am i overlooking something Jun 07 01:37:17 it takes 30mins-few hours to be visable Jun 07 01:37:24 ah ok just making sure Jun 07 01:37:29 thank you Jun 07 01:37:53 i idnt think it would be instant but a few articles i read said it was so i figured id ask some people who know the truth Jun 07 01:40:46 BloodSkin: Takes 4-5 days. Jun 07 01:41:19 Plus or minus 4-5 days. Jun 07 02:02:18 hello guys Jun 07 02:03:37 to make a ui like this http://oi45.tinypic.com/hrwspi.jpg Jun 07 02:03:49 what "components" i shold use? Jun 07 02:06:31 http://oi50.tinypic.com/6zvdjd.jpg Jun 07 02:06:43 and this one too Jun 07 02:06:59 custom viewpager Jun 07 02:07:17 Hey, does anybody know how I should save my .svg files in inkscape so that I Can use them in andengine? Jun 07 02:09:46 heh i tried inkscape once, freeking huge bloatware with more menu items than emacs and impossible to figure out how to use. gave up lol Jun 07 02:09:58 :P Jun 07 02:10:50 svg...is that vector? Jun 07 02:10:56 I'm just tryin to figure out how to correctly save an SVG file on anything really. I can use example SVG files no problem, the second I try and create my own I am royally screwing somethin up lol. It loads, but its blank and I can't figure out why. If I edit an existing SVG file, none of my changes show up its as if nothing ever changed. And yeah, its vector Jun 07 02:11:01 use gimp Jun 07 02:11:12 Word, gimp can do it? Jun 07 02:11:46 I haven't had issues with SVG on gimp Jun 07 02:11:57 saves ok Jun 07 02:11:59 What's weird is my file loads fine on chrome and other image viewers, it scales as would expect and such. But I haven't tried gimp, and I have no idea why. I love gimp :P Jun 07 02:13:07 What about andengine and svg is special ? Jun 07 02:14:46 Nothing I just have a million different things I want to do and AndEngine helps a lot with it Jun 07 02:14:57 But I am normally fine with andEngine..this is a seemingly trivial task Jun 07 02:15:14 The problem is on my end with saving the svg itself though, its really quite bizarre lol Jun 07 02:18:37 Alright with JNI it says I need to Call nonstatic with an object reference. How do that when all I have is a class and the method I want to call? Jun 07 02:19:16 the you don't have the info you need Jun 07 02:20:48 test Jun 07 02:20:55 p_l, Talking to me? Alright, do you know much about JNI? Jun 07 02:26:39 not much, but enough about execution model to know you can't call nonstatic method without object reference (because that d[8~oesn't make sense) Jun 07 02:27:55 I have a Fragment which implements LoaderManager.LoaderCallbacks. In my activity, I have an instance of this fragment, onCreateLoader gets called fine and everything is ok. Later on, I create a new instance of this Fragment and swap it out - but initLoader seems to give back thte same loader or something and onCreate isn't called again, so I don't have a chance to change the loaders uri Jun 07 02:28:45 sorry -when I swap out the fragment with a new instance of it, onCreateLoader isn't called again (obviously onCreate on the new fragment is) Jun 07 02:30:21 what I'm doing is analagous to a news article list where the fragment takes a news category and the content provider's uri is built with that Jun 07 02:36:36 ZettaZete: you need to have an instance of the class -- an object. Jun 07 02:40:58 How do you programmatically align a view above/below another view? Jun 07 02:42:14 T-Dub|DlolPics: you use a relativelayout and everything is easy Jun 07 02:42:27 I am using a rl Jun 07 02:42:37 I dont see any align methods Jun 07 02:43:10 found it Jun 07 02:43:14 p.addRule(RelativeLayout.RIGHT_OF, tv1.getId()); Jun 07 02:43:17 :) ty Jun 07 02:45:25 that's sort of the whole point of a relativelayout - aligning things :) Jun 07 02:46:35 I just couldn't find how to do it in java Jun 07 02:46:36 :P Jun 07 02:47:42 ah... that stuff is much easier in XML Jun 07 02:47:53 Yes it is :P Jun 07 02:48:00 But I need to align something above an ad Jun 07 02:48:06 Which I load in java Jun 07 02:48:11 So yeah, just got it though :D Jun 07 02:49:15 You could instead use a FrameLayout as a placeholder for the Ad Jun 07 02:49:27 then you wouldn't have this need to do stuff in Java Jun 07 02:50:34 destroying the loader in onDestroyView fixed it, obviously Jun 07 02:51:36 frankly, the less you have to do in Java the better Jun 07 02:52:48 Well I figured it out, and the more I know in java the better. I like working with the programming side than xml Jun 07 02:53:20 Also if the ad fail to load my view is aliged at the bottom rather than "floating" above the bottom. Jun 07 02:55:30 How do you set the style of a button programmitally? Jun 07 02:55:36 Google tells me you can't :( **** ENDING LOGGING AT Thu Jun 07 02:59:58 2012