**** BEGIN LOGGING AT Wed Apr 10 02:59:58 2013 Apr 10 03:40:26 meh, why does ProgressDialog take a context arg for show() only to crash if you pass it a non-Activity context Apr 10 03:47:32 meh, given an application context (or service context) I wish there were a way to determine the currently active activity object (from your app, of course) null otherwise Apr 10 03:50:13 screw it, I'll just keep a weakref to the last activity in the application context Apr 10 04:01:34 4/9/13 Apr 10 04:02:38 wow you're really far in the future! come back a few months Apr 10 04:33:46 I am trying to connect Gameclosure SDK with Facebook Android SDK Apr 10 04:33:52 I am getting this erro Apr 10 04:33:55 {Session state:CREATED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[]}, appId:531477826904985} Apr 10 04:34:01 from the Facebook SDK Apr 10 04:34:22 that is the printing of the session variable Apr 10 04:34:29 any help would be greatly appreciated Apr 10 04:34:37 I am trying to log in a user Apr 10 04:52:55 in case anyone is interested, great GCM tutorial here, PHP/mySQL backend: http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ Apr 10 04:53:44 joar`: ^ Apr 10 04:58:38 the php doesn't do nearly enough there Apr 10 04:58:56 I don't know why you'd read something like that instead of the official docs Apr 10 04:59:13 $registatoin_ids lol seriously Apr 10 04:59:55 there is a LOT more you need to do with the response Apr 10 05:49:38 Hey guys I currently built a server out of java for my androidgame that I'm trying to extend to support more users Apr 10 05:50:08 Can anyone point me in the right direction of things to read to extend my server to support thousands of users Apr 10 05:50:27 And proper ways of doings things, things to watch out for etc Apr 10 05:52:36 not quite that simple, depends on a million things Apr 10 06:00:03 How does it depend on a million things... Apr 10 06:02:04 there are so many variables in server development Apr 10 06:07:30 wabz: what might one consider adding that is essential that you feel is missing from that tut? Apr 10 06:26:14 I have set android:textIsSelectable="true" in the textview and still when I execute the app, it shows TextView does not support text selection. Action mode cancelled. Apr 10 06:26:22 Can somebody please tell me why this happens? Apr 10 06:42:14 roger_rabbit: pretty much everything here http://developer.android.com/google/gcm/gcm.html#response Apr 10 06:42:39 checking canonical ids, error responses etc Apr 10 06:43:20 much appreciated, I am an AJAX dev, so this is all still rather new to me.. I only really require a webview template and this, any registration info, like email etc is pure bonus Apr 10 06:43:44 well if anyone copies that post they're pretty screwed Apr 10 06:44:00 you need to be able to remove ids from your db if the user uninstalls the app for example Apr 10 06:44:33 it's working well for me so far, but if you have a good example of a nice integrated open source app that is better please do share Apr 10 06:44:56 not the app part Apr 10 06:44:59 if i send to a device that's been uninstalled it won't be delivered, right Apr 10 06:45:15 right, but if the device ids are never removed from your db.... Apr 10 06:45:16 that's no big deal for me, that's the preferred action, i don't want to nag anyone Apr 10 06:45:31 it will jsut grow and grow and grow Apr 10 06:45:41 its for a conference Apr 10 06:45:48 the max attendees are 700 people Apr 10 06:45:48 what? Apr 10 06:46:10 this company is handing everyone a tablet when they walk in the door Apr 10 06:47:18 well I woudln't be encouraging anyone to read/follow that tutorial Apr 10 06:49:06 if i had the time i would do it with cordova/phonecap and be cognecent of canonical IDs and whatnot, but I just got the spec monday and need to have the APK packaged and shipped to vendor by EOB thursday Apr 10 06:49:14 *gap Apr 10 06:50:48 but I greatly appreciate the advice, I wish I never wasted time with anything else the past 10 years and just studied android dev, I would be much better off Apr 10 06:50:53 this stuff is like alchemy Apr 10 06:51:18 allows you to create money out of thin air Apr 10 07:10:45 hm, thats lame https://code.google.com/p/android/issues/detail?id=41626#c20 Apr 10 07:17:25 g00s: 1) lol? 2) i think in "big" company stuff like this is very common Apr 10 07:17:55 g00s: an example of the same BS is the camera hardware on android Apr 10 07:18:23 "take a picture with the default orientation" is a non trivial task in android Apr 10 07:21:47 I think it might be related to *how* the echo cancellation is implemented Apr 10 07:21:54 i.e. hardware issue Apr 10 07:22:10 it's like people who complain why they can't do voice calls on some tablets Apr 10 07:22:18 So I've got this problem. I've got a flash player embedded in a webview with autoplay=true. However, autoplay doesn't work on android devices. ANy way yo automatically start my flash player when the web view loads? Apr 10 07:24:53 each time i make changes in code, do i need to restart the emulator? or it will automatically load the newly changed app? or old one/ Apr 10 07:25:34 Abhijit: it should update the app in the existing emulator instance Apr 10 07:25:45 ok Apr 10 07:27:33 Brian|CS: i am not sure about this, but i think the user can decide if a plugin is loaded in a webbroswer by default Apr 10 07:27:57 Brian|CS: the flash plugin is a major battery eater - so this would make sense to turn if off by default Apr 10 07:28:52 wasn't flash support removed? :) Apr 10 07:29:14 yeah steve jobs decided that for "The Earth" Apr 10 07:29:47 and we can't ask him why :( Apr 10 07:29:51 actually, given the code quality of the flash plugin, it was a very wise decision that should have been adopted by the industry Apr 10 07:30:21 monsti: it was to better ban pr0n Apr 10 07:30:46 monsti: leading to situation where the only websites that really support HTML5 video are the porn ones :P Apr 10 07:31:53 on my hackint0sh netbook i installed a flash blocker 2-3 years ago Apr 10 07:31:58 monsti: It's not that the flash is off, it's that it doesn't allow autoplay Apr 10 07:32:01 resulting a 20-30% gain in battery Apr 10 07:32:42 the best gain in battery i have had recently, was switching to FF and using noscript / adblock + / UnloadTab Apr 10 07:33:08 UnloadTab is great, it .. uh, unloads tha tab, after some period of inactivity Apr 10 07:33:08 adblock is so nice! Apr 10 07:33:19 monsti++ Apr 10 07:33:29 monsti: you know google removed it from Play last week Apr 10 07:33:41 LOL ;) Apr 10 07:33:56 "It works!" ;) Apr 10 07:33:58 well... I don't see adblock working without breaking ToS anyway Apr 10 07:34:00 its all fun and games … until you mess with add revenue man :D Apr 10 07:34:43 or google analytics ;) Apr 10 07:34:57 theres Android AdAway, and Firefox Adblock Plus add-on Apr 10 07:35:28 Firefox Adblock isnt the same as the play store thingy Apr 10 07:35:45 http://linux.slashdot.org/story/13/04/09/2246207/nvidia-releases-optimus-linux-driver-with-new-features <--- and meanwhile getting a laptop just became much, much easier :> Apr 10 07:35:51 do you guys think facebook will create an API for FB "Home"? Apr 10 07:36:05 capella: yeah. but on a more philosophical note; I think as a user - I should have complete control what web sites my machine / phone can contact Apr 10 07:36:14 p_l: i wish they would add a hackint0sh driver, too Apr 10 07:36:20 p_l: i am on the HD4000 only Apr 10 07:36:27 host file :) Apr 10 07:36:43 capella: yeah - isn;t that what Adblock modified ? Apr 10 07:36:49 one of them modified that Apr 10 07:36:54 g00s: I think it did some other stuff as well Apr 10 07:36:54 (which was taken off play) Apr 10 07:36:59 g00s: a germany university added a sandbox feature to android apps Apr 10 07:37:14 g00s: also, if it rooted the phone, then it pretty sure broken the ToS Apr 10 07:37:15 AdAway ... Adblock for FF does it blacklist on the fly Apr 10 07:37:17 monsti: its probably needed :) Apr 10 07:37:17 g00s: you can decide if a specific app gets a specific fake contact list Apr 10 07:37:26 and you can't use hosts without rooting Apr 10 07:37:39 monsti: hackintosh driver? Apr 10 07:37:47 won't happen Apr 10 07:38:07 p_l: yeah :) just my wish request for nvidia ... in a parallel universe Apr 10 07:38:08 monsti: afaik the mac drivers are in huge chunk controlled by Apple itself Apr 10 07:38:36 p_l: GUI drivers are a well kept secret by apple Apr 10 07:38:58 monsti: less of a secret and more of "we only let you make crippled drivers" ;) Apr 10 07:39:09 there are no docs and no public reference drivers - only a very old 10.5 VESA Apr 10 07:39:19 AdAway mods the hostsfile and affects all your apps and was removed from Google PLay Apr 10 07:39:20 AdblockPlus is a FF addon only affecting your browsing habits Apr 10 07:39:47 is it possible to send text over ussd? Apr 10 07:39:52 p_l: also the IO kit is a mess on apple ;) obj-c, c, c++ compiler variant ;) Apr 10 07:40:13 monsti: Obj-C is the "old" IO Kit Apr 10 07:40:21 C++ is the OSX one :) Apr 10 07:40:45 p_l: yes but any kext i wrote or patched required some gui stuff Apr 10 07:41:00 then you get mad with switching languages between elements of one project Apr 10 07:42:04 btw. did anybody test the 5.1 beta of Qt? Apr 10 07:42:09 they added android support Apr 10 07:42:16 but i am not sure how this works Apr 10 07:42:32 did they use the same "you need a hefty 15mb runtlime" like mono? Apr 10 07:43:09 monsti: maybe its for NDK NativeActivty folks ? Apr 10 07:43:12 i have no idea Apr 10 07:43:57 i like to play with stuff - but i think this is a "you need a 1gb download and some time to make the toolchain" Apr 10 07:53:53 hi. i insert images by creating new icon and using imageview. but all of those images are looking blur. like i have stretched them. Apr 10 07:53:55 help please Apr 10 07:54:39 i have used relative layour. and given fixed size of 200dp x 200dp Apr 10 08:02:44 shall i reduce the size of images using gimp or something? Apr 10 08:06:22 scaleType? Apr 10 08:10:55 ninharp, i set scale type to fit center and its not working. all images are blurred Apr 10 08:17:51 p_l: a guy in #firefox said their stats show the avg user has like 2-3 tabs open; and that people have asked for removing tabs altogether Apr 10 08:22:28 really? Apr 10 08:22:35 i usually have about 20 in chrome Apr 10 08:22:53 without exaggeration Apr 10 08:23:39 oh yeah, 20 easily. i used to use chrome but it took too much memory. i have about 30 tabs now in FF, using 400mb memory Apr 10 08:24:06 maybe with Blink some things will change for Chrome Apr 10 08:24:26 g00s: ... was it in mobile? Apr 10 08:24:33 no desktop ! Apr 10 08:24:52 they said almost nobody has more than 5 tabs open Apr 10 08:25:02 g00s: sounds like corporate environment :> Apr 10 08:25:20 heh, well FF is used in the corporation a lot Apr 10 08:28:57 in my experience, the low-tab-count people are rather the Chrome ones Apr 10 08:29:19 the ones who constantly respond to me with "dude, have you heard of bookmarks?" and need extensions to manage theirs ;> Apr 10 08:29:40 p_l: they did mention Tab Groups / Panorama is being removed from core though. After I plated around with Tab Groups, i liked the idea Apr 10 08:29:50 *played Apr 10 08:29:54 tab groups would have been fine Apr 10 08:30:04 Panorama was inexcusable in being *on* all the time Apr 10 08:30:41 really? i didn't know it was on until you showed it Apr 10 08:31:05 g00s: it was damn easy to trigger it in beginning Apr 10 08:35:33 i like that un about:config in FF I can change the warning limit for openeing a lot of tabs Apr 10 08:35:40 not found out how to do that in chrome Apr 10 08:37:08 there are a few really nice FF features; one is disabling GIF animations; the other is forcing every page to use a certain font. I have used Stylish & Co but that was a pain. UnloadTab rules too Apr 10 08:37:36 i'm weary of Personas though Apr 10 08:39:52 when i changed to chrome, i though "OMG all my extensions!" but the only ones I have installed now are HTTPS everywhere and addblock plus Apr 10 08:40:15 don't miss anything and I'm free of FF Apr 10 08:40:17 :D Apr 10 08:41:02 i have noscript and tree style tabs Apr 10 08:41:12 p_l: turned me on to that one :D Apr 10 08:42:44 i didn't know you could install ubuntu server with a special VM setting for low memory ( ~ 66 mb ) Apr 10 08:42:55 thats like one Chrome tab XD Apr 10 08:47:08 Im trying to open the web browser with an url. The standard solution seem to be this: Apr 10 08:47:08 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); Apr 10 08:47:18 but it does not encode complex url:s correctly. How to do? :/ Apr 10 09:10:25 how can i make the buttons and texts go below the phone screen when screen is small compared what i have designed for? currently the button remains at above the bottom border of phone screen. i want it to go down automatically. Apr 10 09:10:29 help please Apr 10 09:12:11 hi, how do i remove "\/" from a string I have ? The compiler is complaining its not a proper escape sequence…. Apr 10 09:13:18 mobydev, String.replace? Apr 10 09:13:28 yes but... Apr 10 09:14:06 it won't accept "\/" Apr 10 09:14:14 it lists it as an error Apr 10 09:14:21 but i want to remove it from my string Apr 10 09:14:22 \\/ Apr 10 09:14:28 "\\/" Apr 10 09:14:28 oooh Apr 10 09:14:34 pretty.... Apr 10 09:14:42 let me try that Apr 10 09:15:07 brb Apr 10 09:15:48 hmm anyone uses andengine? Apr 10 09:15:59 my contact listener wont work properly Apr 10 09:19:07 hmm does anyone know how to do that with a regex ? Apr 10 09:22:49 s/\\\//g Apr 10 09:23:03 how can i make the buttons and texts go below the phone screen when screen is small compared what i have designed for? currently the button remains at above the bottom border of phone screen. i want it to go down automatically. Apr 10 09:23:07 oh mom Apr 10 09:23:17 s/\\\///g Apr 10 09:23:41 replaces the \/ from the string Apr 10 09:24:55 pro-tip, you can use delimiters other than / in regex Apr 10 09:25:03 pro-pro-tip, don't use regex Apr 10 09:25:12 pragma-, i know ;) Apr 10 09:25:16 echo "Blah \/ Blupp"|sed -e"s,\\\/,,g" Apr 10 09:25:17 Blah Blupp Apr 10 09:27:09 Does anyone know of any good Asynchronous Networking frameworks? Apr 10 09:30:00 gah! when I switch from activity A to B, which both bind to my service, I get service.onUnbind() but no service.onBind() called! WTF? Apr 10 09:30:21 it should be exactly the opposite behavior Apr 10 09:30:29 hmm Apr 10 09:31:11 the async nature of the binding stuff - if its in process - is such a pita and should be burned Apr 10 09:31:39 actually I don't care if onUnbind is called or not, as long as onBind is called last. Apr 10 09:31:48 but its not called at all Apr 10 09:31:53 Ge0rG: binding in onStart() onStop () ? Apr 10 09:32:23 g00s: onPause / onResume Apr 10 09:32:32 well, thats not so good :) Apr 10 09:32:47 move to onStart / onStop and see if that helps Apr 10 09:32:55 g00s: why? Apr 10 09:33:17 how can i make the buttons and texts go below the phone screen when screen is small compared what i have designed for? currently the button remains at above the bottom border of phone screen. i want it to go down automatically. Apr 10 09:33:19 i should be able to answer that very quickly - but i'm forgetting Apr 10 09:33:27 which means, i'm getting rusty Apr 10 09:33:47 Abhijit: put it all in a ScrollView? Apr 10 09:34:31 g00s: I'm pretty sure I followed best practices here Apr 10 09:34:39 no … :) Apr 10 09:34:55 but i'm dissapointed i forgot the reason Apr 10 09:35:11 see, i've been spending too much time on iOS Apr 10 09:35:23 Ge0rG, ok Apr 10 09:35:26 hi all, I need to create an android app which can stream a radio channel, from this link: mms://89.96.234.34:8000 what can I use? Apr 10 09:35:30 ah, there it is: http://stackoverflow.com/a/2304794/539443 Apr 10 09:35:46 yeah, hackbod +1 Apr 10 09:37:19 ok, changed. compiling & testing Apr 10 09:40:16 ok, it still messes up onBind/onUnbind. PITA Apr 10 09:40:39 do I need a fucking global variable to handle that stuff? Apr 10 09:41:13 GeOrG: Silly question: have you verified that the code is actually being run? Like a toast or Log.d() something? Apr 10 09:41:45 That's bitten be in the ass more times than I care to count. Apr 10 09:42:05 rynojvr: yes, I've got Log.d in both onBind and onUnbind Apr 10 09:42:17 anyway, I'll settle for a different approach now. Apr 10 09:42:31 one that might maintain the remains of my sanity... Apr 10 09:43:50 GeOrG: I meant in the previous onResume() now onStart() to verify that the actual binding code for Activity A and B is being run. Apr 10 09:44:14 But Go for anything that maintains your sanity. Apr 10 09:45:59 rynojvr: oh, didn't think of that one, no. Apr 10 09:46:20 rynojvr: but onResume() should be called when the activity stack changes, so I assumed it would ;) Apr 10 09:49:30 i hate these weird timing corner cases. going back and looking at old code becomes difficult - reasoning about the timing of some things Apr 10 09:49:56 so many areas of android need improvement Apr 10 09:49:58 GeOrG: understandable assumption, but I've done funky things with inheritance and polymorphism of my activities, and then depending on the overrides, the behaviour isn't exactly what I expect it to me Apr 10 09:50:03 be* Apr 10 09:55:53 capella: i keep screwing up though, closing my window and losing all of my tab groups / tabs Apr 10 09:56:39 reopen in the menu -> history pulldown ? Apr 10 09:57:26 g00s: Chrome? Apr 10 09:57:56 rynojvr: FF Apr 10 09:58:00 g00s: if so, ctrl+shift+t, reopens previously closed tab, and if you closed multiple things, it'll open all, Apr 10 09:58:00 capella: its not there Apr 10 09:58:08 g00s: D: Apr 10 09:58:53 i keep thinking - i can close the window - the process is running and i'll see my groups - but no ; its a mismatch between my mental model and what FF wants to do ; and i keep losing data because of it Apr 10 09:59:15 mmm private browsing? or menu -> tools -> options -> privacy has History = never remember history Apr 10 09:59:35 hi, i am trying to add some custom contacts to the contact application. so far so good. now i am trying to add a custom data to that entry (my own id for that contact). this also worked (i think). now how do i query by this custom data? i added it like this: http://pastebin.com/LSsSVB9X Apr 10 10:00:14 capella: yeah, i'm going to have to dig through my history for the past few days , crapola Apr 10 10:00:42 Show all history should have it organized most recent Apr 10 10:01:11 yeah, but some of the tabs i opened were like a week ago, so i'm going through thousands of entries Apr 10 10:01:26 ah well, i guess i should get the session save plugin Apr 10 10:02:15 g00s: using the mobile version? Apr 10 10:02:21 desktop Apr 10 10:03:59 i dont understand why its not in that History -> Recently Closed Windows thing though Apr 10 10:04:05 ah ... on our mobile version we removed the main menu Quit option and made people sad ... i hacked up a little add on to put it back :D Apr 10 10:04:06 older ones are Apr 10 10:04:06 https://addons.mozilla.org/en-US/android/addon/quitnow/ Apr 10 10:04:08 woohoo ! got like 12,000 users ... im famous Apr 10 10:04:18 \o/ Apr 10 10:04:34 infamous maybe XD Apr 10 10:05:11 capella: how long does it take, when an author updates an xpi, for it to show up on amo? Apr 10 10:05:43 for example, tree style tab xpi was updated, but amo shows the old one. i guess somebody is auditing it? how long ? Apr 10 10:06:00 initially you can get up in a day or so as experimental, couple weeks for review to full status, updates get reviewed faster after that Apr 10 10:06:32 but the update shows almost immed as experimental Apr 10 10:07:19 thats weird, yeah, it still shows one from a while ago Apr 10 10:08:14 maybe talk off to the side, but s/b almost immed ... yours? Apr 10 10:08:38 s/b ? Apr 10 10:08:58 I bumped a new version and it was up in an hour Apr 10 10:09:04 oh no, not mine. tree style tab Apr 10 10:09:31 its up as experimental? or its not there and you think it should be? Apr 10 10:10:14 unless it was rejected ... Apr 10 10:14:16 How do i run a loop in a background loop? is it safe to do a while(true) {...} Apr 10 10:14:29 do0ob: generally, no. Apr 10 10:15:23 do0ob: if it is long running, make it a service, and use events / handler for the timing. if you really need a while(true) loop, spawn a thread from the service Apr 10 10:15:42 if you do that, you better have a break , and something that suspends the thread Apr 10 10:16:07 yield / wait Apr 10 10:20:59 its a background service that will update outdated items in a database Apr 10 10:21:22 so it will take one at a time, do some processing and update the database Apr 10 10:21:54 but if i put it in a while(true) {...} how do i stop the service? Apr 10 10:27:43 hi guys Apr 10 10:28:03 hai Apr 10 10:28:11 hi Apr 10 10:28:24 I'm building a server for an android based game and was wondering if anyone knew any good reas to help me out Apr 10 10:28:30 reads*\ Apr 10 10:28:48 I want to support thousands of users Apr 10 10:28:55 possible tens of thousands Apr 10 10:33:34 go for the big leagues, 10s of zillions !!! Apr 10 10:34:56 Hello guys, I'm starting developing an app for platform android 4.xx and higher. Is this swipe feature already built in on these platforms? Or should I still add the library support v4? Apr 10 10:38:21 the eclipse shows another dimensions for phone screen and when the emulator is run with real size screen it shows another screen size. help please Apr 10 10:38:46 hi there Apr 10 10:40:17 is there a channel dedicated to developing for the sony smartextensions api? Apr 10 10:40:41 i doubt it Apr 10 10:40:53 maybe a forum if you're lucky Apr 10 10:57:24 hrm, I highly doubt it Apr 10 11:05:13 Another question, do I need to use library support v4 to use the ViewPager on ICS and above? Cause I start getting mismatch error between native ICS Fragment and android.support.v4.app.Fragment. Apr 10 11:05:28 Does an intentservice have a queue limit? Apr 10 11:05:50 i need at least 3000 Apr 10 11:06:29 LOL JUST CHECK THE SOURCE CODE BRO! Apr 10 11:06:34 do0ob, what are you trying to do? Cause you might make a design mistake. Apr 10 11:06:49 hi, i am trying to add some custom contacts to the contact application. so far so good. now i am trying to add a custom data to that entry (my own id for that contact). this also worked (i think). now how do i query by this custom data? i added it like this: http://pastebin.com/LSsSVB9X Apr 10 11:07:46 Number5: I have a database filled with rows which will need updating, so i want a background service to take a row, do stuff and update that row, so i'm extending an IntentService and passing all the row ids to it to process Apr 10 11:08:20 do0ob, so...? Apr 10 11:08:34 is that a good way to do it? Apr 10 11:08:43 can i do it a better way? Apr 10 11:09:02 it's possible Apr 10 11:10:16 the only other way i could think to do it was to put a while(true){...} in the startService method of a service, but how would it know when to exit Apr 10 11:11:54 do0ob, I think you first study Service component, to get a better picture of what it's doing. Passing an object a list of objects is not something difficult. Apr 10 11:13:45 Number5: i can do it, but i'm wondering if the queue length is limited Apr 10 11:13:46 C u later guys, gotta break. Apr 10 11:13:57 Number5, if you use support fragments, you need to use support viewpager Apr 10 11:14:40 Zharf, I mean I use support viewpager, but does exist a native viewpager for ICS? Apr 10 11:15:17 Because I use support viewpager, the lib forces me to use support fragment, which I rather don't want it. Apr 10 11:15:56 do0ob, just try it and you'll see. I mean 3000 integers is not something you have to be afraid of. Apr 10 11:16:51 Number5, ah, good question Apr 10 11:17:00 I don't see one in docs... Apr 10 11:17:50 Number5, http://stackoverflow.com/a/9958041/857853 Apr 10 11:18:04 Number5: great, thanks Apr 10 11:46:39 Zharf, I also read that, but another problem arises if you want to use PreferenceFragment, cause support v4 doesn't provide PreferenceFragment. Apr 10 12:26:16 hi all, I need to create an android app which can stream a radio channel, from this link: mms://89.96.234.34:8000 what can I use? Apr 10 12:28:56 bau: VLC? Apr 10 12:30:19 joar: I need to create an app which can stream that radio channel, not using other programs Apr 10 12:32:00 bau: http://stackoverflow.com/questions/2097938/is-it-possible-to-use-mms-to-stream-internet-radio-in-android Apr 10 12:32:06 google is a bitch Apr 10 12:35:32 sometimes you just can't figure out the right keywords Apr 10 12:38:00 agreed. I used "android development stream mms" Apr 10 13:02:36 I'm starting to convert a php app, it's been awhile since I've used java. I'm tring to return an array I get from json in onPostExecute in AsyncTask. Is that going to work or do I need to do all the array processing and ui manipulation in the onPostExecute? Apr 10 13:04:04 you can return a string Apr 10 13:04:51 Drognan: you can return arrays, ArrayLists and others Apr 10 13:05:14 cool, I'll try some more then Apr 10 13:07:39 what are the variable types in <> after AsyncTask for? Apr 10 13:09:11 nevermind Apr 10 13:13:30 joar: mediaplayer does not support mms streaming, in fact I can't use that code Apr 10 13:19:41 how can I import vitamio plugin (library) in my eclipse project? Apr 10 13:27:40 any pointers whats the best approach to send several message between two devices over NFC ? Apr 10 13:28:31 bau, go to your classpath, add an external jar, and export this jar with your project (usually) Apr 10 13:40:04 i love android Apr 10 13:40:12 it's the best mobile target ever Apr 10 13:40:51 :) Apr 10 13:46:02 If I have a broadcast receiver that is registered in onCreate of my Service and unregistered in onDestroy (it is stored in a member variable in the Service), can I safely store stuff in the broadcast receiver assuming that if the Service is killed than the broadcast receiver will be killed too? Apr 10 13:46:35 I guess my main question is, if Android forcefully terminates my Service so that onDestroy is not called, does my BroadcastReceiver stick around? Apr 10 13:47:23 what kind of broadcastreceiver, manifest or registered Apr 10 13:47:38 and usually, it's considered a receiver leak Apr 10 13:47:43 if the latter Apr 10 13:48:06 it takes me 2-3 days to reconfigure eclipse after i checked out on a new machine Apr 10 13:48:09 oh, if your service is destroyed but ondestroyed is not called, your process has been killed Apr 10 13:48:10 registered in onCreate and unregistered in onDestroy (it is for the battery changed intent, which cannot be done in the manifest) Apr 10 13:48:35 if your process has been killed, all resources are freed Apr 10 13:48:40 pfn: so it would be safe to assume that if that happens, the broadcastreceiver is also toast Apr 10 13:48:45 yes Apr 10 13:48:49 okay that's what i was thinking Apr 10 13:49:20 every time i try to start my intentservice it crashes my app Apr 10 13:49:21 mmmm, morning espresso so yum Apr 10 13:49:26 do0ob, so fix the crash Apr 10 13:49:55 I'm trying to optimize me app that collects battery stats - I built it assuming that the battery changed intent would only fire when the battery level changed, but either new devices or new Android version or both - it has started firing for temperature/voltage changes so it fires like every 5-30 seconds or so Apr 10 13:49:56 i have no idea why it crashes, it crashes after the onCreate but before the onHandleIntent, with a nullpointerexception Apr 10 13:50:14 nullpointer exceptions are always obvious Apr 10 13:50:20 fix the null pointer and you're done Apr 10 13:50:31 so, i'm not going to do any more android development ;_; Apr 10 13:50:34 So my only recourse is to cache the stats in the broadcast receiver and stop processing as early as possible to minimize the work done Apr 10 13:50:35 my new job doesnt require it at all Apr 10 13:51:04 my typical dayjobs have not been in android at all Apr 10 13:51:12 I quit my dayjobs to take android contracts :-/ Apr 10 13:51:14 when I could Apr 10 13:52:47 pfn, android has been a small part of my job here, but it allowed me to work in the NDK which is great Apr 10 13:53:58 kaneda^, no personal projects? :) Apr 10 13:54:13 Zharf, i've spent all my personal project time working in python/django and now i'm learning ruby Apr 10 13:54:26 i wrote a custom blog cms and some custom auth stuff Apr 10 13:54:43 I'm spending all my personal project time on xmms2-android and client library for it Apr 10 13:55:09 it's the reason I only get 3-5h sleep almost every night :p Apr 10 13:55:23 yah, if i get less than 6hrs sleep i'm like a zombie and i dont function properly Apr 10 13:55:23 * do0ob wonders why the intent is null Apr 10 13:55:40 I need at least 8.5h to function properly Apr 10 13:55:43 preferrably over 10h Apr 10 13:56:14 10h is too long Apr 10 13:56:21 not for me Apr 10 13:56:24 if i sleep for 10h i feel hung over Apr 10 13:56:25 I like to sleep Apr 10 13:56:40 maybe you're not getting quality sleep Apr 10 13:56:50 :D Apr 10 13:56:54 i prefer 7-8 ;p Apr 10 13:57:04 I prefer about 7.5-8hrs of sleep these days Apr 10 13:57:20 although most days, I'm getting a 6-7 since I have to get up early for conference calls Apr 10 13:57:56 this makes no sense Apr 10 13:58:24 an intent defines the service to start, so how can it be null when it gets to the started service Apr 10 14:06:54 i feel silly now Apr 10 14:07:15 getLong wasn't working on the intent, which made it exit because it returned the default value Apr 10 14:08:05 I tried to move my Eclipse project over to IntelliJ and mavenise it - oh boy what a disaster Apr 10 14:08:25 mavenise? Apr 10 14:08:50 create a pom.xml to use maven Apr 10 14:09:08 i don't know what maven is Apr 10 14:09:20 what is the contact email to report copyright infringement at google play? Apr 10 14:09:36 it's a build tool with some nice features Apr 10 14:09:46 porn.xml ? Apr 10 14:09:53 if i could get it to work, heh Apr 10 14:10:03 pom Apr 10 14:14:56 is there a way to label a variable as unused? Apr 10 14:15:10 like doProcessing(int target, int _) Apr 10 14:15:27 like when you have to override a method to satisfy an interface but clearly won't use the variable Apr 10 14:15:47 no Apr 10 14:15:49 you could name it ignored Apr 10 14:15:49 :( Apr 10 14:16:09 i just wondered if the language supported it Apr 10 14:18:36 in python you can set it's default Apr 10 14:20:08 whom should I contact if my app was completely stolen and reuploaded to the play store? Apr 10 14:20:34 spobat, ??? google support i'd imagine Apr 10 14:20:59 kaneda^, right, but *where* or *how*. I can't find a valid email address or contact form. Apr 10 14:21:26 spobat, yikes, i'll look for it Apr 10 14:22:02 spobat: did you try to google for something like: google play copyright complaint Apr 10 14:22:23 that actually was the only useful thing i found: ( https://support.google.com/googleplay/android-developer/contact/takedown?rd=1 ) Apr 10 14:23:30 spobat: on that page there's the following line: "Follow this link to report an application that is infringing on trademark or copyright." Apr 10 14:23:38 spobat: sounds like what you want Apr 10 14:24:03 spobat, http://support.google.com/googleplay/bin/static.py?page=ts.cs&ts=2520903 Apr 10 14:25:42 kaneda^, i think this link is for end-users only Apr 10 14:26:04 spobat, you're right Apr 10 14:26:26 spobat, https://support.google.com/googleplay/android-developer/contact/takedown?rd=1 Apr 10 14:26:29 you could try reporting an app Apr 10 14:26:35 but you've already been there ;p Apr 10 14:33:14 I'm a newb in Java. What does the do here: new ArrayAdapter() Apr 10 14:33:40 benlieb: its a list of type String Apr 10 14:35:02 brx_: I mean more generally. When you use that while instantiating something, what does it do in Java? Is it casting? Apr 10 14:35:10 okay, thanks for helping me finding the appropriate entry. Form submitted :) Apr 10 14:35:46 looks @ java generics Apr 10 14:36:21 basically means you are saying you want to add only Stringss to the ArrayList Apr 10 14:37:01 brx_: ok tnx. Apr 10 14:37:13 Is there no java free node channel? Apr 10 14:37:22 ye Apr 10 14:37:34 try #java or ##java perhaps Apr 10 14:38:09 ##java, and i wouldnt Apr 10 14:38:23 kaneda^: why not? Apr 10 14:38:27 ye, try a beginners book first :P Apr 10 14:38:33 the ops and i had a falling out, let's just say that Apr 10 14:38:56 for some reason that room doesn't appear in my channel search... Apr 10 14:39:15 tnx for the help folks... Apr 10 14:39:25 kaneda^: thats no reason for someone else not to join the channel :P Apr 10 14:39:30 you was a naughty boy :) Apr 10 14:39:39 Is it possible to reference memory locations on Android / Dalvik? Apr 10 14:39:49 deadmund, using the NDK, i dont see why not Apr 10 14:39:55 deadmund, and using things like directalloc Apr 10 14:40:12 brx_, and i wasnt a naughty boy, the ops in there are horrible Apr 10 14:40:22 i've been banned from ##java for saying "hai" Apr 10 14:40:41 that cant be the only thing u said Apr 10 14:40:47 hai is polite Apr 10 14:40:49 brx_, look at the logs Apr 10 14:40:52 IRC ops can be pretty hamfisted Apr 10 14:40:57 KungFuHamster, exactly Apr 10 14:41:10 one of them must have been feeling especially powerless that day, that's all Apr 10 14:41:21 #iphone dev is the pettiest most rediculous troll ridden channel on freenode, fact Apr 10 14:41:50 kaneda^: But Dalvik is register based. The variables of whatever method are running are assigned to virtual registers. How is virtual memory handled? What is the NDK ? Apr 10 14:41:53 little princes of tiny kingdoms Apr 10 14:42:05 true, i see both of ur points Apr 10 14:42:18 deadmund, the NDK allows you to write bionic C/C++ and talk with java through JNI Apr 10 14:42:25 deadmund, here you can mess with memory directly Apr 10 14:42:35 kaneda^: Ahhh, NDK is the native developer kit. Yeah, of course native C/C++ can reference memory. What about the Java code? Apr 10 14:42:39 KungFuHamster, eloquently stated Apr 10 14:43:04 deadmund, again, there are direct memory allocs, which gives you a reference variable that represents the block of memory of a given type that you've just alloced Apr 10 14:44:25 kaneda^: So, there is an API for this which I assume calls either c/c++ or linux system calls. Is this correct? Apr 10 14:44:58 deadmund, http://stackoverflow.com/a/5671880 Apr 10 14:45:05 anyone know of a work around for the 4k buffer problem? I cant read the inputstream unless this buffer fills. I have gotten a suggestion to use java.nio but not sure how to code a non-blocking socket channel. Apr 10 14:45:40 thanks Apr 10 14:50:36 is this what I have been missing ? channel.configureBlocking(false); Apr 10 14:53:43 [6~ Apr 10 14:59:25 has anyone tried using html5 geolocation on the samsung galaxy note or htc flyer and had issues? Apr 10 14:59:55 code works on nexus 7, htc evo and samsung galaxy 3 III but completely fails on those two devices. Apr 10 15:03:34 any java.nio experts in here? Apr 10 15:03:54 mmoassistdev, i'm barely a NIO user, sorry Apr 10 15:10:41 looks like androidhive.info died :( Apr 10 15:14:51 I dont want to have to ghetto rig my app. =( Apr 10 15:17:35 murica Apr 10 15:23:01 anyone know of the best practices to using http client with json? Apr 10 15:23:43 anyone know how i would implement a non blocking channel to read output of "getevent" using java.nio? Apr 10 15:23:48 hello, i am getting this error while i turn to run KindleFire 2nd Gen Emulator ,other emulators are working fine . emulator: ERROR: This AVD's configuration is missing a kernel file!! Apr 10 15:24:22 spanglesontoast, i use this library: http://loopj.com/android-async-http/ Apr 10 15:25:08 makes it pretty straightforward, use the JSON response handler, make a JSONObject or JSONArray, map your stuff by hand Apr 10 15:25:14 for simple stuff it is easy enough Apr 10 15:25:57 I'd map the resulting stream or string to objects using Jackson, but that lib might ease the http part anyhow. Apr 10 15:26:39 yea, i'm considering switching from that to Spring + Jackson, but haven't done it yet. I'd start with that library though. Well tested, widely used. Apr 10 15:28:18 yeah what I'm really looking for is a tutorial that covers doing both post and get and even creating pictures from urls aswell if that makes sense Apr 10 15:30:10 spanglesontoast: that lib has an easy wrapper for binary data (i.e. images) and examples for get and post... though it's a fairly thin wrapper around httpclient.. in "raw" httpclient you'd get a stream and convert it to a bytearray for binary, string for text data, etc. Apr 10 15:30:28 If you want to learn the real thing, try some httpclient tutorials. If you want an easy wrapper, that lib seems decent. Apr 10 15:31:16 But for the json part, I'd use that lib to get a stream or string and use Jackson from there on, the json.org thing they support is quite tedious to work with. Apr 10 15:34:16 spanglesontoast, this is uploading an image with that library: https://gist.github.com/krschultz/5355679 Apr 10 15:34:35 anyone know how i would implement a non blocking channel to read output of "getevent" using java.nio? Apr 10 15:37:27 kevin_schultz: thanks that will be helpful in due course Apr 10 15:37:53 has anyone tried to ship an app with a version of webkit. But, what I mean is a version different from the phones version. I have an app that I wrote for a company, the app uses geolocation, but in some devices the geolocation isn't working. I suspect it is the webkit version that is causing the problem. So, I want to package a version of webkit and send it with my app. Apr 10 15:41:23 TheTrash: yeah I will hunt for some was just hoping someone happened to have some to hand :S Apr 10 15:42:46 emulator: ERROR: This AVD's configuration is missing a kernel file!! while trying to run Kindle Fire 2 emulator. Other emulator works fine..what seems to be the problem? Apr 10 15:45:12 ok i cant get any help here.can anyone please suggest another place were i could get help? Apr 10 15:47:12 i need an expert on non-blocking read() from an inputstream. Apr 10 15:47:12 wordToDaBird: Are you using phoneGap? Apr 10 15:47:42 csaunders: no Apr 10 15:47:53 and trying everything I can to avoid having to Apr 10 15:48:01 wordToDaBird: So it's just a webview in the app? Apr 10 15:48:14 csaunders: /nod Apr 10 15:48:26 Couldn't you include one of those JS libraries (modernizr I think) to check to see if the geolocation feature is there? Apr 10 15:48:39 you might need to provide a Javascript to Native Bridge Apr 10 15:48:55 so you can piggy back off that one if the Webview doesn't support the GeoLocation stuff :/ Apr 10 15:49:23 Or… you could just always use it :P Apr 10 15:50:01 mmoassistdev: do it in a separate thread? Apr 10 15:50:05 but, I need to get away from the default webkit version. On some phones it isn't working to do the geolocation. Which has become a rather large problem for the client. Apr 10 15:50:15 I am looking into modernizr right now Apr 10 15:50:22 wordToDaBird: I think you are sol fine sir Apr 10 15:51:03 I haven't done anything with webviews in a while, but I did bind a Java object to the webview. And you could call it from within JS Apr 10 15:51:44 I kind of figured I was, I have spent a week on this already. But, I need a solution. Client needs the location services to work, it is paramount. The part that is annoying is this is such a small part of the app. Apr 10 15:51:56 But, they require that it work for "all" devices. Apr 10 15:52:05 wordToDaBird: lawl, that blows. Apr 10 15:52:29 do the devices have geolocation available at all (i.e. actually on the device) Apr 10 15:53:06 and has the user enabled geolocation (ie is this a test device or a real-world report) Apr 10 15:53:16 wordToDaBird: http://stackoverflow.com/questions/5923282/binding-javascript-code-to-android-code Apr 10 15:53:17 fuck if I know, QA is in India so it's like pulling teeth to get an answer from them about anything. I asked 3 days ago to get me webkit version numbers and they still haven't said jack Apr 10 15:53:35 wordToDaBir: http://labs.mwrinfosecurity.com/blog/2012/04/30/building-android-javajavascript-bridges/ Apr 10 15:53:37 hell did the device just not have a gps signal. :P Apr 10 15:53:40 testing, testing, testing :P Apr 10 15:54:07 hard to test when you don't have the device, the devices I do have it works which is why this is even more annoying. Apr 10 15:54:12 wordToDaBird: I think you just need to assume that for whatever version of webkit the device has you won't be able to get access to the geolocation services from within the webview Apr 10 15:54:54 but then I have to bridge back to the server for the webview's session. Do-able but a line of thought/work that does not exist. Apr 10 15:55:59 Guys, I'm about to make custom adapter by extending CursorAdapter. But, the documentation said it is deprecated. And now I can't get how cursorAdapter works :| Apr 10 15:56:14 wordToDaBird: what do you mean? You could just make the binding a sort of service that returns geolocation data Apr 10 15:56:35 can anyone please suggest another place were i could get help because noone here can help me. I need an expert dealing with inputstreams/outputstreams. Apr 10 15:56:40 so in JS it just looks like you are calling some functions Apr 10 15:56:40 Can anyone help with my error here? http://pastebin.com/3CqSxTAb Just trying to return the json string Apr 10 15:57:14 mmoassistdev: your question isn't the most helpful. What do you mean you need help dealing with streams? Apr 10 15:57:30 mmoassistdev: If you are reading from a file/URI it's going to block Apr 10 15:57:47 onPostExecute() shouldn't return anything Drognan Apr 10 15:57:56 mmoassistdev: Do it on a separate thread or something Apr 10 15:57:56 it's void onPostExecute() Apr 10 15:57:58 im trying to get the output of "getevent" but every method i use blocks and i have to ill the buffer first. Apr 10 15:58:16 How should i go about getting the json string to the json function? Apr 10 15:58:40 emulator: ERROR: This AVD's configuration is missing a kernel file!! Getting this error while trying to run Kindle Fire 2 emulator.any help plsother emulators works fine. Apr 10 15:59:13 im doing the read/write in the same thread but is seprate from the ui thread is this a problem? Apr 10 15:59:50 Drognan: you say you want to return 3 strings, not any number of strings Apr 10 16:00:13 im using extends AsyncTask so I assume im doing all of this in another thread Apr 10 16:01:03 Guys, I'm about to make custom adapter by extending CursorAdapter. But, the documentation said it is deprecated. And now I can't get how cursorAdapter works :| Apr 10 16:01:39 can anoyne please tell me what should I use for replacing cursorAdapter? Apr 10 16:02:23 xviv, cursoradapter is not deprecated Apr 10 16:02:25 http://developer.android.com/reference/android/widget/CursorAdapter.html Apr 10 16:02:28 one constructor is Apr 10 16:02:58 i generally use CursorAdapter(context, cursor, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER) Apr 10 16:03:21 but they definitely are not deprecating cursoradapter Apr 10 16:03:30 wait, can you repeat your answer please? because my bad internet connection :| Apr 10 16:04:38 has anyone else goten stuck on something for more than 3 months and loose thier mind trying to figure it out. I dont wana feel alone lol Apr 10 16:05:28 generally no Apr 10 16:05:50 if you got stuck on something for 3 months, it's time to quit Apr 10 16:05:56 xviv, cursor adapter is not depreaced Apr 10 16:06:10 unless you're some researcher that is trying some experiments Apr 10 16:06:11 only one constructor and the AUTO_REQUERY flag Apr 10 16:06:22 in the other word, I still could extending cursorAdapter with 3 variable Apr 10 16:06:32 * xviv is strugling with bad internet connection Apr 10 16:06:38 lol atleast you have given me somewere to start but i dont understand how i use a socket in my own app Apr 10 16:06:47 oh dear Apr 10 16:06:48 :p Apr 10 16:06:49 the socket is not connection to a web serve Apr 10 16:06:51 xviv just look at this I said it a couple times: https://gist.github.com/krschultz/5355996 Apr 10 16:07:33 kevin_schultz, sorry, i don't see it at the first time. Off to check it. Thank you! Apr 10 16:09:56 just a quick question before i waste time going down the wrong path. UI designer gave me a design where the ActionBar tabs are used as selectors, such that multiple can be selected at a time, instead of using them as true tabs... like a series of toggle switches... is that possible or will the tabs not allow more than one to be selected/"lit" at a time? JakeWharton you are the resident actionbar expert.... Apr 10 16:10:06 all the examples i read show the socket connecting to a server. I just want to read from a stream within my app that is not blocking. IT does not seem like to much to ask for. Apr 10 16:11:01 mmoassistdev: reading from a stream is blocking unless you do it asynchronously Apr 10 16:11:13 speakingcode-wor, i would push back on that one. afaik you can only select one at a time, and even if you make it work, android users are going to hate that Apr 10 16:11:37 ive set a background for preferenceactivity that is not compatable with dark text / checkbox's or dividers. does anyone know how to change the colours of the dividers/checkbox's ive managed to find the font override? Apr 10 16:11:53 here is my hehader for the thread that reads the stream. static class LongRunningIO extends AsyncTask Apr 10 16:12:05 [OFF TOPIC] Am I the only one who disconnected for several times because I think my internet is just fine http://i.imgbox.com/acdEOA4F.jpg Apr 10 16:12:10 so wouldnt ti be doing it asynchronously? Apr 10 16:13:01 kevin_schultz: yeah, that was my thinking. any suggestions on an alternative? I'm _not_ a UI wizard. Need a series of toggles, and the number of options will grow over time Apr 10 16:13:33 i have everything implemented right to read from the stream. asynchronously Apr 10 16:13:39 mmoassistdev: yeah if you're implementing and using your AsyncTask correctly it will be async Apr 10 16:14:21 does anyone know (i cannot figured it out!) if there's anyway to check if a subscription is still valid for a user if i have purchase and subscriptionid? Apr 10 16:14:28 xviv: happens sometimes for one reason or another Apr 10 16:14:29 speakingcode-wor, not sure Apr 10 16:14:30 im trying to read the output of "getevent" but i only get output if the buffer fills Apr 10 16:15:32 kevin_schultz, So I should use CursorAdapter(Context context, Cursor c, int flags) ? Apr 10 16:15:39 witch means i only get output when 4k bytes at a time it blocks if this 4k is not filled Apr 10 16:17:36 does everyone atleast see the problem im having and understand it? Apr 10 16:18:02 xviv yes Apr 10 16:19:53 "getevent"s stream never ends so how can I force it to end so that it returns -1 Apr 10 16:19:54 kevin_schultz, So I should use CursorAdapter(Context context, Cursor c, int flags) ? Apr 10 16:20:17 is it possible to add a (socket) handle to android's event loop? Apr 10 16:20:23 * xviv flip his table because his bad internet connection. Apr 10 16:20:52 xviv, yes exactly Apr 10 16:21:41 boy is this nio stuff overengineered :/ Apr 10 16:22:06 for example if i do- getevent | grep eventx -c 10 it will output the first 10 lines without blocking. but since getevent by itself does control how many lines to read it will just keep outputting forever Apr 10 16:22:18 kevin_schultz, Thank you zillion! I will try to google some usage example. Apr 10 16:22:52 xviv, no problem Apr 10 16:23:25 really all you have to do is override newView and bindView Apr 10 16:23:29 girishr you are telling me i been stuck on nio forever Apr 10 16:23:45 newView inflates the layout, bindView sets the values from the cursor Apr 10 16:25:49 what is the suggested pattern for navigating to different activities Apr 10 16:25:59 startActivity(..) Apr 10 16:26:12 evanc: no i mean UI pattern Apr 10 16:26:19 keys and keystores: im i understanding right that i need all apps with one keystore but different keys for each app. Apr 10 16:26:43 like, a main menu activity is not the preffered pattern, but what is? i don't like the swipe-out-from-the-side navigation menus Apr 10 16:27:04 mmoassistdev: do you know if i can actually use nio selector with android's event loop ? ie i want to use the selector in the main thread and have some callback called when a socket has some activity ? Apr 10 16:27:30 i don't want to create a separate thread for the selector Apr 10 16:27:47 speakingcode-wor: there a giant design section on d.android.com Apr 10 16:28:30 JakeWharton: yeah but it's hugely vague, doesn't suggest anyhting for 'main navigation' Apr 10 16:28:51 im the last person you want to ask a nio question. That is why i am here to get my own nio answer. But im sure you will have to create a separate thread for the selector Apr 10 16:29:03 http://developer.android.com/design/patterns/app-structure.html Apr 10 16:29:59 you should also watch all of the 'Design in Action' YouTube videos Apr 10 16:30:32 getting kernel file missing while i try to run the emulator Apr 10 16:30:52 mmoassistdev: So wait, you are reading from a stream that is constantly spewing data? Apr 10 16:30:58 mmoassistdev: and you want to stop at some point? Apr 10 16:31:31 yep Apr 10 16:31:41 what are the conditions to stop reading? Apr 10 16:32:03 mmoassistdev: looks like :( this is crazy. all i have to do in normal world is create a socket handle and put it in ui thread's eventloop. instead i have to create a thread for nio selector, then synchronize messages between the ui thread and selector thread.. thank you meaningless abstractions Apr 10 16:32:03 i detect when user lifts finger off screen Apr 10 16:32:23 you should probably just read the data and quit when you are happy with what you have. Apr 10 16:32:25 meh i've read all this. it still doesn't answer the question. i have X many feature screens. what's the best way to allow a user to go from any of those to anotehr? having a main menu screen requires the user to go back to it to go from a to b. other pattern is the slide-out menu such as in facebook app, which i find detestable Apr 10 16:32:31 then when that even happens send it via a handler or something Apr 10 16:33:21 every app isn't based on consuming heirarchical data and i find it annoying that these 'guides' seem to go on that assumption Apr 10 16:33:23 handle it in your class, though I think your async class will die Apr 10 16:33:24 yea but like i said i need to fill the 4k buffer to get output. so say i tap the screen getevents output does not fill this 4k buffer cuz it was just a tap on the screen Apr 10 16:33:46 then say you need more data... Apr 10 16:33:59 or just use that tap data and secure random to generate your own 4K bytes work of data Apr 10 16:34:29 worth* Apr 10 16:35:01 does anyone know (i cannot figured it out!) if there's anyway to check if a subscription is still valid for a user if i have purchase and subscriptionid? Apr 10 16:35:07 so if i don't want my user to have to traverse back to a 'main' or top level screen to get from one feature to another, is ther a preffered pattern, besides the slide-out menu Apr 10 16:35:10 speakingcode-wor: you're telling us almost nothing and expecting a specific answer Apr 10 16:35:26 there is no magic pill or recipe Apr 10 16:35:40 download the top 1000 apps, try them out, figure out what you like, and apply it to your app Apr 10 16:35:58 i'm not asking for a magic pill, i'm asking if there is a preferred pattern Apr 10 16:35:59 discarding any which have a back button in the top-left of the screen Apr 10 16:36:19 speakingcode-wor: preferred pattern for what? you are telling us nothing about your app Apr 10 16:36:36 csaunders Is there a way to fill the inputstream with fake data that way it will fill the buffer and i can just read what i need Apr 10 16:36:40 there's lists, tabs, dashboard pattern, slide-in menus, etc. Apr 10 16:36:53 ... to navigate from one feature activity to another, where they are not siblings consuming heirarachical data Apr 10 16:36:56 all have specific and very different use-cases Apr 10 16:37:14 mmoassistdev: Not that I know of… I believe inputstreams are read only Apr 10 16:37:24 speakingcode-wor: have a button, when it's clicked start a new activity Apr 10 16:37:31 exactly. so is there an element for 'high level navigation' as its intended use case, such as slide-ins, but not slide-ins, because i hate them Apr 10 16:37:38 that's all i can tell you with the information you are telling me Apr 10 16:38:03 speakingcode-wor: tab bars? *shudder* Apr 10 16:39:16 i'll make an analogy JakeWharton... the d.android.com website has three links at the top for Design, Develop, and Distribute.. no matter where I am in the site i can always easily jump to another section via those links. I want the equivalent of that ,but in a tasteful way for a phone app Apr 10 16:40:04 mmoassistdev: so you are reading from a buffer. Before or after (dunno that's a decision for you to make) you read more data check to see if the end tap event has happened Apr 10 16:40:12 if it has you know that you are done reading your buffer. Apr 10 16:40:14 here is the only solution i have so far so tell me what you think. User wants to record just a tap on the screen. so they tap screen. then my app will detect finger lifting off screen and the promt user to tap screen till buffer fill and the read() does not block. Apr 10 16:40:57 if there is not a prefered pattern for that, so be it, i'll accept that answer... just curious if there is one Apr 10 16:41:02 then dunno… have a function like ensures_enough_buffer(current_buffer) that will always spew out the 4K buffer Apr 10 16:41:29 I thought that if you pass in a buffer to inputstream.read it will fill the buffer to the best of it's ability and return with the number of bytes read Apr 10 16:42:16 csaunders: I think the problem is that it will fill to full or EOF - but it'll block if the input blocks Apr 10 16:42:19 speakingcode-wor: apps don't tend to have something that equates to headers for instant high-level context switching. hence the reason the slide-in menu became so popular. something like a persistent header would make a lot more sense on a tablet UI but for phones when you click on something inside of a section the entire view usually pushes in requring a back/up to return Apr 10 16:42:40 in my case i dont get output unless 4k data is in the inputstream Apr 10 16:42:47 you could use something like a collapsed action bar with three tabs where re-selecting a tab takes you to the "top" of that section and a different tab context switches Apr 10 16:43:07 the real answer, I would say, is not to use buffered data if you don't want to deal with buffers... Apr 10 16:43:24 Leeds: haha, that would work too Apr 10 16:43:28 i must to complete my app Apr 10 16:43:37 why must you? Apr 10 16:43:42 Leeds: So just byte omnom = inputstream.read() Apr 10 16:43:46 ? Apr 10 16:43:51 csaunders: yup, something like that Apr 10 16:43:58 lol i have not tried that Apr 10 16:44:06 i have only tried with a buffer Apr 10 16:44:27 so you've spent hours fighting with buffers and didn't consider... not using a buffer Apr 10 16:44:31 I don't know how slow that is though… might be fine for something like that, but when I was using it for files it was rather slow Apr 10 16:44:33 of course there are other implications Apr 10 16:44:34 haha Apr 10 16:44:56 also, my fingers keep wanting to type buggers :) Apr 10 16:45:10 mmoassistdev: Or couldn't you just decrease your buffer size and append all this data to a buffer you keep internally? Apr 10 16:45:29 mmoassistdev: that is to say, do you have something like byte[] someBuffer = new byte[0x4000]? Apr 10 16:45:43 at this point i dont care about speed i just want to get all data that is in the inputstream at the time of read(). I dont care if there is more data after that Apr 10 16:45:43 or whatever it is? Apr 10 16:45:58 JakeWharton: thanks. thats the kindo f response i was looking for. the slide-in pattenr makes the most sense but i don't like it beucase 1.) there is usually no way to know it's there unless the user curiously tries and 2. this particular app is based on lots of map visuals and slide-ins plus touch-aware map sounds like a nightmare Apr 10 16:46:01 My daily installs are tapering off... Apr 10 16:46:17 does anybody know offhand which Android version added support for `adb shell am force-stop`? Apr 10 16:46:24 when it works yest im using a byte array and converting it to string Apr 10 16:46:27 ...I wonder if it is because people are waiting to buy the Galaxy S4 or HTC like I am Apr 10 16:46:42 mmoassistdev: try working with a smaller byte array? Apr 10 16:46:45 ...daily installs slowed in December for me then exploded after Christmas Apr 10 16:46:53 mmoassistdev: can you just gist the code that does this? Apr 10 16:47:29 jonp, i think honeycomb Apr 10 16:47:35 speakingcode-wor: i hate the pattern too, but sometimes I can see its use. It definitely has its problems (but so do list, tabs, etc.). It's really finding a balance for what works with your app. You are also free to go totally off the rails and try something new but it might not feel natural on Android Apr 10 16:47:42 kaneda^: thanks Apr 10 16:48:44 JakeWharton: I may try to just have a dropdown on the action bar, via na action provider Apr 10 16:48:56 regardless of the size of byte array i use i still need to fill the full 4k internal buffer before i can get output end of story Apr 10 16:50:22 mmoassistdev: why does it need to be 4K? What I'm understanding is that the users are touching long enough or something. Apr 10 16:50:38 Why not just show a progress bar and be like "keep tapping the screen squire" Apr 10 16:50:51 csaunders: it needs to be 4k because mmoassistdev is loading the data into a buffered input stream with a default 4k buffer Apr 10 16:51:14 see i think leeds understands Apr 10 16:51:31 I was understanding the buffer as a raw byte array Apr 10 16:51:40 So you are using a BufferedInputStream? Apr 10 16:52:15 no im using datainputstream but bufferedinputstream works the same Apr 10 16:53:18 then i use stringbuilder to convert to text Apr 10 16:53:33 that works but i must fill this 4k buffer before i get the output Apr 10 16:53:45 and that is my problem Apr 10 16:54:39 as a seperate item, I need a "list" of checkboxes/toggles of some sort to activate/deactiviate different layers on a map view... JakeWharton would an actionprovider be an appropriate mechanism to hold such a list? or do you think an options menu with showAsAction would be better? thnx again Apr 10 16:55:11 mmoassistdev: you construct a DataInputStream from an InputStream... Apr 10 16:55:15 you can probably just use a submenu with checkable items and a normal action item Apr 10 16:55:26 or presumably in your case, from a BuggeredInputStream Apr 10 16:55:30 is there no ByteArray in java? in which i can do indexOf and such ? Apr 10 16:55:37 oh, that sounds straightforward. let me look that up, thanks Apr 10 16:56:54 mmoassistdev: if you can get away from whatever it is that is requiring the buffer Apr 10 16:57:07 i.e. if oyu are using a buffered input stream, stop. Apr 10 16:58:16 just use an InputStream and interact with it directly if you can… then you have full control over the data Apr 10 16:59:08 ok i gota run I thank you all for you trouble shooting help. Apr 10 16:59:08 JakeWharton: is it possible to define custom layouts for the submenu items, so to add a checkbox or something to indicate on/off, for instance? i'm only familair with being able to set elements with icon, name, Apr 10 16:59:19 mmoassistdev: If you are back, show source code Apr 10 16:59:38 speakingcode-wor: no, but items can be checkable Apr 10 16:59:39 1s Apr 10 16:59:46 ok if i see you when i get back ill show source code k Apr 10 16:59:51 i gota run see yas Apr 10 16:59:54 mmoassistdev: kthx Apr 10 16:59:55 and thank Apr 10 17:01:15 Leeds: Is that an aspect of BufferedInputStreams? That they block until the buffer has been filled? Apr 10 17:01:43 Looking through the source now... Apr 10 17:02:04 I dunno :) Apr 10 17:02:06 Tbh, I've rarely used BufferedInputStreams… I just use the raw stream :/ Apr 10 17:03:45 mm, i have to put my own morris-pratt indexOf algo to search in a byte []. this seems so wrong Apr 10 17:04:18 speakingcode-wor: https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/styled/res/menu/main_menu.xml#L42-54 Apr 10 17:04:25 except don't use "single" as the checkable mode Apr 10 17:04:38 Leeds: ¯\(°_o)/¯ Apr 10 17:05:08 speakingcode-wor: http://developer.android.com/guide/topics/ui/menus.html#checkable Apr 10 17:06:05 What do you call those things that pop up when you first run an app and act as a user guide? Apr 10 17:06:13 is there a ready made library for that? Apr 10 17:06:15 girishr: what about Collections? Apr 10 17:06:31 girishr: They have some search stuff in there… though I don't know if that's what you are looking for or not Apr 10 17:06:42 the alternative would be a sliding layout i would have to manually design Apr 10 17:06:58 csaunders: i just want to search inside a byte []. Apr 10 17:07:04 do0ob: uh, ViewPager? Apr 10 17:07:13 csaunders: i get bytes from InputStream. now how do i search inside it? Apr 10 17:07:33 this seems like java 101 questions :/ Apr 10 17:07:49 you can't search a stream Apr 10 17:07:57 you can collect a stream's data and search that Apr 10 17:08:17 Use guava? http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/primitives/Bytes.html Apr 10 17:08:34 JakeWharton: i'm talking about the activity overlay like thing which tells what is what Apr 10 17:08:39 at least for searching the resulting byte array Apr 10 17:08:42 sure, i cannot search a stream. but i want to: Apr 10 17:08:51 stream.read(bytes, 0, 100); Apr 10 17:09:04 now i want to bytes.indexOf('foo') Apr 10 17:09:12 do0ob: dialog with translucent background Apr 10 17:09:42 String.new(bytes).indexOf("foo") Apr 10 17:09:51 or whatever Apr 10 17:10:02 dunno… I'm all thrown off from writing all this ruby these days Apr 10 17:10:05 csaunders: that link looks like exactly what i want. but i wonder why this is not part of coe java ? Apr 10 17:10:12 new String(bytes, "UTF-8").indexOf("foo") Apr 10 17:10:16 converting to string is a performance hit Apr 10 17:10:19 (new String(bytes)).indexOf("foo") Apr 10 17:10:20 JakeWharton: oh, i guess i have to do it all myself Apr 10 17:10:29 searching bytes is not the same as searching a string Apr 10 17:10:50 i was hoping for a library with stuff like the circles, lines and arrows built in Apr 10 17:11:13 girishr: Dunno… but it'll only help you find the index of a single byte Apr 10 17:11:24 oh wait… disregard that… there's one for an array Apr 10 17:11:53 csaunders: right :) indexOf(byte[] array, byte[] target) Apr 10 17:11:59 girishr: If you really don't want to write it yourself just include the guava library Apr 10 17:12:20 you can probably use proguard or whatever to strip all the crap out you don't use to keep your binary small Apr 10 17:12:40 csaunders: http://www.fmi.uni-sofia.bg/fmi/logic/vboutchkova/sources/KMPMatch_java.html works Apr 10 17:12:52 including guava so you don't have to write a nested for loop... Apr 10 17:12:55 * JakeWharton shudders Apr 10 17:13:10 but isn't this required for most networking code? it's kinda bizzare it's not part of standard libs Apr 10 17:13:35 JakeWharton: well he was saying he was going to introduce some algorithm :/ Apr 10 17:13:43 like you get some bytes from a socket, you want to check starts with a "header: " (like in http) Apr 10 17:13:57 or indexOf('\r\n\r\n') Apr 10 17:14:00 I'd just be all naive and just iterate through the array looking for crap Apr 10 17:14:17 girishr: you'd put it into a String first if you were doing anything like that Apr 10 17:14:41 why are you working at such a low-level for HTTP instead of with an abstraction? Apr 10 17:15:11 do anyone know ways to create and release shared libraries project in the market? Apr 10 17:16:30 http was an example, i was writing some custom networking code. i think i will just write it in c and use jni Apr 10 17:16:56 o_O Apr 10 17:18:15 girishr: that sounds a bit excessive Apr 10 17:18:53 csaunders: indeed :) Apr 10 17:19:57 so strings are too slow… why don't you just make some kind of stream parser or something that reads the data as it's coming in and populates objects Apr 10 17:21:34 csaunders: all scanners i found seem to work on strings Apr 10 17:22:30 then build your own scanner that works with the raw bytes. Apr 10 17:22:40 I'd just use strings… but I'm lazy Apr 10 17:26:20 Guys, if I want to set OnItemClickListener within row in my listView. Should I do it in my ListActivity or Adapter class? Apr 10 17:28:19 Guys, if I want to set OnItemClickListener within row in my listView. Should I do it in my ListActivity or Adapter class? Apr 10 17:30:36 Guys, if I want to set OnItemClickListener within row in my listView. Should I do it in my ListActivity or Adapter class? Apr 10 17:31:02 * csaunders hears an echo? Apr 10 17:31:25 Less spam Apr 10 17:32:19 xviv appears to be having a hard time with his connection or something :P Apr 10 17:32:39 hrhr Apr 10 17:32:56 Am I the only one who couldn't join this channel without dc every five seconds or six? Apr 10 17:33:12 yep Apr 10 17:33:14 :P Apr 10 17:33:24 >.< Apr 10 17:38:12 my asynctask is failing silently, what can i do to find the problem? i try to post to a server in the background. http://pastebin.com/VVtXcfPa Apr 10 17:43:49 wiel: Log.d and figure out where it's dropping dead Apr 10 17:44:22 csaunders were should i upload the source for you to take a look? Apr 10 17:44:42 ill post my async task Apr 10 17:47:11 dragorn, log.d the result string? Apr 10 17:47:35 wiel: Have you tried Log.d on this: response.getStatusLine().getStatusCode()? Apr 10 17:47:58 It'll probably tell you why it's failing Apr 10 17:48:14 wiel: log.d until you figure out what's failing silently. Result string is a good place to start, also before you run that to make sure your environment is set up right in the task, etc, etc. Apr 10 17:50:17 does anyone ever implemented a SUBSCRIPTION and VALIDATION by a backend server? There's no documentation about doing that -.- Apr 10 17:51:45 I'd like some advice, if possible. We've got a cross-platform game engine and we want to get it running on android. I've been porting it over, but I've been tripped up by asset management. I asked here yesterday about AAssetManager (for some reason it doesn't see assets for me, though they are definitely bundled the apk). Apr 10 17:52:07 The conclusion was largely "download stuff instead". Apr 10 17:52:33 So I'm looking at what I need to do to call DownloadManager from jni. Apr 10 17:52:45 My question is: is this sane? Should I be doing this differently? Apr 10 17:52:52 nack: use APK Expansion files Apr 10 17:53:31 Is there documentation for using those from native code? Apr 10 17:53:48 MroiZo, no, Im going to try that right now Apr 10 17:54:29 nack: you can always, with difficulty, call whatever you want from native code Apr 10 17:55:05 nack: you have the java environment and can look up the classes and call them to get the data loaded into your engine. You wouldn't want to do it realtime but as a startup cost it's probably not unreasonable. It's not *hard* usually to call native code, just exceptionally tedious Apr 10 17:55:06 My problem here is a combination of a short schedule and relative inexperience with java. Apr 10 17:55:17 s/native code/java code from native/ Apr 10 17:56:28 I'm an old hand with compiled languages and most of the popular scripting languages, but I've only dabbled in Java and am not yet fluent. Apr 10 17:57:12 nack, read Effective Java if you haven't already. Apr 10 17:57:16 So essentially I'm attempting to script-kiddie my way around the problem until I understand how to do it properly. :) Apr 10 17:57:33 nack: i don't have any tutorials at my fingertips and the code I was thinking I could link isn't in a public repo. Look into 'reflection' and 'calling objects from jni' Apr 10 17:57:58 I'm doing a bit of that now to get the app cache dir. Apr 10 17:58:12 And I'm extrapolating that to calling other things Apr 10 17:58:41 nack: basically you use introspection to find a class, then you find the init function, then you instantiate it by calling that and getting a jobject, then you can look for methods on that object and call them. Don't forget your parent pointer if you instantiate a child class. Apr 10 17:58:43 But the daunting thing here is more finding out what I even need to call; the language itself isn't the problem for me, it's the library. Apr 10 17:59:18 well yeah that's a secondary problem I suppose; the docs on the developer site are pretty good. I've never personally dealt with the external assets. Apr 10 17:59:49 The java docs seem decent. The NDK docs... well... Apr 10 18:00:18 At least 80% of the ndk docs seem to be inline comments in the header files. Apr 10 18:00:29 And those are pretty terse. Apr 10 18:00:52 Unless there's some resource out there I've failed to find, which is quite possible. Apr 10 18:01:19 I havent' seen a large amount of use of the ndk in public projects Apr 10 18:01:35 in theory it's possible to do a complete lifecycle w/out java now; i've never seen it done Apr 10 18:02:00 Neither have I, but that's what I'm working on. Apr 10 18:02:24 We've got a game engine here with ~40 man years of labor invested. "Port it to java" is not on the table. Apr 10 18:02:45 no, but there's a big difference between 'port it all to java' and 'pure ndk lifecycle' Apr 10 18:03:19 True, but I'm definitely trying to keep the Java part of the equation to the minimum. Apr 10 18:03:27 i've got a couple bugreport files with stack traces in the logcat that don't correspond to my code like they should. the line the stack trace is pointing to, is not remotely near (like 200+ lines off) the function it's saying the stack frame was in. i'm guessing this is due to dex optimization, or some other recompilation type thing? how can i match this up? Apr 10 18:03:37 Everything that gets ported to java is a separate code path we have to maintain. Apr 10 18:04:17 Likewise, on iOS we have some ObjC code because you simply can't do iOS without ObjC code. Apr 10 18:04:41 But it's only about 0.7% of the code. Apr 10 18:05:25 how can i create a raw inputstream seems i can only writebytes to a datainputstream. Apr 10 18:06:12 well sorry dataoutputstream is what i writebytes() too Apr 10 18:09:02 does anyone know what version the android bundle for eclipse is running? and what model like eclipse classic? Apr 10 18:10:25 i mean... i really tried by installing android adt bundle but it doenst seem like ill ever get used to it. too android oriented Apr 10 18:10:43 and im not sure if installing PDT would work correctly Apr 10 18:11:16 can anyone recommend a cross-platform solution for iOs and android? preferably free and open source? Apr 10 18:23:42 mmoassistdev1, you can write bytes to any outputstream Apr 10 18:24:49 mmoassistdev1, all outputstreams implement write(int byte) and write(byte[],off,len) Apr 10 18:25:22 ecraven, there's crap like phonegap Apr 10 18:26:41 test... Apr 10 18:27:44 hello Apr 10 18:28:45 I'm a newbie and looking for awesom REST client with JSON response. Apr 10 18:28:53 Is there any recommendation for me? Apr 10 18:29:02 just use urlconnection and gson Apr 10 18:29:43 urlconnection is async? Apr 10 18:29:56 throw it in a thread or asynctask to make it async Apr 10 18:30:54 it's exactly what I want. is there any automated rest client with that job? Apr 10 18:31:05 test... Apr 10 18:31:10 it's so simple that it's not worth writing a library Apr 10 18:31:26 Guys, if I want to set OnItemClickListener within row in my listView. Should I do it in my ListActivity or Adapter class? Apr 10 18:31:48 Okay, thanks pfn! Apr 10 18:32:01 JakeWharton: thanks a lot, was at lunch but i see those links you gave me Apr 10 18:32:44 aw, second chrome update in as many days; lost my tabs again pos Apr 10 18:32:46 Does anyone know about signing? How does signing an APK with the platform key affect the functions of the APK? Does it have system rights then? Must it be installed in /system? Apr 10 18:34:12 signing it with system keys allows it to request running as the system user and system-only permissions Apr 10 18:34:31 think i can use scanner to get the job done of reading the inputstream? java.util.Scanner s = new java.util.Scanner(is).useDelimiter("\\A"); Apr 10 18:34:40 mmoassistdev1, not a good choice, no Apr 10 18:34:46 kk Apr 10 18:34:58 I suppose it'll work for some applications Apr 10 18:35:57 pfn: But if I do not sign an APK with the platform key it still has system rights when put into /system, right? Apr 10 18:36:10 don't think so, no Apr 10 18:37:03 pfn: ok, thanks. Apr 10 18:37:17 how do i convert a List to json? Apr 10 18:37:31 use a library that does it Apr 10 18:37:39 gson is often a good candidate Apr 10 18:39:04 hi ya'll Apr 10 18:50:26 I opened an sqlite database and tried this db.execSQL("VACUUM"). App just hangs at that line now. Apr 10 18:50:31 any idea Apr 10 18:50:50 In my ListActivity, I set onItemClickListener. And get some data with something like 'tvName.getText().toString();'. But sometimes, I shrink the string because it's too long. Should I get it from something like cursor or using TAG? Apr 10 18:51:26 Manavan: Why you exec "VACUUM" directly to sqlite? Apr 10 18:52:09 xviv, I want to make the db size smaller and efficient. Apr 10 18:52:17 any other way?! Apr 10 18:52:20 Manavan: do you want insert or another query? Apr 10 18:52:49 I just want to run Vacuum and clean up the sqlite db Apr 10 18:53:04 Manavan: WHY do you want to do this? Apr 10 18:53:17 Do you have any reason to believe that you have severe performance problems that only rebuilding the database will solve? Apr 10 18:54:01 I'm very strongly inclined to believe that your performance issues lie elsewhere (poor design, etc) Apr 10 18:54:10 lov, Its a HTML5 Phonegap Hybrid App which has size limitation on db. A lot of insert and delete happen frequently. I was able to do this in IOS succesfully. Apr 10 18:54:12 I'm new in sqlite but I guess, you should pay attention at your data type in sqlite. Apr 10 18:54:30 hey JakeWharton this is about what I need, but is there a way to make the submenu NOT dismiss when the user makes a selection? I'd like them to be able to go through and toggle each one they want without the menu dismissing Apr 10 18:54:36 Manavan: that doesn't really answer the question, though. Apr 10 18:55:40 "size limitation on db". that doesn't answer your question of "Why do you want to do this"?! Apr 10 18:58:06 Manavan: So, exec("VACUUM") will shrink the db size? Apr 10 18:58:43 Manavan: android's sqlite is compiled with DEFAULT_AUTOVACUUM=1 anyhow Apr 10 18:59:07 xviv: Yes. SQLite db just keep grows even if u delete your data. Vacuum will reclaim it. We give this as an option when they reach db size limit in HTML5. Apr 10 18:59:35 g00s >> Thanks. Do you know if Sqlite in HTML5 has autovacuum turned on too? Apr 10 18:59:45 sqlite in html5 ? Apr 10 18:59:54 no - i have no idea Apr 10 18:59:56 Hya Guys, In my ListActivity, I set onItemClickListener. And get some data with something like 'tvName.getText().toString();'. But sometimes, I shrink the string because it's too long. Should I get it from something like cursor or using TAGblablabla? Apr 10 19:00:34 ya this is a hybrid HTML5/PhoneGap app where I open the html5 sqlite db and clean up at app start (if the user demanded). Apr 10 19:00:54 g00s >> May be i can query the db to see if it has AUTOVACUUM turned on? do you know how Apr 10 19:01:19 i dont think you will get much phonegap support here Apr 10 19:01:46 birbeck, I am still trying to do it on native side though. Apr 10 19:02:55 How do you center an ImageView between two TextView (as in http://stackoverflow.com/questions/15934129/how-to-center-an-imageview-with-two-textview) ? Apr 10 19:04:05 Manavan, the sqlite available from html5 should be the same as configured on the platform Apr 10 19:05:35 pfn, thanks! :) Apr 10 19:09:14 hey guys, i've ben trying to use shared preferences to stay logged into the app even after returning when the app closes http://pastebin.com/NSSLMxs8 but for some reason it doesn't work Apr 10 19:09:24 pfm or g00s >> Do you know if i have an sqlite db file How to find out if it has AUTOVACUUM on or off Apr 10 19:09:56 Manavan, that's for google to answer Apr 10 19:10:06 Manavan, otherwise, look at the source to see what the default definitions are Apr 10 19:10:08 it started to go crazy Apr 10 19:11:58 pfn >> Got it from Sqlite website :) It is query PRAGMA auto_vacuum; thanks guys! Apr 10 19:12:19 anyone Apr 10 19:19:44 where is everybady Apr 10 19:26:20 hello? Apr 10 19:27:14 shh Apr 10 19:27:20 SimonVT, hey Apr 10 19:27:28 On a Windows PC, my Android devices suddenly are not reachable via ADB anymore, although they seem to be perfectly fine recognized in the device manager. Does anyone know this phenomenon? Apr 10 19:27:36 SimonVT, i'm trying to stay logged in but it's not working http://pastebin.com/NSSLMxs8 Apr 10 19:27:47 Fix it then Apr 10 19:27:51 SimonVT, i can't Apr 10 19:28:07 is it even the right way about staying logged in? Apr 10 19:28:25 dunno Apr 10 19:28:33 oh Apr 10 19:32:34 MS Office for Android in fall 2014; i can't even begin to imagine how hard that was to port Apr 10 19:33:16 g00s, can you help Apr 10 19:33:18 pleaes Apr 10 19:33:28 coco89: probably not Apr 10 19:33:45 g00s, cos you don't know how? Apr 10 19:33:47 if anyone ever made subscriptions working on a backend server.. http://stackoverflow.com/questions/15934656/validate-google-play-subscriptions 10$ by paypal for the working answer.. Apr 10 19:33:58 coco89: i probably don't know Apr 10 19:34:12 * lov glares at misterli Apr 10 19:34:15 * lov points at the topic Apr 10 19:34:18 lov, http://pastebin.com/NSSLMxs8 Apr 10 19:34:26 coco89: yeah, good luck with that. Apr 10 19:34:30 :P sorry Apr 10 19:34:30 lov, wtf Apr 10 19:34:39 you're the one who suggested to use shared preferences Apr 10 19:34:48 coco89: your question is extremely vague. "Hey guys, here's a snippet of code. WHATS WRONG????" Apr 10 19:34:51 if anyone can solve this for free.. it would be great too ;) Apr 10 19:34:54 well, I don't know, what IS wrong? Apr 10 19:35:00 "it doesn't work" doesn't help. Apr 10 19:35:05 have you tried stepping through with a debugger? Apr 10 19:35:36 coco89: "THERE’S A SCENE in the movie Planes, Trains & Automobiles where John Candy and Steve Martin accidentally drive down the highway heading the wrong way, against traffic. Oncoming traffic swerves out of the way. Other drivers yell at them, “You’re going the wrong way! You’re going the wrong way!” Candy’s character shrugs it off. “How do they know where we’re going?” Apr 10 19:35:39 yes, well the console started to go nuts and my phone's wallpaper disappeared Apr 10 19:36:03 coco89: that sounds unfortunate but that's probably not related to shared prefs. Apr 10 19:36:26 lov, I see but i commented it all out and the app worked again Apr 10 19:36:30 one sec Apr 10 19:37:08 g00s: I like this inference. Apr 10 19:37:47 thats because your gay Apr 10 19:38:33 the code seems ok to me Apr 10 19:38:38 you're* Apr 10 19:38:44 exactly Apr 10 19:40:36 Dr_Coke: do you actually have anything to contribute to the channel? Apr 10 19:42:16 lov, this is what comes up in the console but it keeps Apr 10 19:42:37 doing it and everything freezes on my phones Apr 10 19:42:42 like it's in a loop or something Apr 10 19:42:43 http://pastebin.com/z3nJz0UE Apr 10 19:43:31 this is the code http://pastebin.com/RED342HU Apr 10 19:43:45 That's the garbage collector. you're creating and destroying a bunch of objects. Apr 10 19:44:30 Guys, what class/lib should I use for opening a file based on it's mimetype? I'll let user choose their fave app to open this file. Apr 10 19:44:37 lov, how :S Apr 10 19:45:33 coco89: this I don't know. Nothing jumps out at me, at least not at first glance, that would do this. Apr 10 19:45:47 The only possible thing would be if your response is providing you with much, much more content than you expected. Apr 10 19:46:03 oh right :S Apr 10 19:46:05 coco89: what happens if you step through this with a debugger? Apr 10 19:46:25 also, I'd strongly recommend that you not put finish() in onPause Apr 10 19:46:30 umm how do I add a slide in/out animation when switching fragments Apr 10 19:46:45 well, what if just opening a file in app that appropriate to it's mimetype? Apr 10 19:47:07 lov, oh really? and one sec i'm trying it Apr 10 19:47:13 xviv_: send off an intent for it. That's what intents are for. Apr 10 19:47:20 I think lov answer is for coco89, lol! Apr 10 19:47:30 xviv_: you can always query the packagemanage to see if anyone actually supports the mimetype, etc. Apr 10 19:47:41 and yeah, I was responding to coco89. Apr 10 19:48:04 you know man Apr 10 19:48:21 i do have something to contribute to the channel Apr 10 19:48:33 lov: wow, strange word for me. I will try to translate your answer first. Thanks, lov! Apr 10 19:49:10 xviv_: https://developer.android.com/reference/android/content/pm/PackageManager.html#queryIntentActivities%28android.content.Intent,%20int%29 Apr 10 19:49:18 lov Apr 10 19:49:39 here is what i want to contribute to you Apr 10 19:49:44 REALLY GAY! Apr 10 19:50:00 xviv_: also see http://android-developers.blogspot.com/2009/01/can-i-use-this-intent.html Apr 10 19:50:38 Thanks kevinb, Thanks lov. Off to read it! You guys are awesome! Apr 10 19:50:45 np Apr 10 19:51:37 do i generate one key per app or do i use one key for all my apps? im stuck on key name lol Apr 10 19:51:56 yes Apr 10 19:52:07 you can do it either way Apr 10 19:52:26 but if you want to transfer ownership of your apps to another organization/individual/corporation you'll want to use key-per-app Apr 10 19:59:05 and if you want to use signature permissions, you'll want to use one key for all your apps :P Apr 10 19:59:32 i've no idea what's going on :( Apr 10 19:59:44 wow. finally i made it. the scope was just wrong.. crappy google oAuth2 -_- Apr 10 19:59:53 well, if you have permissions and stuff that group your apps together, then yeah, you'll want to use a single key for those Apr 10 20:00:20 anyone? Apr 10 20:00:51 my app keeps freezing as soon as i run it and the GC goes crazy http://pastebin.com/RED342HU Apr 10 20:01:57 dude, use your httpclient in an asynctask.. Apr 10 20:01:57 lol Apr 10 20:01:59 coco89: man, format your code Apr 10 20:02:17 never use a blocking connection in a mainUI Thread Apr 10 20:02:50 misterli, a blocking connection? Apr 10 20:03:02 your UI is waiting for the http to finish Apr 10 20:03:28 coco89. Use your Blockingstuff in a thread. AsyncTask is a good choice) Apr 10 20:03:33 Zaknafein: how so? postLoginDetails is called off the UI thread as far as I can see (though this is hard to read) Apr 10 20:03:36 he's calling postLoginDetails in a thread, or am I misreading this? Apr 10 20:03:57 I mean yeah you should probably migrate to AsyncTask but still. Apr 10 20:04:14 hrm hard to read without syntax highlighting Apr 10 20:04:16 oh shit. You'r right. It's hard to read :/ Apr 10 20:04:19 yes i'm calling postLoginDetails in a thread Apr 10 20:04:33 also! Apr 10 20:04:44 but everything was working until i added the shared preferences thing Apr 10 20:04:44 15:46:15 < lov> coco89: what happens if you step through this with a debugger? Apr 10 20:04:55 coco89: I sincerely doubt that Shared Prefs are the cause of this. Apr 10 20:05:16 lov, each time i comment the shared preferences stuff out everything works like a charm Apr 10 20:05:36 lov, i've tried using the debugger and steppin gthrough but it's just blank the whole way through Apr 10 20:06:04 Is it freezing or just crashing by outofmemoryexception? Apr 10 20:07:02 coco89: do you have a ton of shit in your sharedprefs? Apr 10 20:07:15 what all do you write to it? Apr 10 20:07:23 evanc: not that i know of ? :S Apr 10 20:07:36 this shouldnt slow down. I've about 2000 preferences in my app and it's working fine ;) Apr 10 20:07:38 what do you mean "it's just blank the whole way through" Apr 10 20:08:01 why all the lov for async task over threading? Apr 10 20:08:02 misterli: yeah but what if he has binary stuff in it or something? I'm wondering if it's just taking a while to do the initial read or something Apr 10 20:08:05 uninstall the app and reinstall it. maybe you had some old code that added new shared preferences in a loop or something and you have hundreds of mb or gb of it Apr 10 20:08:08 love* woops Apr 10 20:08:38 speakingcode-wor: in this case it makes sense to use an async task since he's doing UI actions anyway in relation to his thread (the progress dialog, the run on ui thing, etc) Apr 10 20:08:46 i've never used shared preferences ever until just now Apr 10 20:09:45 oh, on android 4.2, how do I managed allowed debugging computers? I don't see a way to manage them in developer options Apr 10 20:10:31 lov, the app just doesn't appear and i'm stepping through the whole code and i'm not sure where the app breaks Apr 10 20:10:51 if it hangs, look at the stack of your app's main thread Apr 10 20:10:53 then fix Apr 10 20:11:06 or, wait for the anr, and look in /data/tombstones or whatever it is Apr 10 20:12:05 /data/anr/traces.txt Apr 10 20:12:17 what that guy said Apr 10 20:13:20 this is what happens when stepping over from setContentView to getSharedPreferences http://pastebin.com/b3BEgEiE Apr 10 20:13:23 pfn, how do i do that? Apr 10 20:13:27 lov: ah, i didn't see the context. i just generally prefer plain ole threading over asynctask b/c of portability Apr 10 20:13:55 coco89, go into ddms, click on your app, click on the threads button Apr 10 20:14:01 click on the 'main' thread in the thread list Apr 10 20:14:04 press the request stack button Apr 10 20:14:10 look at the stack where it's stuck Apr 10 20:14:12 and fix Apr 10 20:15:05 huh, where is the developer options setting page in 4.2? Apr 10 20:15:33 pfn: about phone, go down to the very bottom and tap on the last entry 7 times Apr 10 20:15:34 pfn: hidden. go to "About", then tap the build number 7 times Apr 10 20:15:37 (yes, really) Apr 10 20:15:45 wow, terrible Apr 10 20:15:52 so... how do I manage saved rsa keys? Apr 10 20:16:11 grow some pointy hair? Apr 10 20:16:25 pfn, it says thread update not available for selected client Apr 10 20:16:52 coco89, build it in debug mode Apr 10 20:16:55 not release Apr 10 20:16:59 oh ok Apr 10 20:18:32 Am I doing it wrong? because I got ActivityNotFoundException. https://gist.github.com/xqdzn/5358041 Apr 10 20:18:50 I'm pretty sure the answer is "yes" :) Apr 10 20:19:08 text/plain Apr 10 20:19:10 not plain/text Apr 10 20:19:37 hrm, so no way of managing rsa keys on-device? that's pretty terrible Apr 10 20:21:28 Thanks pfn! Apr 10 20:21:37 hmm, looks like it's stored in /data/misc/adb/adb_keys Apr 10 20:21:43 I guess that's somewhat manageable Apr 10 20:22:07 pfn, http://oi50.tinypic.com/2nbedf6.jpg i've no idea Apr 10 20:22:24 what is giong Apr 10 20:22:26 *going on Apr 10 20:23:10 coco89, that's your list of threads, and you didn't request the stack for 'main' as you were directed Apr 10 20:23:19 pfn, how do i do that Apr 10 20:23:24 click on main Apr 10 20:23:26 ... Apr 10 20:24:52 pfn, okay i've clicked on main Apr 10 20:25:20 there's juts a bunch of stuff Apr 10 20:25:38 that is how you determine what is hanging where Apr 10 20:25:41 read it and interpret Apr 10 20:25:54 pay attention to the last stack frame that contains your code, and evaluate Apr 10 20:28:18 pfn, how do i read that http://oi50.tinypic.com/vopdll.jpg Apr 10 20:28:38 by expanding the column width Apr 10 20:30:15 it wont expand Apr 10 20:30:56 i can hover the mouse over them and read them one by one Apr 10 20:31:00 but i dont even know what im looking for Apr 10 20:31:27 go up and down the stack until you find your code Apr 10 20:31:39 otherwise, just identify every stack frame and try to understand why it's doing what it is Apr 10 20:31:58 or press one of the buttons to save the stack to a text file Apr 10 20:34:48 i click on them Apr 10 20:34:53 and i'm not getting anything Apr 10 20:35:05 pfn, how am i supposed to understand what's giong on :S Apr 10 20:35:52 coco89, by reading the stack and understanding what's going on Apr 10 20:35:59 coco89, google for how to understand stack dumps Apr 10 20:36:42 i give up Apr 10 20:36:51 :( Apr 10 20:37:37 it's just way too confusing Apr 10 20:38:14 coco89: it's a pretty simple concept. That represents the call stack at that particular moment Apr 10 20:38:36 the bottom most entry is the "oldest". and each entry above that represents a method call from within the lower method Apr 10 20:38:56 you usually get the class name and even the actual line number where the call occurs Apr 10 20:39:13 is it necessary to use the v4 support lib in order to navigate up with the home button? Apr 10 20:39:14 so you can see exactly where execution is occuring Apr 10 20:39:14 at android.util.LongSparseArray.binarySearch(LongSparseArray.java:339) Apr 10 20:39:14 is the top of the stack Apr 10 20:39:48 keep stepping down Apr 10 20:40:09 you'll find your guilty code in there Apr 10 20:40:10 coco89: that isn't necessarily relevant. It's possible that, e.g. you have an infinite loop down lower, in your own code Apr 10 20:40:37 there's like 40 things Apr 10 20:41:06 that's not all that unusual. you can likely ignore the large majority of them Apr 10 20:41:13 I would look for the parts that are in your code in particular Apr 10 20:41:18 at com.nfc.goldtag.Login.onCreate(Login.java:48) Apr 10 20:42:08 and what is at line 48 in Login.java? :) Apr 10 20:43:02 setcontent view? Apr 10 20:43:21 can you paste login.xml? Apr 10 20:44:06 http://pastebin.com/Rnz7GmKR Apr 10 20:44:38 huh, okay Apr 10 20:44:57 coco89: how long does it freeze for? forever? Apr 10 20:45:00 do you have anything higher up in stack? Apr 10 20:45:02 evanc, yep Apr 10 20:45:18 and why are you using com.nfc as your package prefix anyway? Apr 10 20:45:47 you probably have something more interesting higher up in the stack Apr 10 20:45:52 or it's in a loop Apr 10 20:45:58 pastebin onCreate() Apr 10 20:46:03 pfn, at android.app.Activity.setContentView(Activity.java:1924) Apr 10 20:46:04 for (ever) setContentView(blah) Apr 10 20:46:07 coco89: do you not get a dialog (eventually) saying "So and so has stopped responding" ? Apr 10 20:46:20 coco89, pastebin the entire stack, not just line by line Apr 10 20:46:26 figure out why your view is truncated Apr 10 20:46:32 because it's not truncated when I view my own stacks Apr 10 20:47:29 pfn, http://pastebin.com/iUkTikFa Apr 10 20:48:00 evanc, nope Apr 10 20:49:44 coco89: really? It just silently hangs? Apr 10 20:49:55 evanc, yeh now it isn't even starting Apr 10 20:50:36 any chance you can post the APK somewhere? You can send me the link privately if you prefer. I'm curious about this behavior Apr 10 20:50:43 also, what device are you testing on? Apr 10 20:50:50 and samsung galaxy s3 Apr 10 20:52:10 coco89, where's onCreate's source? Apr 10 20:52:47 for that matter, do you call startActivity() anywhere? Apr 10 20:52:57 or startActivityForResult Apr 10 20:53:03 if so, you probably have it in a loop Apr 10 20:53:51 pfn, http://pastebin.com/gAjQSG8L Apr 10 20:54:12 what happens if you constantly press refresh on the stack trace Apr 10 20:54:15 does it change dramatically? Apr 10 20:54:40 pfn, yes Apr 10 20:54:56 i was wondering about that actually Apr 10 20:54:57 pastebin a few samples of what it looks like Apr 10 20:55:07 my guess, you're calling startActivity in a loop Apr 10 20:55:34 um Apr 10 20:55:35 line 55 Apr 10 20:55:46 hopefully mainactivity is not this activity Apr 10 20:56:03 and if it's not Apr 10 20:56:03 snrk Apr 10 20:56:12 yeah, coco89 can you pastebin your AndroidManifest.xml? Apr 10 20:56:15 hopefully main activity does not call LOGINACTIVITY Apr 10 20:56:16 pfn, http://pastebin.com/k4iU5BWk Apr 10 20:56:45 startActivity loop Apr 10 20:58:11 pfn, hmm main activioty does in fact call login activity if the user is not logged in because scanning an nfc tag in my app opens up the main activity so i had to do a check Apr 10 20:58:14 * evanc facepalms Apr 10 20:58:26 well-spotted, pfn Apr 10 20:58:33 well spotted pfn Apr 10 20:58:38 wait i will paste the main acitivty Apr 10 20:59:22 pfn, http://pastebin.com/LxPV6aSd Apr 10 21:00:37 but it's strange though because the main activity shouldn't be called until the user has actually logged in :S Apr 10 21:02:23 now it's up to you to figure out why your userLoggedIn variable is failing Apr 10 21:03:28 pfn, isn't this line setting it to false boolean isUserLoggedIn = preferences.getBoolean("loggedIn", false); Apr 10 21:03:29 most likely because you set the pref = true, but the Login.userLoggedIn = false Apr 10 21:03:43 ah Apr 10 21:03:46 particularly, this happens if you set the preference = true, quit; restart Apr 10 21:03:54 now: preference = true; userLoggedIn = false Apr 10 21:04:20 of course, isUserLoggedIn != userLoggedIn Apr 10 21:05:01 putting an & (ampersand) in the string for the text field of a textview is giving me this error : - The reference to entity "T" must end with the ';' delimiter. Apr 10 21:05:25 pfn, I see yeah. can't believe I missed that Apr 10 21:05:26 is there some way I can escape it or something? Apr 10 21:05:28 speakingcode-wor, read up on XML and necessary escaping Apr 10 21:05:31 pfn, thanks a lot Apr 10 21:05:32 & Apr 10 21:05:42 thanks pfn Apr 10 21:05:52 AT&T eh Apr 10 21:06:19 that's actually the value ;-) Apr 10 21:06:25 * pfn mindreads Apr 10 21:06:38 it worked fine literally in other places Apr 10 21:06:57 not in xml it won't Apr 10 21:07:11 unless you surround it with Apr 10 21:07:22 er Apr 10 21:07:31 I want to write an automated espresso timer Apr 10 21:09:16 (for machines with a vibration pump, maybe rotary pump as well) Apr 10 21:12:25 pfn depends on what you mean by hard Apr 10 21:12:30 i've done signal processing work Apr 10 21:13:23 you get the audio as raw waveform data and run statistic analyses on it, find patterns/features that match to what you're looking for. all kinds of research in that area Apr 10 21:13:53 binary classifiers are a lot easier than general ones. i.e. "is it this?" vs "what is it?" Apr 10 21:17:30 ugh Apr 10 21:17:55 when I hit home on a kindle 7 it returns to the right activity (which is a SlidingMenu activity) but the click occurs again for some reason and opens the sliding drawer Apr 10 21:18:27 Guys, can I set mimetype with "image" instead of "image/png" ? Apr 10 21:20:15 tnzr: get yourself a real Android tablet :) Apr 10 21:21:10 well it works on a nexus 10, nexus 7, asus transformer, galaxy tab and a bigger kindle Apr 10 21:21:18 oh and on a Xoom Apr 10 21:21:25 well, those are Android tablets Apr 10 21:21:27 :) Apr 10 21:21:28 haha Apr 10 21:21:41 oh, bigger kindle - heh Apr 10 21:26:34 speakingcode-wor, yeah, just something of a pain to actually codify Apr 10 21:29:26 pfn: and when your espresso is done, you can use this http://foodbeast.com/content/2013/01/24/the-iphone-coffee-holder-so-you-never-have-to-choose-between-texting-caffeine-again Apr 10 21:30:04 cute Apr 10 21:30:39 thats not real I hope Apr 10 21:32:20 but espresso isn't really sipped, so that's not an issue Apr 10 21:32:40 i need a way to carry my coffee, helmet and smoke at the same time Apr 10 21:33:14 that sounds easy, adapt one of those beer hat with straw things Apr 10 21:33:27 plumb an e-cig into one, and drop the other straw into your coffee Apr 10 21:33:50 and attach it to my helmet... then i can drink coffee and smoke while riding even Apr 10 21:33:54 brilliant Apr 10 21:34:22 i bet someone makes a badass helmet that hooks into a honda goldwing that does that already Apr 10 21:34:36 builtin bluetooth ecig Apr 10 21:34:59 if you want a 4000lb 2 wheel car Apr 10 21:35:18 old man's bike of choice Apr 10 21:40:45 pfn, I don't understand what's making isUserLoggedIn to true Apr 10 21:41:28 coco89, your preference check is Apr 10 21:42:11 which preference check Apr 10 21:42:32 the one where you check preferences.getBoolean("loggedIn", false) Apr 10 21:44:06 so that's getting a boolean from the SharedPreference object which i set to false right? Apr 10 21:44:08 haven't looked at your code but did u save your preferences at some point? Apr 10 21:44:54 I believe SharedPreference is persistent , the false is just the default if it can't be found Apr 10 21:45:18 if you ever saved it would of course be true Apr 10 21:45:27 http://pastebin.com/7fSH2095 Apr 10 21:45:29 u can test by uninstalling and trying again Apr 10 21:45:37 thanks Apr 10 21:45:40 that will help Apr 10 21:45:52 coco89, you set it true when you logged in Apr 10 21:46:09 pfn, but that's the thing when I open the app i dont even get the chance to log in Apr 10 21:46:18 because it's juts blank and freezes Apr 10 21:47:14 coco89, because you set it true on a *previous* execution Apr 10 21:47:46 editor.putBoolean("loggedIn", true); Apr 10 21:47:46 editor.commit(); Apr 10 21:47:54 yeah its been saved Apr 10 21:47:58 what are u trying to do? Apr 10 21:48:43 sounds like you want something more transient Apr 10 21:49:01 savedInstanceState parameter with onCreate I think is one option Apr 10 21:49:15 damn. http://www.net-security.org/secworld.php?id=14733 Apr 10 21:49:22 cbates, oh? Apr 10 21:49:33 pfn, the previous execution? Apr 10 21:50:26 you are saving "loggedIn" to a file on disk Apr 10 21:50:46 once its saved it will report true on the next time you start Apr 10 21:51:06 thats for persistent preference storage Apr 10 21:51:30 Hi :) Apr 10 21:52:08 oh I see Apr 10 21:53:36 coco89: previous execution = lasttime you ran the app/activity Apr 10 21:55:11 good read g00s , thanks Apr 10 21:55:39 np Apr 10 21:57:37 cbates, how do I initialise it with false Apr 10 21:58:29 SharedPreferences.Editor editor = preferences.edit(); Apr 10 21:58:29 editor.putBoolean("loggedIn", false); Apr 10 21:58:29 editor.commit(); Apr 10 21:58:44 sorry for the code post (seemed faster) Apr 10 21:59:03 if u add that to your create it should get around your issue Apr 10 21:59:19 but i looks like the wrong tool for what u are trying to do Apr 10 21:59:35 cbates, yeah but then each time i open the app it wuold be false Apr 10 21:59:40 coco89, yes, you ran it once, set it to true, it stays true until you set it to false Apr 10 21:59:57 what are u trying to do Apr 10 22:00:12 what is that variable used for Apr 10 22:00:15 cbates, i'm trying to make my app stay logged in until the user pressed log out Apr 10 22:00:35 *presses Apr 10 22:00:35 coco89: what does "logged in" even mean? Just a bit set? Apr 10 22:00:45 if that's the case, just use SharedPreferences Apr 10 22:00:53 that's what he's doing right now Apr 10 22:00:54 thanks that was my next question ;-) Apr 10 22:01:06 he just broke his logic to get stuck in a loop Apr 10 22:01:15 nice Apr 10 22:01:26 rather than setting isUserLoggedIn = pref.getBoolean Apr 10 22:01:30 lol, logged in. I have a log in page which posts the login details to a web server and gets validated and returns a boolean depending on the result Apr 10 22:01:36 just set userLoggedIn = pref.getBoolean Apr 10 22:01:41 and ditch the local boolean isUserLoggedIn Apr 10 22:01:56 ok i'll try that Apr 10 22:04:03 okay so that worked, thanks pfn Apr 10 22:04:18 i don't know why I can't think today :( Apr 10 22:04:29 I think my own code is confusing me Apr 10 22:04:38 i need to start commenting Apr 10 22:04:38 lol Apr 10 22:05:33 your code is confusing me Apr 10 22:05:44 im confusing my code Apr 10 22:07:54 as for storing login state like that... that's a pretty poor manager of security Apr 10 22:08:09 assuming you want any security Apr 10 22:15:23 pfn, now you tell me Apr 10 22:16:15 looking for a good way to store specific preferences for widgets. Would like to set transparency, color, etc as the widget is being created. Apr 10 22:16:28 pfn, what would've you suggested?? Apr 10 22:20:41 also how do I access a ahsared preference from another activity Apr 10 22:22:07 wtf, i'm grabbing a GridView with an id, via findViewById... and getting a ClassCastError (LinearLayout cannot be cast to android.widget.GridView)... howwww? Apr 10 22:22:47 did u change it from LinearLayout? Apr 10 22:22:53 u may just need to do a clean Apr 10 22:22:54 it never was a linear layout Apr 10 22:23:08 i'll try it Apr 10 22:25:45 clean worked. thanks. weirdness Apr 10 22:26:21 if i wanted to playback a video, with the frames going through a GL shader, how might i do that? Apr 10 22:26:40 yeah hit the same error last week Apr 10 22:27:19 it rebuilt your id under the covers Apr 10 22:28:29 sneaky lil bastard Apr 10 22:31:22 Hi everyone! Does anyone have any experience developing with Service Discovery for Wi-Fi Direct or Wi-Fi Direct in general? Apr 10 22:32:42 pfn, i broke my app again Apr 10 22:37:25 coco89: have you tried not breaking it? Apr 10 22:39:03 JesusFreke, maybe i shuold be a software tester? :D Apr 10 22:39:07 i just keep breaking apps Apr 10 22:45:19 http://pastebin.com/hhUQ9DSf Apr 10 22:45:24 what's happening now, it keeps freezing again Apr 10 22:46:39 coco89: you broke something again Apr 10 22:46:59 yep :( Apr 10 22:47:32 i tried implementing a logout feature in the mainactivity and set the userLogIn boolean to false Apr 10 22:47:48 everything crashed Apr 10 22:47:51 again Apr 10 22:47:57 and then i commented it out Apr 10 22:48:08 completely and it's still crashing :/ Apr 10 22:48:28 I feel like this is coco89's app: http://pastebin.com/awVQZnR1 Apr 10 22:49:38 :D Apr 10 22:49:45 not intentioanlly! Apr 10 22:50:05 *intentionally Apr 10 22:51:18 I thuoght i had fixed the logic Apr 10 22:51:21 why is it still crashing? Apr 10 22:51:34 that's not a crash, coco89 Apr 10 22:51:38 please don't throw that word aroun Apr 10 22:51:40 around* Apr 10 22:51:51 *freeze Apr 10 22:52:26 it's also not a freeze Apr 10 22:52:34 it's a startActivity loop Apr 10 22:52:47 evanc, which i commented out and should work now but doesn't? Apr 10 22:52:54 and the loop results in a freeze? Apr 10 22:52:56 the reason it's crashing is because you broke something. You said what you changed above. Try undoing that and retrying Apr 10 22:53:09 i did undo it :S Apr 10 22:53:13 hmm Apr 10 22:54:09 coco89: instead of programming by guess-and-check, I would suggest you take ten minutes and step through your code and think about what is actually happening Apr 10 22:54:30 * coco89 is assuming evanc is found the error Apr 10 22:54:33 this isn't a hard problem, you're just coding without thinking and then asking what's wrong (again, without thinking through your problem) Apr 10 22:54:39 okay Apr 10 22:54:40 coco89: I haven't even looked Apr 10 22:54:41 i'll give it a shot Apr 10 22:54:47 :O Apr 10 22:55:03 I haven't looked because you've had the same problem for like 8 hours now Apr 10 23:00:23 ok, so it seems that MediaPlayer has a setSurface method Apr 10 23:00:33 which I can pass a Surface to, which can wrap a SurfaceTexture Apr 10 23:00:53 so potentially, I have a SurfaceTexture of the video frames to use as the source for my GL shader Apr 10 23:03:17 so then I can use a GLSurfaceView to show the output of the shader Apr 10 23:13:26 looks like coco89 took a crash course ;) Apr 10 23:14:29 hmm, removing files from the mediastore (without deleting the files itself) ended up more difficult than I expected ... Apr 10 23:17:09 * pragma- detests mtp because it never finds the files he wants. Apr 10 23:17:25 * pragma- just sticks to adb push/pull. Apr 10 23:17:53 though it seems like in the recent sdk tools update, you can't push/pull entire directories any longer? Apr 10 23:25:58 evanc, Apr 10 23:26:32 I'm still stuck but I know what's giong on Apr 10 23:27:39 So if I uninstall the app, and reinstall I am greeted with the login page as userLoggedIn=false. When I enter my details, it brings me to the mainActivity and userLoggedIn = true. Apr 10 23:28:05 so I can now unplug and everytime i close and open the app it brings me to the main activity straight away which is great. Apr 10 23:28:18 However, if i rebuild while userLoggedIn is still true... Apr 10 23:28:29 it crashes??... Apr 10 23:28:31 why is this? Apr 10 23:29:18 I have a simple linear layout with two EditText - http://ideone.com/d6ezni - one line title, followed by multi-line body section (this is based off of the notepad tutorial, but I've been writing all of the parts on my own). The problem is that with the multiline EditText (noteBodyEditText), multiple lines seem to expand the view causing the top EditText to be pushed off the screen. Does anyone know how I can fix this? Apr 10 23:29:28 coco89: because stacktrace and logcat Apr 10 23:32:50 you probably did matchParent on the height Apr 10 23:33:04 Ah, I needed windowSoftInputMode="adjustResize" on the activity. Apr 10 23:33:19 pragma-, one sec Apr 10 23:35:15 pragma-, http://www.privatepaste.com/56209f6fd7 Apr 10 23:35:57 pragma-, logcat http://www.privatepaste.com/00a4144352 Apr 10 23:35:58 mdkess_ - I always have this problem, think u need to use the weight Apr 10 23:36:13 it's obvious it's in a loop i just don't understand how a boolean can be both true and false? da fack? Apr 10 23:36:25 cbates, tried that, but it was setting android:windowSoftInputMode that did the trick Apr 10 23:36:42 adjustResize forces the window to be resized with the soft keyboard Apr 10 23:37:05 thanks, thats actually really good to know Apr 10 23:37:38 the dynamic layouts have been killing me Apr 10 23:37:49 still getting used to everything being dynamic instead of fixed Apr 10 23:38:34 coco89: _actually_ crashes or gets in your infinite loop? Apr 10 23:38:56 cbates, yeah it's trixy Apr 10 23:38:58 evanc, it crashes as soon as i build Apr 10 23:39:04 like, freezes Apr 10 23:39:08 coco89: that is not a crash Apr 10 23:39:12 coco89: or a freeze Apr 10 23:39:20 okay well it gets in the loop and the phone spazes out Apr 10 23:39:47 coco89: that logcat tells you everything you need to know to fix this Apr 10 23:40:05 Tag2 has a false value. Look for why Apr 10 23:40:56 i know that tag2 has a false value i'm here to ask why cos they're the same variable Apr 10 23:40:58 :S Apr 10 23:41:06 i didn't know a variable could be both true and false Apr 10 23:42:03 until you open the box Apr 10 23:42:26 evanc, if i build when userLoggedIn is already true, it should be false because the userLoggedIn is initialised as false..? Apr 10 23:42:48 coco89: pastebin your current source for both Login and the relevant part of MainActivity Apr 10 23:42:56 (Tag and Tag2) Apr 10 23:43:35 Schrödinger's boolean Apr 10 23:43:40 evanc, http://www.privatepaste.com/49b2eeb2d8 - login Apr 10 23:44:13 evanc, http://www.privatepaste.com/a3dab53b58 - main Apr 10 23:45:07 coco89: you _seriously_ need to format your code, man Apr 10 23:45:23 evanc, woops forgot to shift+i Apr 10 23:46:24 coco89: userLoggedIn != userLoggedIn Apr 10 23:46:49 how? Apr 10 23:46:57 coco89: on line 52 there, change "boolean userLoggedIn = " to "userLoggedIn = " Apr 10 23:47:09 also, rethis this design because it's a mess Apr 10 23:47:15 but that should "fix" it Apr 10 23:48:19 but before you make that change, think about the consequences of it: why it would (or would not) fix it, what the edge-cases might be, etc Apr 10 23:48:45 and rename the class global as mUserLoggedIn Apr 10 23:48:46 evanc, oh was i initializing another boolean? Apr 10 23:49:13 "rethis"? Apr 10 23:49:20 i think he meant rethink Apr 10 23:49:37 oops, yes Apr 10 23:49:42 I need to rethis my typing Apr 10 23:49:54 evanc, i'm assuming i was initializing another boolean? Apr 10 23:50:05 capella, why the m? Apr 10 23:50:08 coco89: don't make an assumption Apr 10 23:50:24 kind of a convention for a global class member Apr 10 23:50:29 capella: given that it's public static, don't do the "m" prefix Apr 10 23:50:33 capella, ah I see Apr 10 23:50:36 absorption is the biggest cause of retention Apr 10 23:51:04 oh - public - hmm Apr 10 23:52:46 thats a whole other discussion Apr 10 23:59:26 so I've now added Login.userLoggedIn = false; Apr 10 23:59:26 into onClick method which sets the userLoggedIn boolean to false. I implemented the code to start the login activity but it doesn't appear. The userLoggedIn log in the login activity displays true while tag2 is false.. Apr 10 23:59:58 coco89: I'm not even parsing that because you're not even trying Apr 11 00:00:06 programming by guess-and-check doesn't work Apr 11 00:00:37 but we're now using the same variable Apr 11 00:00:39 mm Apr 11 00:01:47 you said that last time, too Apr 11 00:02:15 evanc, and then we fixed it :) Apr 11 00:03:37 "we"? Apr 11 00:04:38 yeah, we're a team Apr 11 00:04:44 :D Apr 11 00:06:27 but yeah, I guess you did fix it Apr 11 00:09:55 evanc, so am I not using the same variable here :S Apr 11 00:16:04 evanc, i'm sure i'll figure it out, thanks for your help so far man :) i appreciate it Apr 11 00:17:45 yeah, we're a team Apr 11 00:17:50 aww evanc, don't you feel special? :) Apr 11 00:26:13 hey guys Apr 11 00:26:20 where do I look for holding down the menu button Apr 11 00:26:33 I didn't realize you could even do that Apr 11 00:26:42 what callback gets triggered? Apr 11 00:29:50 to bring up the stack ? Apr 11 00:34:48 well, if I just click the menu button, normally a menu comes up Apr 11 00:34:54 but it turns out you can also hold the menu button Apr 11 00:34:58 which gets a different reaction Apr 11 00:35:14 the app I am supposed to be supporting has a hold-the-menu-button behavior, which I did not know Apr 11 00:35:17 I need to remove it Apr 11 00:39:09 like a physical menu button? Apr 11 00:43:33 canadiancow yeah Apr 11 00:43:41 you know that menu button on your device? That one Apr 11 00:43:44 and what is it doing that you dont want it to Apr 11 00:43:49 my device doesnt have any buttons Apr 11 00:43:54 or rather, it has power and volume Apr 11 00:43:58 same with my previous device Apr 11 00:44:01 mine has like...hidden buttons Apr 11 00:44:08 like, you know the home button? Apr 11 00:44:17 to the right of it is probably a "back" Apr 11 00:44:20 and to the left is a "menu" Apr 11 00:44:51 no Apr 11 00:45:00 my buttons are all on screen Apr 11 00:45:04 and there is no menu button Apr 11 00:45:09 the menu button was deprecated in honeycomb Apr 11 00:45:09 oh kk Apr 11 00:45:13 well, on the screen is fine, too Apr 11 00:45:24 the behavior I have is when I hold the menu button Apr 11 00:45:28 (whether physical or on the screen) Apr 11 00:48:43 I think I know what's wrong Apr 11 00:48:45 ... Apr 11 00:48:47 but I don't know how to fix it :) Apr 11 00:49:28 canadiancow, so basically, even if I do Login.userLoggedIn = false; the shared preference is settings it to true still Apr 11 00:49:36 but the true boolean is still in preferences Apr 11 00:49:36 why are you telling me? Apr 11 00:49:41 i dont know what you're talking about ~_~ Apr 11 00:49:45 :'( Apr 11 00:51:25 canadiancow, this is my login activity http://www.privatepaste.com/fc05b4f888 Apr 11 00:52:13 canadiancow, this is my main activity http://www.privatepaste.com/33c0388cb1 Apr 11 00:52:30 so basically i'm using sharedpreferences in order to stay logged in when the user quits the application Apr 11 00:52:40 so when i return to the app it goes straight the main activity Apr 11 00:52:45 im too busy to read your code Apr 11 00:52:48 please stop saying my name Apr 11 00:52:51 oh okay :( Apr 11 00:52:52 sorry Apr 11 00:52:59 and i mean that in general Apr 11 00:53:03 there is no reason to single anyone out Apr 11 00:53:09 just ask questions, and anyone in here will help Apr 11 00:53:19 okay well if anyone's arond Apr 11 00:54:09 the logout button doesn't work, it refreshes the main activity rather than go back to the login page Apr 11 00:54:28 i was wondering how i'd be able to edit the shared preferences thing from a different activity Apr 11 01:00:37 concerning teens; "This suggests something bigger than a shift away from Facebook; it hints at what could be the beginning of an across-the-board teen rejection of traditional social networking as a whole." Apr 11 01:01:06 seems like services doing well are feed-heavy, light on profile? i dunno what that even means ... Apr 11 01:01:07 g00s, hi Apr 11 01:01:38 hi coco89 Apr 11 01:01:56 g00s, how do I edit a sharedPreference from a different activity Apr 11 01:07:40 coco89 like any other, prefs are 'shared' Apr 11 01:08:05 its free love man, prefs for everyone Apr 11 01:11:05 but I can't do Login.perferences ? Apr 11 01:11:56 preferences are global, theres no such thing as prefs 'on' an activity Apr 11 01:12:13 prefs can be private to an activity Apr 11 01:12:36 or - at least in froyo … ha , i'm so clueless nowadays Apr 11 01:12:53 i'm not a fan of the ellipsis char in irc Apr 11 01:13:03 re Apr 11 01:13:13 i'm still in android = froyo/GB + support library Apr 11 01:14:09 Today I've been seeing interesting stuff in my debugger Apr 11 01:14:12 xorgate, I'm trying to implement this http://www.privatepaste.com/de5fdd5cb4 Apr 11 01:14:29 but SharedPreference preferences is initailised in the other activity Apr 11 01:14:34 coco just get an instance to the prefs in this one Apr 11 01:14:44 I had an if(condition) and if I executed the condition statement in the epxression, it returns the right value but then it always jumps into the block when it shouldn't ;) Apr 11 01:14:46 it's ok, really Apr 11 01:15:07 xorgate, how do you mean Apr 11 01:15:31 I should take a screen shot of the madness Apr 11 01:15:33 coco89 https://gist.github.com/xorgate/763f00ab86022dec0fb3 Apr 11 01:15:37 is what i use Apr 11 01:16:14 maybe better with a final static String vs getString Apr 11 01:16:51 it's just a way for me to keep it the same as what's defined in xml Apr 11 01:17:30 coco89 you don't need to store the handle to prefs on the actiivty, is what i mean Apr 11 01:17:55 and if you did, your other activities should always assume they are the only ones instantiated Apr 11 01:18:30 im so confused Apr 11 01:18:57 coco89 why do you store Apr 11 01:18:57 new problem - http://ideone.com/iiahSv - in onActivityResult, getIntent().getExtras() is null, but as far as I can tell I'm setting it properly. Sup wit' dat? Apr 11 01:19:04 coco89 why do you store 'preferences' on the activity? Apr 11 01:19:19 xorgate, in the login activity? Apr 11 01:19:26 yes Apr 11 01:19:43 what makes you think you can't also do it in the other activity Apr 11 01:19:58 and beyond that, what makes you think you have to? Apr 11 01:20:14 Answer: I should be using data.getExtras() instead of getIntent().getExtras(). Apr 11 01:20:34 xorgate, because I wanna refer to the same preference so that userLoggedIn would get the correct up to date boolean Apr 11 01:20:47 userLoggedIn = preferences.getBoolean("loggedIn", false); Apr 11 01:20:52 coco89 and i say they ARE the same thing Apr 11 01:20:57 they read from the same database Apr 11 01:21:03 xorgate, oh really? Apr 11 01:22:34 xorgate, so if I did what I showed to you and declared that preferences variable like the way I did in the Login activity, it should work? Apr 11 01:23:33 cos I do that and I get a null pointer exception Apr 11 01:23:36 you know that place i hid that thing that time Apr 11 01:23:42 idunno what you mean Apr 11 01:24:10 just make a method to read a pref like i showed you, or more generic Apr 11 01:24:43 readBoolean(String name, boolean defaultVal) { getPreferences(); return pref } Apr 11 01:25:00 getSharedPreferences, even Apr 11 01:25:07 you are overcomplicating Apr 11 01:27:42 xorgate, I need to put a boolean to preferences Apr 11 01:28:52 read, write.. whats the difference Apr 11 01:29:55 i'd need an editor right? Apr 11 01:30:25 yup Apr 11 01:30:37 this is the login activity with the sharedPreferences initialised etc http://www.privatepaste.com/fc05b4f888 Apr 11 01:31:29 and my main activity which needs to set the preferences in the login activity to false this is done in the onclick method http://www.privatepaste.com/9bb24373bc Apr 11 01:32:11 ok so why are you seperating getSharedPreferences() from preferences.edit() Apr 11 01:32:45 where in the main activity? Apr 11 01:33:00 look it's simple. activity1.getSharedPreferences() and activity2.getSharedPreferences() are the same thing Apr 11 01:33:10 i dont know how to say it more simply Apr 11 01:33:13 ah Apr 11 01:35:16 Can I query my php script to get JSON data, and then interpret it on Device ? Apr 11 01:35:36 bluesm of course Apr 11 01:35:44 why do php people always ask that question :| Apr 11 01:37:07 g00s: I'm not php person. :) Apr 11 01:37:07 ;D Apr 11 01:37:15 xorgate: Thanks :) Apr 11 01:37:57 I think querying a http resource and interpreting the response data is a pretty unusual thing to do Apr 11 01:38:15 not sure anyone's done that before?? Apr 11 01:38:15 it's an *extremely* common thing to do Apr 11 01:38:30 Apr 11 01:38:37 lel Apr 11 01:39:06 but you have to remember that 'php people' have mostly not had experience of writing real software Apr 11 01:39:23 I like it how people try to shoehorn everything on http these days Apr 11 01:39:23 Isnt't this soooo strange http://picpaste.com/odd-E0IbNFOp.png Apr 11 01:39:46 I feel like idiot. :] Apr 11 01:39:50 While debugging on a device, the top part shows the line triggered. Then if I step again, it executes the second return. Only the first return is used. Apr 11 01:39:55 I never seen this before Apr 11 01:39:57 ppl who invert their booleans :((( Apr 11 01:40:12 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!result Apr 11 01:40:23 class BurtonBoolean { private boolean state = false } Apr 11 01:40:23 ;) Apr 11 01:40:30 xorgate, I've change it now http://www.privatepaste.com/c4bc1c9434 but it's still not working.. userLoggedIn is still true :( Apr 11 01:40:36 Isn't the picture I shared strange for debugging? Apr 11 01:40:44 I like people who use perl's trailling unless on the end of really long lines Apr 11 01:40:45 Do you know how people cope with "authorisation" to http resources ? Apr 11 01:41:44 so I'm developing a native library Apr 11 01:41:59 i'm having trouble getting GDB to break inside my functions Apr 11 01:42:04 anyone have a guide? Apr 11 01:42:04 bluesm you mean security? Apr 11 01:42:08 bluesm: unfortunately, HTTP has no built-in mechanism for authentication, like HTTP authentication for example Apr 11 01:42:21 I'm using a cookie and saving it to disk at the moment Apr 11 01:43:56 Leeds: http://tools.ietf.org/html/rfc1945#section-11 Apr 11 01:44:33 wabz: nope, doesn't exist Apr 11 01:46:09 :( Apr 11 01:46:43 what do you mean? Apr 11 01:47:24 HTTP has no authentication mechanism Apr 11 01:47:59 if it did, bluesm wouldn't be asking how to do authentication over HTTP... unless he has never used a website in his life which popped up a login dialog... Apr 11 01:48:27 oh lol Apr 11 01:48:34 guys, why is this not making the sharepreference false?? http://www.privatepaste.com/1fb1d4c2e3 Apr 11 01:48:40 in the other activity Apr 11 01:49:19 rburton-: So I have to create authentication system on sever side. That will check if particular user have permissions. Apr 11 01:49:40 bluesm: Correct, keep it on the server and never trust the client. Apr 11 01:49:54 There are many solutions for how to do it on the backend e.g., oauth, etc. Apr 11 01:50:02 anyone? :( Apr 11 01:52:42 clear, put, commit/apply Apr 11 01:52:51 ? Apr 11 01:55:38 oh my god this thing is fucking retarded Apr 11 01:56:34 language... Apr 11 01:56:43 no need for blasphemy ;) Apr 11 01:57:44 yes but I don't understand why this won't add false to the sharedPreference Apr 11 02:03:51 if I modify something on aosp/framework, how to just rebuild that certain part Apr 11 02:04:22 and how to only update that certain part to a phone (to do patch testing) Apr 11 02:05:50 ycheng: i think mm / mmm Apr 11 02:05:59 but this isn't my area Apr 11 02:06:39 actually, this channel is application dev Apr 11 02:07:08 g00s: do you know which channel is for that ? Apr 11 02:07:53 actually, i don't :( Apr 11 02:07:59 guys can someone help? Apr 11 02:08:24 coco89: i think you exhausted all your help for one day Apr 11 02:08:26 :) Apr 11 02:08:41 yeh but this thing is bugging the shit outta me Apr 11 02:08:49 g00s: thank for your ideas Apr 11 02:08:53 software is hard ;) Apr 11 02:09:39 ycheng: also, there is a new oreilly book out on embedded android Apr 11 02:09:49 probably explains all this stuff Apr 11 02:09:52 coco89 are you sure you are reading the proper value, i see you changed where you write it Apr 11 02:10:01 g00s: I am surprising to find that there is no channel with name aosp Apr 11 02:10:13 i think it used to be #android Apr 11 02:10:27 maybe now they just use google groups Apr 11 02:11:00 xorgate, i'm writing it to preferences? Apr 11 02:11:12 xorgate, http://www.privatepaste.com/1fb1d4c2e3 Apr 11 02:11:20 g00s: let me try mm / mmm related command, thanks a lot Apr 11 02:11:24 there's never really been enough of a critical mass of framework chat for it to happen in realtime on IRC Apr 11 02:11:30 coco, and reading? Apr 11 02:11:55 xorgate, in the login activity userLoggedIn = preferences.getBoolean("loggedIn", false); Apr 11 02:12:19 coco89 your earlier paste had 'PRIVATE' somewhere Apr 11 02:12:31 private? :S Apr 11 02:12:38 fuck sake Apr 11 02:12:44 xorgate, oh yeh Apr 11 02:13:06 xorgate, http://www.privatepaste.com/81cb8238c1 Apr 11 02:13:22 seems like 2 different things, check that out Apr 11 02:13:44 what are two different things Apr 11 02:14:14 coco89: hang on - why are you opening one with an explicit filename, and the other as default? Apr 11 02:16:07 coco89: you are using different things Apr 11 02:16:37 what different things Apr 11 02:16:39 use Context.getSharedPreferences Apr 11 02:16:48 ok Apr 11 02:16:56 lol Apr 11 02:16:57 not getDefaultSharedPreferences from the Preference framework Apr 11 02:16:59 i need some sleep Apr 11 02:17:25 coco89: did you read this http://developer.android.com/guide/topics/data/data-storage.html#pref Apr 11 02:18:46 g00s, to an extent Apr 11 02:18:48 Hey, I have a quick question regarding an intent coming up as null when I try to use it in the activity I pass it to... would anybody be willing to lend me a hand here? Apr 11 02:18:55 i'm reading it again Apr 11 02:19:05 just keep reading it until it clicks ;) Apr 11 02:19:52 coco89: also, grep through ApiDemos Apr 11 02:19:52 anybody have any luck updating a tab when a change occurs? Apr 11 02:22:34 http://stackoverflow.com/questions/15919682/getintent-getstringarrayextra-always-returning-null if you wouldn't mind taking a look for me... It seems trivial but I can't seem to figure out why it is crashing on me. Apr 11 02:28:00 is there a way to save the entry-values of a list preference to the shared pref instead o the human readable entry strings? Apr 11 02:28:10 besides saving the values by hand Apr 11 02:36:30 coco89: do you already have that value in your shared prefs? Apr 11 02:41:26 anyone in here with GCM experience ? Apr 11 02:41:53 I was wondering what to do when messages arrive late or not at all Apr 11 02:49:38 mobydev, wait a reasonable amount of time and try again; if it still doesn't work, then remove the registration Apr 11 02:49:57 ugh, it's so hot in my office Apr 11 02:56:23 remove your pants **** ENDING LOGGING AT Thu Apr 11 02:59:59 2013