**** BEGIN LOGGING AT Thu Jun 13 02:59:59 2013 Jun 13 03:00:46 StingRay_, what is the rom dev channel? Jun 13 03:00:58 dunno, I dont do rom development Jun 13 03:01:00 lol Jun 13 03:01:20 loin: i'd start with the first error, which is saying the package javax.annotation either can't be found or the class "Nullable" within it can't be - sounds like you're missing a dependancy Jun 13 03:07:26 Jc_Dev, but it's in the build path Jun 13 03:07:28 http://paste.ubuntu.com/5760190/ Jun 13 03:09:20 loin: is being in the build directory enough? don't you have to declare it as a dependancy somewhere for your build system? Jun 13 03:09:57 Jc_Dev, i'm building the latest aosp sources so i assume that this is declared somewhere Jun 13 03:10:14 ic Jun 13 03:11:15 sorry i'm not familiar with it, for android dev i use android studio and gradle for building Jun 13 03:13:15 oddly enough i didn't get this error before buying my ssd yesterday Jun 13 03:13:56 might be a side effect of effectively doing a clean, assuming you're building from scratch this time Jun 13 03:14:14 or maybe a reference to incorrect path, if you added it as an additional drive Jun 13 03:14:29 Jc_Dev, i always do a 'make clean && make clobber' before builds Jun 13 03:14:35 so i don't know what to say Jun 13 03:14:45 ah ok, fair enough Jun 13 03:14:52 i did install another os though, maybe it has soemthing to do with that Jun 13 03:15:13 could be - sounds like your best bet is to send me your ssd and go back to your hdd :) Jun 13 03:16:20 Jc_Dev, you might be on to something there Jun 13 03:30:06 Hello guys. Er my app stops when i introduce the whole "Window.FEATURE_NO_TITLE" thing, any suggestions? Jun 13 03:30:22 any errors? Jun 13 03:30:26 paste bun them Jun 13 03:30:34 *bin Jun 13 03:30:45 No errors at all. The app just crashes Jun 13 03:31:09 define "no errors" ? Jun 13 03:31:15 mrfunky: run it connected via USB and watch the logcat window Jun 13 03:31:45 Jc_Dev good idea Jun 13 03:31:50 Jc_Dev: said no errors Jun 13 03:31:54 :) Jun 13 03:32:21 translation: didn't see any errors on the phone screen :) Jun 13 03:32:23 No errors means it compiles and never shows any "thats no good" msg Jun 13 03:32:46 where are you expecting to see such errors ? Jun 13 03:33:24 I... gues I should... Jun 13 03:33:54 where <--- as in where are you looking for errors Jun 13 03:33:55 mrfunky: fyi, when you see the error, check if it's this one: http://stackoverflow.com/questions/4813831/requestwindowfeaturewindow-feature-no-title-gives-the-exception Jun 13 03:33:56 I'm learning, so I do the stuff that the books say and... well Jun 13 03:34:28 mrfunky: then you should learn the basics about develipment and adb Jun 13 03:34:38 or you will always think there are no errors Jun 13 03:35:27 Mkay, gonna try that thanks Jun 13 03:35:38 Sorry for noob question Jun 13 03:35:50 na tis fine, just never assume there are no errors Jun 13 03:36:03 even android in normal operation has tonnes of errors Jun 13 03:36:19 and if there were no errors, the app would work fine Jun 13 03:36:20 :) Jun 13 03:36:49 so you should learn about how to 1st, look at the errors, then how to read them Jun 13 03:37:18 direct answers to such questions although seemingly save time, dont in the long run, learning does ;) Jun 13 03:37:30 Well, it's obviously an error, What I wanted to know was what was it since the compiler didnt spot it... Jun 13 03:38:00 Ill take that in mind, thanks :) Jun 13 03:38:10 mrfunky: in this case it is a runtime error (something the compiler can't see), so watching output window (logcat) is the way to go Jun 13 03:38:23 you can filter based on error level, or your package name, etc Jun 13 03:38:38 you can even log messages there yourself using Log.d Jun 13 03:39:31 Dayum, just saw that stackoverflow link... t'was so simple... I'll pay more attention to that logcat Jun 13 03:39:38 Thanks guys, g2g Jun 13 03:39:44 cya Jun 13 03:42:58 AS gets out of sync sometimes Jun 13 03:43:03 right pain! Jun 13 03:47:42 you trying it out again StingRay_ ? Jun 13 03:47:56 not an AS/Gradle thing Jun 13 03:48:03 and no been using AS for a fiar while Jun 13 03:48:10 not switched to gradle with it yet Jun 13 03:48:14 gotcha, meant gradle Jun 13 03:48:19 right ok Jun 13 03:48:31 out of sync as in sometimes, view code / undo / random historical reverts Jun 13 03:48:47 I find it odd, happens like say once evey 12 hours or so Jun 13 03:48:57 makes me question my sanity sometimes Jun 13 03:49:04 guess that could be a feature Jun 13 03:49:05 :) Jun 13 03:49:16 oh that's goofy, don't think i've ran into that yet, i know it lets you see the history though, it's a feature called Local History Jun 13 03:49:26 maybe you're bumping the shortcut for it Jun 13 03:49:42 well I change something, then few min later, and it's gone back to unchanged Jun 13 03:50:08 and also, undo has the only effect of jumping my cursor Jun 13 03:50:13 not actually changing anything Jun 13 03:50:38 but I can live with it, in return my eyes dont burn and I'm not getting a tan like I did using eclipse Jun 13 03:55:36 Jc_Dev: I have bookmarked your gradle workaround btw Jun 13 03:55:49 and thanks, if I forgot to say thanks previously Jun 13 03:56:09 I will switch/try at some point when my balls increase in size Jun 13 03:57:05 When I click on Action Item it opens an Activity I use as a Dialog. In the Activity I'm trying to display text with setText() method by retrieving the id of the TextView. At that point it gives me NPE. Jun 13 03:57:06 StingRay_: hehe, you're welcome, the pastebin expires in a month i think, but if you search it i also posted it on a SO question Jun 13 03:57:16 tis the SO i marked Jun 13 03:57:19 ah ok Jun 13 03:58:06 csst0111: in which method are you retrieving the id? Jun 13 03:58:27 onCreate() Jun 13 03:59:08 then that id dont exist in the layout your using in your setContent() Jun 13 03:59:18 * StingRay_ 's guess Jun 13 03:59:40 hmm... I guess so but I don't understand why ... Jun 13 03:59:54 cause you didnt create it in there ? Jun 13 03:59:58 cause you named it wrong ? Jun 13 04:00:07 cause your referencing an id from another layout ? Jun 13 04:00:20 many reasons possible Jun 13 04:00:43 actually 1,2,3 reasons are all the same thing... Jun 13 04:00:49 lol Jun 13 04:00:49 I'm almost sure the answer is no in every question :( Jun 13 04:01:03 pastebin your onCreate Jun 13 04:01:12 pastbin the layout your using Jun 13 04:01:48 double-check your inflate is inflating the view you think it is, also beware that you can actually alias view id's based on screen size Jun 13 04:01:48 StingRay_, http://pastebin.gr/2141 Jun 13 04:02:04 hi. give me please some advise how start programming for android? thanks Jun 13 04:02:42 thechicho: start here: http://developer.android.com/training/index.html Jun 13 04:02:45 csst0111: and onCreate ? Jun 13 04:02:45 hmmm... I have the same layout in layout-v14 folder Jc_Dev Jun 13 04:03:17 csst0111: with different contents ? Jun 13 04:03:45 Jc_Dev, tnank you! i'm try it Jun 13 04:04:07 http://pastebin.gr/2142 onCreate() Jun 13 04:04:27 no its exactly the same file Jun 13 04:04:29 thechicho: you're welcome - note that although the training guides you through using eclipse, you may want to use Android Studio instead, it's the latest IDE for android dev Jun 13 04:05:18 csst0111: can you paste stacktrace too ? Jun 13 04:05:18 csst0111: you're loading a view called "dialog_fragment" into an Activity, that's kind of odd Jun 13 04:05:49 odd naming :) Jun 13 04:05:50 oh I tried first with fragment and the name just stayed there...I'll rename it later Jun 13 04:05:54 yeah I know :) Jun 13 04:06:02 ok :) Jun 13 04:06:38 stactTrace http://pastebin.gr/2143 Jun 13 04:07:27 so line 61 is the setText ? Jun 13 04:07:33 yes Jun 13 04:08:01 what version of android you running on ? Jun 13 04:08:17 4.0.2 iirc Jun 13 04:08:26 its a new device... Jun 13 04:08:27 Jc_Dev, thanks! i note Jun 13 04:08:54 csst0111: right open your layout-v14 then, and tell me that "net" exists Jun 13 04:09:13 layout-v14/dialog_fragment.xml Jun 13 04:09:15 exists! :( Jun 13 04:09:27 using eclipse ? Jun 13 04:09:52 yes Jun 13 04:10:13 I would clean/rebuild then Jun 13 04:10:28 then check R.java see if it's there Jun 13 04:10:28 let me see ... Jun 13 04:11:30 a bit of a long shot, but also "net" is borderline reserved-word-ish, maybe try a different word Jun 13 04:12:05 oh come on! I lost 1+ hour and it was just a clean issue? :( Jun 13 04:12:15 winner Jun 13 04:12:15 I'm sorry guys :( Jun 13 04:12:17 :) Jun 13 04:12:28 Thank you both very much!! Jun 13 04:12:34 there is a perm solution you know Jun 13 04:12:40 i'm very disappointed :( Jun 13 04:12:41 can you guess what it is ? Jun 13 04:12:50 you may want to go back to DialogFragment fyi Jun 13 04:12:50 hmmm...restart eclipse ? Jun 13 04:12:57 intelliJ/AS Jun 13 04:13:25 how does one do zeroconf on android? Jun 13 04:13:32 my googlings are coming up with stuff three years old Jun 13 04:13:48 not much more recent besides complaints that it hasn't been updated Jun 13 04:13:55 I heard that is not stable yet... plus I feel comfortable with Eclipse . Jun 13 04:14:11 lahwran: isn't xbmc src available ? Jun 13 04:14:21 xbmc? Jun 13 04:14:42 isn't that for ... xboxes Jun 13 04:14:48 what ????? Jun 13 04:15:01 about 10 years back yeah Jun 13 04:15:09 lahwran: it was originally, now it's just stuck with a bad name Jun 13 04:15:09 but probably for last 8 years no Jun 13 04:15:22 right but I mean, xbmc is a media center thingy Jun 13 04:15:27 indeed Jun 13 04:15:30 what does that have to do with zeroconf on _android_ Jun 13 04:15:32 ? Jun 13 04:15:37 with much zeroconf support for android Jun 13 04:15:53 ...ahhhh Jun 13 04:15:57 bingo Jun 13 04:15:58 :) Jun 13 04:16:07 * StingRay_ uses all the time Jun 13 04:16:22 not the src, just xbmc on all platforms Jun 13 04:16:36 I built my own proprietary zeroconf bs Jun 13 04:16:44 you would Jun 13 04:16:50 oh yeah Jun 13 04:17:10 I had a bit diff goals with it than most probably would Jun 13 04:17:23 managing "swarms" of android devices from one place Jun 13 04:17:42 as little initial setup as possilbe Jun 13 04:18:25 http://forum.xbmc.org/showthread.php?tid=158266 Jun 13 04:18:32 it looks like they _don't_ have zeroconf based on that? Jun 13 04:18:55 that was my expeirence tho I started off my platform dev on 2.0 Jun 13 04:19:30 you can use libs that do some of the zeroconf stuff Jun 13 04:20:51 I love you guys Jun 13 04:21:23 wait, what is this? http://developer.android.com/training/connect-devices-wirelessly/nsd.html Jun 13 04:22:19 lahwran, I dunno but it looks cool Jun 13 04:22:29 that looks like zeroconf to me Jun 13 04:22:30 :o Jun 13 04:22:31 so long as yuo can go api 16 or > Jun 13 04:22:41 sure, this is for personal use only Jun 13 04:22:53 cool Jun 13 04:23:06 I'm a bit obsessed with making personal-use stuff magical Jun 13 04:23:15 going out, clubbing trying to score is depressing Jun 13 04:23:23 i'd rather stay with you guys on IRC Jun 13 04:23:31 maybe because that's a bad way to do that Jun 13 04:23:42 funny my first question was "drink alcohol much?" Jun 13 04:24:29 ron_frown, really?? in what context Jun 13 04:24:29 lol Jun 13 04:25:04 "I love you guys..." Jun 13 04:25:09 drink alcohol much? Jun 13 04:25:20 huehue Jun 13 04:26:03 ron_frown, I always regret drinking alcohol, it's only worth it when you get laid and tonight I spoke to quite a few chicks who were interested one of them literally said 'you're really cute' Jun 13 04:26:16 nice! Jun 13 04:26:21 o/ Jun 13 04:26:26 \o Jun 13 04:26:35 'you're really cute <-- means your not quite fit Jun 13 04:26:36 I dont need to get hammered to get women, nor do I need to go for women who are also hammered, to get women Jun 13 04:26:43 not overly good looking Jun 13 04:26:45 heh cheers but being a beta male i didn't really know what to say and didn't follow it up Jun 13 04:26:48 in other words, you would look nice as a gnome in my garden Jun 13 04:26:51 its the attitude =) Jun 13 04:26:52 hence no laid! Jun 13 04:27:00 StingRay_, go to bed! Jun 13 04:27:01 lol Jun 13 04:27:06 soon Jun 13 04:27:09 not quite yet Jun 13 04:27:10 :P Jun 13 04:27:16 ron_frown: you just need $75 Jun 13 04:27:16 I'm soooooo pissed Jun 13 04:27:23 for 45 minutes Jun 13 04:27:25 I can get it free Jun 13 04:27:27 no need to pay Jun 13 04:27:55 it must be nice having a sister Jun 13 04:28:23 LOL Jun 13 04:28:35 huheu Jun 13 04:29:36 well I have a wife Jun 13 04:29:40 who is infact NOT my sister Jun 13 04:29:46 but even more than that Jun 13 04:30:27 StingRay_, I know what you mean but this girl was genuine and from germany so she doesn't understand euphemism Jun 13 04:30:41 you need to tell her Jun 13 04:30:50 mochtest do meine schwanz spielen Jun 13 04:30:53 du Jun 13 04:32:16 StingRay_: "you're really cute" is usually nothing but positive Jun 13 04:32:17 http://translate.google.com/#auto/en/mochtest%20do%20meine%20schwanz%20spielen%20du Jun 13 04:33:10 I would guess google translate is wrong there Jun 13 04:33:12 cute has meaning besides "baby cute" Jun 13 04:33:38 yeah but think of another context and example then Jun 13 04:33:44 wow that car is cute Jun 13 04:33:49 that puppy is soo cute Jun 13 04:33:53 playfully good looking Jun 13 04:34:00 that move star is soo cute Jun 13 04:34:04 not really :) Jun 13 04:34:17 justin beiber dude is soo cute Jun 13 04:34:20 hmmm Jun 13 04:34:21 what do you mean not really Jun 13 04:34:40 too bad we dont have a quote bot up in this bitch Jun 13 04:34:45 cute has two definitions Jun 13 04:34:46 i doubt many girls would say that about a fit/sexy movie star Jun 13 04:35:22 :| Jun 13 04:37:23 Okay there are two ways girls can mean it, either she says you're cute (which really means you're a great guy but not my type) or she genuinely likes you Jun 13 04:37:38 in an android linearGradient is x0,y0,x1,y1 like normalized units, or is it pixels it wants ? Jun 13 04:37:59 and considering the conversation that we had and the fact that she seemed interested after saying that makes me feel like it's the latter Jun 13 04:38:18 ugh, I think it means actual screen coords :( Jun 13 04:38:28 that sux Jun 13 04:43:09 i hate clubbing Jun 13 05:05:12 how does one override the next button on the soft keyboard? Jun 13 05:05:21 is there a keycode for next? Jun 13 05:05:52 doesnt look like it Jun 13 05:06:20 FLAG_EDITOR_ACTION Jun 13 05:08:50 @tnzr Jun 13 05:09:20 next/done etc, tis just the variable action keycode Jun 13 05:09:35 right bed time, tis 6am ugh Jun 13 05:10:30 late night Jun 13 05:10:44 well, not gonna go to sleep quite yet Jun 13 05:10:59 but gonna leave the comp, watch a film or something Jun 13 05:11:06 tis the start of winding down :) Jun 13 05:11:22 you doing night shifts? Jun 13 05:11:39 no Jun 13 05:11:46 well, depending on your POV Jun 13 05:11:51 hehe true Jun 13 05:12:35 my working hours are like…dunno…. 16 or so Jun 13 05:12:44 na…18 Jun 13 05:12:54 then about 7-9 hours sleep Jun 13 05:13:09 so I kinda advance my day every day around 1-2 hours Jun 13 05:13:30 ha, yeah i know the effect Jun 13 05:13:53 has screwed my flow up a bit, not smoking Jun 13 05:14:04 not sure if I'm getting more work done or not Jun 13 05:14:21 might take a bit to adjust Jun 13 05:14:54 "a bit" is not a fair assumption of quantity in this equation Jun 13 05:15:48 " fk loads beyond belief " is better Jun 13 05:15:55 right laters Jun 13 05:15:58 lol, fair enough Jun 13 05:15:59 cya Jun 13 05:16:59 Have you guys noticed getItem for PagerAdapters being called for every item in the adapter, regardless if it is actually shown or not? Jun 13 05:17:31 I'm also seeing all of these fragments attached and detached from the ViewPager whenever the page is changed Jun 13 05:17:36 It seems completely broken Jun 13 05:18:01 appamatto: i hadn't noticed, maybe it actually creates everything ahead of time so you can have a nice animation when you switch to another tab Jun 13 05:18:44 Jc_Dev previously it would at most create the next page Jun 13 05:19:26 oh i'm thinking a ViewPager, you're talking about something else i think Jun 13 05:19:33 I'm talking about ViewPager Jun 13 05:19:49 And FragmentStatePagerAdapter and FragmentPagerAdapter Jun 13 05:21:12 i use ViewPager with FragmentPagerAdapter, i haven't tried the State one before Jun 13 05:21:45 it says that FragmentPagerAdapter keeps every loaded fragment in memory though Jun 13 05:22:42 appamatto: are you returning a new fragment with every call to getItem? Jun 13 05:26:45 Jc_Dev, I'm caching them Jun 13 05:26:59 And they are cached automatically by FragmentStatePagerAdapter Jun 13 05:27:04 Even so, fresh ones are generated Jun 13 05:27:19 Also they are all attached to the window regardless of whether or not they are showing Jun 13 05:27:32 i'm not sure about the State version, but you're not supposed to cache them in the non-State version, i read about it but i forget exactly why now Jun 13 05:27:54 appamatto: i couldn't say if that's abnormal, sorry Jun 13 05:52:00 hello Jun 13 05:52:08 anyone here? Jun 13 06:01:32 Heh, getItem is called on my adapter three times for every single item just to show the first page Jun 13 06:27:26 good morning :) Jun 13 06:31:52 test Jun 13 07:08:12 hi guys, how does android get the rotation vector using accelerometer or gyroscope? where is that source code ? Jun 13 07:15:59 think there is a method Jun 13 07:18:14 does anyone know if setting the WebView proxy with this ( http://manojtk.blogspot.be/2011/01/android-webview-proxy-setting.html ) sets the proxy for the whole system or just the running application? Jun 13 07:24:45 If I have a custom view subclass (i.e. CustomTable extends TableLayout) and then I have an XML file with its root ViewGroup as a TableLayout and inflate it as LayoutInflater.from(context).inflate(resource, this, true) does it create two viewgroups or one? Jun 13 07:24:56 i.e. a duplicate TableLayout Jun 13 07:38:27 anyone know what the dp of the thumb/index pad is? Jun 13 07:50:12 lasserix, do you know the method? Jun 13 08:02:59 Using the Rotation Vector Sensor Jun 13 08:03:03 http://developer.android.com/guide/topics/sensors/sensors_motion.html Jun 13 08:03:12 it's about a quarter down Jun 13 08:22:00 how do you get devices actualy pixel density, not the bucket it is in? Jun 13 08:23:40 ahh nm Jun 13 08:33:24 how do i dim the light of the hardware buttons (back, home, switch screen) Jun 13 08:34:22 rved, set "SYSTEM_UI_FLAG_LOW_PROFILE" with setSystemUiVisibility on DecorView Jun 13 08:34:23 rved: http://developer.android.com/reference/android/view/View.html#setSystemUiVisibility(int) Jun 13 08:34:38 thx! i ll look into it now Jun 13 08:34:43 thanks for the quick response Jun 13 08:51:48 Heya guys, quick question - when using the URI Matcher, one can use # as a number wildcard... but what if I want to actually match against #, as in www.somepage.com/#/somepath Jun 13 08:51:55 The URL actually contains the # character Jun 13 08:52:05 can I do www.somepage.com/*/* Jun 13 08:54:36 when i put my thumb on the light sensor.. the lights on the buttons go on .. in my activity i have: getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); Jun 13 08:54:43 but they don't fade out the led's Jun 13 08:56:27 uh Jun 13 08:56:31 what leds? Jun 13 08:56:53 those leds Jun 13 08:57:04 the led's under the home button etc Jun 13 08:57:09 they don't fade out Jun 13 08:57:14 they stay on Jun 13 08:58:02 how do i fade them out? does it really should fade out when i use SYSTEM_UI_FLAG_LOW_PROFILE Jun 13 08:59:52 rved, when exactly do you set this? Jun 13 09:00:46 when a seek bar (in my activity) is below a certain value Jun 13 09:01:10 ah, SYSTEM_UI_FLAG_LOW_PROFILE will hide on-screen controls, not physical light Jun 13 09:01:14 that's driver controled Jun 13 09:02:20 rved, there are some non-supported non-API hacks around it though Jun 13 09:02:24 do you have an idea how to dim the buttons lights under home, back, switch screen ? Jun 13 09:06:45 hiho Jun 13 09:06:50 anyone used aquery? Jun 13 09:08:02 so is it like a convention to include actionbar in every app? or is not necessery that my app has an action bar at all? Jun 13 09:09:30 primski, it's a guideline. You're not required to Jun 13 09:10:41 well, i know it's not *required* but if its a guideline it's best to include it, no? my app won't really have any action buttons and only one view at the begininng but it's still best to follow guidelines, eh? thans. Jun 13 09:10:59 primski, it depends on type of app really Jun 13 09:11:29 do you need the back button? does it look better with action bar? does it make it more clear to user which view he's viewing and which app does it have Jun 13 09:12:08 hm, don't have everything planned yet ... will definitely consider these great questions ... Jun 13 09:12:40 personally for data-oriented apps (app that show some info/data) I prefer having actionbar because they look more consistent Jun 13 09:12:45 primski, personally I like the guidelines because it allows the user to get comfortable with your app more quickly Jun 13 09:13:03 but obviously only if it makes sense Jun 13 09:13:15 i agree ... even though there might not be a need for many buttons from begininng, but consistency is important ... Jun 13 09:13:54 it's a simple calendar app ... month view and then i will add day details view .... i use grid to display some additional info for each day, display a nice icon and then on day details i will use it to display even some more info for each day Jun 13 09:14:31 like moon phases and signs and stuff i retrieve from remote server Jun 13 09:15:59 recently we've got a review from a user saying they uninstalled the app and will install again only once we have the action bar instead of what he called iOS action bar (even though it's more like what facebook app has) Jun 13 09:17:03 anyone used aquery? Jun 13 09:17:23 well that's a dumb reason if the app was usefull to him .... but i agree, consistency and following guidelines is important Jun 13 09:17:26 or know if there is project on github from aquery demo snippets? Jun 13 09:21:34 URIMatcher is pissing me off... are there any better solutions? Jun 13 09:21:39 Libraries, custom implementations etc Jun 13 09:23:32 primski: start with convent, add customizability Jun 13 09:23:39 it can actually be upsale point Jun 13 09:23:50 eg "minimal mode" or whatever Jun 13 09:24:21 lasserix, i know TYPE_ROTATION_VECTOR sensor, but now i want to know how to calculate it on my own Jun 13 09:26:30 anyone used aquery? Jun 13 09:26:46 ciurkut: no, sorry Jun 13 09:27:02 zhang, umm http://stackoverflow.com/questions/2858255/need-to-calculate-rotation-vector-from-sensor-type-orientation-data Jun 13 09:27:15 hey Tee_Pee how did your app go? Jun 13 09:27:38 https://play.google.com/store/apps/details?id=com.atlantbh.pycsell Jun 13 09:27:41 First one is doing good Jun 13 09:27:45 https://play.google.com/store/apps/details?id=com.atlantbh.navigator Jun 13 09:27:50 Second one is doing great as well :3 Jun 13 09:28:29 Having some issues with it though... URIMatcher can't match a URI of the format www.site.com/p/some-path Jun 13 09:28:43 it should be as simple as sURIMatcher.addURI(AUTHORITY, "p/*", PATH_POI); Jun 13 09:28:48 But it's being a PITA Jun 13 09:29:15 Can I assign more data than only by "setTag" ? Jun 13 09:29:42 I mean I would like to store the color, and the reference to another textview that i would edit... Jun 13 09:29:51 But using universal method :] Jun 13 09:33:02 bluesm why not wrap all that data in an object and pass that to the tag? Jun 13 09:33:56 kinda stupid question what callback means?:< Jun 13 09:34:01 if i have Ajax call with various callback data types. Jun 13 09:34:14 what is callback then? Jun 13 09:34:16 :< Jun 13 09:35:01 ciurkut, it's just a function/class that gets called after some task is done Jun 13 09:35:16 like you call a server Jun 13 09:35:25 komet: Uh. So just create my custom class.. and pass an instance of it to the "setTag"... Jun 13 09:35:26 Right ? Jun 13 09:35:34 and you pass a callback method which will get called when the server responds… meanwhile your code continues Jun 13 09:35:49 exactly: setTag(new MyColorAndReference(...)); Jun 13 09:36:17 Mavrik so its async? Jun 13 09:36:25 i mean i make ajax call that is async Jun 13 09:36:48 but than callback is also in new thread? Jun 13 09:36:55 so it doesnt block my ui one? Jun 13 09:37:20 I found a way to dim the keyboard backlight using r.exec, but it's not working on my phone … but is this script correct? http://paste2.org/x4jIWkGC Jun 13 09:37:52 where do you set Locale on your 4.2.2 android? my s4 only has Language setting .... default locale always returns en_us, how can i change that? Jun 13 09:37:53 ciurkut, uh, AJAX? Jun 13 09:38:11 are you using javascript in webview or what? Jun 13 09:38:20 im using aquery Jun 13 09:38:30 :< Jun 13 09:38:32 ah Jun 13 09:38:36 no idea what aquery does Jun 13 09:38:44 usually you get your callback run on the UI Thread Jun 13 09:38:59 but thats dependant on aquery and I have no idea how AQuery handles that Jun 13 09:42:02 komet: Thank you :) Jun 13 09:42:08 not sure if this is the best place to ask or not - can anybody here help with hardware driver/kernel module issues for an android device? Jun 13 09:42:15 I found a way to dim the keyboard backlight using r.exec, but it's not working on my phone … but is this script correct? http://paste2.org/x4jIWkGC Jun 13 09:42:33 i have an android 2.2 device which i'd like to input camera to via USB (no built in camera) Jun 13 09:43:34 antitau, usually people on #android-root know more about that Jun 13 09:43:56 Mavrik: thanks, i'll give it a shot Jun 13 09:44:02 okay, so does anyone know if setting the WebView proxy with this ( http://manojtk.blogspot.be/2011/01/android-webview-proxy-setting.html ) sets the proxy for the whole system or just the running application? Jun 13 09:44:15 rved, does your device even have that sys filesystem entry? Jun 13 09:44:29 hmm I'm running android 4.1.1 htc one x Jun 13 09:44:33 but don't have root access Jun 13 09:44:37 so it's a gamble Jun 13 09:46:50 okay next question! are you ready?! :< Jun 13 09:47:54 i have json object... how do i parse it... i never worked with json before... its youtube response... Jun 13 09:48:20 i want to get array of youtube objects with certain things like title, number of likes etc Jun 13 09:48:26 ciurkut : Gson is a pretty awesome library Jun 13 09:48:29 rved, well if you can't check without root access Jun 13 09:48:35 your app won't be able to use it either Jun 13 09:48:52 but on some rooted phone's it might? Jun 13 09:48:57 or different permission setip Jun 13 09:49:01 *setup Jun 13 09:50:04 you're not listening… if it doesn't work on un-rooted phone there's no point you using it Jun 13 09:50:11 since your app won't have root access. Jun 13 09:50:44 plus, you're relying on a feature which is wholy dependant on what kernel the manufacturer has installed on that device and there is no guarantee the devices will even have that Jun 13 09:51:13 Can I connect somewhat two views ? Jun 13 09:51:24 To refer from one to another ? Jun 13 09:52:00 bluesm, explain more in detail what you want to do :) Jun 13 09:52:48 Mavrik: I want to in "onClick" event handler, change color of one TextView... Jun 13 09:53:14 Mavrik: There I two buttons, and I want to have one method (event handler) Jun 13 09:53:41 I could connect them by "findingById appropriate views" Jun 13 09:54:04 and then assign it to "setTag".. But I wonder if there is better way. Jun 13 09:54:21 (then in event handler i will use "getTag"...) Jun 13 09:55:44 so I'm implementing a remote service (different process) via IPC using a Messenger.. how can I send back information to my main process aside from using a broadcast receiver? Jun 13 09:56:17 Mavrik: ^ Jun 13 09:57:18 bluesm, um Jun 13 09:57:34 bluesm, usually I keep views referenced as private fields in activity/etc Jun 13 09:57:38 and just access them via that Jun 13 09:57:48 storing them in tags is a rather bad idea, calling findViewById often as well Jun 13 09:59:43 Mavrik: But i would have to make two different event handlers. Jun 13 10:00:00 bluesm, yes? :) Jun 13 10:00:03 make a method that does the work Jun 13 10:00:13 Mavrik: is there a way to disable the lux/light sensor? Jun 13 10:00:13 call the method from anonymous onclicklistener class Jun 13 10:00:18 rved, I doubt it Jun 13 10:00:23 so it doesn't' know its dark Jun 13 10:00:26 rved, I think light sensors don't even have an API Jun 13 10:00:36 but double check, it's been awhile since I tried it Jun 13 10:00:38 the powermaangement can disable the keyboard backlgith Jun 13 10:00:47 but then the screen also goes off Jun 13 10:00:56 is there a way to use this by any chance? Jun 13 10:01:42 lol im getting too much excited when something i do works :c Jun 13 10:08:07 okay im getting closer. i used json visualiser and actually know what i want to get from those entries :< Jun 13 10:14:08 in Eclipse > LogCat … i removed a sortable tab in the header.. how do i restore them? Jun 13 10:14:22 I'm missing the value Jun 13 10:19:28 eclipse Jun 13 10:19:38 please don't mention that word anymore Jun 13 10:19:48 it's gone. dark days are passed Jun 13 10:32:59 Marvik: i found this: http://paste2.org/3xs5xXUm - can i use mSensorManager.unregisterListener(this); - to disable the light sensor? Jun 13 10:33:21 or won't it affect the keyboard backlight behaviour Jun 13 10:55:05 guys Jun 13 10:55:08 following code Jun 13 10:55:11 response=json.getJSONArray(entry); Jun 13 10:55:41 gets entry if entry is direct child of json Jun 13 10:55:47 or if it is nested? Jun 13 10:56:46 try it and see? Jun 13 10:58:15 how do i completely disable a sensor? Jun 13 11:01:49 rved, as in "no (other) app can use it"? Jun 13 11:02:08 yes, as in: even other functions can't access it Jun 13 11:02:22 cause i want to dim the keyboard backlight Jun 13 11:02:42 is the device rooted? Jun 13 11:02:42 keyboard backlight depends on light sensor Jun 13 11:02:44 no Jun 13 11:02:46 seems like a bad idea, and sounds impossible Jun 13 11:03:09 it's crazy that we can't dim the keyboard light with normal api Jun 13 11:03:14 ... Jun 13 11:03:34 when you lock the phone, the screen goes black and the keyboard lights dim Jun 13 11:03:43 so why can't we dim the lights? Jun 13 11:04:15 this is probably handled internally by the ROM Jun 13 11:04:17 because there isn't really any usecase for that, as far as i can think of Jun 13 11:05:22 there are a lot of use cases Jun 13 11:05:30 if the light is too bright in your freaking eyes Jun 13 11:05:31 :D Jun 13 11:05:31 im parsing youtube api response... and it looks like im missing some parts when i look at json visualizer Jun 13 11:05:39 why could that be? Jun 13 11:06:07 in visualizer in mediagroup there is mediacategory object and in my json displayed in my app after parsing Jun 13 11:06:10 there is not Jun 13 11:06:11 : Jun 13 11:06:11 c Jun 13 11:07:44 another question: I'm creating an overlay window http://paste2.org/2fB4ftbd but the window is not fullscreen, the notify bar (on the top) is the only bit that isn't covered by the overlay. how do i make it 100% x 100% ? Jun 13 11:08:00 the overlay is created by a serice Jun 13 11:08:03 *service Jun 13 11:12:12 rved, add the layout in screen flag (you can also have a look at a class I wrote which has some similar features https://github.com/cygery/SystemWidePanel) Jun 13 11:12:39 just note that this can't cover the software buttons (navigation bar) Jun 13 11:13:24 EPG: how do i add the layout in the screen flag? Jun 13 11:14:14 EPG: my screen looks like this :http://s8.postimg.org/bycev1f39/device_2013_01_18_174536.png Jun 13 11:14:23 is sqlite thread safe? and when modifying my db should i open/close every time? (i read somewhere that i can open it only once and not explicitly close it at all) Jun 13 11:14:28 the overlay window isn't covering the notify bar Jun 13 11:14:36 rved, http://paste2.org/6DDWp68v Jun 13 11:15:55 EPG: YEAH :D your the best Jun 13 11:15:58 this works great Jun 13 11:16:11 rved, I've also removed the "0 | " from your flags. 0 | x has the save boolean value as x Jun 13 11:16:23 i saw, ty Jun 13 11:19:28 EPG: do you know this as well: i now have an activity which launches.. there i have a seek bar. But when i open/ click the app, i would like an overlay to open with the seek bar, so it looks like your not really in the activity, Jun 13 11:20:00 a bit like this https://lh5.ggpht.com/30JGVATESwKugHOEdsj3-S2KTWWp9LtzbgfBMZfW18rhbQaYt8yAUkcY7YwTZiot2Nfu Jun 13 11:22:06 should i use a Dialog? Jun 13 11:22:31 redarrow_: you can set a transparent theme for the activity Jun 13 11:22:44 how can i access getSharedPreferences from outside activity? only way to pass activity instance to this class as a parameter? Jun 13 11:23:40 rved, yes, Dialog should be the right thing here Jun 13 11:23:58 ok, can dialog have no buttons? or are buttons required? Jun 13 11:24:37 afaik not required Jun 13 11:24:57 primski, you need a Context for this Jun 13 11:25:38 EPG: yea, thanks, just found it ... Jun 13 11:25:56 ciurkut: use something like Fiddler or Charles to figure out the JSON response from YouTube, then use Gson to parse it in your app Jun 13 11:26:18 i have json response Jun 13 11:26:23 what is gson? Jun 13 11:26:32 anyway which format of response is best? Jun 13 11:26:47 https://code.google.com/p/google-gson/ Jun 13 11:26:54 i mean json/jsonc? Jun 13 11:27:02 i cant find what are differences Jun 13 11:27:03 :< Jun 13 11:27:59 EPG: is an activity required to launch the dialog onCreate() ? Jun 13 11:28:16 https://developers.google.com/youtube/2.0/developers_guide_jsonc#Comparing_JSON_and_JSONC Jun 13 11:28:31 ciurkut ^ Jun 13 11:30:09 Is there a creative commons bugdroid image hosted somewhere? I want to put him on my business card Jun 13 11:31:22 nvm I found it: http://developer.android.com/distribute/googleplay/promote/brand.html Jun 13 11:32:13 I was searching for "bugdroid creative commons" but I should have been searching for "android creative commons" Jun 13 11:32:33 hm when i have a rather large and complicated application using navigation drawer with pretty deep navigation tree, I'm not quite sure where should I use fragments and where should I use activities Jun 13 11:33:50 xplosivant can i ask you question on priv? Jun 13 11:34:08 lets say i click an item in the drawer which opens up a fragment containing listview, and then i click an item on the listview to fill the screen with info about that particular item. Should this "item" be just another fragment, open up a new activity or use some sort of view flipper or what Jun 13 11:34:58 How to pass the click on button. To the parent ? Jun 13 11:35:01 i want it to be simple to close down that view and go back to the list, in that sense another activity would work well since i can just hit the back button to close it Jun 13 11:35:13 I mean it seems that buttons "make stopPropagations" Jun 13 11:35:28 eSatsu: well that's your decision - a new activity will require some communication stuff to pass parameters Jun 13 11:35:35 but i want the navigation drawer to work in the new view as well Jun 13 11:35:52 and with an activity that gets a little more complicated Jun 13 11:36:14 i dont really understand nested fragments either Jun 13 11:36:14 bluesm: do you mean a system button like "back" or "home" or an on-screen button you have drawn Jun 13 11:37:04 i have a question concerning the dev-console... when im using staged rollout and i see that there are problems in this app... how can i pull this version back and replace it with a new apk? Jun 13 11:37:51 without usign the stagelvl as the version before? Jun 13 11:40:26 Ankhwatcher: Not. regular button. That Is in my xml file Jun 13 11:40:40 Ankhwatcher: I don't mean "virtual navigation" keys. Jun 13 11:41:05 bluesm: and you're trying to pass the click from a fragment to it's parent activity, or something else? Jun 13 11:41:35 Ankhwatcher: I try to catch "onTouch" event on parent (linearlayout) Jun 13 11:41:42 Ankhwatcher: the button is in linearlayout Jun 13 11:44:54 bluesm: you might just be using the wrong kind of listener, you should be setting an onClickListener: http://developer.android.com/reference/android/widget/Button.html Jun 13 11:45:16 Ankhwatcher: On ? Jun 13 11:45:38 bluesm: on the button, follow the link Jun 13 11:46:08 you could alternatively set a function to be called in the onClick attribute in xml Jun 13 11:46:48 if i choose activity theme Dialog, my seek bar is changed to a default yellow seek bar instead of the blue , how do i change this? Jun 13 11:47:19 Ankhwatcher: But I need to handle it on parent... Jun 13 11:47:39 Ankhwatcher: I need to handle multitouch on two buttons. Jun 13 11:48:20 bluesm: okay how about you pastebin your xml and the onTouchlisteners you have created and we have a look at them Jun 13 11:50:16 https://gist.github.com/bluesm/5773095 Jun 13 11:50:24 Ankhwatcher: ^ Jun 13 11:51:25 in sqlite, if i insert() a row in a table that already has a row with that primary key, will it overwrite, or throw an error? Jun 13 11:52:21 afaik, it will throw an error Jun 13 11:52:48 maybe i should just check and do update() in that case Jun 13 11:52:49 had that problem a few times in the past Jun 13 11:53:45 https://gist.github.com/bluesm/5773111 Jun 13 11:53:48 thanks Jun 13 11:53:49 Ankhwatcher: ^ Jun 13 11:54:35 Ankhwatcher: if you don't have a time it's OK :) Jun 13 11:54:39 bluesm: have you read this: http://stackoverflow.com/questions/5346148/android-work-multitouch-button Jun 13 11:55:03 Ankhwatcher: Nope Jun 13 11:55:31 bluesm: there's some interesting discussion there, have a look and see if it helps Jun 13 11:56:06 Ankhwatcher: Ok. Thanks :) Jun 13 11:56:15 I'll be designing my business card if you need me Jun 13 11:56:36 ;-) Jun 13 12:11:26 hello. I have a lengthy but important question. had answers, stating here to share and get different views. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 13 12:11:46 yea, so how do you debug NullPointerExceptions in java ? Jun 13 12:12:54 primski: look at the stack trace? Jun 13 12:13:01 primski: can you elaborate? nullpointer exception means that you are point to a variable value (usually to be used elsewhere) which does not exists . (i.e null) Jun 13 12:13:34 hm, wouldn't eclipse see an error in this case? Jun 13 12:13:35 primski: use strategies like if(variable != null) {do something} Jun 13 12:13:43 primski: not always Jun 13 12:13:58 ok thanks will doublecheck and try to log some values Jun 13 12:14:05 primski: IDEs dont usually catch it Jun 13 12:14:27 primski: just make sure that the variable is not null before you use it. thats all Jun 13 12:14:46 ok i'll check. thanks Jun 13 12:15:34 anyone played with services? Jun 13 12:23:29 Hello Jun 13 12:23:36 Anyone familiair with the Facebook sdk? Jun 13 12:23:45 MessageDigest.getInstance("SHA1"); <-- how can i find out which strings are guaranteed on which version? can't find any constants for it Jun 13 12:24:04 hi. Jun 13 12:25:21 i have running an Android App with native code (OpenCV). i want to read a compatible .avi file with OpenCV (native in C++) -> file exists and is in correct videoformat for OpenCV. still OpenCV can't read the video, because of missing avi codecs -> which one i need to install on Android? On Linux i have just chosen to install ffmpeg which supplies all codecs required. Jun 13 12:25:23 oh, i figured out the problem to the fragment question i had. adding the fragments to the backstack makes the backbutton navigate back to the previous fragment Jun 13 12:25:36 really good to know Jun 13 12:25:56 Are custom fonts in apps frowned upon? Jun 13 12:26:52 osxorgate, hmm, I doubt there's such a list Jun 13 12:27:02 but all androids support at least MD5, SHA-1 and SHA-256 Jun 13 12:27:21 Mavrik: http://stackoverflow.com/questions/12642742/exception-when-calling-messagedigest-getinstancesha256 seems to give a guaranteed list Jun 13 12:27:43 even better :) Jun 13 12:27:48 Quacked, um, not if they look good :P Jun 13 12:28:36 stephanmg, you're slightly misunderstanding how things work on Android Jun 13 12:28:51 stephanmg, you need to statically link decoders into your opencv library Jun 13 12:29:07 there is no system codec linking, neither is there a system-wide ffmpeg libav installation to which your .so could link to to find decoders Jun 13 12:29:35 well, there's OpenSL on newer versions Jun 13 12:29:39 Mavrik: thats interesting, can you give me some more help on how to do this? Jun 13 12:29:48 um Jun 13 12:29:53 well, learn how C linking works Jun 13 12:30:02 since obviously you're using C code and don't understand it Jun 13 12:30:06 and then it'll be clearer ;) Jun 13 12:30:27 for consistency between apps I would assume font differences were discouraged Jun 13 12:30:36 no i just did not understand what you mean, i should statically link my opencv code with ffmpeg? Jun 13 12:30:42 p_l, OpenSL is audio, he needs video codecs and OpenCV for now doesn't link with native stagefright/omx on Android :) Jun 13 12:31:00 Quacked, yeah, but that depends on your design. If you have a design where fancy font makes sense it's ok Jun 13 12:31:05 Mavrik: my bad, whatever was that a/v version of the lib :) Jun 13 12:31:11 OpenMAX, right Jun 13 12:31:20 Quacked, but I'd think twice about replacing a normal "readable" font in the app Jun 13 12:31:38 and you can feed the frames into OpenCV Jun 13 12:31:50 stephanmg, if you want to use ffmpeg decoders, yes, you should statically link libavcodec/libavformat into your opencv library so it'll have the decoders available Jun 13 12:32:27 Mavrik: now i understand it, thank you Jun 13 12:32:59 so, build static ffmpeg for android, build static opencv for android, build yourlib for android… lotsa work but it's possible Jun 13 12:35:26 Mavrik: thank you i guess that post seems quite reasonable to redo: http://stackoverflow.com/questions/4725773/ffmpeg-on-android Jun 13 12:44:52 for starting out with android development: android-sdk with eclipse or android studio? Jun 13 12:45:24 sdk with eclipse Jun 13 12:45:29 why is it so difficult to get currently active fragment from FragmentStatePagerAdapter ? Jun 13 12:45:37 Android Studio is a lot less frustrating for beginners, I think Jun 13 12:45:46 Kegsay: cause studio is not finished yet? Jun 13 12:46:28 for one reason, yes. For another, being comfortable with eclipse+plugins is generally a good thing Jun 13 12:47:11 hi all Jun 13 12:47:22 I started out on Eclipse, then switched to IntelliJ and now Android Studio Jun 13 12:47:35 and I'm a happier dev in IntelliJ/Android Studio Jun 13 12:47:36 There is a ton of logs in my logcat from ABS, any way to disable/remove those? Jun 13 12:47:45 anybody has any idea how to test an activity that calls and android activity (such as android.provider.MediaStore.ACTION_IMAGE_CAPTURE) Jun 13 12:48:02 same story here, started out on eclipse, moved to intellij, im a much happier person now Jun 13 12:48:26 okay stupid question...what do i need to do to make stuff show up in the shortcuts list of a launcher? i.e. i click add application i can see my application, now i want to make a shortcut to a specific function Jun 13 12:50:03 @ alexfu: adb logcat TagName:S will silence that tag's output Jun 13 12:51:22 Kegsay, oh cool, thx Jun 13 12:51:44 np Jun 13 12:54:38 I'm getting Conversion to Dalvik format failed with error 1 when I'm trying to export as apk. I read that it could be some kida jar conflict. But I'm unable to find the right solution. Any ideas? Jun 13 12:54:55 using eclipse Quacked? Jun 13 12:55:01 Yeah Jun 13 12:55:12 Should android-support-v4.jar and GoogleAdMobAdsSdk-6.4.1.jar be in both Android Private Libraries AND in libs? Jun 13 12:55:23 clean and build, F5 refresh the project, and remove duplicate libs if you're using a lib project Jun 13 12:55:50 I also use ActionBarSherlock and have android-support-v4.jar in Android Private Libraries and in Libs in that library Jun 13 12:56:11 It's possible ABS ships with support-v4? Jun 13 12:56:15 It does Jun 13 12:56:38 then you probably don't want it again Jun 13 12:56:54 Remove it from ABS or my project? Jun 13 12:57:19 iirc ABS had some v7? Jun 13 12:57:22 and from both Android Private Libraries and Libs or just Libs? Jun 13 12:57:25 er Jun 13 12:57:31 either or, you just want it to be in one place that everything is happy with Jun 13 12:57:32 v4-r7 Jun 13 12:58:16 But why is it in both Android Private Libraries and in Libs really? Jun 13 12:59:34 I'm unsure why things get put in private libs Jun 13 12:59:59 i have a relative layout with a background.. how do i create rounded corners on it Jun 13 13:00:00 ? Jun 13 13:00:16 i see something about shapes? should i be using this instead of relative layout? Jun 13 13:00:44 Aha, looks like Im unable to delete from private libraries Jun 13 13:01:27 rved easiest way is probably shape drawable Jun 13 13:01:38 but do you set that as background? Jun 13 13:01:49 http://stackoverflow.com/questions/2122199/how-do-i-set-the-rounded-corner-radius-of-a-color-drawable-using-xml Jun 13 13:01:56 you set it as the background Jun 13 13:02:00 in the xml Jun 13 13:02:03 or code Jun 13 13:02:06 like anything else Jun 13 13:10:48 how can one import a android project from eclipse to android studio so that it also adapts to the new project structure? Jun 13 13:11:21 lasserix: http://paste2.org/YbUz4pNg i don't really get it just yet Jun 13 13:11:33 in the layout.xml? Jun 13 13:11:41 how to initialise array of custom type like Video? Jun 13 13:11:47 Video[] v; Jun 13 13:11:47 generating a gradle file and import works fine but its the old eclipse folder structure Jun 13 13:11:59 and than would v.add[smth] work? Jun 13 13:12:04 if smth is type of Video? Jun 13 13:13:07 rved: you want the rounded corners on your relative layout? Jun 13 13:13:13 yes Jun 13 13:13:16 save the shape drawable as an xml file Jun 13 13:13:32 i read that you should place the shape.xml in the folder drawables? Jun 13 13:13:33 in res/drawable Jun 13 13:13:37 yes Jun 13 13:13:52 then change line 4 in that code you showed me too Jun 13 13:13:59 but i only have drawable-xhdpi etc.. Jun 13 13:14:03 not just drawable Jun 13 13:14:05 android:background="R.id.drawable.my_shape_drawable" Jun 13 13:14:10 make a drawable folder Jun 13 13:14:15 since this will auto scale Jun 13 13:14:25 you dont have to worry about pixel density Jun 13 13:14:39 so you can just make a folder in res called 'drawable' Jun 13 13:14:51 with the vriation flag (-xhdpi, etc etc) Jun 13 13:18:23 great help! thx, it is working now Jun 13 13:18:32 np Jun 13 13:20:13 anybody here familiar with AbstractAccountAuthenticator? Specifically, how am i supposed to imlpement getAuthToken()? Jun 13 13:20:14 Hello all. I'm setting up UI testing for my app. Following http://developer.android.com/tools/testing/testing_ui.html but I'm stuck at one step. I'm using Windows 7, and I've installed Ant using WinAnt. Done everything up until "Building and Deploying Your uiautomator Tests" Step 3. Now "ant build" tells me: [dx] no classfiles specified BUILD FAILED C:\Program Files (x86)\Android\android-sdk\tools\ant\uibuild.xml:198: null Jun 13 13:23:39 Of course, I tried StackOverflow first. There is one similar question there: http://stackoverflow.com/questions/13434308/android-ant-buil-project-failure but no answers... Jun 13 13:24:09 Has anyone gotten a 400 bad request when executing a GET + basic auth using HTTPUrlConnection? Jun 13 13:25:12 lasserix: is this good practice? http://paste2.org/neG7P3Nj i want to create an outline around the box i have in the middle Jun 13 13:25:20 so i created another relative layout Jun 13 13:26:16 no Jun 13 13:26:28 thought so :P Jun 13 13:26:46 FYI, I'm creating an activity which looks like a dialog Jun 13 13:26:53 I hate using broadcast receivers Jun 13 13:27:02 so i'm using a transparent theme on the first relative layout Jun 13 13:27:10 rved: Jun 13 13:27:15 as in http://stackoverflow.com/questions/5254562/is-there-a-simpler-better-way-to-put-a-border-outline-around-my-textview Jun 13 13:27:19 the first answer Jun 13 13:27:24 pardon, I retract my previous statement Jun 13 13:27:28 I hate using the facebook graph api Jun 13 13:27:37 If I ever saw a buggier, more annoying piece of shit Jun 13 13:27:47 but i have two different colors: 1st: 1dp black... Jun 13 13:27:50 the 2nd border Jun 13 13:27:56 is 1dp #555555 Jun 13 13:28:45 hmm Jun 13 13:29:00 idk tbh you can probably do what you did and get away with it Jun 13 13:29:18 except use a framelayout as the most outside viewgroup Jun 13 13:29:25 and padding to center in the inner RL Jun 13 13:30:04 ideally in this case i think you'd want to use a ninepatch Jun 13 13:30:47 I had to do that a while ago... I had an activity which used android:Theme.Dialog as its theme Jun 13 13:30:55 Everything else was simple Jun 13 13:31:05 Nobody with ideas on UI Testing? Judging by the lack of Google results, I'm guessing it's not a very common practice? Jun 13 13:31:12 I've created a rotatedrawable in xml, but how do I actually use it to rotate the drawable? Jun 13 13:31:14 Just inflate a custom layout in it, you can just put a 9patch bitmap for your border background Jun 13 13:31:58 toph_ZA - my company does all android testing manually, although we did find a testing software that looked promising, but wasn't available at the time we started the project Jun 13 13:32:07 gimme a few minutes I'll try to dig it up Jun 13 13:32:49 Tee_Pee: appreciated :) Jun 13 13:32:57 rved: ninepatch will give you complete custom control but you have to do some basic graphic stuff Jun 13 13:33:14 otherwise just do the overlap thing, but use the faster framelayout as the outside one Jun 13 13:33:25 https://www.testflightapp.com/android/ Jun 13 13:33:28 There Jun 13 13:33:32 as long as this is not a listview row or something you should be okay Jun 13 13:33:38 Since we didn't get to use it, I can't vouche for anything Jun 13 13:33:52 LOL.. I'm already using TestFlight. It doesn't do automated testing Jun 13 13:34:31 Yeah, I just saw that myself, went ahead of myself Jun 13 13:34:37 This is just for test build distribution Jun 13 13:34:41 ok thx guys Jun 13 13:34:42 Right, I got nothing then :P Jun 13 13:39:11 lasserix - you had any fun experience with the facebook sdk? Jun 13 13:39:32 I am having a hard time getting it to trigger my callbacks, or post comments. Jun 13 13:39:48 and by hard time I mean it doesn't work at all and there are bug reports from 2 years ago Jun 13 13:40:02 Tee_Pee i am sincerely hoping by the time I have to add facebook hooks to my app facebook will have died Jun 13 13:40:33 I'll take that as a big NO then :P Jun 13 13:40:34 so sorry no idea on that front Jun 13 13:40:36 hehe Jun 13 13:41:08 it is inane, stupidly convoluted and buggy. Jun 13 13:41:15 i.e. a perfect mix for a headache Jun 13 13:42:22 Which came in perfectly after I've spent an hour tracking down a bug related to mapview's bounding box. My api returns places on the map based on a bounding box I send, and the results kept coming back off, as if I'm sending the wrong bounding box Jun 13 13:42:44 after 2 hours it turned out that rounding lat and lon values to 4 decimals is a bad thing to do, leave them at 10-15. Jun 13 13:42:58 oh yeah most definatly Jun 13 13:43:21 round off errors in gps have led to accidental deaths Jun 13 13:43:25 no kidding! Jun 13 13:43:52 One question though Jun 13 13:44:12 You got 5 minutes to download the app from the market and have a look at something? Jun 13 13:44:20 https://play.google.com/store/apps/details?id=com.atlantbh.navigator Jun 13 13:44:52 sure one sec Jun 13 13:45:56 when you open up the application you'll get a category listing with a search box on top... if you click on the map button in the top right, you'll scroll to the map and the search box will smoothly move off-screen (You can also swipe, but swiping back from the map requires you to swipe from the edge, similar to chrome's tab switching) Jun 13 13:46:10 alternatively, you can go back to the category listing by clicking the home button Jun 13 13:46:25 Either way, the issue is that the search bar re-appears instantly, rather than slowly crawling in Jun 13 13:46:28 ugh why does the play store suck sometimes Jun 13 13:46:33 i cant view all apps my developer Jun 13 13:46:40 still have to find it Jun 13 13:46:53 navigator.ba Jun 13 13:46:56 that's the name of the app Jun 13 13:47:07 Ought to be available in all countries Jun 13 13:47:11 2.2 and up Jun 13 13:47:57 doesn't show up Jun 13 13:48:04 a different 5 dollar one does Jun 13 13:48:05 Tee_Pee: 15 minutes for the refund Jun 13 13:48:25 ohh Jun 13 13:48:28 umm Jun 13 13:48:51 does this require cell connection? Jun 13 13:48:56 this app is free Jun 13 13:48:58 O.o Jun 13 13:49:08 refund refund Jun 13 13:49:09 i can't pull it up on my n7 Jun 13 13:49:28 it doesn't... one second Jun 13 13:49:50 *it does not show up as search result in the play store on my n7 Jun 13 13:49:55 which has no cell plan associated with it Jun 13 13:50:26 Oh, it requires phone permissions Jun 13 13:50:59 I suppose that's the reason Jun 13 13:51:03 Tee_Pee: thanks anyways. Do you have any suggestions for me? Should I post a new StackOverflow q? Jun 13 13:51:33 toph - I don't think there is a viable solution available other than to use desktop testing tools with a carefully position emulator. Jun 13 13:51:45 and dump logcat info Jun 13 13:55:48 Tee_Pee: ok.. hm. Interesting idea, I'll look into that at some point. For now, I'll have to stick with manual testing. At least I'm unit testing my non-UI classes. thanks!! Jun 13 13:56:06 no problem, good luck with your testing Jun 13 13:56:43 anyone here upgrade to mavericks? looks like hax doesn't work :( Jun 13 14:00:01 Are there meant to be very few options when it comes to picking a device in the AVD manager? Jun 13 14:00:41 like the Nexus S and then just a bunch of screen sizes Jun 13 14:05:40 what is the best way to detect user inactivity? i want to close my activity if the user hash;t touched it for 4 secs Jun 13 14:06:34 is there any drawback to storing a ref to the Application object on a fragment, in order to always have a context? Jun 13 14:06:49 context memory leaks Jun 13 14:07:12 meaning? there will always be 1 application object Jun 13 14:07:20 the application context has a reference to your activity, which has a reference to your fragment, which again has a reference to your application context Jun 13 14:08:18 Just realized you were talking about the application context... hmm... I am not sure about any issues, but I fail to see any reason for doing this - the fragment has a context as long as its alive Jun 13 14:08:22 i love leaks Jun 13 14:08:34 http://beta.fool.com/alexcho/2013/06/13/samsung-could-be-in-serious-trouble/36675/?source=eogyholnk0000001 Jun 13 14:08:35 Just putting this out there. I wish the Android docs (http://developer.android.com/tools/ etc...) had some kind of comment functionality. Is there no sort-of-official user-contributed Android space, other than SO? Jun 13 14:08:37 i loled pretty damn hard. Jun 13 14:08:39 Tee_Pee: what do you mean? it can exist without activity Jun 13 14:08:41 and when it's not alive... well, it's not doing anything no more Jun 13 14:09:32 A fragment without an activity? Jun 13 14:10:41 yeah sure Jun 13 14:11:12 Solupus: next phone iOS? wtf? Jun 13 14:11:26 its complete apple bias rofl Jun 13 14:11:52 and the best part about it is... being a ex-investor people who read the blogs and news will believe it Jun 13 14:12:05 and buy apple stock and put options on samsung Jun 13 14:12:13 Solupus: also the US market isn't the world market ;) Jun 13 14:12:35 well the only market i can think of that heavily supports and is GO APPLE is China Jun 13 14:12:47 but even thats shifting :) Jun 13 14:13:16 most of my cousins in China have IPhones and IPads and I asked them why Apple? They basically just said... Android doesn't have enough games Jun 13 14:13:20 there are hackint0sh in china - but noiPhones ;) Jun 13 14:13:26 ? Jun 13 14:13:30 are you kidding me? lol Jun 13 14:13:45 every business man/woman there has an IPhone. If you don't its looked down upon Jun 13 14:14:08 yes but that's business Jun 13 14:15:25 ive seen children having Iphones. one of my cousins has a 1k per month job (considered average) and she has an IPhone :/ Jun 13 14:17:14 osxorgate: what are you trying to do with that context? Jun 13 14:17:22 people sell kidney's in China to get iPhones...quite crazy Jun 13 14:17:50 pjdelport: i want to get from fragment to the application context, where an object is stored Jun 13 14:17:52 the fragment should generally always use its activity's context Jun 13 14:18:32 what are you storing there? Jun 13 14:19:54 damnit Jun 13 14:19:59 i spend whole focken day Jun 13 14:20:03 to make that shit work Jun 13 14:20:03 just some datastructure that i update at the end of an intentservice Jun 13 14:20:05 and now Jun 13 14:20:07 it works Jun 13 14:20:16 but videos in list are in messed order Jun 13 14:20:35 some get displayed twice Jun 13 14:20:40 some dont have photo Jun 13 14:20:44 this is bullshit Jun 13 14:20:48 any of you guys have a Bluebird Pidion BP50? Jun 13 14:20:57 osxorgate: you probably don't want to store that on the Application instance, then... Jun 13 14:22:45 if you need coordination-free shared access to some data, just make it a singleton of its own, with static access methods Jun 13 14:23:00 and have the IntentService and whatever else use that Jun 13 14:23:10 pjdelport: yes! Jun 13 14:23:37 or parcelate to death Jun 13 14:23:59 pjdelport: hm yes you have a point.. it needs not be on the application object Jun 13 14:25:53 there may be other better ways of dealing with the state too, depending what it is and how it's used Jun 13 14:26:05 put it in a database Jun 13 14:26:14 send the IDs in the parceled object Jun 13 14:26:26 or via bundle Jun 13 14:28:11 i had a db Jun 13 14:28:20 but reading and writing was happening at the same time Jun 13 14:28:38 so the listview was not having all items, for example Jun 13 14:29:06 can i make a transition (fade-out) when i do moveTaskToBack ? Jun 13 14:29:14 i would like it to fade out Jun 13 14:29:15 so my idea is to download a json, generate a new structure from it, and swap that on the singleton Jun 13 14:29:35 then broadcast the system that the db was updated Jun 13 14:29:44 osxorgate: reading and writing at the same time is not a problem; that's precisely what DBs are good at Jun 13 14:29:46 and then fragments can fetch the new data from the singleton Jun 13 14:29:59 pjdelport: sqlite is not threadsafe Jun 13 14:30:22 ie was not designed with multiple threads in mind Jun 13 14:30:39 osxorgate: it certainly is, or it would be practically useless Jun 13 14:31:29 if you were having consistency issues, did you do the update in a transaction? Jun 13 14:31:57 no, maybe that was the problem then Jun 13 14:32:15 if you don't wrap a collection of updates in a transaction, the individual updates are effectively each small transactions Jun 13 14:32:23 first i deleted all rows, then inserted one by one the new ones Jun 13 14:32:41 those inserts need to be in a transaction, yes, if you want them to be atomic Jun 13 14:32:48 hmm Jun 13 14:33:47 if the deletes and inserts are in a transaction, your ListView will happily keep reading the older version of the data while the transaction is in progress Jun 13 14:34:03 and the writing happens without blocking the ListView's reading Jun 13 14:34:25 when all the writing is complete, and you commit the transaction, the ListView will atomically switch to displaying the new data Jun 13 14:35:33 much better than having your reading code block on a mutex while something else updates it Jun 13 14:35:51 most in-memory data structures are not really great at that kind of shared access Jun 13 14:36:01 SQLite is built for it Jun 13 14:39:18 anyone pro here wanna help me debug my code? Jun 13 14:45:57 ciurkut: dont ask to ask just ask Jun 13 14:46:22 hmm Jun 13 14:46:49 * pjdelport ponders the safety of relying on SparseArray being sorted internally Jun 13 14:47:34 Does any one know how to make an activity fade out when i use MoveTaskToBack? Jun 13 14:50:39 transition drawable? Jun 13 14:51:16 Does anyone know what the home-button / back / recent bar thing is called and if there is a way to determine whether it is visible a soft input interface or hard ? Jun 13 14:53:35 lasserix: you probably want to look at http://developer.android.com/reference/android/content/res/Configuration.html Jun 13 14:53:46 keyboard? Jun 13 14:53:53 lasserix, systemUI Jun 13 14:53:56 i was searching on keyboard-backlight today Jun 13 14:54:14 lasserix, you also want to look into fitsSystemWindows Jun 13 14:54:32 although, for something I wrote, I couldn't get the systemUI bar to work with fitsSystemWindows Jun 13 14:54:36 * pfn shrugs Jun 13 14:54:42 if you want to use a special transition, you have to save the java/xml some where.. but where? Jun 13 14:55:47 res/anim Jun 13 14:55:57 if xml, in src/... if java Jun 13 14:57:31 pfn/pjdel thanks, just need to do proper calculations for a HuD with opengl so that bar kinda messes it up sometimes :) Jun 13 14:57:57 huh? it should never mess it up, because the rectangle you get should fit that bar Jun 13 14:58:06 unless you're using the wrong api to get window size Jun 13 14:58:30 im using displaymetrics Jun 13 14:59:02 in opengl they have NDC coordinates which go from 1 - -1 in x,y so top left is -1, 1 and bottom right is 1, -1 Jun 13 14:59:23 however, because of that bar the maximum bottom touch point is something like -.8 Jun 13 14:59:23 yeah, probably not what you want to use Jun 13 14:59:24 pfn: if i use; http://paste2.org/ODvKcw70 where do i define fadein? Jun 13 14:59:24 for y Jun 13 14:59:30 i don't have clue at this point Jun 13 14:59:30 Does anyone know how is the RotateDrawable supposed to be used? Jun 13 14:59:32 ahh Jun 13 14:59:32 probably more like you want getWindow().getWidth() and whatever Jun 13 15:00:15 maybe, but i believe the glsurfaceview passes values consistent to the display metric for the viewport size Jun 13 15:00:19 let me check Jun 13 15:00:55 hmm, dunno, I don't dick with opengl... Jun 13 15:01:52 ah ha Jun 13 15:01:56 you are right Jun 13 15:01:58 they are different Jun 13 15:02:03 no wonder the value was a little off Jun 13 15:10:52 Hi all! Jun 13 15:11:45 I was looking for a clean way of binding a service from another service Jun 13 15:12:32 i have found this but seems a dirty hack http://stackoverflow.com/questions/6488445/could-a-service-bind-another-service Jun 13 15:12:37 if you intend it, it will filter it Jun 13 15:12:49 err if you intend it, it will bind it Jun 13 15:16:53 lasserix so i just have to do this just like i do in an activity ? Jun 13 15:16:58 binding to a service from a service is the same as in an activity Jun 13 15:17:21 thanks Jun 13 15:21:57 Hey, if you guys had to guess the most popular tablet in the 10.1" form factor for Android, what would you guess? I'm thinking Galaxy Note 10.1 or Transformer eeePad Jun 13 15:23:29 Brian: depends on use Jun 13 15:23:40 the transformer eeepad's dock is really nice since it 2x battery life Jun 13 15:24:15 but make sure whatever you get you like what kinds of connectors it has Jun 13 15:26:02 lasserix: This tablet will be used to demo tablet based apps(wanna really wow the CEO) Jun 13 15:26:25 Brian: ahh in that case i would goto best buy or whatever Jun 13 15:26:27 and play with it Jun 13 15:26:38 and see what looks like it has more wow factor Jun 13 15:27:27 Well right now Jun 13 15:27:33 I know the Galaxy Note 10.1 looks nice Jun 13 15:27:44 so the Galaxy Note 2 10.1 is looking good Jun 13 15:27:49 and it's only $300 Jun 13 15:27:56 but the Nexus 10 is also nice Jun 13 15:27:58 and really high rest Jun 13 15:28:37 my brothers n10 is nice Jun 13 15:28:52 I also have considered the N10 Jun 13 15:29:28 you might try Jun 13 15:29:31 #android Jun 13 15:30:34 seems like n10 might be the way to go Jun 13 15:30:43 especially for dev, Jun 13 15:35:36 get the nexus 10 Jun 13 15:35:40 if you need a demo device Jun 13 15:35:41 http://pastebin.com/zCRwJAyv Jun 13 15:35:53 anyone can check why images dont load at first Jun 13 15:36:09 and than when you scroll down and back up they are moved by one? Jun 13 15:36:23 1st entry have picture from second one Jun 13 15:36:40 Hey, generally do you guys leave an SQLite db connection open? or do db.close()? I understand that we dont' really need to close the db? Jun 13 15:38:10 you need to close the db Jun 13 15:38:25 Each write or read? Jun 13 15:38:27 how did you determine that you don't need to close it? Jun 13 15:38:35 google :) Jun 13 15:38:40 just reading conflicting things... Jun 13 15:38:41 it depends on the level of concurrency you need Jun 13 15:39:06 well theres generally only one connection open at a time Jun 13 15:39:17 i'm currently opening to write, then writing then closing Jun 13 15:39:48 then if i do a read I don't usually close, should i always close the cursor? Jun 13 15:40:05 I haven't run into any issues but just beginning to get curious on good practice... Jun 13 15:40:52 I'm thinking about having my settings class have its own db connection but it will touch a completely separate table from the other dbhandler class so there shouldn't be any conflicts if i understand correctly Jun 13 15:41:51 so looks like I'll get another fun toy to play with at work since they're looking in to getting me a 10.1" tablet to develop and demo on Jun 13 15:42:00 :D Jun 13 16:10:40 Does anybody know a library that lets me expose raw PCM data from libspotify (hooked up with ndk/jni) through a localhost http uri? Jun 13 16:11:29 I'm writing a wrapper around libspotify, and want to play the binary data I get back from libspotify with the Android MediaPlayer Jun 13 16:11:50 I figured the best way to achieve this, would be a local http server Jun 13 16:13:00 i have an activity which looks like a dialog, I'm using a transparent background (theme) the rest of the relative layout looks like a diaglog Jun 13 16:13:08 i want it to close after touch outside Jun 13 16:13:10 any idea's? Jun 13 16:13:20 i googled but couldn't find the correct code Jun 13 16:18:14 solved Jun 13 16:18:14 got it Jun 13 16:18:23 http://stackoverflow.com/questions/14028842/how-to-check-if-i-have-touched-inside-or-outside-of-a-modal-activity Jun 13 16:26:17 outside of 9patches, if I'm using shape drawables, how do I make sure content appears within the bounds of my background drawable? Jun 13 16:29:35 Set padding on the shape drawable? Jun 13 16:31:10 hmm, indeed Jun 13 16:32:10 doesn't seem to work right for a ring, though Jun 13 16:32:19 * pfn ponders how to guarantee squareness in layouts Jun 13 16:34:47 pfn: height=50dp ... width=50dp ;) Jun 13 16:34:54 yeah, that sucks Jun 13 16:35:11 yeah i know ;) and i also know why you are asking Jun 13 16:35:48 Custom drawable Jun 13 16:36:18 Or view Jun 13 16:36:30 ViewSuckLess Jun 13 16:36:40 yeah, avoiding that, just toying with an appwidget and wanted a layout that worked the way I wanted Jun 13 16:36:43 guess it won't happen Jun 13 16:37:04 Yeah, then you're kind of limited Jun 13 16:44:25 is there some good and fast introduction to app-development for experienced programmers? Jun 13 16:46:21 I am very much aware of android as a system (and linux as well). I know how dalvik works etc. What I need is a "practical" guide. Jun 13 16:46:35 http://developer.android.com/training/index.html ? Jun 13 16:47:17 oh OK, I guess I was looking for that :) Jun 13 16:47:20 thanks Jun 13 16:47:49 loxs: that site should be your first stop for everything, basically Jun 13 16:48:11 if it's not covered there, you're probably getting into unusual territory Jun 13 16:48:52 I see. I guess it was a bad idea to start reading books... Jun 13 16:49:22 unless the book is very recent, you'll probably want to stick with online docs Jun 13 16:49:25 they get regularly updated Jun 13 16:49:31 with guides for new APIs, etc. Jun 13 17:10:09 <|Agent> When I navigate from an Activity to a child activity and back, I see that the Activity is destroyed & recreated, but onRestoreInstanceState isn't getting called. (onSave/RestoreInstanceState: http://pastie.org/8039785) Jun 13 17:10:22 <|Agent> Am I missing something about how this works? Jun 13 17:11:07 If you finish an activity it's not going to have its state saved Jun 13 17:11:32 |Agent, onSave gets called, bundle gets passed into onCreate Jun 13 17:17:42 <|Agent> pfn, the docs say that I can use onRestoreInstanceState instead of doing it in onCreate. Are they incorrect? Jun 13 17:18:10 <|Agent> SimonVT, ah Jun 13 17:18:31 State is passed to both Jun 13 17:40:07 Hello, I'm trying to use the NavigationDrawer inside a SherlockFragmentActivity, the problem is i cannot use the drawer Jun 13 17:40:16 drawer's onOptionsItemSelected Jun 13 17:40:31 inside the Activity's onOptionsItemSelected() Jun 13 17:40:48 as here: http://pastebin.com/2P9f83NP Jun 13 17:42:22 drawerToggle.onOptionsItemSelected does not accept a com.actionbarsherlock.view.MenuItem argument Jun 13 17:45:05 So open it manually Jun 13 17:45:46 how? Jun 13 17:46:16 Call whatever method that opens it Jun 13 17:46:34 If it's already open, call whatever method that closes it Jun 13 17:49:20 I couldn't find anything capable of achieving that in ActionBarDrawerToggle Jun 13 17:52:55 i have create with the latest android sdk tools an avd with a nexus 10 configuration. but when i start the screen in the window is just black nothing happens, all other avd profiles are known to work. any advices are welcome to me thank you very much. Jun 13 17:52:58 https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html#openDrawer(android.view.View) Jun 13 17:58:46 <|Agent> How and where do I actually instantiate a non-UI, retained Fragment? If I call "new MyFragment()" in the parent Activity, won't it be recreated each time the parent Activity is recreated? Jun 13 17:59:28 SimonVT, thank you :) Jun 13 17:59:57 You have to add the fragment to the fragment manager Jun 13 18:06:26 <|Agent> So in the Activity's onCreate, I make a FragmentTransaction and call the add() method, but what do I pass in for the Fragment argument? Will it ignore the argument if a fragment with that tag is already registered and retained? Jun 13 18:06:58 Pass your fragment for the fragment argument Jun 13 18:07:05 Don't call it if the fragment already exists Jun 13 18:09:35 <|Agent> Okay, so the logic should be: 1) Call FragmentManager.findFragmentByTag, and 2) if that returns null, make a new instance and add it to the manager via FragmentTransaction, right? Jun 13 18:09:59 Yep Jun 13 18:12:04 <|Agent> Okay, thanks. The docs just said, "oh, call add to set up a UI-less fragment" and didn't talk about how to re-acquire a retained instance. Jun 13 18:14:01 SimonVT, in the activity's onOptionsItemSelected what id should i check for Jun 13 18:14:09 to open the drawer manually Jun 13 18:14:09 ? Jun 13 18:16:16 hello everyone Jun 13 18:17:50 any ndk devs here? Jun 13 18:19:15 Possibly, probably, and maybe Jun 13 18:19:28 ok... Jun 13 18:19:33 any experience with opens? Jun 13 18:19:36 opensl* Jun 13 18:23:13 <|Agent> SimonVT, do I need to do anything to attach the found Fragment to the Activity? Jun 13 18:23:31 just use the fragment manager Jun 13 18:23:35 and make a transaction Jun 13 18:25:50 <|Agent> If I have to manually re-attach the fragment, do I also have to manually detach the fragment? Jun 13 18:26:06 <|Agent> when the activity is destroyed? Jun 13 18:26:08 Refer to the fragment lifecycle Jun 13 18:26:09 lol Jun 13 18:26:20 I never remember these things Jun 13 18:26:28 usually I'm copy/pasting my fragment creation stuff and fragment handling Jun 13 18:26:32 or I look it up Jun 13 18:26:45 What do you mean by attach? Jun 13 18:26:46 <|Agent> The fragment lifecycle doesn't consider retained fragments. Jun 13 18:26:48 You just add the fragment Jun 13 18:26:51 Set it as retained Jun 13 18:26:55 Profit Jun 13 18:27:03 thanks to computers and internet, you don't need your own memory anymore ;) Jun 13 18:27:27 you're never actually attaching the fragment Jun 13 18:27:30 it's just in memory Jun 13 18:27:38 shmooz: Thats why I think memory based testing in school is just silly Jun 13 18:27:48 who honestly goes to work and never once opens stack overflow Jun 13 18:27:52 I'll give you a hint, noone Jun 13 18:28:05 its still good to practice it to make it better Jun 13 18:28:38 But like Jun 13 18:28:41 <|Agent> I see. Attached/detached only applies to UI fragments. Jun 13 18:28:46 sortof like playing games improving coordination skills Jun 13 18:28:50 Someone who has memorized every single method, class, parameter etc, of every java function ever Jun 13 18:28:58 isn't really going to be absolutely better than a programmer who hasn't Jun 13 18:29:01 it's justnot worthwhile Jun 13 18:29:35 tl;dr CS and Software Engineering departments need to move to project based testing over exam based Jun 13 18:33:19 <|Agent> After I call findFragmentByTag() to get a retained fragment, do I still have to call add() to add it to the FragmentManager in order to have the FM add it to the Activity so that the Fragment's isAdded() returns true? Jun 13 18:33:58 If you can find it, then it's already added Jun 13 18:34:22 It's added, but posssible not on the top of the stack Jun 13 18:34:42 <|Agent> This is a UI-less fragment; it'll never be on the stack Jun 13 18:34:55 <|Agent> (I assume you mean the back stack) Jun 13 18:34:59 ah Jun 13 18:35:03 yeah Jun 13 18:37:34 <|Agent> SimonVT, added to the FragmentManager, sure, but the Fragment's isAdded() method says it returns true if the fragment is currently added to its activity. Don't I need to tell the FragmentManager to associate the found fragment with the new activity instance? Jun 13 18:37:34 hello Jun 13 18:38:22 Your fragment is retained, the fragmentmanager isn't Jun 13 18:38:33 It's a field in the activity Jun 13 18:39:51 <|Agent> So when I tell the activity's FM to find a fragment, it automatically associates that fragment with the FM's own activity? Jun 13 18:40:23 Is there any way to get a pcm data buffer to play in a MediaPlayer object? Jun 13 18:41:07 Using libspotify right now. libspotify returns pcm data, which I then write in a buffer. But how can I stream from this buffer inside my app's MediaPlayer ? Jun 13 18:41:29 The retained fragments are added to the new fragmentmanager by the framework Jun 13 18:41:45 The interface is ofc JNI/NDK Jun 13 18:43:33 HOw do i get a string from main.java file to string.xml Jun 13 18:43:50 Copy paste it? Jun 13 18:44:02 na its a variable Jun 13 18:44:11 that was created by text Jun 13 18:44:28 IM trying to display the data from a text file onto a nice orderly table Jun 13 18:44:53 the text file was created in the main.java Jun 13 18:45:09 <|Agent> Does the framework track fragments on a per-activity-class basis? Otherwise, how could it know which retained fragments should be associated with MyActivityA vs. MyActivityB absent the call to findFragmentByTag? Jun 13 18:45:44 It's per activity Jun 13 18:46:04 Look at e.g. FragmentActivity, it's fairly simple what it does Jun 13 18:47:19 SimonVT what would be the best way to display the contents of a text file? Jun 13 18:49:26 Load it into a string, display it in a textview Jun 13 18:49:50 i mean i used the buffered reader to put the file into a string Jun 13 18:49:59 but i did that in main.java file Jun 13 18:50:10 that why im asking how do i get the string from there into string.xml Jun 13 18:50:16 You don't Jun 13 18:50:35 Why would you want that Jun 13 18:50:52 to display the contents of the text file in an orderly table Jun 13 18:51:01 or list whaetver Jun 13 18:52:22 <|Agent> In order for it to be per-activity, that means that I wouldn't be retaining fragments across orientation changes, because the activity is destroyed and created anew, right? Jun 13 18:52:53 You don't need it in strings.xml to display it in a list Jun 13 18:53:00 And you can't add strings to strings.xml at runtime Jun 13 18:53:02 So do it in code Jun 13 18:54:26 Ugh.. tl;dr it uses https://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance() to retain your fragments Jun 13 18:56:55 I'm looking for some anti-tampering techniques to prevent applications from modifying my app's memory while it's running (without using ptrace). Ideas? Jun 13 18:57:52 Jeaye: er, rely on the system to do that for you? Jun 13 18:58:13 On rooted devices, that's not really a safe bet. Jun 13 19:00:12 hey :) Jun 13 19:00:27 hey Jun 13 19:00:28 ;-) Jun 13 19:00:39 ;) Jun 13 19:01:17 u Jun 13 19:02:22 <|Agent> I see. So, an Activity isn't *completely* destroyed when orientation changes, in the sense of "eligible for garbage collection"; it is kept alive so that the non-configuration information is preserved. Jun 13 19:02:55 |Agent: since when Jun 13 19:03:18 you pass back your non-configuration object so the activity "could" be garbage collected Jun 13 19:03:21 No, it's completely destroyed Jun 13 19:03:34 That method lets you retain an object Jun 13 19:03:55 SimonVT: ofc only if silly developers dont reference the object in their non-configuration data Jun 13 19:03:55 lol Jun 13 19:04:41 Yeah, that'd be stupid Jun 13 19:05:38 :( Jun 13 19:06:56 Can someone explain the setLevel method of Drawable? Jun 13 19:07:06 docs arent very clear about it Jun 13 19:07:55 Can gcm be used for making a group chat application? Also can we surpass the 1000 recipient limit as given on the site? Jun 13 19:09:07 nisarg: 1. Yes. 2. No (To my knowledge) Jun 13 19:09:20 nisarg: Alternatively you can use other data pushing services Jun 13 19:09:30 like xmpp? Jun 13 19:09:33 e.g. the battery indicator uses setLevel to select which drawable to show Jun 13 19:10:28 You could even make your own by creating a custom webview that interacts with app engines channels API via javascript :S Jun 13 19:10:34 but that is nonsensical Jun 13 19:10:38 if you're doing a game, you can use http://appwarp.shephertz.com/ Jun 13 19:11:42 hi everybody in Intent class is there any flag to clean all activities and only leaves activity started by intent? Jun 13 19:12:06 Brian|CB: No. I was making a chat room for my college. I read on the android site somewhere that in GCM we can break up the recipients into groups of 1000 or less. But i did not find such info anywhere else Jun 13 19:13:44 nisarg: Do you honestly expect groups to breach 1000? Jun 13 19:14:00 1000 concurrent users is a ton Jun 13 19:15:27 Brian|CB: Not individual groups. But i am planning to make a separate chatroom(default) where each student is a member Jun 13 19:15:49 nisarg: That just sounds like a bad plan in general Jun 13 19:16:11 I know I don't want to be in a group of over 1000 people with messaging Jun 13 19:16:22 hell, even a group of 50-100 people is annoying Jun 13 19:17:14 Does anyone know if it's possible to use the PreferenceFragment, but not have the preferences saved to the Application (i.e. setting preferences on a per-item basis, and utilizing the preferences when they're modified in your own way)? Cheers :) Jun 13 19:17:57 Brian|CB: Actually this room will have an option to mute indefinitely and not get notified. I need this group so that people get news about events going on in the college Jun 13 19:18:10 I have had a quick Google about, and a look at the Android documentation, but couldn't see anything that would allow me to override this functionality - either that or I completely missed it.. Jun 13 19:18:54 nisarg: My suggestion is to ditch that idea, and instead have the app check for news updates every time it launches, and send out news that way Jun 13 19:19:32 Brian|CB: Yea I too had that thought. Thanks a lot for the help. Jun 13 19:19:57 nisarg: my suggestion is to not do what Brian|CB is saying and to use GCM, but when someone mutes it, send that to the server so they don't keep getting GCM tickles Jun 13 19:20:24 that said, can't you just split them into groups < 1000 and send the GCM N times? Jun 13 19:20:44 evanc: ok. Yea i just wanted to know if that is possible Jun 13 19:21:21 evanc: But looking at the desired functionality I honestly don't think push notifications are that much better than a polling type system Jun 13 19:21:43 Hey I read the classes up to the "Displaying bitmaps efficiently". Do you think its a good idea to make an app with a list view that swaps for fragments before I continue? Jun 13 19:24:09 Miesco, if you're targeting multiple device types, I'd say definitely go with Fragments. They're great :) Jun 13 19:24:21 Fragments are awesome Jun 13 19:24:26 there is really no downside I can see to using Fragments Jun 13 19:24:28 only upside Jun 13 19:24:29 no reason not to use fragments Jun 13 19:24:29 :D Jun 13 19:24:31 <|Agent> Hm. I guess the system calls Activity.attach to restore the non-configuration information. I'm not sure how the system tracks that, if it tracks it. It may just keep them around just long enough to immediately re-create the activity. Jun 13 19:25:13 <|Agent> Now to see if Fragment's isAdded() gives the correct results for retained fragments. Jun 13 19:26:18 RE my question by the way, further Googleing (like eating more Smarties) has revealed the answer. I can override the 'onPreferenceChange' callback, and return false if I do not want to save the preference value. Whether or not PreferenceFragment will be a good solution to my settings screen, or if I should design a custom screen remains to be seen ;) Cheers anyway :) Jun 13 19:27:02 [redirected from #android] Greetings. For a university project, we have build a little app which makes use of multiple sensors of a smartphone to solve an everyday problem. any cool ideas here? :) Jun 13 19:27:30 anyone have multitouch with the built in drag and drop workin g? Jun 13 19:27:45 Detect g-force, try and estimate distance the phone will be thrown? Of course, it'd probably only work once.. ;) Jun 13 19:27:53 using the new APIs Jun 13 19:28:16 Seidr: haha :P Jun 13 19:32:35 Chaze, whether or not GPS is sensitive enough I'm not sure, but you could extend that to a multiplayer game of catch.. Jun 13 19:32:46 AD-Hoc network for keeping track of players Jun 13 19:33:17 nice idea, but our focus is really more on *solving a problem* Jun 13 19:33:24 Ahh, fair enough Jun 13 19:34:05 is there a way to make an edittext lose focus when a button is clicked, so that the on-screen keyboard will be dismissed? Jun 13 19:34:30 or i should say, is there a way to make the on-screen keyboard that comes up when an edit text is in focus be dismissed by a button click Jun 13 19:34:34 a previous class project, for instance, was a noise-map (mapping ambient sound volume to geographical locations) Jun 13 19:35:16 speakingcode-wor: you could use the InputMethodManager to do that I think Jun 13 19:35:23 chaze i used to work in a wireless sensor network lab Jun 13 19:36:08 speakingcode-wor: Yep, here you go. http://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard Jun 13 19:37:02 speakingcode-wor: zigbee? other? Jun 13 19:37:06 some things we worked on were event boundary analysis / containment, aka "trap coverage", asset tracking, inertial navigation (navigating via inertial sensors etc in case of gps outage), biometric sensing n pattern detection Jun 13 19:37:31 dragorn: mix of things. motes w/ zigbee (telosb, tmote, etc), android devices, custom hardware Jun 13 19:38:10 speakingcode-wor: cool. I do all sorts of random sensor/wireless crap lately. The telosb hw isn't bad, I ended up making my own for some stuff Jun 13 19:38:30 one of the lab members co-developed a mote platform w/ some people from berkley and univ of michigan Jun 13 19:38:44 and some of them went on to start moteware.com Jun 13 19:39:41 speakingcode-wor: http://kismetwireless.net/kisbee/ is some zigbee+android fun, tho I *really* need to get back on it and get the v3 hardware prototypes built so it can go into real assembly Jun 13 19:40:25 nice Jun 13 19:40:46 same guy i mentioned in the lab also created the first bluetooth bridge for motes Jun 13 19:41:13 we used it to send data to android devices in a project where motes did the sensing and all the data was pre-processed on androids and sent to the cloud from there Jun 13 19:42:09 looks pretty awesome dragorn Jun 13 19:43:08 speakingcode-wor: heh, pretty much what the guy in your lab did then, too Jun 13 19:43:23 speakingcode-wor: parallel dev, I was mainly concerned with sniffing and logging Jun 13 19:43:59 AH Jun 13 19:44:03 oops. Jun 13 19:44:11 thanks Seidr Jun 13 19:44:21 No problem :) Jun 13 19:50:58 anyone with any robospice experience willing to lend a ear? Jun 13 19:51:19 Can I get a reference to a service that I didn't start (i.e. that's defined in the manifest)? Jun 13 19:51:53 marrrk: a reference to an object not yet created? that's a curious idea. Jun 13 19:52:05 step back: what is it that you're trying to really accomplish? Jun 13 19:53:00 I have my own IME and I want to bring it up. I need an IBinder reference for that. Right now I store it in a static variable but I find that's a disgusting solution. Jun 13 19:55:19 jasta: So what's your take on that? Jun 13 19:55:57 hi guys, i recently upgraded from a 7200 rpm hdd to a ssd, before the upgrade the aosp build time was ~64min real, after the upgrade it's still ~64min real, am i doing anything wrong? Jun 13 19:56:55 loin: nothing Jun 13 19:57:11 the ram of your computer is as fast as before ;) Jun 13 19:57:18 you have 16gb? Jun 13 19:57:22 monsti, yep Jun 13 19:57:31 so the source has 1-2gb Jun 13 19:57:37 How about a new processor? Jun 13 19:57:42 where are you storing source? Jun 13 19:57:48 it's in the ram after the first make - cached by th system Jun 13 19:58:07 so the disk i/o is not the problem Jun 13 19:58:21 what is the issue there Jun 13 19:58:26 i bought the latest i7 Jun 13 19:58:29 ask top Jun 13 19:58:39 got the maximum amount of ram my motherboard supports Jun 13 19:58:40 got a ssd Jun 13 19:58:43 check if the CPU is at 100% load Jun 13 19:59:07 in unix "make" you can add -j n with n = number of parallel builds Jun 13 19:59:16 so 30-40 would be ok there Jun 13 19:59:21 http://i.imgur.com/0MInuxH.png Jun 13 19:59:25 but note - the linker is a single thread proces Jun 13 19:59:31 monsti, i'm running on -j32 Jun 13 19:59:37 well try 64 Jun 13 19:59:48 what? no Jun 13 19:59:50 64 sounds a bit much Jun 13 19:59:54 no Jun 13 20:00:05 as long as the system has enough ram - it's ok Jun 13 20:00:31 even 32 is abit much iirc Jun 13 20:00:43 Tronflowers, i think so too, but i still do it :) Jun 13 20:00:46 * monsti runs gentoo for 7-8 years ;) Jun 13 20:00:56 the trick is - keep the CPU load high Jun 13 20:01:07 i remember seeing a benchmark somewhere Jun 13 20:01:22 monsti, does my top look like it's on high load? Jun 13 20:01:27 the CPU vs. RAM is 1:1000 and CPU register vs. disk i/o is 1:30000 Jun 13 20:01:29 that more -jn doesn't exactly correlate to faster builds Jun 13 20:01:43 1:30000 is one second compared to one day ;) Jun 13 20:02:06 Tronflowers: yes! that's also an issue - the linker is a single thread process Jun 13 20:02:13 bah. so it looks like android treats drag events and motion events completely seperately and i can't find a way at all to get it multi-touch drag working with the Honeycomb drag apis :( Jun 13 20:02:17 so -j 1000 runs - at that case - on one cpu Jun 13 20:03:47 loin, also have you heard of htop Jun 13 20:04:15 its really really nice! ncurses based and has colors! Jun 13 20:05:04 loin, http://kmandla.files.wordpress.com/2007/05/htop.png Jun 13 20:05:27 Tronflowers, looks really nice Jun 13 20:07:05 Wow, that looks about as nice as this http://upload.wikimedia.org/wikipedia/en/6/63/Microsoft_Scandisk_%28Windows_98%29.png Jun 13 20:07:17 meanie Jun 13 20:07:23 Sorry Jun 13 20:07:44 real 63m28.008s / user 438m53.552s / sys 20m48.428s Jun 13 20:07:51 Didn't mean to be mean but the only means of the mean of the meanies here is to be mean. Jun 13 20:07:52 i don't get it how the ssd makes no difference at all Jun 13 20:08:06 loin: the sources are in your computers ram Jun 13 20:08:27 monsti, do you compile aosp often? Jun 13 20:08:30 loin: it's loaded and after then the systems diskcache stores it in your main memory Jun 13 20:08:37 i have a gentoo system Jun 13 20:08:48 compilation of sources is what you do at any update Jun 13 20:08:54 yes but do you compile aosp? in particular Jun 13 20:08:59 because i need hints on this issue :) Jun 13 20:09:11 there has to be a way to *not* compile all the C crap Jun 13 20:09:13 i would do a conditional built Jun 13 20:09:15 when all i changed was java Jun 13 20:09:16 cccache? Jun 13 20:09:20 ccache is nice Jun 13 20:09:30 yes - one hint ;) Jun 13 20:09:42 use a gentoo system and compile java with optimizations for your CPU ;) Jun 13 20:09:51 :) Jun 13 20:09:53 c-c-c-c-compiler cache Jun 13 20:09:58 that can make javac 20-30% faster Jun 13 20:10:05 doesn't really work for me, google recomanded i make a ccache dir and give it 50-100gb and it only uses ~4gb Jun 13 20:10:15 lol?! Jun 13 20:10:18 that's VERY nice Jun 13 20:10:21 4gb Jun 13 20:10:38 how is that very nice Jun 13 20:10:46 that's almost like caching the google.gif logo on google ;) Jun 13 20:10:58 99.999% hit Jun 13 20:12:46 so i assume there's not much i can do to speed things up Jun 13 20:12:50 this is how it's always going to be Jun 13 20:12:56 the ssd was money well spent Jun 13 20:12:59 lol Jun 13 20:13:27 i;ve made an icon for my app, but it came out really small when i send it to android Jun 13 20:13:28 why? Jun 13 20:13:44 rved: cause of what you did! Jun 13 20:13:59 i have all resolutions in the drawable folders Jun 13 20:14:02 Hi all! Is there a specific library I should use to grab JSON from a REST API I've built, or should I just roll my own? Jun 13 20:14:04 biggest is 144x144 px Jun 13 20:14:30 ARMIGER1: gson Jun 13 20:15:00 loin: compiling AOSP is always going to be a massive undertaking. Just throw more CPU, IO, and disk bandwidth at it. Jun 13 20:15:10 StingRay_: As in, from https://github.com/eatnumber1/google-gson ? Jun 13 20:15:22 compile in the cloud, heh Jun 13 20:15:27 dragorn, gingerbread only takes about 13 min, this 4.2.2 is killing me Jun 13 20:15:39 ARMIGER1: https://code.google.com/p/google-gson/downloads/list Jun 13 20:15:41 spin up an ec2 machine Jun 13 20:15:53 if i could somehow NOT compile webkit every single time and all the things in the external folder Jun 13 20:16:00 loin: yeah. So the best I've managed is ~30 minutes to compile from scratch, but that's on a massive compile box under loan to me, a 48-core amd64 with 64 gig of ram Jun 13 20:16:12 Stingray_: Thank you! I will try it. Jun 13 20:16:20 dragorn, it would be nice if i could remove the sources and just put the binaries that i just compiled there Jun 13 20:16:47 nope, you pretty much need to compile everything for every flavor. If you're only compiling for one target you can modify code and rebuild and it won't wipe out the stuff that hasn't changed Jun 13 20:17:42 loin, i think you can select what you compile based on aosp.mk Jun 13 20:18:35 Tronflowers, i can choose what i want to compile but i want at the end of the compiling to have an image Jun 13 20:18:45 you can disable things, but if you want that component you're going to have to compile it. Still, repeated compiles for the same target only compile what has changed (and cascading dependencies) Jun 13 20:18:51 so i need a full build to go through everything i suppose Jun 13 20:19:16 yes, but unless you're changing targets on that tree, subsequent builds should be much quicker Jun 13 20:19:30 StingRay_, ping Jun 13 20:19:33 dragorn, if i don't make clobber i get many errors Jun 13 20:19:40 for instance R doesn't always get rebuilt Jun 13 20:19:46 chinmaya: sup ? Jun 13 20:19:57 the images are not updated since it "cached" the old ones Jun 13 20:19:59 loin: hasn't been my experience but it's been a few months since I was working on that stuff Jun 13 20:20:01 StingRay_, i am facing a issue with the scrollview Jun 13 20:20:54 dragorn, i wonder if i could somehow make nvidia's cuda do all the compilation Jun 13 20:21:03 When i slide up the layout , scrollview moves up in the phone screen. Which then shows a white background. I need to increase the height of scrollview . How is it possible Jun 13 20:21:10 3200 cuda cores on a video card would compile pretty fast :) Jun 13 20:21:19 loin: not really, cuda stuff excels at math processing small quantities of data Jun 13 20:21:27 loin: they're not really general-purpose Jun 13 20:21:28 should i use layoutparams to increase the height during translateanimation Jun 13 20:21:43 chinmaya: dont follow, normal use for a scroll view is either fixed height, or full screen Jun 13 20:21:55 I'm having a hard time understanding ContentProviders. Seems like every tutorial I come across the dev adds something extra, or takes something away. Does anyone have a link to simple, easy to understand information about CP's? Jun 13 20:21:59 loin: or rather, math processing on small quanta of data, doing a ton of it in parallel. texture computation, crypto, etc, not so much compiling Jun 13 20:22:41 StingRay_, http://wstaw.org/w/1ZTQ Jun 13 20:22:55 here the scrollview is the part below the gridview Jun 13 20:23:15 so when i move the grid up , the scollview shifts up Jun 13 20:23:43 which is the issue. I have to change the height of the scrollview during the animation Jun 13 20:24:42 Rescue9: have you looked on d.android.com yet? Jun 13 20:25:24 lov: yea.... did I mention 'easy to follow'? Jun 13 20:25:31 seriously? Jun 13 20:26:07 http://developer.android.com/guide/topics/providers/content-provider-basics.html Jun 13 20:26:10 You've looked at this, yes? Jun 13 20:26:24 What are you having trouble with? Jun 13 20:27:24 yes. I've looked at it. generally it takes me reading something 2-3 times before understanding... especially when it comes to d.android.com Jun 13 20:28:19 I haven't reread it, but it seems as if the documentation doesn't elaborate on writing your own content provider to use with a specific database Jun 13 20:28:46 http://developer.android.com/guide/topics/providers/content-provider-creating.html Jun 13 20:29:32 * monsti needs some cocktail provider Jun 13 20:32:50 lov: I've seen that as well. The primary problem I'm having is not in the documentation as much as it is relating it to my use. I was using an extended SQLiteOpenHelper and understanding how that changes when using a contentprovider is difficult. I'm old....... takes a while for me to 'get it'. Jun 13 20:34:58 Rescue9: implementing a content provider form scratch takes a lot of boilerplate Jun 13 20:35:44 How can I delay a function from returning without sleeping the Thread? Jun 13 20:36:52 sleep is your only option as far as I'm aware Jun 13 20:37:08 or setting up an async event and doing a callback instead of using the function return value Jun 13 20:37:27 then either sleep the thread and callback to main, or set an alarm to return the value via the callback. Not very clean tho. Jun 13 20:37:51 pjdelport: the work isn't the problem... it's the understanding. I simply don't get it from the dev docs Jun 13 20:38:03 ergo my request for a 'simplier' tutorial Jun 13 20:42:12 more specifically, i had made an adapter where i pass the adapter the R.id.whatever of TextViews in a row of the list i'm building. if i make custom queries possible to my database, do i need to create row1.xml, row2.xml, row3.xml, etc for any possible number of columns the query is allowed to return? Jun 13 20:42:17 or, can i do something dynamically to generate textviews as needed? Jun 13 20:42:26 hi android-dev, i'm getting into sqlite stuff in my app. i'm trying to learn more about customiziable views. say i want to construct a custom search of my database, do i really need to store ids for textviews for each possible number of results? Jun 13 20:42:49 (pretend my last message was first) Jun 13 20:43:23 Thanks dragorn, I'll try to avoid it altogether. Jun 13 20:43:40 jcrowgey: you dont "need" to do anything Jun 13 20:44:05 StingRay, tell me more. Jun 13 20:44:08 you only need to do what is required to get whatever it is acheived Jun 13 20:44:32 very philosophical. i will consider your words. Jun 13 20:44:33 marrrk: I'm not sure your use case; if you're trying to throttle cpu load, you're probably better off doing your calculations normally in one thread, then reading the output at regular intervals in the UI thread an updating there, rather than trying to delay the results of a calculation or something Jun 13 20:44:40 lol.... cryptic as usual StingRay_ Jun 13 20:44:45 well Jun 13 20:44:51 there is no answer to that question Jun 13 20:44:58 no then :) Jun 13 20:45:23 the explination is a possible 4 approaches with many hundreds of words Jun 13 20:46:09 I've manually added Gradle build support for an AS project (which was NOT migrated from Eclipse, but used AS project management features). Builds just fine on the command line, but AS complains about Gradle installation is not supported by this API version. Any ideas? Jun 13 20:46:12 and it sounds like more of a basic listview question than an ideas/implementation path Jun 13 20:47:39 Rescue9: can you articulate what you have trouble understanding? Jun 13 20:47:41 lol, let me be more specific. right now i query the db's main table for two columns and have an xml layout file that contains a row (LinearLayout) with two TextViews inside. When I assign the results of the query to the ListView, one of the things I pass the cursor is a vector of R.layout.ids where which are used to format the results in each row. now imagine i allow to queries for 3 columns, must i add another layout file wi Jun 13 20:48:21 Any because I did not migrate, I've linked in the gradlew script from /opt/android-studio/sdk/tools/templates/gradle/wrapper/gradlew under the name "gradle". Which works cmdline, but not inside AS. Any iedas on how I can set up the proper gradle build stuff manually (supposedly a local "./gradlew" script in my projet root, as with an empty AS/gradle project)? Jun 13 20:48:29 Hi, where can i find list of Api released for every verion of android? Jun 13 20:48:34 AND because I did not migrate I meant.. Jun 13 20:48:51 StingRay_: thats the problem i have sometimes.... 10 different ways to do something and none of them play nicely with each other. Jun 13 20:48:55 jcrowgey: ok so your options are, use a lyout with more textViews than you need Jun 13 20:49:13 create textViews on-demeand in getView and just add them Jun 13 20:49:22 I know I *can* create a new textview with "TextView tv = new TextView(this)", if I do that, can i get the R.id of my new textviews. Jun 13 20:49:33 StingRay okay, i will check on that. Jun 13 20:49:40 no, you set the id Jun 13 20:49:47 setId(num) Jun 13 20:50:05 or if you did want it later for something, use a tag Jun 13 20:50:11 setTag(someOBject) Jun 13 20:50:24 thanks stingray, i'll check this out. Jun 13 20:50:40 I have a few things similar Jun 13 20:50:48 but I just have various layouts Jun 13 20:50:59 all with item_a item_b item_c etc Jun 13 20:51:26 also a getViewType() if I want mixed result layouts Jun 13 20:51:36 to load an alternate layout Jun 13 20:51:42 i see, so one possibility is to generate views dynamically, but i'll have to consider whether it's easier just to make a collection of layouts. Jun 13 20:51:58 same can be done for getColumnCout() oooo 4 entires, load 4_entry.xml Jun 13 20:52:34 off to reread the contentprovider docs again. :-( Jun 13 20:52:38 is there a directions api in android/google play services, or must one make use of the online maps directions api? Jun 13 21:03:26 so i'd like to add a custom contact data field to my RawContacts Jun 13 21:03:43 i've got the Account auth, syncadapter, and basic contact syncing working Jun 13 21:04:07 but when I add write mimetype it shows up under the "Connections" heading in the People app Jun 13 21:04:25 sort of like G+'s "Send message" or "Start Video Call" actions Jun 13 21:04:52 but i don't want it there, rather i want it with the rest of the contact data, like Email or Address, or IM info Jun 13 21:08:30 Figured out the gradle stuff. Assuming you're in your project root, do a "cp -R /opt/android-studio/sdk/tools/templates/gradle/wrapper/gradle* .". In AS, make sure Settings says to use "local gradle wrapper", AND RESTART AS before trying to compile. Jun 13 21:12:41 hey guys, i'm fairly new to android and try to create the following navigation: view with tabbar+viewpager and the new navigationdrawer Jun 13 21:12:51 what i got so far is this: https://gist.github.com/fuhlig/5776799 Jun 13 21:13:50 is there a comprehensive list of intent info for google applications? Jun 13 21:13:57 https://www.dropbox.com/sh/wj1xy1e2h1dyv7g/DCUxv9boze Jun 13 21:14:31 how to include the tabbar only within a fragment? Jun 13 21:33:49 Hey! Jun 13 21:33:52 Was wondering Jun 13 21:33:54 this tutorial Jun 13 21:33:55 https://developer.android.com/training/location/geofencing.html Jun 13 21:34:02 this is out of date, right? Jun 13 21:34:16 its not utilizing the new google location library Jun 13 21:34:18 is it? Jun 13 21:34:22 did anyone answer to my question? (browser crashed) Jun 13 21:34:40 nero_dev: dont use a browser Jun 13 21:34:43 :) Jun 13 21:36:04 :P Jun 13 21:36:08 I mean the geofence lib Jun 13 21:36:21 StingRay_: was there an answer? Jun 13 21:37:14 no Jun 13 21:37:43 anybody know how to exclude all non source files in .gitignore including bin but except for the apk file? i've tried two suggestions from stackoverflow. neither are working. Jun 13 21:38:51 you want to ignore the apk file too, depending on how often you build Jun 13 21:38:58 how large is it, how often is it rebuilt? Jun 13 21:40:44 it should be rebuilt by eclipse every time there's new code Jun 13 21:43:43 but that doesn't mean i need to commit it each time it's rebuilt Jun 13 21:54:05 hi all.. i'm getting a connection refused error when trying to handle service discovery-- any suggestions ?? http://pastebin.com/hy8HT7Pt Jun 13 21:59:40 BullShark, if you rebuild each time code changes, the repository will grow by the full apk size each time Jun 13 22:00:17 i'll assume 1MB, with 10 pushes a day, so you have an increase of 10MB/day in repository size, probably more Jun 13 22:00:31 not if i don't commit the apk file each time it's regenerated Jun 13 22:00:38 but then why keep it? Jun 13 22:01:01 if you have the source code available, you can build the apk from those sources, there is no need to keep it under version control Jun 13 22:01:47 so somebody can download it the latest stable apk without having to have the android sdk and java jdk to compile it Jun 13 22:02:37 should you keep the debug log's in a live app in the playstore? Jun 13 22:03:07 BullShark, are you using github? Jun 13 22:03:26 for one project and gitblit for another Jun 13 22:03:53 hm. then just use a hosting provider. don't store binary files in git Jun 13 22:04:20 you're trying to answer a question i didn't ask Jun 13 22:04:30 Can anyone help me; http://pastebin.com/hy8HT7Pt Jun 13 22:04:44 BullShark, I'm trying to keep you from doing it wrong Jun 13 22:09:18 building a .gitignore to fit your "needs" is easy. but I can only urge you again to store the apk somewhere else. Jun 13 22:10:05 http://vpaste.net/YaWgC Jun 13 22:15:48 Here's my suggestion: Create a tag in git each time there is a stable version. And for each tag, supply a precompiled .apk on your website. This is MUCH better than fiddling around with the gitignore and storing hundreds of megabytes of apk history. Jun 13 22:16:53 i'm getting a connection refused error when trying to handle service discovery-- any suggestions ?? http://pastebin.com/hy8HT7Pt Jun 13 22:23:37 hey guys whatsu i hope someone can help me Jun 13 22:23:56 im on a tmoblie my touch 4g and im trying to unroot it Jun 13 22:24:14 i have the PD15IMG Jun 13 22:24:32 but i keep getting no image or wrong image messages Jun 13 22:24:32 crazyMonkey: wrong channel Jun 13 22:24:46 read topic Jun 13 22:24:55 sry but can any1 here help seems kinda dead on the android channek Jun 13 22:25:13 o Jun 13 22:25:14 unless you want to write an android app, not really Jun 13 22:25:53 in the process but custom rommessing with it those frikin grimlins Jun 13 22:26:41 StingRay_ my mbp touchpad just crapped out :( Jun 13 22:27:07 g00s: wrong channel #applesuxs Jun 13 22:27:17 or more like, it started going nuts. like frikin grimlins got into it Jun 13 22:27:35 if you got a custom rom then they probobly did Jun 13 22:27:39 mine does sometimes on some of my macbooks Jun 13 22:27:49 actually yeah the pro too Jun 13 22:27:51 that's why you use thinkpads! Jun 13 22:27:54 when I plug usb in Jun 13 22:28:04 could be bad earth inside Jun 13 22:28:31 bad earth ? Jun 13 22:28:53 oh, maybe an ant got into it. there were ants at the library the other day Jun 13 22:29:08 really tiny, noticed them crawling on the computer Jun 13 22:29:13 well there is a slight design flaw in making the chasis alum... Jun 13 22:29:40 dont take much to create conductive connections all over the place :) Jun 13 22:30:08 i had to disable it entirely Jun 13 22:31:18 "Invalid project description" Jun 13 22:31:25 * Norrin ughh Jun 13 22:32:39 how do you open a project that is already in your workspace? Jun 13 22:34:43 there's so many functions in intellij i stumble across and think "wow! How did i ever live without this feature" lol Jun 13 22:35:07 like opening a project? Jun 13 22:35:13 lol i sould look into intelly j is it better then eclipse Jun 13 22:35:14 ? Jun 13 22:35:23 can it open a project? Jun 13 22:37:08 that'd be a really cool feature Jun 13 22:37:27 what's "a project" Jun 13 22:37:38 you can import android projects from eclipse to intellij Jun 13 22:38:50 cool Jun 13 22:39:16 android root is seriously no help right now Jun 13 22:39:37 any1 here know about rooting phones? Jun 13 22:40:00 crazyMonkey: erm, not the place Jun 13 22:40:04 read the topic Jun 13 22:40:43 i know but nobody is in the android-root chatroom Jun 13 22:40:55 channel* Jun 13 22:41:01 and that is either our problem or an app dev problem how ? Jun 13 22:41:45 sonOfRa, a project is what gets built into a program? Jun 13 22:42:01 no question mark Jun 13 22:42:32 well of course it can open a project :S Jun 13 22:42:49 is it true eclipse won't open (import?) a project if its conveniently located in the workspace dir? Jun 13 22:43:31 so it *requires* the source to be in two locations. having it in one location is a fatal error? Jun 13 22:46:04 if it's already in workspace, wouldn't you just 'open' it ? Jun 13 22:46:05 that sounds wrong, i dont think so Jun 13 22:46:37 crazyMonkey: try #xda-devs Jun 13 22:49:25 bankai_, there's a open button somwhere? Jun 13 22:49:27 i don't see one Jun 13 22:49:35 i'm assuming "import" means open.... Jun 13 22:56:10 If I use the latest android support libraries WebView on, for instance, a 2.3 phone, will that give me the Jelly Bean stock browser? Jun 13 22:58:16 mnero: support library doesn't come with a WebView? Jun 13 22:58:25 afaik it doesn't anyway Jun 13 22:58:28 major_majors: well then, that would be the first problem Jun 13 22:58:58 i think you're stuck with whatever WebView is provided by the OS Jun 13 22:59:23 mnero: what are you using webview for ? Jun 13 23:00:03 html5 javascript Jun 13 23:00:04 StingRay_: the same thing as phonegap, but more basic. I package a web app as an android app that loads it in a webview Jun 13 23:00:15 called it Jun 13 23:00:29 its not ready yet Jun 13 23:00:35 stay native Jun 13 23:00:36 the problem is the 2.3 browser is absolutely terrible and riddled with bugs. Jun 13 23:00:41 mnero: as a consume I hate you Jun 13 23:00:46 load of tosh Jun 13 23:00:51 dont use webview yet its not ready Jun 13 23:00:54 StingRay_: lol, why? Jun 13 23:01:09 it's just like using a shitty mobile website Jun 13 23:01:15 and people put up with those every day Jun 13 23:01:19 no Jun 13 23:01:29 if its an app theyl delete it right away Jun 13 23:01:32 it's like hiding a website in a crappy app Jun 13 23:01:40 lol @ webview-based "apps" Jun 13 23:01:42 just let me use the fkin browser Jun 13 23:02:03 all webpages inside apps, should come with a special warning Jun 13 23:02:08 I actually agree with that, but it's unfortunately a company decision and not up to me Jun 13 23:02:35 they thought it was the most important thing on earth to be able to have a real icon on the desktoip Jun 13 23:03:01 and no address bar. address bar is a no no for branding Jun 13 23:03:09 then do an app Jun 13 23:03:16 and it's not an app Jun 13 23:03:36 a native app that pulls and updates content from a web service is fine Jun 13 23:04:21 the idea behind using a web site is to not have to make apps for different platforms, parallel deployment, multiple deployment? Jun 13 23:04:24 there's a name for it Jun 13 23:04:39 sh*t and worthless ? Jun 13 23:04:40 its called being lazy Jun 13 23:04:45 :) Jun 13 23:04:47 mnero: if it's a business decision, just implement it and ignore what StingRay_ is telling you. It's not like you're going to present this argument and have them change their minds Jun 13 23:04:52 lol StingRay_ Jun 13 23:04:55 just do it, ship it, and hand it off to someone else Jun 13 23:04:58 lazy is a good thing Jun 13 23:05:14 lazy = less development time Jun 13 23:05:16 what I dont get, is if the client/user side is important Jun 13 23:05:23 how people can make such a decision Jun 13 23:05:26 lazy = shit app = no maney from it Jun 13 23:05:36 I'm in the process of publishing my android app to the market (1st time) i see a license key which i need to place in my binary files.. but where? i don't get this part. I have included LVL in my project following the documentation Jun 13 23:05:56 evanc: you're right. I enjoy discussing this stuff though Jun 13 23:06:49 no hes not Jun 13 23:06:52 i want to create a navigation with tabbar+viewpager (navigation within a section) and navigation drawer (general navigation) Jun 13 23:06:59 guys, there is some rediculous unfounded hate for web-apps (and hybrid apps presumably).. there are a large portion of apps for which web-apps are a perfectly good choice for, and they don't have to be made crap. Some apps need to be native, but not all. Jun 13 23:07:02 I suppose it's the user and designer in me that makes me argue the point Jun 13 23:07:09 you gonna clog up the marketplace with shit apps Jun 13 23:07:22 but i want to tabbar+viewpager only in specific fragment. what i got so far: https://gist.github.com/fuhlig/5776799 Jun 13 23:07:28 makeing it harder for real developers to get aanywere Jun 13 23:07:30 I would like to find a web app exaple that is actually good Jun 13 23:07:47 SAME Jun 13 23:07:52 and serves it purpose proportionally compared to a native app Jun 13 23:07:59 * SpeedEvil lolz at the notion of 'native' apps on android. Jun 13 23:08:06 (apart from of course ndk) Jun 13 23:08:28 how it should look like: https://www.dropbox.com/sh/wj1xy1e2h1dyv7g/DCUxv9boze Jun 13 23:08:30 SpeedEvil, i assume you write your applications in machine code? Jun 13 23:08:53 I have done that. Jun 13 23:09:06 Admittedly mainly for processors with a few dozen bytes of RAM. Jun 13 23:09:46 so, backporting JB WebView for older versions of android, realistic? Jun 13 23:09:54 no Jun 13 23:10:15 what would be the issue Jun 13 23:10:15 wait like a couple of years then probobly Jun 13 23:10:35 performance = 0; with webview Jun 13 23:10:54 no I mean is the idea of backporting the newer webview code realistic Jun 13 23:11:00 not is using webview realistic Jun 13 23:11:53 WebView uses native code, so I'm sure it wouldn't be as simple as some of the stuff that's been backported already. Jun 13 23:12:27 but in my uninformed opinion it should be entirely doable given like a month Jun 13 23:12:41 it uses native code to open the browser Jun 13 23:12:50 no Jun 13 23:12:58 the browser is implemented using WebView Jun 13 23:13:27 that's the jesus truth Jun 13 23:13:32 then y is chrome browser faster then webview Jun 13 23:13:40 because chrome doesn't use WebView Jun 13 23:14:35 <|0xD34D|> WebView has no native code in that class, however other parts of the webkit package do Jun 13 23:15:00 crazyMonkey: you think his boss gives a shit about the quality of the marketplace? I don't agree with making the "app", but it's going to happen anyway Jun 13 23:15:22 |0xD34D|: it must call something that drops to native at some point, right? Jun 13 23:15:47 <|0xD34D|> not from WebView directly Jun 13 23:16:07 how it should look like: https://www.dropbox.com/sh/wj1xy1e2h1dyv7g/DCUxv9boze <--- any ideas on how to include the tabbar only in the section1 fragment? Jun 13 23:16:09 <|0xD34D|> but WebView is part of the webkit package so I'm sure there are plenty of parts in there you'd need to backport along with it Jun 13 23:16:16 hmm Jun 13 23:16:46 that basically is the job. Updating webkit Jun 13 23:17:16 I figured WebView was built on calls to webkit tho Jun 13 23:17:21 not the other way around Jun 13 23:19:40 the other interesting piece of news is that Firefox is building a Gecko WebView Jun 13 23:19:48 they started it literally last month though Jun 13 23:19:57 4get webviews and custom roms and with that i say goodnight Jun 13 23:20:00 I look forward to its 2015 debut! Jun 13 23:20:43 And with firefox being even slower than webkit, crazyMonkey will have all the more reason to complain Jun 13 23:21:08 <|0xD34D|> it's the internet, people complain Jun 13 23:26:41 last try: anyone got an idea with my navigation issue? Jun 13 23:27:53 wtf, why is my relativelayout's layout_below="id" not responding Jun 13 23:32:03 <|0xD34D|> nero_dev: couldn't you change the ActionBar navigation mode using setNavigationMode()? Jun 13 23:32:45 http://pastie.org/8040808#13 Jun 13 23:32:47 * pfn headscratches Jun 13 23:32:47 <|0xD34D|> when displaying your section1 fragment set it to NAVIGATION_MODE_TABS and NAVIGATION_MODE_STANDARD elsewhere Jun 13 23:32:57 why isn't android:layout_below="@id/timer_container" properly rendering Jun 13 23:33:41 the weight=1 isn't playing nice :( Jun 13 23:34:09 if I make the relativelayout's height match_parent, it looks fine Jun 13 23:37:30 it's like the layout can't decide where id/timer_container should be Jun 13 23:39:26 RelativeLayouts don't like much being wrap_content Jun 13 23:40:00 especially when using things like layout_center* Jun 13 23:40:59 indeed, any workarounds that don't involve code? Jun 13 23:41:04 I'm trying to put this stuff in a widget Jun 13 23:41:31 don't use a RelativeLayout? Jun 13 23:41:59 hmm, not the greatest solution, I suppose I could make this a whole bunch of nested linearlayouts Jun 13 23:42:09 just a couple Jun 13 23:43:11 I guess it could just be a framelayout and an inlaid linearlayout Jun 13 23:44:27 http://www.amazon.com/Aeron-PostureFit-Support-Herman-Miller/dp/B000LT6BFS/ref=pd_sim_hg_2 Jun 13 23:44:30 hmm, I need to get one of those Jun 13 23:53:45 hi Jun 13 23:53:45 my andorid app crashes in this line where i check if gps is enabled :S why? boolean enabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); Jun 13 23:57:37 stack trace ? Jun 14 00:00:00 maybe locationManager is null... Jun 14 00:04:29 he's gone :S Jun 14 00:08:37 hi all.. i'm getting a connection refused error when trying to handle service discovery-- any suggestions ?? http://pastebin.com/hy8HT7Pt Jun 14 00:31:40 anyone know of an end-to-end tutorial of an account authentictor and syncadapter(s)? Jun 14 00:32:00 my syncadapter doesn't show up on my account in settings and i've triple checked everything Jun 14 00:32:06 an open source app that does this will also suffice Jun 14 00:33:55 ubersync Jun 14 00:34:09 facebook auth, syncadapter Jun 14 00:34:26 on github Jun 14 00:47:53 hmmm out of the blue, I now get ANR auto close when debugging Jun 14 00:48:03 no option to wait or anything (on the device) Jun 14 01:07:46 hi Jun 14 01:08:08 why is there a topbar in newly created app, and how do I get rid of it? Jun 14 01:13:33 I have a dialog using activity, but these dialog call another dialog (same genre), how can I close the last dialog and backing to the first dialog called? Jun 14 01:21:59 changing activity to the next, previous activity lost your datas? Jun 14 01:22:34 I need to override onpause? Jun 14 01:26:51 anyone know why sometimes iPhone MMS picture messages come through as a 'slideshow' on android ? Seems it only happens with pictures that have text ( a subject? ) Jun 14 01:56:35 Hey does anyone know how to push mock locations to a device with Android Studio? Jun 14 02:00:35 through the ddms window ? Jun 14 02:00:43 or just use cmd/terminal Jun 14 02:09:06 StingRay_: where in the ddms window? Jun 14 02:09:42 oh come on Jun 14 02:09:45 really ? Jun 14 02:10:52 i'm getting a connection refused error when trying to handle service discovery-- any suggestions ?? http://pastebin.com/hy8HT7Pt Jun 14 02:11:32 StingRay_: I can see where you send mock locations to an emulator in ddms Jun 14 02:12:58 yeah ddms is for emu Jun 14 02:13:02 cmd line if device Jun 14 02:13:21 StingRay_: then you shouldn't be so fecking smug, should you? Jun 14 02:13:30 smug at what ? Jun 14 02:13:42 the last thing I am right now is smug Jun 14 02:13:43 ddms works for devices Jun 14 02:14:48 JakeWharton: it does, but can you send mock locations through it? Jun 14 02:15:05 if you enable mock locations on the device, yes Jun 14 02:19:40 JakeWharton: and where in DDMS would I find that option? Jun 14 02:25:17 how do I know if my remoteviews object is no longer "valid" ? Jun 14 02:26:11 and is there any way to retrieve a remoteviews object from a widget? Jun 14 02:27:21 hmm, I guess it only gets rendered when calling appwidgetmanager.update Jun 14 02:27:40 well this is interesting, I installed an app which lets you specify a mock location. Google Maps shows me at that location now, but my app is still very confident that I am where I am Jun 14 02:30:01 There's nothing like finding a comrade in confusion: http://stackoverflow.com/questions/17048972/android-geofence-with-mock-location-provider Jun 14 02:34:15 Ankhwatcher, i had an issue where we used a mock GPS provider to test something so much that our office wifi network managed to get marked as being in vienna, took a few months for that to fix itself Jun 14 02:34:30 alex_PP: lol Jun 14 02:34:58 alex_PP: it seems the fused location provider will not be mocked Jun 14 02:35:09 as far as I can tell Jun 14 02:35:54 how are you retreiving the location from locationclient? Jun 14 02:36:12 alex_PP: I'm using Geofences Jun 14 02:36:17 I'm trying to set one off Jun 14 02:36:21 i see Jun 14 02:36:37 but also the map should show me moving to the mock location and it doesn't Jun 14 02:36:40 try turning off wifi and cell Jun 14 02:36:52 good idea Jun 14 02:36:59 i beleive the mock locations only affect the GPS provider Jun 14 02:37:15 so you need to force play services to use that Jun 14 02:38:28 will play services locationClient actually work without a internet connection? Jun 14 02:38:37 should do Jun 14 02:38:44 can't see why not Jun 14 02:38:55 can't depend on a connection on a mobile device Jun 14 02:39:05 I mention it because I went into a black-spot the other day and my app still showed me sitting at home the whole time Jun 14 02:40:58 gps doesn't require any other network connection (except to speed up inital fix and almanac retreival) Jun 14 02:41:45 actually I don't need to cut off the data connection, I can just disable wifi and network as a source in location Jun 14 02:41:48 derp Jun 14 02:42:12 now my app thinks I am at the location I have set Jun 14 02:42:53 but still the geofence is not triggered Jun 14 02:43:54 you disabled netowrk location in the system settings? Jun 14 02:44:07 then it should work, i would have though Jun 14 02:44:08 t Jun 14 02:44:20 it sort of is Jun 14 02:44:41 it may be failing to register the geofences Jun 14 02:48:23 yup Jun 14 02:48:48 when you disable wifi and network location the geofences fail to be added Jun 14 02:49:00 good to know Jun 14 02:49:25 i suppose it needs to lower power options to know when to ramp up the power for an accurate fix Jun 14 02:49:59 i'll add that to my list of niggles with play services location Jun 14 02:50:48 yeah, it makes sense. I'll have to add some shirty AlertDialogs to demand that the user enables all of the location service options Jun 14 02:51:19 I wonder if it works when wifi and network are on and gps is off Jun 14 02:51:42 doubt it, if it's fussy enough not to work without network Jun 14 02:52:11 i found that using the passive provider was fairly reliable for this kind of thing Jun 14 02:52:33 geofences will work with GPS off Jun 14 02:52:44 that's good news Jun 14 02:53:28 yeah, provided your target has wifi it shouldn't be too bad Jun 14 02:55:04 right Jun 14 02:55:07 it's 4am Jun 14 02:55:11 I'm calling it a night Jun 14 02:55:16 night Jun 14 02:55:33 thanks for your help alex_PP JakeWharton StingRay_ Jun 14 02:56:15 wow your same timeline as me Jun 14 02:59:35 no worries **** ENDING LOGGING AT Fri Jun 14 02:59:58 2013