**** BEGIN LOGGING AT Thu Mar 01 02:59:59 2012 Mar 01 03:00:02 Hello, im looking for a website that lists open source app projects, can any1 suggest one. I would like to contribute Mar 01 03:00:21 github? Mar 01 03:00:32 google code? Mar 01 03:02:24 ok having a look now.. thanks Mar 01 03:04:09 Is there a way to use a Datepicker WITHOUT the calendar in ICS? Mar 01 03:04:32 like, just have the 3 dials that are in the DatePickerDialog Mar 01 03:07:03 android:calendarViewShown="false" Mar 01 03:07:29 t0mless: cool story bro! thanks Mar 01 03:07:42 or setCalendarViewShown() Mar 01 03:08:27 Oh good, I was woried Id have to use DatePickerDialogFragment Mar 01 03:08:31 (custom obviously0 Mar 01 03:10:33 i'm always getting in app billing service is unavailable Mar 01 03:10:35 anyone know what is up? Mar 01 03:13:13 ? Mar 01 03:15:59 nope Mar 01 03:16:55 this is really pissing me off Mar 01 03:23:38 if I need to get a handle to on of the views inside my fragment I can just use getActivity().findViewById() since the fragment is really just a view attached to the activity Mar 01 03:23:41 yes? Mar 01 03:23:55 or do I need to maintain handles from onCreateView Mar 01 03:26:33 t0mless: How are you setting up your view? what I do is I just inflate a layout file, and use that View to reference them Mar 01 03:26:56 right, but lets say I need to access a view from a callback Mar 01 03:27:08 fragment doesn't have findViewById Mar 01 03:27:08 Whatcha mean? Mar 01 03:27:28 t0mless: no, but the resulting View object received from LayoutInflater.Inflate does Mar 01 03:27:34 s/Inflate/inflate/ Mar 01 03:27:37 what is the current version of android market? Mar 01 03:27:43 like here my loader is finished loading data, and I need to set one textview at the top of the layout Mar 01 03:27:57 and then set the list adapter Mar 01 03:28:02 setting the list adapter is no problem Mar 01 03:28:13 so you mean onListItemClick for that example? Mar 01 03:28:45 but in onFinishedLoad() how would I get that view without having a handle to it already? Mar 01 03:29:01 Make the View class scope so it hangs around? Mar 01 03:30:07 guess I'll just add a member field for the view Mar 01 03:31:07 I suppose I could make it a headerview of a the listview and get it that way Mar 01 03:31:09 but meh Mar 01 03:34:54 maybe someone in here can answer my question, when android was hosted at kernel.org there was a pub/ directory containing archives of the libs distributed with the ndk, but I can't find them anywhere. does anybody know where they are? Mar 01 03:42:08 SimpleAdapter doesn't seem to implement clear() and add() like an ArrayAdapter - are you supposed to make the new one each time the data updates? Mar 01 03:43:30 Or update the list it uses, I guess Mar 01 03:45:32 create methods you need to update whatever data structure you have Mar 01 03:46:50 Yeah. Seems to work. Mar 01 03:49:12 Hi is there anything like the element in AndroidManifest that will actually prevent your app from being installed on devices that do not support the feature? Mar 01 03:49:16 is exactly what I want except its only used for the market Mar 01 03:50:03 Mar 01 03:50:24 but as for not allowing it to be pirated and put on a device that way Mar 01 03:50:41 not sure, unless you check the device properties on launch Mar 01 03:50:48 this is what the docs say about : Mar 01 03:50:48 Declared  elements are informational only, meaning that the Android system itself does not check for matching feature support on the device before installing an application. Mar 01 03:50:57 so it sounds like it won't work Mar 01 03:51:10 indeed Mar 01 03:51:19 are you distributing your apk all willy nilly? Mar 01 03:51:53 its complicated, but the best way to look at it is that I'm building a system like AppInventor which will generate multiple apks Mar 01 03:52:13 so I would like a way to prevent the generated apks from being installed on phones where they won't work Mar 01 03:54:25 marklar: so, your making a marklar, which will generate a bunch of marklars, which can be distributed to other marklars? Mar 01 03:54:30 what else :) Mar 01 03:55:37 quick question here; where's the best place to post a firmware/rom development job? Mar 01 03:58:53 I have a problem when launching my app from 2 different places: notification bar and home screen shortcut; I get 2 instances of an activity; any ideas? I'm using singleTop Mar 01 03:59:36 I would like pressing the home screen icon to just reopen the task in its previous state instead of making a new task Mar 01 04:00:14 etuleu: are you handling onNewIntent()? Mar 01 04:00:31 yes I am Mar 01 04:01:06 well sorry its been very long since I did that stuff. I would recommend not using it if you can help it Mar 01 04:01:15 it was a pita Mar 01 04:01:20 yes it is Mar 01 04:01:30 anyone able to install sun-java6-jdk on 10.04? Mar 01 04:01:47 how does a Properties file look like? Mar 01 04:02:11 jeppy: I... cant see why not? whats the problem Mar 01 04:02:35 it used to work, but now it says there is no installation candidate Mar 01 04:02:41 jeppy: yes it should be in the partner repository Mar 01 04:03:23 jeppy oracle no longer provide those kind of .deb binaries, i used this script to get it under ubuntu's apt https://github.com/flexiondotorg/oab-java6 Mar 01 04:03:57 ( more like no longer allows the distribution of those .debs but i digress) Mar 01 04:04:24 can anyone tell me how does a file that is loaded into a Properties object looks like? Mar 01 04:07:31 DrPenguin, it's doing things, i think that's good Mar 01 04:07:52 jeppy: well "doing things" is an ambiguous statement, as those coul dbe good things, neutral things, or bad things Mar 01 04:08:05 I'll let you know Mar 01 04:08:06 and if we wanna get even more crazy, theres lawful good, chaotic good, lawful evil, chaotic evil.. Mar 01 04:09:11 what the fuck... I just lost one of my activities when trying to refactor it Mar 01 04:09:53 it just deleted itself? Mar 01 04:10:04 So it would seem... Mar 01 04:10:19 well that's not cool Mar 01 04:10:20 ctrl z? Mar 01 04:10:22 I just created it Mar 01 04:10:24 refactoring is so dangeous Mar 01 04:10:36 but in typing I accidently capitalized an extra letter Mar 01 04:10:43 so I went to refactor it Mar 01 04:10:46 and it just went poof Mar 01 04:10:52 Ive never had an issue with losing stuff with Refactoring Mar 01 04:10:55 and I can't seem to be able to undo the refactor Mar 01 04:10:59 thats what svn / git is for :) Mar 01 04:11:03 me neither Mar 01 04:11:14 I hadn't checked it in yet since I just created it... Mar 01 04:11:19 so not a big issue Mar 01 04:11:21 eclipse has a history of each save Mar 01 04:11:21 i dont think i've lost stuff but i have severely fucked up my project Mar 01 04:12:09 somebody pointed it out to me before and it saved me, but it's buried in the menus somewhere Mar 01 04:12:25 I found it in the local version in IDEA Mar 01 04:12:38 crap, but it's read only Mar 01 04:12:47 cant just copy the contents to a rw file? Mar 01 04:13:47 I was able to find the refactor change Mar 01 04:13:50 and revert to before that Mar 01 04:13:58 de-refactor? Mar 01 04:14:21 indeed Mar 01 04:14:28 de-refactor Mar 01 04:14:47 http://2.bp.blogspot.com/-TbyrMwmqQek/TqLIgSfIXPI/AAAAAAAADAI/i6WjFEimFi4/s1600/1998092-mind-blown.jpg Mar 01 04:15:56 think I better commit -_- Mar 01 04:16:33 good stuff DrPenguin, ty Mar 01 04:16:49 not sure what I did but np? Mar 01 04:17:15 pointed me to the script to get jdk6 Mar 01 04:17:36 ... in apt Mar 01 04:18:24 that wasnt me ^^; Mar 01 04:25:07 Anyone know of a statistics library for use in android? Something that would let me test the variance of a set of points for example (or something more complicated) Mar 01 04:31:06 huh... actionbarsherlock is crashing on my android:showAsAction attributes in my menu xml Mar 01 04:43:12 SimonVT you're busted! https://github.com/JakeWharton/ActionBarSherlock/issues/317#issuecomment-4252135 Mar 01 05:02:35 is there a way to check in an Activity whether it is the root of the task or not? Mar 01 05:03:09 you mean where its at in the stack? Mar 01 05:03:26 yes Mar 01 05:03:58 well, one would argue that the first launched activity is the root, but this can change, like lets say my firs activity is a boot splash, then I launch anotheroe and finish the first one Mar 01 05:04:02 now I have a "new" root Mar 01 05:04:20 hm interesting Mar 01 05:04:40 so my original problem is this: I open my app from the notification bar, then go into a new activity; Mar 01 05:04:49 now I press home and reopen the app from the home screen Mar 01 05:04:59 I would like to see the task in its previous state Mar 01 05:05:08 but instead it starts with my "home" Mar 01 05:05:12 You should, if it was still running Mar 01 05:05:22 it's not doing that Mar 01 05:05:26 that's what I was expecting also Mar 01 05:05:32 Are you sure its still running when you hit its launcher? Mar 01 05:05:55 might be getting reaped by android Mar 01 05:06:06 it works that way if I start it only from the home screen Mar 01 05:06:13 well lets find out, I can test it with an app I wrote Mar 01 05:06:22 the weirdness happens if I first open it from the notification bar Mar 01 05:06:33 what would the difference be? Mar 01 05:06:44 etuleu: have you had a play with DDMS ? Mar 01 05:06:49 bankai_: if its gettin reaped, then that generally means hes runnin into an OOM situation Mar 01 05:07:04 bankai_, I don't think it's getting reaped Mar 01 05:07:07 it's still there Mar 01 05:07:20 Ok etuleu, I just tested it with my app, and I got sent right back to where I was at Mar 01 05:07:27 so I bet you app isnt running anymore Mar 01 05:07:35 did you first start it from the notification? Mar 01 05:07:40 or do you have a notification? Mar 01 05:07:47 well I couldnt, I had to launch it first to set it up, then I killed it Mar 01 05:07:51 then launched from notification Mar 01 05:08:18 so first launch it from notification, then press home and then press the home screen shortcut Mar 01 05:08:24 does that bring you back to where you were? Mar 01 05:08:25 I did that and it worked Mar 01 05:08:27 yeah it did Mar 01 05:08:35 hm interesting Mar 01 05:08:43 are you on ICS? Mar 01 05:08:47 can you launch from notification, then hit home, and make sure its running? Mar 01 05:08:52 Yeah, CM9 Mar 01 05:08:55 one sec let me try that Mar 01 05:09:23 yeah it's def still running; it's only calling onStop on my activities Mar 01 05:09:54 Are you sure the activity thats brought up is still live? Mar 01 05:10:21 you might wanna override (if you havent) onPause and onStop, log what happens, and onDestroy too, see if androids zappin it Mar 01 05:10:45 Im curious if Android is reaping the Activity but keeping the process around Mar 01 05:12:06 only onPause and onStop get called Mar 01 05:12:09 not onDestroy Mar 01 05:12:34 hmm.. well the Activity can still be reaped without going through onDestroy Mar 01 05:12:55 hm that's true; how would I know if it is Mar 01 05:12:56 Does Android have enough ram available? can you see if it complains about being low on memory? Mar 01 05:13:07 I think it has plenty Mar 01 05:13:14 well find out to be sure ;) Mar 01 05:13:23 I also tried it on a fresh phone Mar 01 05:13:27 with only my app installed Mar 01 05:13:30 same thing happens Mar 01 05:13:34 what about in AVD? Mar 01 05:13:43 one sec let me try Mar 01 05:14:31 might wanna override the onRestart() too Mar 01 05:15:28 bankai_: onRestart() isnt being called here Mar 01 05:15:38 the Activity is obviously dying Mar 01 05:16:25 I don't think the activity is dying because when I press back it takes me to that activity Mar 01 05:16:41 .. well then thats a valuable piece of info we would need man Mar 01 05:16:47 which is why it's weird because from "home" pressing back should go to the home screen Mar 01 05:16:57 :) yeah sorry forgot to mention that Mar 01 05:17:04 so it's not getting killed for sure Mar 01 05:17:17 obviously, its getting pushed down the stack.. Mar 01 05:17:37 but if the App is running, Android shouldnt make what is basiclaly anew instance of the app when its running Mar 01 05:17:57 I should mention that the home activity has singleTop Mar 01 05:18:10 and when I start it from the notification bar I put extra clear top Mar 01 05:19:06 What is the most common way to set up the state of ui elements that have no need for data storage, when going onPause(), onStop(), onResume()? Mar 01 05:19:14 http://developer.android.com/guide/topics/manifest/activity-element.html Mar 01 05:19:40 should I just create preferences for those items, or should I create a ui state table? Mar 01 05:20:12 etuleu: try this, get rid of singleTop and try it Mar 01 05:22:16 tried it; same thing happens Mar 01 05:23:23 I really dont know whats going on then Mar 01 05:23:40 DrPenguin: simple, the world is ending Mar 01 05:24:27 ra4king: well, yeah, but that ends everything though Mar 01 05:24:49 DrPenguin: GOOD Mar 01 05:25:02 >_>; Mar 01 05:26:59 question on resources…i see in syntax it says we can use a package name to reference another applications resource strings. i get using Android.R (kinda) but how could i access another applications R.string stuff? Mar 01 05:28:02 where does it say that? Mar 01 05:28:18 well, I guess maybe if you're using shared uid or something? Mar 01 05:28:25 one moment, link on other comp Mar 01 05:29:18 I have a button inside a list view item. I get nullpointer exception when I try to set on click listener to the button. How can I get around it? Mar 01 05:29:23 Leeds: under syntax hre http://developer.android.com/guide/topics/resources/accessing-resources.html Mar 01 05:35:56 I'm going to assume for future expansion, although the comment (other application) confuses me Mar 01 05:36:25 i have a small delete button next to an EditText box, how can I center it to the middle? layout_gravity and gravity are not working for center_vertical Mar 01 05:37:23 its still off a bit... its like the EditText doesn't fill the space properly. There's a gap at the bottom of it within the LinearLayout Mar 01 05:39:59 QubeZ: whats the parent container? Mar 01 05:40:38 RelativeLayout Mar 01 05:41:07 I just never understand why when you have an EditText in a LinearLayout and you set the EditText to height fill_parent, it wont take up all the space. There's always a little gap at the bottom. Mar 01 05:41:09 winegoddess: sorry, I don't see any references to other applications there Mar 01 05:41:35 QubeZ: maybe EditText has some default margin? Mar 01 05:42:01 or that could just be how the EditText looks, there could be some invisible edge that is part of its image Mar 01 05:42:20 i'm using it standard, just EditText... i haven't set any margin's. Yea I think thats the default and it really fucks up my image alignment next to it. Mar 01 05:42:48 because it wont fill the space vertically, when I put an image center_vertical in the same space -- the image doesn't looked centered Mar 01 05:43:12 so to a user the image looks awkward, when in facts its the EditText thats wrong Mar 01 05:43:34 not cool bro Mar 01 05:44:16 Oh! QubeZ, you remember my stupid app I wrote months ago right? Mar 01 05:44:40 which? Mar 01 05:44:45 TextAlarm Mar 01 05:44:51 Leeds: i may have misunderstood - but if it is outside your package, other than system, what else could it be? is the name of the package in which the resource is located (not required when referencing resources from your own package). Mar 01 05:44:55 i dont think you ever showed that to me Mar 01 05:45:04 was it text messaging related? Mar 01 05:45:23 QubeZ: lol yeah, it basically Post Delayed Text Messages to go out at a later date Mar 01 05:45:34 oh ya i recall Mar 01 05:45:48 Im contemplating Rebuilding them from the ground up for a major upgrade Mar 01 05:45:54 Completely redesign UI n such Mar 01 05:46:04 for your school proj? Mar 01 05:46:16 Nah, I already have an app im coding for school Mar 01 05:46:28 BUT, it gave me inspiration for how I can rebuild my apps, maybe get some more downloads Mar 01 05:46:28 winegoddess: package != application... Mar 01 05:46:47 DrPenguin: thanks good man Mar 01 05:47:04 QubeZ: yeah, I have been reveling in the awesomeness that are fragments Mar 01 05:47:15 i need to get with fragment learning Mar 01 05:47:19 Kinda wanna boost my sales from a measly 39 users Mar 01 05:47:30 QubeZ: DO EET. They are balls easy and just make life easier Mar 01 05:47:33 Leeds: so what would be a different package if i am putting these into my /res directory? i do see the android examples - but am unclear what else could be in play... Mar 01 05:47:46 but how useful are they for phones? Mar 01 05:47:47 QubeZ: Im using what comes with ActionBarSherlock 3.5.1 Mar 01 05:47:52 more useful for tablets right? Mar 01 05:48:04 or tabbed fragments ? Mar 01 05:48:14 QubeZ: Thats what Im using it for, Tabbed Fragments Mar 01 05:48:15 erm, I'm actually not sure about that - it's the sort of javaish thing I try to ignore, I suspect :) Mar 01 05:48:28 :) Mar 01 05:49:00 i was starting to think we might be able to average someone else's "plugin" for lack of a better word…but i havent seen an example of his Mar 01 05:49:02 this Mar 01 05:49:02 QubeZ: Fragments just make life easier when it comes to organization and flow control, since Fragments are independant of each other, you can just bind whatever you want or hot swap dynamically versus having to do stupi things like hides or whatever Mar 01 05:49:40 i use so shit loads of hides in my current app... so annoying to keep track of Mar 01 05:50:15 DrPenguin - can i ask, what is a hide, just setting the view to not be visible? Mar 01 05:50:25 winegoddess: ya, View.GONE Mar 01 05:50:31 winegoddess: a view has 3 visibility modes: visible, hidden, and gone Mar 01 05:50:41 visible, invisible and gone Mar 01 05:50:46 thanks!!! playing catch up… :) Mar 01 05:50:54 visible means you can see it, hidden means you cant but its view space is still consumed as if it were there, and gone is invisible + no space consumed Mar 01 05:51:15 ah, makes sense! Mar 01 05:51:51 DrPenguin: its invisible, not hidden Mar 01 05:51:59 QubeZ: so, lets say you had an Activity with some embedded listview, but you hide the listview under certain circumstances and do other crud with it. instead, you can make your Activity a FragmentActivity, and then manage the ListView as a ListFragment.. oh is it? well I was close Mar 01 05:52:14 WHATEVER MANG HE WOULDA FIGURED IT OUT Mar 01 05:52:27 he? Mar 01 05:52:30 he she it they Mar 01 05:52:35 heh Mar 01 05:52:37 :) Mar 01 05:52:50 its like going "whats up guys" but you address girls that way too Mar 01 05:52:58 I always feel awkward doing that Mar 01 05:53:02 trust me, im glad girls are guys... i like the lady parts Mar 01 05:53:10 i guess most ladies on irc might not be Mar 01 05:53:17 Cause eventually you will get the one whos like "IM NOT A GUY!" Mar 01 05:53:41 DrPenguin: have you tried my app? To Do Mapr Mar 01 05:53:49 I havent actually, letme dl it Mar 01 05:53:56 I can send you a link to get it if you dont want to go through the sign-up process Mar 01 05:54:01 shut up…can you tell me QubeZ what it does? Mar 01 05:54:03 i dont mind :P Mar 01 05:54:07 can I send you the latest build? Mar 01 05:54:20 winegoddess: www.todomapr.com ... but let me give you two the latest build Mar 01 05:54:23 oh its via face book? Mar 01 05:54:26 I dont do facebook Mar 01 05:54:57 let me export a signed build Mar 01 05:55:05 kk Mar 01 05:56:14 winegoddess: check out the website then ill send you a link Mar 01 05:56:20 if its what think, i wanted to do that. late to the game... Mar 01 05:56:39 we are almost done with the web service too so people can share tasks in real-time Mar 01 05:56:56 we're calling it a Tribe... everyone can receive tasks but only premium people can send them. Mar 01 05:57:41 I just finished setting up custom categories Mar 01 05:57:52 but this is my latest build so might be a lil buggy for that feature Mar 01 05:58:00 LOLBUGS Mar 01 05:58:05 dont crash my phone bro Mar 01 05:58:16 CM9 Alpha is buggy as it is Mar 01 05:58:46 check it out: www.todomapr.com/downloads/ToDoMapr.1.2.0.apk Mar 01 05:59:08 widget it broken for sure so dont mention it... im sure I broken it tonight with the feature changes Mar 01 05:59:12 I have a button inside a listView item. How to declare an onClick listener to it? Here is my code that doesn't work : http://pastie.org/3494121 Mar 01 05:59:33 ok installed Mar 01 06:00:24 Whoa, this is actually kinda cool Mar 01 06:00:49 Not sure if I would have a use for it, but if I did id grab this Mar 01 06:01:31 thanks, its great for house hunting, real estate people etc.. and deliver people Mar 01 06:01:59 when the web service comes out next month then it'll rock because wife can send a task to a husband... he can accept it and complete the to do list then update it completed to nofify the wife Mar 01 06:02:09 project teams can delegate tasks and keep track of all of them Mar 01 06:02:22 nice! Mar 01 06:02:25 I have a button inside a listView item. How to declare an onClick listener to it? Here is my code that doesn't work : http://pastie.org/3494121 Mar 01 06:03:40 napster: I am wondering.. I bet your button isnt gettin the click, but the list view entry is Mar 01 06:03:53 so I *think* you'd have to pass the onListItemClick event to the button? Mar 01 06:04:29 DrPenguin: ok, if that is the case, I would rather set onclick in the listView adapter's getView() Mar 01 06:04:34 let me try it Mar 01 06:04:36 no Mar 01 06:04:41 then? Mar 01 06:04:43 you wil use onListItemClick Mar 01 06:05:03 but I don't want the list item to be clicked Mar 01 06:05:08 just the button Mar 01 06:05:16 But.. thats what happens (as far as I know) Mar 01 06:05:21 hmm Mar 01 06:05:50 http://stackoverflow.com/questions/2322390/android-row-becomes-unclickable-with-button/2323085#2323085 Mar 01 06:07:30 where are SharedPreferences stored? Mar 01 06:07:53 under your /data/data//shared_prefs/ Mar 01 06:08:24 thanks!!! Mar 01 06:09:02 np Mar 01 06:31:25 night all Mar 01 06:31:32 night man Mar 01 06:46:35 what chart/engine should I use ? Mar 01 06:46:51 i've been using androidplot Mar 01 06:47:03 it's not great though Mar 01 06:59:02 graphview is not good enough ? Mar 01 06:59:17 never used it Mar 01 06:59:26 or do you mean from androidplot? Mar 01 07:01:55 http://www.insurgentgames.com/open-source/ Mar 01 07:02:30 Cool shit Mar 01 07:03:57 they put variable in their manifest? Mar 01 07:03:59 interesting Mar 01 07:04:06 makes it ieasier to increment I guess Mar 01 07:08:27 Do the Alert Dialogs in ICS use TextViews for buttons? I am trying to reproduce a Dialog for a custom DialogFragment Mar 01 07:09:26 Not sure, but pretty confident they use buttons.... Mar 01 07:10:06 t0mless: would you happen to know their style? Mar 01 07:10:44 no, but I bet aosp does Mar 01 07:12:56 * t0mless pokes SimonVT Mar 01 07:13:23 * zhongfu pokes * Mar 01 07:13:28 ouch Mar 01 07:13:39 /poke * Mar 01 07:24:39 t0mless: nevermind I found it from the AOSP Source :D Mar 01 07:25:02 apparantly, they dont set custom buttons, they rely on AlertDialog.Builder to set the proper buttons up from the set Methods Mar 01 07:25:16 figured as much Mar 01 07:25:25 gooooood stuff, thanks thoug! :) Mar 01 07:42:03 hello Mar 01 07:44:13 I want to build rdesktop apk using source code which run on Android ... how can I build it? Mar 01 07:46:44 afternoon Mar 01 08:10:40 If you build it, he will come Mar 01 08:11:21 * tors throws out a movie quote Mar 01 08:19:24 any way of closing a soft keyboard after touching a Spinner ? Because OnFocusChangeListener does NOT work on the EditText when Mar 01 08:19:39 I touch the Spinner Mar 01 08:22:56 I'm sorry for asking again, but I still cand find an answear. I need to guard my level data. Corresponding to CurrentLevel constant I'm loading level data which is: quantity of characters ans their own characteristics like x,y position. So should i hold it in a xml file (not seems very comfortable for such hierarchy) or what? Please give me a concrete advise. Mar 01 08:27:47 Oh, come on guts! U cant leave me with such a simple problem wuth no answear! Mar 01 08:31:52 Ok, ok, i c. I'll google more... Mar 01 08:32:05 defuera, have you checked out similar open-source games to see how they do things? Mar 01 08:32:06 huh Mar 01 08:32:15 LOL RAINBOWS Mar 01 08:32:41 Also, bear in mind that it's a weeknight in the US, and the time ranges from 12:30 to 3:30, except for AK/HI. Mar 01 08:32:53 man tbh iphone sdk still rapes androids :( Mar 01 08:36:43 Hi! I'm searching for a pdf rendering lib which is able to render pdf pages into images. The library must be usable in commercial, closed source projects.. Mar 01 08:39:17 replman, so open source is out Mar 01 08:39:20 ... OR IS IT? Mar 01 08:39:40 why don't i code a library and sell it to you for $0.99 Mar 01 08:39:40 lgpl Mar 01 08:39:51 oh k Mar 01 08:39:55 replman: http://www.qoppa.com/android/pdfsdk/index.html Mar 01 08:40:04 yes, lgpl would be ok Mar 01 08:40:09 no idea what it's like, but it's commercial and closed-source Mar 01 08:41:44 Leeds: Thank you! Looks exactly what i need. The library itself doesn't have to be closed source, but it must be possible to use it in a closed source app. Mar 01 08:42:08 I will have a look at that. Badly that there's no pricing information on the page... Mar 01 08:42:13 replman: wasn't all that hard to put "android pdf library" into google :P Mar 01 08:42:33 worth contacting them, anyway - you could be pleasantly surprised Mar 01 08:42:48 freecandy, ah.. certanly) what is the sourse project are you talking about? Mar 01 08:43:26 I'm not talking about any. I'm not in games, I'm just saying what I would look for. Mar 01 08:43:36 hi all! Hi all! I put android: imeOptions = "actionNext" in AutoCompleteTextView I have not a button Next on keyboard. why? Mar 01 08:44:37 Ah, yes, but their too complex or too simple) Mar 01 08:45:11 The point is to read comfortably the data Mar 01 08:45:11 Put on a pot of coffee and learn from one of the complex ones. Mar 01 08:45:20 they're Mar 01 08:45:40 Like if it is lvl 1 load that array... Mar 01 08:46:00 Ok, man, i'll do that! Mar 01 08:46:09 Thx anyway) Mar 01 08:51:37 Windows 8 Preview Ed. now available to install... http://windows.microsoft.com/en-GB/windows-8/download Mar 01 08:52:21 Rangar: I think you've got the wrong channel... Mar 01 08:52:56 most dev's are tekkies by nature, and android devs either code in... Linux.. or Windows ;) Mar 01 08:53:06 or OSX Mar 01 08:53:52 Linux , yes.. Mar 01 08:53:55 really?.. thought they would all be iPads ;) Mar 01 08:59:34 GraphView looks nice, but doesn't seem to be supported anymore, same for AndroidPlot Mar 01 08:59:53 it's difficult to make a choice Mar 01 09:00:28 same for achartengine Mar 01 09:01:02 last version is more than 8 months for all of them Mar 01 09:01:21 8 months ago Mar 01 09:03:55 i just read about the .nomedia file hint in the external storage directory.. Mar 01 09:04:07 will i have to put that just in the root of my directory tree? Mar 01 09:04:14 or every individual directory containing images? Mar 01 09:04:50 i think in the root Mar 01 09:04:52 but not sure Mar 01 09:05:04 haven't tried .nomedia Mar 01 09:05:53 ok.. Mar 01 09:06:06 i'll play it safe and put it into every folder Mar 01 09:06:15 Is there a particular process to having code organized in multiple packages in an android app. I'm getting an error asking if the activity in another app is declared, even though it is in the manifest file. Mar 01 09:06:50 can I use Google Chart Tools with Android ? Mar 01 09:07:55 http://youtu.be/8dOzpE1T3Ow < new light show (not dubstep!!!) Mar 01 09:09:02 WUB Mar 01 09:14:16 Anyone know? Mar 01 09:15:53 Anyone know? Mar 01 09:17:42 any clue why MediaPlayer.isPlaying() freezes/blocks in some very rare/random cases? Mar 01 09:19:38 I need to make some way of editing a two-field record in a list - what is the best design-wise way to go about this? Mar 01 09:19:58 I feel that a full window would waste too much screenspace and look off Mar 01 09:20:55 how long is a haptic feedback in ms? Mar 01 09:21:15 it's over 9000 yoctoseconds Mar 01 09:28:03 40ms is doing fine ... Mar 01 09:41:05 should i also additionally rename all files to dotfiles to hide them more efficiently from galleries, etc? Mar 01 09:41:24 [i.e. images that our app downloads into the external storage] Mar 01 09:48:00 btw: is it possible to ship an android app with an archive of data that is to be put onto the external storage? Mar 01 09:53:00 Per http://developer.android.com/design/patterns/selection.html ... how are we supposed to use a list as a navigation? ie, if pressing an item should open something, instead of marking it for selection Mar 01 09:54:28 tapas Mar 01 09:54:30 yes Mar 01 09:54:31 anyway to have onTextChange listener to update my EditText with a "%" at the end when ever I enter text? Mar 01 09:54:31 yes it is Mar 01 09:55:07 Blou_Aap: I'd register an OnFocusChange listener and IME action listener and handle it like that Mar 01 09:55:14 Blou_Aap: are you sure that would be a good idea design-wise? Mar 01 09:55:16 Hey there! Mar 01 09:55:28 How can I block user interaction with a horizontal scroll view? Mar 01 09:55:51 I want to scroll it by code, the user should not be able to do anything with it, not even click on the items inside. Mar 01 09:56:21 UnbertKant: setEnabled(false); Mar 01 09:59:52 we write "package com.something;" .. why this package.com.something is required ? is it the directory structure? or something else? Mar 01 10:00:10 banpdtr_, huh? Mar 01 10:00:14 it's to identify packages Mar 01 10:00:26 banpdtr_: it does follow the directory structure, yes Mar 01 10:00:36 com = commercial, org = organisation Mar 01 10:01:20 so for a paid app called HerpDerp made by RandomDev, it could be com.RandomDev.HerpDerp.paid Mar 01 10:01:21 It's a good thing, if you are release for a company, to use the url Mar 01 10:01:21 or the like Mar 01 10:01:29 say com.google.appname Mar 01 10:02:00 oh.. ok.. I understood that, there should be only one app with the same package name.. correct ? Mar 01 10:02:12 there can only be Mar 01 10:02:22 yes. Mar 01 10:02:29 one, that is :-) Mar 01 10:03:09 Mikellip: zhongfu: feesh thanks.. Mar 01 10:03:13 np Mar 01 10:04:02 you should check out java basics, and use javac/ant etc, it's good to know the basics even if you use eclipse :) Mar 01 10:04:30 then you can use eclipse to make things easier Mar 01 10:06:58 yeah., you are correct Mikellip . I will do that Mar 01 10:07:00 is there any way to set dummy text in a layout xml file just for testing in the layout viewer? or should I just populate the android:text field with some rubbish and ignore the lint warnings Mar 01 10:07:38 hmm... trying to use SQLiteOpenHelper and was wondering if I should extend it for every database or for every table? Mar 01 10:08:03 thanks feesh! Mar 01 10:09:12 why do you have more than one database? Mar 01 10:10:02 i'll have only one database i guess Mar 01 10:11:36 hmm now that I think about it, i can just extend it once and use it to create tables and stuff Mar 01 10:12:01 yeah, i think that's the convention Mar 01 10:12:13 alright thanks Mar 01 10:13:55 and if I update the version number for the database i can just check "if version is 2 and oldversion is 1", then "add the new rows, delete the removed ones, etc etc" right Mar 01 10:14:00 very cool. Mar 01 10:14:43 Anyone feel like commenting on this? It's an error I'm getting. http://stackoverflow.com/questions/9514189/android-creating-a-new-bitmap-to-scale-an-old-bitmap-causing-error-width-and Mar 01 10:14:51 i guess i'll have a system like "for(int i=oldvers;i or even better, updatedb(i) since 2nd arg will always be i=1 Mar 01 10:16:04 i+1* Mar 01 10:16:15 i love it. Mar 01 10:17:19 feesh: ok, thanks ;D how? :D Mar 01 10:19:51 whack your archive in raw/ Mar 01 10:20:03 then use the Zip* classes to extract it from an input stream Mar 01 10:20:49 starlon: I'm surprised it doesn't crash earlier Mar 01 10:20:58 getWidth()/getHeight() will return 0 in the View constructor Mar 01 10:21:11 ah Mar 01 10:21:15 so you should get a division by 0 in postScale() Mar 01 10:21:17 anyway Mar 01 10:21:20 :) Mar 01 10:21:23 feesh: ok, reading up on that Mar 01 10:21:23 thanks Mar 01 10:21:24 you wrote mH = getWidth(); Mar 01 10:21:27 so it fails the test if(mW != getWidth() || mH != getHeight()) Mar 01 10:21:33 and postScale() doens't reset the matrix Mar 01 10:21:37 it appends another scale Mar 01 10:21:45 Wow Mar 01 10:21:48 :) Mar 01 10:21:48 so you are scaling the image to be so tiny it ends up being 0x0 Mar 01 10:21:57 use setScale() instead Mar 01 10:22:04 also, don't create a new bitmap on every onDraw() :) Mar 01 10:22:11 * starlon nods. Mar 01 10:22:16 you could use onSizeChanged Mar 01 10:22:22 yep Mar 01 10:22:28 oh Mar 01 10:22:38 thanks :) Mar 01 10:23:02 but good topic i have a question on that aswell :) Mar 01 10:23:21 i have my own mapview for openstreetmap tiles and iam drawing them from a matrix Mar 01 10:23:34 so on zoom i use scale and if its over 1.5 i load the next zoom level Mar 01 10:23:51 but if i have no connection i see black (or blank map) Mar 01 10:24:21 how can i split this up so the not new loaded tiles are from one zoom level higher but get more scaled Mar 01 10:25:39 because im scaling the whole canvas matrix Mar 01 10:26:03 and if i just keep scaling but reloading new tiles they get scaled aswell Mar 01 10:40:15 Hm, unfortunately, setEnabled(false) seems to not work on HorizontalScrollViews. Is there a way to disable them? Mar 01 10:46:52 I'm using Eclipse for Android NDK dev. Edits to *.h files are not picked up to trigger a re-build of relevant .o files. Tried stackexchange etc. Any suggestions ? Mar 01 10:53:15 is there a rule of thumb about the size of data for which one should use the external storage? Mar 01 11:04:01 tapas: erm, as little as possible :P? Mar 01 11:04:33 makes sense to use external storage for some things (like cacheing of a lot of images) as using the internal storage could mean less space for installing applications Mar 01 11:05:47 feesh: yeah, we do use the external storage right now.. i was ust wondering whether we could get away with using the internal storage instead as it would make the app more robust Mar 01 11:06:55 http://codepad.org/qqqKtPzb Aaaaaaaaaaaaaaaaaaaaaaaaaah. Mar 01 11:14:41 Is there someone here Mar 01 11:14:44 with a MIPS android device Mar 01 11:16:05 I'm looking for someone with a MIPS android device who would be willing to test an app, :-). Mar 01 11:19:00 I'm looking for DrPenguin Mar 01 11:19:10 I'll go this way, you go that way Mar 01 11:19:16 we'll meet up here in 5 Mar 01 11:22:45 I have used connection.setUseCaches(true) to cache an imgae after download, but I can't find it when I browse my app's folder's cache, why ? Mar 01 11:23:06 I have an AsynkTask object in my activity and is execute() - ed in onResume(). I would like to cancel all previously running instances of this task before running it in my onResume(). How can I do it? Mar 01 11:30:21 will the option to make phone do not charge above 80% be added in android ? there is same option in netbook's bios to make battery life longer Mar 01 11:31:36 when DialogPreference implements onClick(DialogInterface dialog, int which) from DialogInterface, how does it get the event handler to send the needed parameters instead of the normal parameter (view)? Mar 01 11:32:41 hi Mar 01 11:33:09 if I have a problem like "unhandled database version" what's the easiest way to display an alert and then stop the application completely (before the database gets corrupted)? Mar 01 11:37:49 hmm.. looks like i better let the OS handle the errors Mar 01 11:37:59 I mean exits* Mar 01 11:40:15 Do I need to tell Android to install an application icon entry with the app screens? Mar 01 11:42:05 Mar 01 11:42:10 That's the only thing I can find. Mar 01 11:52:30 intresting a renameTo of a directory succeeds but returns false nonetheless Mar 01 11:54:53 hello Mar 01 11:58:05 hello, i need to implement a edittext that gives "suggestions" in a dropdown list. is there a component that do it for me? whats its name? Mar 01 12:02:49 capcook: http://developer.android.com/resources/tutorials/views/hello-autocomplete.html Mar 01 12:03:11 thx Mar 01 12:20:23 With custom views, is there an automated way to let my view know that its' parent is onPause-ing? Mar 01 12:22:34 I have an AsynkTask object in my activity and is execute() - ed in onResume(). I would like to cancel all previously running instances of this task before running it in my onResume(). How can I do it? Mar 01 12:27:21 o.o Mar 01 12:27:25 napster: Cancel them in the onPause(). Mar 01 12:32:22 kamoricks: no that doesn't seems to be working. The thing is it is a network fetch done by another class. so even though I cancel() the task, if I return back to the activity very soon to cause onResume() to be called, the exception occurs that the task is still running Mar 01 12:32:35 kamoricks: Should I share the code now? Mar 01 12:34:25 I'd like to ask someone here about android applications written that use "plugins", has anyone experience in this area with a few minutes to talk ? Mar 01 12:34:52 wmealing_: what questions do you have Mar 01 12:36:04 kamoricks: http://pastie.org/3495980 This is the code. Please take a look Mar 01 12:36:19 I am interested in developing an application that features downloadable plugins, I see a framework like http://code.google.com/p/jspf/wiki/RunningOnAndroid which discusses loading classes from disk, is it possible to load classes from files downloaded from the internet ? Mar 01 12:36:31 Music-vis app for Froyo :) http://starlon.lyrical.net/froyvisuals.php Mar 01 12:36:49 I'm still wondering why cancel() does not really (just) kill the asynktask! Mar 01 12:37:10 no i dont think it is Mar 01 12:37:12 Hi all. I'm having some issues using the ZXing library. I can't seem to get a result from the activity despite using startActivityForResult and onActivityResult. onActivityResult is never called. Mar 01 12:37:18 any ideas? Mar 01 12:37:25 you need to communciate via intents and services Mar 01 12:37:33 that was directed at wmealing_ Mar 01 12:37:46 napster: because you didnt read the docs Mar 01 12:38:07 mikedg, so I'd write multiple apps and treat them like plugins (communicating via intents ?) Mar 01 12:38:35 wmealing_: yeah Mar 01 12:39:16 never thought of using it that way.. guess I got a lot of reading to do. Mar 01 12:39:27 mikedg: ah no. The "canceling a task" part says you have take care of the task to complete is as soon as possible when a call to cancel() is detected through isCanceled () Mar 01 12:39:28 A task can be cancelled at any time by invoking cancel(boolean). Invoking this method will cause subsequent calls to isCancelled() to return true. After invoking this method, onCancelled(Object), instead of onPostExecute(Object) will be invoked after doInBackground(Object[]) returns. To ensure that a task is cancelled as quickly as possible, you should always check the return value of isCancelled() periodically from doInBackground(Object[]) Mar 01 12:39:28 , if possible (inside a loop for instance.) Mar 01 12:39:48 mikedg, thanks for your input. Mar 01 12:39:52 mikedg: yeah :) Mar 01 12:39:54 wmealing_: try looking at the docs for creating a plugin for locale or something, it should become obvious Mar 01 12:40:51 i gotta poop Mar 01 12:40:54 hold your questions Mar 01 12:42:19 The thing is, I cannot do a periodic check for isCancelled() in doInBackground() though! Mar 01 12:44:03 Hi all Mar 01 12:53:04 I'm creating a login app for my college network. I've gotten pretty far and now I get a page with an onload="form[0].submit". If I load that html-string in my browser and let it submit, I'm logged in. If I post the vars from the form using a HttpsURLConnection, I get an internal server error. Any ideas ? Mar 01 12:55:34 napster: why cant you do that Mar 01 12:56:03 mikedg: Its an atomic process which takes some time Mar 01 12:57:52 JeroenDL maybe an encoding problem? Mar 01 12:59:14 mikedg: I could not actually break it into smaller pieces and check isCancelled(). That is the thing. Any idea? Mar 01 13:01:01 The form itself is really basic: http://pastebin.com/WKV9h6GF Mar 01 13:01:14 So all I'm doing is taking those 2 variables and posting them to the url Mar 01 13:01:40 napster: you gotta let it finish then but dont return a result Mar 01 13:01:53 hmm Mar 01 13:02:50 the thing is, if the user switches between the activities very fast a couple of times, there will be x number of threads alive Mar 01 13:23:43 I think I'm going to give a bounty to anyone who rewrites Messaging and makes it sane Mar 01 13:23:54 Y U SO SLOW :( Mar 01 13:25:30 lut4rp: whats your problem Mar 01 13:26:02 smknight_, Nothing, it's just extremely slow Mar 01 13:26:29 ANRs all the time Mar 01 13:28:00 the sms messaging app? Mar 01 13:28:18 the sms app works fine for me at least. not that I message much, just never seen any real trouble Mar 01 13:28:22 just use another SMS app? Mar 01 13:28:29 never had any problems with that app Mar 01 13:28:33 you're not forced to use the default one Mar 01 13:28:44 I know, but why should such a core central application suck? Mar 01 13:28:54 Also, it strongly depends on how many messages and threads you have Mar 01 13:28:54 it doesnt suck Mar 01 13:29:01 I have around 400 threads and 10,000 messages Mar 01 13:29:37 what phone do you have Mar 01 13:29:42 Galaxy Nexus Mar 01 13:29:50 small Q: I have a fragment that creates a view by Inflater. How can I add actionhandlers to it ? since its not the basic Activity Mar 01 13:30:18 smknight_, I have 3 times the messages in Whatsapp and it never even lags, let alone ANR :) Mar 01 13:30:22 did you copy the database from an older phone? Mar 01 13:30:22 how to retrieve a file from its url and save it to the internal cache of my app ? Mar 01 13:30:51 smknight_, yes, used a backup/restore app that writes to an XML file, then restores to Messaging Mar 01 13:31:08 but then the situation was as bad (if not worse) on my old HTC Desire Mar 01 13:31:48 you are quite the heavy user Mar 01 13:31:57 but my sms database is 3 years old and much larger Mar 01 13:31:58 are you calling him fat Mar 01 13:32:02 and i dont have any problems Mar 01 13:32:10 storkme, rofl Mar 01 13:32:17 smknight_, hmm... Mar 01 13:32:54 my brother had problems, too Mar 01 13:33:02 he used sms backup and restore Mar 01 13:33:15 Aha Mar 01 13:34:00 * lut4rp would still like to study the source of Messaging Mar 01 13:34:10 just do it Mar 01 13:34:11 :p Mar 01 13:34:11 Let's see, one weekend to this Mar 01 13:34:13 :) Mar 01 13:34:15 Yeah Mar 01 13:37:18 i just recently had to build a 'custom' messaging app for a client for demo purposes Mar 01 13:37:58 i used the TextSecure app as a base, its open source and the code is quite clean Mar 01 13:38:12 if you wanna build an own messaging app i can recommend it as a base ;) Mar 01 13:54:42 Should I lock the canvas in the beginning of each frame and unlock it at the very end of each frame? Mar 01 14:00:33 I have a webview with fill_parent, inside a scrollview with fill_parent set as height, and still, it seems that my webview is only as big as the content in the website it is displaying Mar 01 14:03:46 Has anyone run into an issue with ICS and mobile website where data retrieved using ajax and jquery 1.3.2 doesn't always load into a div using .html(data_here)? Mar 01 14:04:06 Hmm... my code didn't work as expceted, so now I got a shirtload of Alarms... >_< Mar 01 14:04:34 http://codepad.org/kDkDHKMA :( Mar 01 14:04:59 hi Mar 01 14:05:08 First question: how to I kill them all? Mar 01 14:05:36 do I have to recreate a view on a fragment every time it gets selected ? Mar 01 14:05:43 isn't that kinda bad on performance ? Mar 01 14:05:47 s/to/do/ Mar 01 14:06:53 Is it possible to define a rotation in an ? Mar 01 14:22:26 how to read an image downloaded in my app's cache folder ? Mar 01 14:24:35 maxagaz: http://developer.android.com/reference/android/graphics/BitmapFactory.html Mar 01 14:27:50 lov: something like this : Bitmap bitmap = BitmapFactory.decodeFile(getContent(getFilesDir()+"/day.png")); ? Mar 01 14:28:37 >_< Mar 01 14:28:41 maxagaz: read about the File class Mar 01 14:28:50 lov: Bitmap bitmap = BitmapFactory.decodeFile(getFilesDir()+"/day.png"); Mar 01 14:28:52 and meditate on how it allows you to specify files in folders Mar 01 14:29:04 I have no idea where your cached files dir is Mar 01 14:29:33 but something like File f = new File(getFilesDir(), "day.png"); if(f.exists()) { ... Bitmap bmp = BitmapFactory.decode(f); } ... Mar 01 14:30:00 lov: in .../com.home.myapp/files/day.png Mar 01 14:30:07 ok, that's not "cached files" Mar 01 14:30:10 that's your app private storage Mar 01 14:30:23 your cache is somewhere else Mar 01 14:31:01 lov: ok, so that wasn't from my cache Mar 01 14:31:07 Location.getAccuracy() - Returns the accuracy of the fix in meters. # So what excactly does that mean? Mar 01 14:31:16 the_ellipse: exactly what it says. Mar 01 14:31:28 you get a location object. that's your "fix", i.e. your currently derived position. Mar 01 14:31:32 the fix is not perfectly accurate. Mar 01 14:31:44 getAccuracy gets the accuracy of your probable radius in meters Mar 01 14:31:59 ah ok its radius in meters then? Mar 01 14:32:00 smaller getAccuracy result = more precise Mar 01 14:32:04 I think it's the radius yes Mar 01 14:32:09 ok Mar 01 14:40:56 Any idea why javascript in Android 3.2.1 does not work in an invisible WebView object (and works fine in 2.3)? Mar 01 14:41:16 if i call startActivityForResult is it guaranteed that if that started activity itself doenst start any activities itself that the control flow will always return to my onActivityResult before going to any other activity in my app? Mar 01 14:42:07 tapas: no, absolutely not. Mar 01 14:42:34 tapas: the user can press home, and then do something else, and then maybe another activity in your app is started. Mar 01 14:43:02 <_SKiTZO> I have a custom DialogPreference. how can I get hold of the "android:defaultValue" in my code? Mar 01 14:43:27 _SKiTZO: you generally don't, that's just a value that's provided at constructor time. Mar 01 14:45:28 <_SKiTZO> but how is it provided at constructor time? Mar 01 14:45:38 <_SKiTZO> i mean i get an AttributeSet Mar 01 14:46:13 <_SKiTZO> i tried attrs.getAttributeIntValue("android", "defaultValue", something); but that doesn't work Mar 01 14:48:22 Override onGetDefaultValue Mar 01 14:48:30 The android source references com.android.internal.R.styleable.Preference_defaultValue: Mar 01 14:50:00 * lov shrugs Mar 01 14:50:04 check stackoverflow Mar 01 14:50:35 I want to start an Android 3.2.1 emulator, but it sais """Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder.""" - where do I get that file from? I don't see anything relevant in Android SDK Manager > Android 3.2 (API 13). Mar 01 14:52:23 lov: hmm, ok.. Mar 01 14:58:24 so what is the "canonical" approach to an app having to download quite a bit of external data onto the external storage Mar 01 15:01:07 <\monster\> blah admob sucks for publishers and now I find out it also sucks for advertisers ..almost on 3rd day of waiting for ad approval Mar 01 15:01:50 \monster\: it reminds me of the "adsense experience" ;) Mar 01 15:03:44 tapas: use a service, preferably a ForegroundService. Mar 01 15:03:53 If you can, consider using the DownloadManager classes that are reasonably new Mar 01 15:04:05 http://developer.android.com/reference/android/app/DownloadManager.html Mar 01 15:05:07 Hi. How can I set initial state in 'Settings' (ex. I'd like to enable/disable Air Plane Mode by default) ? Mar 01 15:05:31 (I had access to framework code) Mar 01 15:12:46 <_SKiTZO> thanks for the info! I managed to get the default value at last! :D Mar 01 15:15:39 lov: oh ok.. thanks for the pointer :D i think you told me once before but i was too caught up in other stuff to actually listen to your advice :D Mar 01 15:20:49 how to get current date measured in milliseconds since January 1st, 1970 ? Mar 01 15:21:02 ........ Mar 01 15:21:08 c++? ^^ Mar 01 15:21:36 System.currentTimeMillis Mar 01 15:22:13 I need to test if a file's last modification date is more than 1 day Mar 01 15:28:45 lov: thanks :) Mar 01 15:48:16 le sigh. android exasperates me. They've made it terribly difficult to do development of larger projects. Mar 01 15:48:38 in what way? Mar 01 15:49:26 conversion to dalvik failed with error 1 Mar 01 15:49:29 It's hard to do unit testing, it's hard to use maven, it's hard to use other IDEs, it's hard to do dependency management, the developer tools are not that well supported, etc, etc. Mar 01 15:49:58 If you're not writing a small little app in Eclipse, it's hard to do. Mar 01 15:52:12 hello, I have basic encrypted videos, and before they play I decrypt it, show a loading dialog. Is it possible to decrypt and push that buffer to the video player so It plays while being decrypted? Can you play video from a file buffer? Mar 01 15:55:03 wraithguard01: I've never had any problem using another ides or with compatability of developer tools.. haven't used maven though Mar 01 15:57:51 yeah, it's only when you try and combine everything that it starts to break down Mar 01 15:58:25 Maven + CI + Unit Testing = broken android process Mar 01 15:58:58 to be honest i've never even done unit testing in an android project Mar 01 15:58:59 Hey guys. In my on resume i'm doing linearlayout.removeChildViews(); then I am adding views to it again. However, after the first view is added, no more views are added to the linear layout. I am calling invalidte after all of them are added. Mar 01 15:59:03 (yes I'm a bad person) Mar 01 15:59:18 snooplsm: are you setting the layout params properly? Mar 01 15:59:20 well, it's exceedingly hard to do Mar 01 15:59:50 Unit testing in general isn't that hard, but in combination with android, it becomes exceedingly hard. Mar 01 15:59:55 storkme: i believe so. Mar 01 16:00:00 Hello. Mar 01 16:00:00 linearlayout is wrap content Mar 01 16:00:07 inside views are fill_parent, wrap_content Mar 01 16:00:08 There are third party tools that help, but they aren't 100% yet, and they aren't officially supported Mar 01 16:00:14 :( Mar 01 16:00:20 It makes me a sad panda Mar 01 16:00:22 What's the right adapter to use if I want a list that contains expandable groups, separators and custom views? Mar 01 16:00:39 (I'm a bit confused about using 3 different types of views in a listview) Mar 01 16:00:42 Because you end up not wanting to invest much effort into making real, useful apps. Mar 01 16:01:10 UnbertKant: it's easy :D Mar 01 16:01:20 UnbertKant: just override getItemTypeCount Mar 01 16:01:31 and getView will return you a specific view of that type Mar 01 16:01:33 it's clever like that Mar 01 16:02:07 snooplsm: what worked for me was setting the layoutparams of the child views, then just calling layout.addView(childView), I had a similar problem this morning Mar 01 16:02:32 ok storkme i'll try that Mar 01 16:02:39 i was doing addView(child,layoutparsm) Mar 01 16:02:45 feesh, does this work with expandablelists? Mar 01 16:03:24 I can't imagine why not, but I can't say I've tried it Mar 01 16:07:28 yeah, I tried that snooplsm and it didn't work, idk why Mar 01 16:12:22 Can I use Canvas in a SurfaceView? Mar 01 16:12:35 Alright, I'll try that. Mar 01 16:14:50 When I start a service that launches a thread that runs indefinitely, then I stop the service, the thread keeps on running. If the service calls telephonyManager.listen, will that callback persist after the service is stopped as well? Mar 01 16:15:13 Hm, it seems that expandableListAdapters don't have getItemTypeCount :( Mar 01 16:15:32 So how do I build an expandable list with 3 different views? Mar 01 16:19:15 BaseExpandableListAdapter Mar 01 16:21:30 If the device isn't connected to a wifi network how do I send them to the network setup via intent? Mar 01 16:46:40 http://berkeley.intel-research.net/arahimi/helmet/ Mar 01 16:50:25 Thanks storkme. But is there a way to do that in API level 7? Mar 01 16:51:21 uh Mar 01 16:51:31 it's from api 1? Mar 01 16:51:44 isn't it? Mar 01 16:53:18 What counts as "external storage"? Does the 16GB some phones have count to it? Mar 01 16:54:31 n20: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Mar 01 16:55:03 and yes, it says quite openly there that "external storage" can in fact be "internal storage" - yay consistency :) Mar 01 16:55:41 my samsung note uses "usb storage" for internal, even more consistency Mar 01 16:55:57 Gotta love it. Mar 01 16:56:16 vty: yup same with my galaxy sII skyrocket Mar 01 16:56:26 Gotta love it. Mar 01 16:56:30 yeah, same phones Mar 01 16:56:32 I started my emulator, but my app actually complained about no storage being available (forgot to add it). :) Mar 01 17:03:26 my klout keeps oging down Mar 01 17:11:58 6pm in spain, mwc is over Mar 01 17:12:12 i still have a job, and a new titile so i guess it went well Mar 01 17:13:35 mwc is done? Mar 01 17:14:57 birbeck: commander of the universe? Mar 01 17:17:43 im not pinky or the brain Mar 01 17:17:58 sr. android software engineer / android evangelist Mar 01 17:18:19 nice Mar 01 17:19:19 so now i get to spend the next month coming up with concept designs using android best practices and demostrate it to the company execs on how we can better use android technology in the market Mar 01 17:20:49 when i started, they wanted an android port of the ios concept, i kept insisting we use native android widgets and an experience that android users would expect, and it paid off Mar 01 17:21:13 i was using an app last night Mar 01 17:21:15 it had a back button Mar 01 17:21:18 i cant remember what it was Mar 01 17:21:21 but im going to go 1star it Mar 01 17:21:25 lol Mar 01 17:21:46 you know that a back button (arrow) is standard practice now? Mar 01 17:21:52 ? Mar 01 17:22:05 lint gives you a warning if you have a back button Mar 01 17:22:13 if i see a glossy title bar with a centered bold title and a left aligned back button, i will not use it Mar 01 17:22:30 Kayak Mar 01 17:22:31 that's it Mar 01 17:22:35 and it has exactly that, birbeck Mar 01 17:22:41 i want to punch them in the face Mar 01 17:23:02 im talking about setDisplayHomeAsUpEnabled() though Mar 01 17:23:12 not an ios looking titlebar Mar 01 17:23:14 thats not a back button Mar 01 17:23:16 a back button is standard practice? Mar 01 17:23:17 thats an UP button Mar 01 17:23:23 yeah, thats the proper android way Mar 01 17:23:26 or rather, its the app icon Mar 01 17:23:28 lawl Mar 01 17:23:29 that behaves as an up button Mar 01 17:23:35 im talking about a BACK BUTTOn Mar 01 17:23:38 back that button up... Mar 01 17:23:43 https://market.android.com/details?id=com.kayak.android <-- third screenshot Mar 01 17:23:48 Anyone good with fragments here ? Mar 01 17:23:56 this shit is beating my head in Mar 01 17:24:00 what an ugly ass app Mar 01 17:24:14 canadiancow: nice :) Mar 01 17:24:24 I currently have a RelativeLayout, that contains an ImageView, several TextView's, and two ListViews. I have a fixed number of list items bound to the ListViews. I would like the entire view to scroll since it goes beyond the screen. I guess I can't use a ScrollView because of the ListViews as I understand it - any suggestions would be appreciated. Thanks. Mar 01 17:24:25 birbeck: i just 1star'd it Mar 01 17:24:33 youre mean Mar 01 17:24:46 i am guidelines for my ratings Mar 01 17:24:51 before i even consider how much i like it: Mar 01 17:24:57 super-ios gets you 1 star Mar 01 17:25:06 targetSdkVersion < 14 loses you a star Mar 01 17:25:08 < 11 loses you another Mar 01 17:25:11 < 8 loses you another Mar 01 17:25:25 so if you target 7, and it's perfect, i give you 2 stars Mar 01 17:25:27 < 8? who the fuck would do that? Mar 01 17:25:36 people who think min==target Mar 01 17:25:41 birbeck: But it needs to be 7 to work on 2.1 ! Mar 01 17:25:47 that ^ Mar 01 17:25:53 minSdk=7 targetSdk=15 Mar 01 17:26:05 yes birbeck, WE understand that Mar 01 17:26:11 hello. Mar 01 17:26:23 well if eclipse didnt give you a warning that minsdk was lower than tarketsdk Mar 01 17:26:37 that's true lol Mar 01 17:26:49 is it possible to add items to a listview (inflated from an xml, thus, a list item having more than one widget) _manually_? (ie, without the adapter class) Mar 01 17:26:52 afaik they removed that in adt17 Mar 01 17:27:07 Now they give warning if you use new APIs without setting TargetApi Mar 01 17:27:08 yea they did Mar 01 17:27:10 hi, when i am trying to import android.bluetooth.BluetoothAdapter; it is unable to import i have allowed both bluetooth permission and bluetooth admin permission in manifest file..what else needs to be done? Mar 01 17:27:11 im using 17 and its still there Mar 01 17:27:20 birbeck: im using 17 and it isnt :S Mar 01 17:27:28 min 8 target 15 Mar 01 17:27:53 is there a standard way of getting a result from a dialogfragment? I could just pass in a Handler as a callback, but then if the dialogfragment is destroyed and recreated (for instance if the app was backgrounded) the callback would be null, right? Mar 01 17:27:56 yeah, i just checked and i was wrong Mar 01 17:28:23 storkme: setTargetFragment if you want callbacks to a fragment, onAttach if you want callbacks to activity Mar 01 17:29:11 kayak Mar 01 17:29:40 looks like some multi plattform app generator puked it out Mar 01 17:30:47 ^^ Mar 01 17:30:49 cheers SimonVT Mar 01 17:32:08 UI finally works normal looks nice Mar 01 17:32:14 * shroomyreader turns phone landscape Mar 01 17:32:22 UI flips fucking shit Mar 01 17:32:27 hi,Anything special needs to be done when i want to use bluetooth in my app? when i am trying to import android.bluetooth.BluetoothAdapter; it is unable to import i have allowed both bluetooth permission and bluetooth admin permission in manifest file.... Mar 01 17:42:45 there's no bluetooth on the emulator, blue_pearl Mar 01 17:42:49 iirc Mar 01 17:44:20 Sicp, Ooh..so is there no way to make a app that uses the bluetooth, or i have to change something in emulator? Mar 01 17:44:37 what you have to do is test on an actual device Mar 01 17:44:41 it works fine there Mar 01 17:45:13 Sicp, i dont have a device. Mar 01 17:45:35 you're out of luck afaik Mar 01 17:46:05 blue_pearl: then you would need to either get one, or redo the system image in emulator and the emulator binary to support QEmu's vhci Mar 01 17:46:50 Sicp, p_l, but in the emulator under settings>wireless settings there is bluetooth. Mar 01 17:47:23 I think that's because the emulator has to stay honest to the actual device, meaning that if you were to work with bluetooth on your real phone, this is how it would look like Mar 01 17:49:57 Sicp, ok..i got the point but i think there is some problem in code...if there is a red underline in eclipse how should i compile it? Mar 01 17:52:31 you either hover your mouse pointer over the red line, or you go to the gutter (next to the line numbers where the bulb and x mark appear) and you click it to find out what can be done to resolve the error Mar 01 17:53:41 Scip, ok Mar 01 17:53:47 Sicp, ok Mar 01 17:54:43 any opengl es 1.1 experts out there? having trouble setting up an fbo with a packed depth/stencil buffer Mar 01 17:56:27 are you sure you can? Mar 01 17:57:28 the khronos docs seem to suggest that it is possible Mar 01 17:59:33 my code works fine on nvidia based tablets, but snapdragon based ones with the Adreno 220 gpu have isses due to the lack of the stencil8 extension Mar 01 18:04:49 is it possible to use a Fragment in a PopupWindow? if so, pointers to an example of how to get this working are appreciated. Mar 01 18:08:08 If I set an onClickListener for a viewGroup, does it set all the listeners for it's children as well? Mar 01 18:08:34 no Mar 01 18:09:19 interesting tidbit: http://news.cnet.com/8301-17938_105-57388555-1/verizon-officially-supports-locked-bootloaders/?part=rss&subj=news&tag=2547-1_3-0-20 Mar 01 18:09:28 evancharlton: arigato Mar 01 18:09:43 DrPenguin: I read that on GReader. It makes sense. Mar 01 18:10:27 The reasoning Verizon provides is bs Mar 01 18:10:28 locked bootloaders make sense when the only thing that is locked from unapproved change is the radio rom :P Mar 01 18:10:50 p_l: well, not really.. Mar 01 18:11:06 p_l: you could run things like torrent clients and whatnot Mar 01 18:11:21 and become one of those data thiefs!!1 Mar 01 18:11:41 evancharlton: by "radio rom" I meant baseband. It's actually illegal to meddle with that in my homeland Mar 01 18:12:00 (for a good reason) Mar 01 18:12:10 p_l: what reason might that be? Im curious Mar 01 18:13:04 DrPenguin: Because then you could use your phone to get into secure channels Mar 01 18:13:09 hwrd|work: no Mar 01 18:13:29 Because then your phone could totally screw up the network by sending invalid packets and become a very expensive brick. Mar 01 18:13:34 it's about the modified baseband possibly becoming a source of interference for other users of the spectrum Mar 01 18:13:52 p_l: ah, makes sense Mar 01 18:14:14 I see. Mar 01 18:14:18 not to mention the possibility of recalibrating some radios to frequencies which are reserved for very specific, sometimes life-important duties Mar 01 18:14:48 for example GSM protocol, on a restricted band, is used in railway signaling and security Mar 01 18:14:58 (GSM-R) Mar 01 18:16:03 so any use of licensed bands, or radio emitters over certain power, requires appropriate licensing, of either hardware (which has to be locked from modification to that functionality then), or to operator Mar 01 18:18:23 a case that happened in warsaw some time ago - some unlicensed retransmitter showed up for a certain religious radio... it was probably jury rigged, because it "leaked" into avation bands, leading to interference in frequency used by EPWA-TWR2 (secondary tower frequency of biggest polish airport) Mar 01 18:20:06 microwave spectrum (used by GSM/CDMA/LTE as well) is also used by radars, GPS, etc. Mar 01 18:20:24 in fact, some LTE-450 deployments in USA got halted when it was found they interfered with GPS signals Mar 01 18:20:34 Talking to yourself again? :p Mar 01 18:20:44 is that the lightsquared stuff? Mar 01 18:21:02 oGMo: I think it was them Mar 01 18:21:07 SimonVT: heh, happens :P Mar 01 18:22:01 sucks but they should have tested and/or had a backup plan Mar 01 18:22:23 hhmmm anyone had an idea how to force Google Calendar to refresh? Mar 01 18:22:52 oGMo: supposedly they tried to hush it up and their hw wasn't exactly up to spec, or something like that Mar 01 18:22:58 tl;dr Mar 01 18:23:42 really? idiots Mar 01 18:24:31 the stuff I've read indicated it was the gps devices leaking into their spectrum Mar 01 18:25:08 but the end result is the same: they couldn't roll it out Mar 01 18:25:34 killring: GPS devices are passive receivers Mar 01 18:26:39 the whole GPS-used spectrum has been reserved before LTE was drafted, so either someone screwed up spectrum allocation for lightsquared, or they screwed it up themselves Mar 01 18:27:01 I understand that... but if they aren't properly designed/tuned, they could (and based on the little bit I saw) do leak into the lightsquared spectrum so that should they begin to roll out the ls stuff, it would cause problems with a lot of gps equipment Mar 01 18:27:07 I thought it was something to the extent that GPS receivers were relying on certain unspecified behaviors on frequencies that weren't meant for GPS Mar 01 18:27:45 killring: GPS receivers don't actually emit anything Mar 01 18:27:54 killring: how a *passive* device can leak into spectrum? there's *no* emitter Mar 01 18:28:02 the GPS satellites in orbit transmit signals, GPS receivers receive the signals. GPS receivers do NOT transmit signals. Mar 01 18:28:21 (well they might be parts of cellphones and the cellphones might transmit gsm signals but that's outside the point) Mar 01 18:28:40 only D-GPS transmits signals, and that one is rather unheard of in USA, from what I heard Mar 01 18:29:04 and I'm not entirely convinced D-GPS has to transmit... Mar 01 18:29:23 (there are ground stations involved in D-GPS that transmit correction signals) Mar 01 18:30:47 Yeah, I thought that DGPS worked by having ground stations transmit extra information Mar 01 18:31:11 my understanding was that the leakage were the frequencies some gps equipment was tuned to (they weren't properly limiting their usage strictly to the gps band). i.e. if the gps receiver is tuned to x (the gps band) and a little bit of y (the adjacent lightsquared spectrum), lightsquared transmission could cause interference with said gps devices Mar 01 18:32:17 yeah, I think it was something like that Mar 01 18:32:25 killring: given how low power the GPS signal is, then someone screwed up allocating band for lightsquared Mar 01 18:32:39 without keeping enough separation Mar 01 18:33:46 p_l: that's entirely possible. but it sounds like they were too far down the path with lightsquared (the gps receivers weren't going to change) to attempt to resolve it and decided better to scrap it Mar 01 18:34:51 Hi, I try to do a button who share a text. I did one who use a intent Intent.ACTION_SEND and .setType("text/plain"); and putExtra(Intent.EXTRA_TEXT, text); It share my text with SMS, twitter. Nice, but it doesn't work with facebook. In that case, it send something empty Mar 01 18:35:01 what I find fascinating is that the fcc (here in the states at least) should have known this when they auctioned off the spectrum, but it sounds like their position is 'hey, sucks to be you' Mar 01 18:35:43 public void onItemSelected(AdapterView parent, View view, int position, long id) { Mar 01 18:35:44 long pos = parent.getSelectedItemId(); Mar 01 18:35:57 what is that id? Mar 01 18:36:05 Same as id Mar 01 18:36:19 but where the id is defined? Mar 01 18:36:29 Adapter.getIdemId Mar 01 18:36:45 s/Idem/Item Mar 01 18:37:15 but what create's that id? Mar 01 18:37:24 Jackson: records: 62, time in ms: 12851 Mar 01 18:37:24 Your adapter Mar 01 18:37:30 it's the same as the position? Mar 01 18:37:41 GSON: records: 62, time in ms: 16837 Mar 01 18:37:42 If that's what you return in getItemId, yes Mar 01 18:37:50 so slooooow. Mar 01 18:38:09 moonlightcheese: consider having smaller records :| Mar 01 18:38:28 there has to be a better way to parse this. Mar 01 18:39:23 would the ndk make a noticeable difference? Mar 01 18:39:54 i found this: http://blog.softpoetry.com/2011/07/from-libjson-to-jansson.html Mar 01 18:39:54 i'm sorry SimonVT i don't understand that is written on a listener, the adapterview is received as an argument, I don't know where that is comming from Mar 01 18:39:59 but no benchmarks. Mar 01 18:40:48 djx: That's your listview/gridview/whatever extends adapterview that you set a listener on Mar 01 18:41:32 http://developer.android.com/reference/android/widget/AdapterView.html Mar 01 18:41:46 Is onPause() always called before onDestroy()? Mar 01 18:42:04 yes Mar 01 18:42:27 its actually onPause -> onStop -> onDestroy()** , but onDestroy is not guaranteed to be called Mar 01 18:42:51 Hello people. Is it possible to add a separator line in a context menu ? Mar 01 18:44:20 Okay, thanks. I've got http://pastebin.com/SWhkmDms , which has a memory leak *somewhere*, but since I'm calling .recycle() on all images... Mar 01 18:45:15 What I find extremely interesting is that it doesn't exceed memory until after the "back" button is pressed. Mar 01 18:45:42 How do you know your getting a leak? is it yelling at you in logcat? Mar 01 18:46:26 DrPenguin: Yeah. "VM memory allocation exceeded for Bitmap". Mar 01 18:46:44 eep Mar 01 18:46:50 Any good ideas how I can handle touch input? Mar 01 18:47:37 Kake_Fisk: An OnTouchListener. Mar 01 18:48:04 But that has to be called in Activity or View, I wanted an own class for it maybe Mar 01 18:48:27 Kake_Fisk: OnTouchListener is an interface. It may be implemented in any class. Mar 01 18:48:34 Kake_Fisk: Shouldnt stop you, ive implemented listeners in their own classes Mar 01 18:48:47 setOnTouchListener( new AnyClass()); Mar 01 18:48:56 Oh! of course Mar 01 18:48:57 thanks Mar 01 18:49:26 setOnTouchListener() is a method of OnTouchListener, not Activity or View Mar 01 18:49:38 No. No, it's not. Mar 01 18:49:51 But wait a second now Mar 01 18:49:57 However, you can't touch anything that's not an Activity or View or Fragment, so applying an OnTouchListener to anything that isn't one of those things makes no sense. Mar 01 18:50:09 Yeh, that was the problem, yes Mar 01 18:50:27 it has nothing to do with the listener though Mar 01 18:50:56 say you have a class called MyTouchListener that implements onTouchListener. You then have your view and you do yourView.setOnTouchListener(new MyTouchListener() { ... } ); Mar 01 18:50:57 thats it Mar 01 18:51:05 when you press the back button, what method is called on the activity you are going back to? onResume()?? Mar 01 18:51:08 I was thinking maybe have the OnTouchListener in the View. And send the coordinates to a new class. Mar 01 18:51:11 ninjai: Yes. Mar 01 18:51:16 thx Mar 01 18:52:33 Or should I make all my objects into Views? Mar 01 18:53:05 In a View you just override onTouchEvent.. Mar 01 18:53:30 guys, how do i check which is the "primary" activity of my app? the one thats loaded when i run the app Mar 01 18:53:50 Yeah, I know. I know how to do this. But I want an ideal way to check if an object on screen was clicked Mar 01 18:54:04 its defined in the manifest Mar 01 18:54:07 motafoca: arguably, thats the one on the bottom of the Activity Stack Mar 01 18:54:15 It's in the manifest look for android.intent.category.LAUNCHER Mar 01 18:54:21 Maybe I'll make a first in last out datastructe to process the events Mar 01 18:54:22 ^ Mar 01 18:54:28 fifo* Mar 01 18:54:32 public static final boolean AM_I_THE_FIRST_LOADED_ACTIVITY = true; Mar 01 18:55:14 freecandy: perfect, thanks Mar 01 18:55:23 With a try { } finally { } structure, without using catch: Will a thrown exception inside the try structure be propagated outside the structure? I.e. will the finally block be run, then the exception will be handled somewhere else? Mar 01 18:55:50 Divide by 0 and see. Mar 01 18:56:28 meh ^^ my app is in a non-runnable state atm. will do some quick cleaning =) Mar 01 18:57:24 skfax: I would say yes, because the purpose of Catch is the handle the exceptiojn, finally doesnt handle it Mar 01 18:58:38 Yes, skfax Mar 01 18:59:46 cool, thanks Mar 01 19:00:46 I can't figure my issue out here... but If I leave my app I can go back into it without any problems. If I switch activities and hit the back button, I get a FC. Aren't both of my actions causing onResume() to launch? How are either of these different/ Mar 01 19:00:46 ? Mar 01 19:01:21 You should probably check logcat when it FCs Mar 01 19:01:52 SimonVT, I am. I get http://pastebin.com/2eC2vP3q Mar 01 19:02:15 either way, how are pressing back and onResume() from pressing home and re-opening an app any different? Mar 01 19:02:40 ninjai: what are you doing in onResume? Mar 01 19:02:44 just querying a cursor? Mar 01 19:03:54 What you really should do here is dont rely on the cursor still being open and or existing, but recreate it to be on the safe side Mar 01 19:03:59 DrPenguin, here is my code, I cannot figure it out.... :(. http://pastebin.com/gjJz8bS3 Mar 01 19:04:33 um.. post the full stacktrace Mar 01 19:04:53 Your truncated stack trace does not put the problem in onResume Mar 01 19:04:56 ninja: look the activity lifecycle. Mar 01 19:06:03 ninjai: what line is the exception thrown at? Mar 01 19:06:05 DrPenguin, stack trace: http://pastebin.com/Pp67JkcT Mar 01 19:06:13 everythingWorks, see that ^ Mar 01 19:07:06 ninjai: we don't see whats the actual line in your code there. Mar 01 19:07:16 everythingWorks, I know that's why I'm so frustrated! Mar 01 19:07:17 everythingWorks: that isnt his fault, the Stack Trace didnt provide it Mar 01 19:07:23 it gives me no line number Mar 01 19:07:28 Oh, not good Mar 01 19:07:34 ninjai: the only thing I can think of is that it doesnt like your fillProfileSpinner Mar 01 19:07:48 Try this, DONT have the activity manage the cursor, manage it yourself, and close it yourself, see if that helps Mar 01 19:08:07 DrPenguin, I'm newish to android... care yo elaborate? Mar 01 19:08:12 DrPenguin: i think he did so before if you look at the commented code. Mar 01 19:08:28 ninjai, damn man, are you still on this? Mar 01 19:08:46 yes, pfn :P Mar 01 19:08:46 everythingWorks: yeah, but hes using startManagingCursor, so he shouldnt be manually closing it Mar 01 19:08:50 Has anyone figured out how to get IntelliJ to use the ant proguard setup when doing the dx phase of compilation? Mar 01 19:08:52 ninjai, and for that matter, you never gave a stack trace when you setAdapter(null) Mar 01 19:09:15 wyvern`, tell intellij to build using ant? Mar 01 19:09:16 pfn, you want me to set it to null and show you the stack trace? Mar 01 19:09:22 ninjai, yes Mar 01 19:09:50 pfn: I can certainly have intellij run an ant build phase. I'm just wondering how to glue it all together so I have my "one click to run in emulator" again :) Mar 01 19:10:29 pfn, with profileSpinner.setAdapter(null), I get: http://pastebin.com/RyL0HF8s Mar 01 19:11:13 wyvern`, yeah, no idea since I don't use an ide Mar 01 19:12:18 Yet you were right Mar 01 19:13:49 IDEs make it such a pita to develop across multiple computers Mar 01 19:13:57 if I could get at my ide by doing screen -d -r Mar 01 19:13:59 I would use it... Mar 01 19:14:20 rdp, vnc, etc. are not acceptable solutions Mar 01 19:14:36 ok i fixed my problem Mar 01 19:14:39 question: Mar 01 19:14:46 This is why I use maven for my build. `mvn compile` works great from the command-line. Mar 01 19:14:50 couldn't you just bind git commit/checkout to a shortcut key? Mar 01 19:14:53 with startManagingCursor(), am I supposed to NOT manually close my cursors? Mar 01 19:15:01 admittedly not as quick as screen would be but still pretty nippy Mar 01 19:15:10 storkme, sure, but I despise commiting non-compiling code Mar 01 19:15:18 and I often walk away from the computer in a non-buildable state Mar 01 19:15:56 meh, seems kind of an arbitrary limitation to put on yourself Mar 01 19:15:58 pfn: don't commit into master, then? Mar 01 19:15:59 even if it is on a branch Mar 01 19:16:20 it's not much of a limitation Mar 01 19:16:25 IDEs offer little advantage for me Mar 01 19:16:26 in a widget how are you supposed to get a part of the ui through remoteviews? I have a lLL in the widget and I want to add text to it. can't seem to find away to access it. Mar 01 19:16:27 uhm, this might be a stupid question, but ive just started a serversocket, running in android simulator. Which IP should I use to connect to it? :> Mar 01 19:16:37 pfn: make "-wip" branches which don't have to be buildable :) Mar 01 19:16:39 can vi do code completion and stuff with java? Mar 01 19:16:41 squeakytoy, whatever IP your emulator happens to be running on Mar 01 19:16:46 storkme, I don't need code completion Mar 01 19:16:53 pfn: puuuuhh. so i have to figure that out? Mar 01 19:16:59 of course Mar 01 19:17:00 idk about scheme but doing java without an ide would be backward as fuck Mar 01 19:17:19 (scheme or scala i got confused) Mar 01 19:17:22 storkme: scheme sucks no matter what Mar 01 19:17:28 but Java without an ide isnt bad Mar 01 19:17:35 if you don't know the library Mar 01 19:17:35 sure Mar 01 19:17:42 if you enjoy boilerplate Mar 01 19:17:58 scala has little boilerplate Mar 01 19:18:06 java has rather a lot Mar 01 19:18:15 as for boilerplate in java Mar 01 19:18:20 I don't have much issue typing it Mar 01 19:18:27 I dislike ide auto-generated boilerplate Mar 01 19:18:29 Scala for android sounds like you're going to exceed Permgen pretty quickly. Mar 01 19:18:42 kamoricks, it doesn't Mar 01 19:18:43 well it's all customizable Mar 01 19:18:48 anybody know any frameworks for cloud apps on android? so far i've found http://www.lean-engine.com/ Mar 01 19:18:57 luok: google app engine? Mar 01 19:19:43 kamoricks, well, you gotta run it through proguard first... you exceed dex limitations otherwise Mar 01 19:19:55 kamoricks, alternatively, for development, install the scala libraries on-device Mar 01 19:20:29 pfn: lazy val is the coolest Mar 01 19:20:45 pfn: i dunno man, i can't imagine going back to normal development after having learned a handful of eclipse shortcuts (go to declaration, search usages within workspace, open file in workspace, auto-format Mar 01 19:20:50 but i guess it's just preference Mar 01 19:21:36 can one reuse the same code for a menu in different activities? Mar 01 19:21:56 storkme, it is, and after using eclipse for >4 years, I find that it offers little value for me Mar 01 19:22:02 synic, isn't it Mar 01 19:22:07 Ugh, Im having an issue with a NumberPickerDialogFragment I wrote.. on the line where I attempt to get a reference to the Fragment that invoked the DialogFragment, Im getting a null pointer exception. I am just trying to invoke a method from my DialogFragment thats defined in the calling Fragment: http://pastebin.com/ZWg71V2i Mar 01 19:22:22 funny old world Mar 01 19:23:07 storkme, there's really just 1 feature I miss from eclipse: organize imports Mar 01 19:23:14 and warning on unused imports Mar 01 19:23:18 since I like my code and imports neat Mar 01 19:23:27 ah yeah Mar 01 19:23:46 i also like how it integrates with logcat.. find the stacktrace, double click on it and it'll open up the line in your code Mar 01 19:24:16 DrPenguin: Did you remember to setTargetFragment? Mar 01 19:24:17 but i respect your decision (and yet quietly think you're slightly insane :p) Mar 01 19:24:44 SimonVT: I actually didnt know about setTargetFragment ^^; so I guess the Fragment that calls the DialogFragment would invoke setTargetFragment? Mar 01 19:25:06 Yes, you have to set a target before you can get a target :p Mar 01 19:25:17 got it, thank ya Mar 01 19:25:45 Love this stuff :D Mar 01 19:26:21 >_> I still got an NPD.. where do I call setTargetFragment at? Mar 01 19:27:21 DialogFragment f = NumberPickerDialogFragment.newInstance(); f.setTargetFragment(this);, f.show(fm, tag); Mar 01 19:27:37 OHHH I set it on the actual fragment object Mar 01 19:27:48 derp, thanks, sorry! this is my learning Fragments Mar 01 19:28:07 storkme, also, viplugin on eclipse drives me insane, too Mar 01 19:28:21 paid for it years ago... it still doesn't ever work quite right Mar 01 19:28:28 and has some behaviors that drive me crazy Mar 01 19:28:34 although, maybe they're fixed now Mar 01 19:28:35 * pfn shrugs Mar 01 19:28:36 What would you think the easiest way to add functionality to the different functions of Android would be? I would like to be able to click on the menu key on any call in my call log and have a selection presented that offeres to add the call to my calendar. Mar 01 19:29:00 trimmer, depends on how the existing functions are implemented Mar 01 19:29:33 i pretty much suck with vim, i just use it for server side stuff Mar 01 19:29:40 pfn, I am thinking that this is going to be more than a function. Mar 01 19:30:03 vim is like the one true editor Mar 01 19:30:05 :p Mar 01 19:30:49 pfn: shouldn't that print the state of your buffer? ;) Mar 01 19:30:51 dunno about that :p Mar 01 19:31:14 oh, editor yeah, development environment prolly not :> Mar 01 19:33:32 storkme, it works well as a dev environment well, too Mar 01 19:33:40 storkme, you can do stuff like goto def if you setup ctags Mar 01 19:33:41 speaking of Mar 01 19:33:49 I should setup exuberant ctags as part of my build process Mar 01 19:34:02 * pfn ponders running ctags on the android/src, too Mar 01 19:34:58 ctags Mar 01 19:34:59 ? Mar 01 19:35:13 is that like metainfo in code for vim? Mar 01 19:36:01 ctags is old ide xref stuff Mar 01 19:40:42 in a textview there is a padding above text that is proportional to the font size, anyone know what it is? Mar 01 19:43:06 what's the difference between the 'debug' and 'release' ant targets? Is it just code signing, or are debug symbols stripped for release? Mar 01 19:43:16 I need to make some way of editing a two-field record in a list - what is the best design-wise way to go about this? Mar 01 19:43:33 kamoricks, speaking of permgen, I don't think dalvik uses a generational gc? Mar 01 19:44:00 wyvern`, debug let's you attach for debugging Mar 01 19:44:24 it looks like debug doesn't proguard, though. how does that work when you have lots of deps Mar 01 19:44:25 release won't unless you set it explicitly in the manifest Mar 01 19:44:46 I force debug to proguard Mar 01 19:44:53 i see. Mar 01 19:45:09 lots of build. xml hacking Mar 01 19:45:29 that sounds unpleasant Mar 01 19:45:51 it is Mar 01 19:46:50 Hi! I'm looking for a good way to debug a kernel issue. Anybody have any ideas? Mar 01 19:46:59 em, where can I post little xml file, to ask a question about it? Mar 01 19:47:15 http://paste.hanhuy.com/local_build.xml Mar 01 19:47:30 wyvern`, see ^^ Mar 01 19:47:31 how do you get the maximum height availalble to an activity (i.e. the screen height minus the space used by the notification bar and any onscreen system button bar)? Mar 01 19:47:49 wyvern`, I force proguard in debug there Mar 01 19:47:50 thx Mar 01 19:48:03 pfn: k Mar 01 19:48:19 (activity.getWindow()).getDecorView() doesn't seem to subtract out the notification bar Mar 01 19:49:06 wyvern`, you copy the parts you need into the main xml or your own local. xml and include it from the main Mar 01 19:49:18 some way to read this xml in android http://paste.hanhuy.com/a4829ca2-6494-4404-b57e-bf92409ef1d8?saved=yes ? or it's totaly wrong conception? Mar 01 19:49:23 I'm helping to debug a kernel issue that's causing ringtones to not work in MIUI. I'm trying to find a good starting point Mar 01 19:50:22 is it possible to read dataags names? from xml according to the Mar 01 19:50:23 Defuera: yeah, Java has some XML Parser Libs Mar 01 19:50:27 hampsterblade: might have better luck in #android-root, mostly app-dev here Mar 01 19:50:33 tags names? Mar 01 19:50:40 thanks dragorn Mar 01 19:51:13 sorry.. one more time^ is it possible to read data according to tags names? Mar 01 19:51:13 I'm trying to port a Java NES emulator to Android. Any one have suggestions on the best way to take the raw pixels and display them? Mar 01 19:51:52 should i use like SAX or DOM parser? Mar 01 19:52:09 ehhh.. I dont have much experience, Ive only done DOM Mar 01 19:52:15 ChickeNES: Probably a canvas Mar 01 19:52:40 is it a good way to store level data? Mar 01 19:53:00 pls, i really nede this ) Mar 01 19:53:11 Defuera: not the right guy to ask about that, im not a game programmer guy.. but some ordered structure that you can easily parse would be a good thing to use Mar 01 19:53:15 sax is good for interative parsing of possibly incomplete or very large amounts of data, since it's linear. DOM is good for just about everything else since it lets you treat the structure as a structure. I don't know if the android DOM parser is sane about memory or if it'll crap the bed when you throw a large amount of stuff at it. Mar 01 19:53:19 give me the direction whete to craft! Mar 01 19:54:19 I don't think it'll be large amount Mar 01 19:54:46 how do you set up rendering with a canvas? As in how would I set up a rendering loop? Mar 01 19:54:50 ChickeNES: certainly the easiest way to start on it would be to port the graphics output to a canvas and redraw it. You can worry about efficiency later (like maybe cheaper to use GL or something... I don't really do complex graphics on android so i couldn't tell you the smartest route) Mar 01 19:55:31 dragon, so using DOM i can read local data from R.xml.myxml according to the tags names? true? Mar 01 19:56:45 sir? Mar 01 19:57:09 Don't know if I'd be putting that in a resource. I don't know what you're trying to do, or why. Maybe? Mar 01 19:57:24 arguably, yes, dom parses xml, so you can use dom to parse an xml, yes. Mar 01 19:57:39 nevermind, i just realized how to structure it. forgot i can just have a paint function in the emulator core that I can override on the frontend Mar 01 19:58:04 I'm doing exactly that thing http://paste.hanhuy.com/a4829ca2-6494-4404-b57e-bf92409ef1d8?saved=yes Mar 01 19:58:14 holding level data for my game Mar 01 19:58:18 on action bar how can I have tabs and setListNavigationCallbacks at the same time ? Mar 01 19:59:19 I can't imagine how irritating am I.. ) Mar 01 19:59:27 *I am. Mar 01 19:59:27 Is there somewhere that says how long a particular SENSOR_DELAY value delays the system from polling the Accelerometer? I need something that I can get accelerometer data once a second Mar 01 19:59:57 I wonder how hard it is to build aapt for solaris Mar 01 20:00:15 lol wtf why Mar 01 20:00:36 why, because I want to build on solaris, duh Mar 01 20:01:27 it covers most of the build necessary for building an android app Mar 01 20:01:35 * pfn doesn't need aidl, renderscript or to zipalign Mar 01 20:01:37 you actually use solaris? Mar 01 20:01:44 OMG, found a manual! no bothering you anymore, thx a lot Mar 01 20:01:51 what's the gap above text in a textview that is based on the font size? Mar 01 20:02:09 a manual that show exactly what I need! Mar 01 20:02:57 jrr, yes Mar 01 20:03:13 jrr, what's even more funny, I edit my code in solaris, but build on linux, off of an nfs mount Mar 01 20:03:16 :p Mar 01 20:03:51 pfn: sparc? =] Mar 01 20:03:55 jrr, x86 Mar 01 20:03:59 hehe figured Mar 01 20:04:02 zones, zfs, etc. ftw Mar 01 20:04:14 too bad oracle killed brandz Mar 01 20:04:29 I would be nice if the lx zone was updated to support linux-2.6 Mar 01 20:08:36 Anyone know whether its possible to have multiple instances of FragmentA added to an activity? Mar 01 20:10:10 seanoshea, sure Mar 01 20:10:17 seanoshea, as long as they're different instances Mar 01 20:10:26 maybe even if they're the same instance Mar 01 20:10:40 pfn - thanks Mar 01 20:10:54 but, how do I append a fragment to a Activity's layout? Mar 01 20:11:18 by adding it to the activity's layout :p Mar 01 20:11:19 do I need to use a LayoutInflater to inflate the fragment and then append it to one of the views within my Activity? Mar 01 20:11:24 no Mar 01 20:11:31 http://developer.android.com/guide/topics/fundamentals/fragments.html Mar 01 20:11:33 you create the fragment and add it in a transaction Mar 01 20:11:35 You need to read Mar 01 20:12:23 hey SimonVT - I've been going through that Mar 01 20:12:49 Well, it explains how to add fragments Mar 01 20:12:58 I cannot add the fragment as a tab in my activity unfortunately due to http://stackoverflow.com/questions/9477648/android-listviews-arrrayadapters-fragments-and-classnotfoundexceptions Mar 01 20:13:30 in eclipse can I debug the ui? Mar 01 20:13:35 on action bar how can I have tabs and setListNavigationCallbacks at the same time ? Mar 01 20:13:51 Then do it programmatically Mar 01 20:14:01 Blou_Aap, don't use list navigation, but put your own spinner in the actionbar Mar 01 20:14:19 * pfn kinda doesn't like list navigation Mar 01 20:14:25 it's too far to hit on a large screen Mar 01 20:15:08 SimonVT - via transactions, right? Mar 01 20:15:49 Also, if you want help on stackoverflow, you should probably include the stacktrace Mar 01 20:15:55 I bet you're importing the wrong Fragment Mar 01 20:16:24 you included all the info except the most important part... Mar 01 20:16:36 Also, wtf.. Are you adding fragments to listrows? Mar 01 20:16:41 SimonVT, pfn - stackoverflow wasn't accepting my stacktrace Mar 01 20:16:53 SimonVT - that's how I was approaching it initially Mar 01 20:17:17 pen, how would i put in my own spinner? Mar 01 20:17:23 without using setListNavigationCallbacks Mar 01 20:17:30 basically, I need a common fragment to be included in each and every list row Mar 01 20:17:39 I thought fragments would be useful for this, but perhaps not Mar 01 20:17:49 Er, no, probably not Mar 01 20:17:59 fragments are for major UI portions Mar 01 20:18:06 inflate layouts for everything else Mar 01 20:18:12 ok - that's the feeling that I'm getting at this satge Mar 01 20:18:32 and yeah, my irc client uses the same fragment type for every page Mar 01 20:18:34 so, inflate a layout and handle all clicks and interactions with that layout in the adapter perhaps Mar 01 20:18:34 as an example Mar 01 20:18:56 ChannelFragment or QueryFragment or ServersFragment, depending on which page you're on Mar 01 20:19:24 Correct me if I am wrong, but if I combined a Looper with a Post Delayed Handler, is that basically a repeatable Post Delayed Handler? Mar 01 20:19:48 pen, SimonVT - thanks for the pointers Mar 01 20:20:09 pfn, SimonVT - I'll add the stack trace to the stack overflow question too Mar 01 20:20:48 in an android XML file, how can I make 1 of 2 text views inside of a table row aling to the right side? Mar 01 20:21:20 I tried android:gravity="right" to no avail Mar 01 20:21:53 ninjai: how big is the tablerow? Mar 01 20:22:30 width is match_parent Mar 01 20:22:35 should I do fill? Mar 01 20:22:52 ninjai, so you have |...|t1 -- t2|? Mar 01 20:23:20 Mar 01 20:23:55 http://pastebin.com/jw7wcsKf Mar 01 20:25:29 Is it possible to wake up the phone while my activity is running? Mar 01 20:26:27 ninjai, I just told you what to do Mar 01 20:26:47 ninjai, give the vehicleTv textView android:layout_weght=1 if you want Mar 01 20:26:47 what encoding would correctly display the gbp symbol? utf-8 doesn't seem to do it Mar 01 20:27:20 mikey|, it's mostly a problem of fonts Mar 01 20:27:24 mikey|, not encoding Mar 01 20:27:32 mikey|, you need a font that has the proper glyphs Mar 01 20:27:39 im on stock ICS on xoom and it shows a ? instead Mar 01 20:27:40 thanks pfn that worked Mar 01 20:27:50 same for gingerbread Mar 01 20:27:56 mikey|, try a different font Mar 01 20:28:11 mikey|, e.g. copy roboto...ttf or whatever and open it up in a font-viewer and see what glyphs are available Mar 01 20:28:30 pfn: ok, will try Mar 01 20:28:49 mikey|, then find a font that has the glyphs you need Mar 01 20:30:26 otherwise, try latin1, I suppose Mar 01 20:30:38 interesting, if I send the symbol from tab, it shows up funny on my laptop, but if I copy&paste that and send to tab, it shows up fine on tab Mar 01 20:30:47 but for some reason, I recall utf8 basing its codepoints off of latin1 Mar 01 20:31:23 Not quite. UTF-8 is the same as ASCII for the first 127 codepoints. Not all of ISO-8859-1 is where it should be. Mar 01 20:31:55 oh well, I guess there's your answer Mar 01 20:32:01 what do codepoints 128-255 of utf-8 map to then Mar 01 20:32:45 one of them iirc maps to "UTF-8 sequence start" Mar 01 20:32:53 th rest is mainly untouched I think Mar 01 20:33:13 When the phone goes to sleep, is the current Activity stopped? Mar 01 20:33:31 code1, it is paused Mar 01 20:33:43 ^and then resumed Mar 01 20:34:17 hi Mar 01 20:34:20 Is there a way to not pause it? Mar 01 20:34:30 code1, no, that's the lifecycle Mar 01 20:34:42 damnit wheres ctate: http://i286.photobucket.com/albums/ll87/Demache/qrcodejoke.png Mar 01 20:34:55 did anyone manage to get their mittens on a Raspberry Pi? Mar 01 20:35:10 Actually, yes pause happens when view changes Mar 01 20:35:23 I think something more is happening when the phone sleeps Mar 01 20:35:52 Wut? Android runs the game loop a couple of times before it instantiate one of my objects Mar 01 20:36:10 pfn: regarding 128-255 in UTF-8: it's apparently C2 (2 byte sequence) E2 (three byte sequence) F0 (four byte sequence) Mar 01 20:36:20 code1: a lot of things happen when the phone sleeps. Mar 01 20:36:40 code1: read the activity lifecycle, and please don't try to "fix" android when you encounter natural behavior. Mar 01 20:36:40 p_l, interesting Mar 01 20:36:58 code1: if you're doing something long-lived, and don't want it to go away when the phone screen is turned off, use a service and a wakelock or something Mar 01 20:37:05 mikey|, in that case, latin1 is your answer Mar 01 20:37:17 most irc clients (assuming this is for andchat) send crap in latin1 Mar 01 20:37:46 * mikey| goes off to try - thanks Mar 01 20:37:52 lov: I've got a countdowntimer that plays a sound file when it completes, this works fine even when the activity is in the background but when the phone is asleep it doesn;t play until I turn the screen off. What's the solution to this? Mar 01 20:38:09 15:37:07 < lov> code1: if you're doing something long-lived, and don't want it to go away when the phone screen is turned off, use a service and a wakelock or something Mar 01 20:38:11 * turn screen on Mar 01 20:38:22 mikey|, dunno if latin1 is a recognized name, you might need to spec iso-8859-1 Mar 01 20:38:35 what's the or something? Mar 01 20:38:45 the glue that you will write to actually make things work Mar 01 20:38:59 read about services. read about wakelocks. read about powermanager. Mar 01 20:39:02 pfn: hmm.. seems to be more complex than that Mar 01 20:39:04 hmm..xchat has latin/unicode hybrid but no 59-1 Mar 01 20:39:09 meditate on whether you REALLY want the phone to start beeping at the user when they turn the screen off Mar 01 20:39:16 or rather, whether the user wants the phone to start beeping at them. Mar 01 20:39:22 BEEEP Mar 01 20:39:36 trying to do a bulk insert of 800-900 rows. getting pretty slow performance, like 5-10 inserts a second. switched to InsertHelper() and wrapped in a transaction, and they helped a little, but still overall pretty slow. are there any other bottlenecks I might be missing? the data for insert is available ahead of time (i.e. I'm not waiting on it to download or anything stupid) and trace seems to indicate that the inserts aren't taking Mar 01 20:39:36 any CPU time. Mar 01 20:39:44 lov, assuming it's a stopwatch, countdown timer, the user wants it beeping at them Mar 01 20:39:50 errr sorry bulk insert into a sqlite database, of course :-) Mar 01 20:39:57 code1, use a service, use the alarm manager, use a wake lock Mar 01 20:39:59 Yes it's a timer - it's supposed to beep at them when it hits zero, otherwise it's not a very good timer! ;) Mar 01 20:40:02 take your pick/combine them Mar 01 20:40:29 Where can I find out about wake locks? Mar 01 20:40:47 never mind I google ;) Mar 01 20:41:59 code1: go to d.android.com and start typing in the little search box in the upper right hand corner Mar 01 20:42:02 Poof! Mar 01 20:42:04 autocompletes! Mar 01 20:42:06 why, if you press enter Mar 01 20:42:10 IT PERFORMS A SEARCH Mar 01 20:43:38 lov: your attemp at wit would have been more successful if you had been a little quicker - I've already stated that I'm searching about it... Mar 01 20:44:01 chortle Mar 01 20:44:44 canadiancow|work: you involved with this? http://company.zynga.com/about/press/company-blog/platform-play Mar 01 20:50:58 code1: I'm telling you exactly WHERE to search for it. Mar 01 20:51:09 instead of getting a bunch of garbage tutorials, you can actually get the docs. Mar 01 20:51:15 whatever, up to you big guy Mar 01 20:54:04 lov: I appreciate it (though not the sarcasm! ;p ) my current solution was to keep the screen on but maybe using wakelocks would be better? Mar 01 20:54:45 does anyone know of any way to keep the xoom screen on during usb development? without plugging it up to power Mar 01 20:54:59 mikey|, keep awake while plugged in Mar 01 20:55:03 oh, usb device? Mar 01 20:55:04 * pfn shrugs Mar 01 20:55:05 If I set "finishOnTaskLaunch=true" on my activity, is it supposed to finish the old activity and start a new whenever I try to launch it from the home screen ? That's how I interpreted the docs, but it doesn't seem to be happening. Mar 01 20:59:59 roger_padactor: no Mar 01 21:00:39 Ok thanks pfn and lov for the suggestion. Mar 01 21:01:28 so i have this widget and I set the android:updatePeriodMillis="1800" so it updates every 30 mins just for testing, does it get updated even if the device in sleep mode, or screen not on mode? Mar 01 21:02:33 * pfn would think so Mar 01 21:03:00 hate waiting around to see if it works... :) Mar 01 21:03:07 pfn: Sure you need Renderscript! Mar 01 21:03:21 Gumboot, I don't... Mar 01 21:03:26 * pfn hasn't found a reason to use it yet Mar 01 21:03:43 I live in hope. Mar 01 21:03:57 * Gumboot was responding to an alert he got on this channel from ages ago. Mar 01 21:04:03 Is Context#getResources()#openRawResources the equivalent of java's mechanism for loading stuff from the classpath? Mar 01 21:04:19 I'd like to load a resource file without needing a context Mar 01 21:04:43 wyvern`, no, it's for loading stuff under res/raw Mar 01 21:04:53 wyvern`, you can load stuff from res/raw or assets/ Mar 01 21:05:00 large stuff should go in assets Mar 01 21:05:08 from the classpath? because that would be ideal Mar 01 21:05:14 not from the classpath Mar 01 21:05:23 because there is no "classpath" in dalvik Mar 01 21:05:35 hrm, maybe, not sure though Mar 01 21:05:37 * pfn shrugs Mar 01 21:05:46 hey, how do I know in which line of my code my app fails with java.lang.NullPointerException Mar 01 21:05:46 I see. Is there a way to do that without a Context, regardless of classpath or not? Mar 01 21:06:03 wyvern`, not that I know of Mar 01 21:06:11 djx: by looking at the stacktrace in logcat Mar 01 21:06:23 Is there a way to disable the graphical layout tool that comes with android sdk f Mar 01 21:07:01 It keeps giving me NPE's when i load a xml and I never use it anyway so I want to disable it Mar 01 21:07:42 synic this doesn't show any usefull stuff to catch my problem! Mar 01 21:07:54 djx, yes, it does Mar 01 21:08:43 My code only has 133 lines of code, the line after the java.nullpointerexception shows Spinner.java : 179 Mar 01 21:08:59 djx, keep reading down Mar 01 21:09:08 djx, alternatively, hyou need go spinner.setAdapter(...) Mar 01 21:09:12 to a not-null value Mar 01 21:09:46 pfn why it can be null? Mar 01 21:10:04 because you didn't initialize it Mar 01 21:10:11 anybody here do work on the transformer ics update? because it is awful. Mar 01 21:11:02 Macer: I did Mar 01 21:11:11 (not really I just want to see what you're talking about) Mar 01 21:11:19 pfn: What if you wanted to do some kind of real-time image processing app? Just GL? Mar 01 21:11:23 synic: it crashes all the time ;) Mar 01 21:11:28 code1: keeping the screen on is wrong for two reasons. One is that the screen takes a lot of power, so if the user sets a timer for 30 minutes, they don't want to worry about it. Another is that the user might use their phone for other things (such as phone calls), thus moving your activity out of the foreground. Mar 01 21:11:36 Gumboot, probably Mar 01 21:11:41 Gumboot, gl or jni Mar 01 21:11:43 Macer: awh Mar 01 21:11:47 code1: Again, I VERY strongly suggest you consider using a Service and callbacks Mar 01 21:11:55 pfn, I'm trying to create something like this http://pastebin.com/Sr3TiYi4 Mar 01 21:11:58 Oh yes... jni. Mar 01 21:12:18 pfn, as you can see on line 48 the adapter is set to null Mar 01 21:12:20 Macer: yeah sorry I was too busy snorting coke to pay attention sorry Mar 01 21:12:28 djx, so don't set it to null Mar 01 21:12:35 Macer: I'll get cracking on the transformer ics update 2 as soon as I finish this mountain of cocaine Mar 01 21:12:57 lov: they were also my concern. Do you mean also abandon the idea of wakelocks? Mar 01 21:13:14 * Gumboot has a million use cases for a general purpose parallel compute language, but none of the languages, not even Renderscript, lend themselves to making good use of the available hardware. Mar 01 21:13:34 code1: how long will your alarm clock be for? Mar 01 21:13:38 anyone know how I install the google apps on my gingerbread install on my archos 101 tablet? Mar 01 21:13:50 code1: you might want to use the AlarmManager for your callbacks; that lets the device go into deep sleep without losing track of your request Mar 01 21:14:47 lov: lol Mar 01 21:14:58 lov: time will be user set Mar 01 21:15:02 it's going to take more than cocaine... maybe a mountain of meth Mar 01 21:15:25 but then again . considering the instability... i think the person who made it was already on a mountain of meth Mar 01 21:15:45 lov: what did you mean by service? What kind of service? Mar 01 21:15:48 probably started seeing demons dressed as MS and Oracle employees beating down doors or something Mar 01 21:16:05 and pushed it out before they could reach him Mar 01 21:17:32 code1: http://developer.android.com/reference/android/app/Service.html Mar 01 21:17:42 code1: http://developer.android.com/guide/topics/fundamentals/services.html Mar 01 21:17:46 use a Service for anything long-lived Mar 01 21:18:19 code1: my suggestion is as follows: register an alarm with the AlarmManager for your callback, and set a preference or something that says when the user set the callback for. When you open the app, check for that pref, and use it as the value to display a countdown locally. Mar 01 21:18:35 that countdown is only a display, it doesn't actually do anything. Mar 01 21:18:56 Have your AlarmManager's intent hit your service, and let your service play noises, run the vibrator, etc Mar 01 21:19:15 just make sure to handle cases of the user cancelling correctly Mar 01 21:19:42 You can use IntentService to make very simple services that only do a couple things Mar 01 21:20:41 Thank lov, I'll look into that. Mar 01 21:21:10 is there some sort of float:clear; thing for the android xml layout? Mar 01 21:22:26 I cant figure out how to get a button to go under another element, very noob at this Mar 01 21:24:56 aarobc_work, use a relative or frame layout Mar 01 21:29:02 is there a pre-publish checklist somewhere? I remember seeing some guidelines for compressing an apk before publishing, but I can't find it now. It would be good to get any other helpful hints too... Mar 01 21:29:57 TFox: http://developer.android.com/guide/publishing/preparing.html Mar 01 21:30:07 tyvm! Mar 01 21:31:01 Trying to get my head around Android's UI - how do you have 3 different view widgets take up a third of the screen each? Mar 01 21:31:17 weight Mar 01 21:31:30 weight with fill_parent? Mar 01 21:31:37 no, wrap_content Mar 01 21:31:49 or "0dp" Mar 01 21:31:53 all should work Mar 01 21:32:00 wrap_content just clumps them together? Mar 01 21:32:00 fill_parent never worked for me Mar 01 21:32:08 if you use weight, it shouldn't Mar 01 21:32:15 set them all to have the same weight Mar 01 21:32:23 can someone please help me get the market installed on my gingerbread install Mar 01 21:32:28 and set it +1 over other elements Mar 01 21:32:32 ok I'll look into weight Mar 01 21:32:44 android:layout_weight=1 Mar 01 21:32:51 or "1" Mar 01 21:32:54 so would the three element all have weight=1? Mar 01 21:32:59 yes Mar 01 21:33:08 ok thanks I'll give it a try Mar 01 21:33:11 :) Mar 01 21:35:36 I had action bar sherlock 4.0 rc1 working on windows but cant get it to work on ubuntu 10.04. Mar 01 21:35:58 some methods arent defined Mar 01 21:36:22 hello Mar 01 21:36:25 if you match_parent, weight won't have any effect Mar 01 21:36:46 e.g. say your container is 600dp high, and you have 3 items on top of each other with match_parent for height Mar 01 21:36:53 you've just told the 3 items to have a height of 600dp each Mar 01 21:37:00 guess which item you'll see Mar 01 21:37:19 top one only? Mar 01 21:37:51 pfn: the one with the lowest (highest?) weight? Mar 01 21:39:08 code1, doesn't matter, it's already 600dp high Mar 01 21:39:19 code1, the weight has no bearing, because weight is only used for expansion Mar 01 21:39:22 The_Fred, correct Mar 01 21:40:06 yea, just so you know i pay attention :-) Mar 01 21:40:23 Hmm, I need more revision! ;) Mar 01 21:40:24 Hi All. Just bought second hand Galaxy S Mar 01 21:40:42 code1: did it work? Mar 01 21:40:52 the usb port does not work, thus I need to use external battery charger, problem is that the USB port does not work with the PC as well Mar 01 21:40:54 Andrioder, nice bit of kit that! Mar 01 21:41:16 thanks, The_Fred I know its old. but this is what I can afford Mar 01 21:41:18 Andrioder: congrats on buying a broken phone that "disappeared" from the refurb plant. Mar 01 21:41:32 Andrioder: if there's any way you can take it back, do it. Mar 01 21:41:43 Andrioder: otherwise, you're boned, software won't fix the fact that the hardware is broken Mar 01 21:41:45 I bought it cheaply because of that fault Mar 01 21:41:49 I am ok with that, Mar 01 21:41:51 I just want to root Mar 01 21:41:53 thats all Mar 01 21:41:56 i agree with lov on that Andrioder Mar 01 21:41:58 heh welp gl Mar 01 21:42:03 anyway #android-root is thataway Mar 01 21:42:11 rooting questions in #android-root not here Mar 01 21:42:17 ok, there is more Mar 01 21:42:21 I had rooted before Mar 01 21:42:45 however, since this phone have no USB, it means no Odin Mar 01 21:42:53 caare Mar 01 21:43:02 and since its on 3e, I cant flash custom firmwares Mar 01 21:43:06 for my dev work i need a 3.0 + device so i can get cracking on usb host work... Mar 01 21:43:26 The_Fred: depending on what you're trying to do w/ usb host Mar 01 21:43:35 and without root, I cant flash to get rid of the 3e Mar 01 21:43:40 The_Fred: I've found some devices (xoom) do a very poor job of host in 3.x and 4.0 Mar 01 21:43:53 learn what it can and cant do, and see which one of my ideas fits devleopment Mar 01 21:43:59 The_Fred: while other devices (galnex) work fine w/ the same code. The unofficial word I've gotten from friends at moto is "the xoom is pooched" Mar 01 21:44:13 The_Fred: if you can rewrite your code into into userspace, it can do anything you want with USB Mar 01 21:44:15 thats, good to know about the xooms Mar 01 21:44:21 The_Fred: it's just a matter of how retarded you're willing to go Mar 01 21:44:36 The_Fred: I ported a full wifi driver to java; it works fine. It's retarded, but it works fine. Mar 01 21:44:41 TFox: still working on it ;) Mar 01 21:45:02 The_Fred: What I'll probably do in the near future is tweak libusb to allow opening a device by filedescriptor and do my work on the native side Mar 01 21:45:21 dragorn, thats for the suggestion about userspace: thats one more topic ive GOT to brush up on... Mar 01 21:45:31 *thanks Mar 01 21:45:32 The_Fred: and control it by JNI but not write it all in java Mar 01 21:46:22 The_Fred: USB boils down to bulk and control messages; you can do both w/ the android API fine, so you need to take your driver and rewrite it to use the android calls for IO, tweak the timing loops (most USB devices are pretty damn forgiving) Mar 01 21:46:23 your way ahead of me there..JNI?.. i've some knowledge of what it is and does, but ive got to catch up Mar 01 21:47:08 The_Fred: and replicate whatever sort of buffers they use for stream io in the kernel and turn it into bulkio. Assuming you're looking at a complex kernel driver; if you've already got something that talks, say, libusb, then you can port it up to android pretty simply, the API is nearly call-for-call the same Mar 01 21:47:27 The_Fred: on the android side of things, you're almost definitely going to want to put your USB control and IO in a service and talk to it from your activity Mar 01 21:48:22 dragorn, thanks for that - its appreciated. Mar 01 21:48:26 The_Fred: and depending on what device you're controlling you may need to keep the entire state in the service and pass all your recorded events up to your activity, since anything that touches or pauses your activity would pause your driver or make you lose all your driver state and initialization Mar 01 21:48:53 The_Fred: of course to start out with, you could just write it all into the activity and go nuts; worry about services and all that nonsense once you get it at least talking to your device Mar 01 21:48:55 The_Fred> go the Android API way. Don't use libusb etc unless you really have to Mar 01 21:49:10 whats this about the Xoom being pooched, btw, dragorn ? Mar 01 21:49:36 Chainfire: Some types of IO make it crap the bed, namely heavy control messages and the bulk IO. It just starts dropping USB messages Mar 01 21:49:46 Chainfire: I've got to work on some more tests and send it to my friend Mar 01 21:50:08 thats interesting, as it seems lots of people are using DSLR Controller with the Xoom without weird issues Mar 01 21:50:17 and that does quite a bit of transferring over the cable Mar 01 21:52:23 * The_Fred is taking lots of notes Mar 01 21:53:15 The_Fred: listen to chainfire over me; he's actually got real apps out that are doing usb work, I'm still tweaking my stuff before unleashing it on the public Mar 01 21:53:55 (or rather, opening myself up to the flood of nonsense that will come with it) Mar 01 21:56:04 The_Fred: if you've got a simple driver, do it in java. If you've got a huge existing codebase, consider hacking libusb and doing it that way; I haven't worked on that side of things yet since doing the proof-of-concept, so I'm not sure how it will work out Mar 01 21:57:26 you can build your native stuff around libusb Mar 01 21:57:37 all you have to do is using Android APIs to get the "permission" on the fd Mar 01 21:57:52 but Android does not come with libusb, you have to compile/port your own Mar 01 21:58:23 check this: its from another room: http://chzfailafterdark.files.wordpress.com/2012/02/i-need-of-these1.jpg Mar 01 21:58:25 and you need to hack it to open by fd instead of by path Mar 01 21:58:35 if the kernel supports usb host... but the Android API does not (this is actually quite common on Gingerbread devices) Mar 01 21:58:46 you can use su the chmod 666 the fd and then it also works ;) Mar 01 21:59:23 Chainfire: if you're on a rooted device :P Mar 01 21:59:29 yah Mar 01 21:59:36 well it does add a second userbase :) Mar 01 22:00:00 you have Android 3.1+ properly working non-rooted, and rooted 3.1- devices or Android API incorrectly built Mar 01 22:00:09 as said, it happens a lost... seee http://usbhost.chainfire.eu for a listing Mar 01 22:00:17 dragorn, thanks the the time there Mar 01 22:00:41 Chainfire, i've taken notes there, thank you for that knowledge Mar 01 22:02:02 The_Fred: You also have to decide if you're willing to work w/ rooted devices or not. There's advantages to both - chainfires stuff works on a ton more devices than mine will, but I don't want to deal with telling people how to root stuff. The choice is definitely yours. Mar 01 22:02:33 well, it's also timing... my stuff came out almost 8 months ago Mar 01 22:02:48 when Android API support was very very rare... if I started it now, I would not have supported it, probably Mar 01 22:03:14 You also need to consider the power draw of your device Mar 01 22:03:27 if it's self-powered and just does usb comms it won't have a huge draw Mar 01 22:03:34 otherwise you might need to hack up some power options Mar 01 22:04:07 I threw together some simple usb power injector boards, http://durandal.kismetwireless.net/~dragorn/images/powerboard.png Mar 01 22:04:28 just splits the 5v off the phone and drives the usb device entirely from a usb battery pack Mar 01 22:05:38 The_Fred: https://lh3.googleusercontent.com/-cVL8M8jjFHM/Tzw_5yOnvvI/AAAAAAAACE8/0zkAKOGMEMU/s800/2012-02-15_18-28-04_440.jpg ... Mar 01 22:09:09 dragorn, thanks for the url Mar 01 22:09:52 The_Fred: again, depends on what your target hw is, if you need that or not. Driving a 500mW radio off the phone USB eats the battery in about 20 minutes, so... I did. Mar 01 22:10:42 Cool, got the layout looking how I wanted using weight! Mar 01 22:10:54 Makes sense now :) Mar 01 22:11:38 Still looks a bit naff though! Are there any sites / tutorials that deal with making the UI look nice? Mar 01 22:11:53 Im looking to develop an interface for hydraulics, so i need to stream a video link, and send/recieve positional data to/from the switch address on an IOIO board Mar 01 22:12:10 dragorn, What sort of radio where you running from USB? Mar 01 22:12:25 The_Fred: wife Mar 01 22:12:27 err wifi Mar 01 22:12:32 lol Mar 01 22:13:06 hmm, this is odd. I have an ExpandableListActivity inside a TabActivity. I have a function in the ListActivity w/ essentially these 2 lines: m_adapter = new SimpleExpandableListAdapter(); setListAdapter(m_adapter); Somehow I'm getting reports of a NullPointerException in setListAdapter(). How is that possible? Mar 01 22:13:21 The_Fred: I wanted packet capture not available on the internal radio Mar 01 22:13:22 <\monster\> holy cow 5cents looks like a big bid on admob ..my $20 got used in in 5 minutes lol Mar 01 22:13:46 i didnt know if you have ever tried to run remote stuff over 466Mhz walkie talkies?... Mar 01 22:14:19 The_Fred: no, though I've seen radio keying systems for automating some streaming functionality Mar 01 22:14:41 kerrick, because ipv4 is for loosers :P Mar 01 22:14:42 thats intresting Mar 01 22:15:20 could you guys give me a hint, I create 5 spinners, but they don't fit on the screen, how can I "move" the whole screen? Mar 01 22:15:20 basical i want to develop a system so i can driver a digger over 3g.... Mar 01 22:15:48 I love users: "Uggly ads at the bottom.", 1 star Mar 01 22:16:21 can someone please help me get the market installed on my gingerbread install Mar 01 22:16:35 bubbleguuum, yea, I launched an app last week, and had some muggels comments... Mar 01 22:17:19 What ad networks do you use and do you have any control of the ads? Mar 01 22:17:49 Anytime I look at reviews for an app, it seems like the first one seems to be some idiot who doesn't understand what the application is for giving it one star. Mar 01 22:18:03 The_Fred: sounds like you want to interface to arduino or something then and use that to drive the motors. You could also consider bluetooth (which is hilarious considering the amount of time we've discussed usb now) Mar 01 22:18:04 so whats the concept to userspace when you talk of programming there dragorn, ? Mar 01 22:18:04 code1 that's a good question, I'm curious as well Mar 01 22:18:43 The_Fred: drivers normally exist in the kernel. If you want to use them outside of the kernel, you need to rewrite them to work in userspace, is all. In the case of USB, this means rewrite them to not use kernel USB functions, etc. Mar 01 22:19:19 The_Fred: USB is a non-privileged bus, unlike PCI, so you can write device drivers outside of the kernel and not violate security. Mar 01 22:19:34 dragorn,m thanks, that clairifies things nicely for me Mar 01 22:20:34 Yeah I haven't launched anything yet but interested to know about using ads. The thought of getting stupid reviews is annoying though. Mar 01 22:20:36 The_Fred: I can think of many ways to do remote control over usb, but you'd be better off just googling. Some things to keep in mind; it's a lot simpler to send control messages with android usb than it is to do, say, serial over usb Mar 01 22:20:48 dragorn, my past was small mcu's, so having to adapt to java after years for direct access rights is a bit obscure at times Mar 01 22:21:14 The_Fred: the most direct route I can think of would be to get an arduino-one which has a USB MCU front-end which can be reprogrammed, it's stock functionality is serial but you can rewrite it to work differently Mar 01 22:21:43 The_Fred: and use that to do simple control message comms to the arduino driving motor controllers or whatever. Mar 01 22:22:30 yea, thanks my line of thought too: keep it simple, and use proven methods for appropiate tasks Mar 01 22:22:43 dragorn, ^^ Mar 01 22:23:28 The_Fred: if you really want to roll your own completely, I guess start googling. There's a TI low-power MCU which speaks USB directly, and the at90usb... that all strays away from android-dev enough that it's probably not worth pursuing here Mar 01 22:24:13 The_Fred: but on the android side, if you can stick to control messages your life is cake, if you want to do basic bulk io it's also pretty simple, if you have to implement a full FTDI or PL2303 driver just to talk serial, you're probably doing it wrong and making more work for yourself Mar 01 22:24:25 dragorn, thanks for your info, you never know, in a few months i could be here asking how to debug my digger app.... Mar 01 22:24:42 The_Fred: look at the example USB apps, one of them drives a USB missle launcher Mar 01 22:24:50 missile, even Mar 01 22:24:55 yea, will do Mar 01 22:25:21 The_Fred: the other thing you could look at is the IOIO Mar 01 22:25:49 The_Fred: which, while requiring a bigass battery pack, works with almost any Android version by acting as a USB host device and communicating over the adb debug channel Mar 01 22:26:21 The_Fred: and basically acts as an android-directed arduino-style device (bunch of gpio and adc pins on a uC) Mar 01 22:26:55 The_Fred: if your target use already requires a big battery supply and you're not trying to run it as a completely portable app, that may be the route to take Mar 01 22:30:27 * The_Fred goes to google search... Mar 01 22:31:43 does anyone know why i might see this exception/stack: http://pastebin.com/nLWvx7Rt when sending an intent to allow the user to give my application access to their account on honeycomb? Mar 01 22:32:08 i've never had an issue on gingerbread Mar 01 22:33:27 oh, grepcode answered my question Mar 01 22:33:36 and reminded me that im not connected to wifi Mar 01 22:41:41 How can an AssetFileDescriptor be created from a file on the SDCard? Does anyone know? Mar 01 22:42:26 Assets came from your APK... Mar 01 22:42:37 ? Mar 01 22:42:53 the external battery pack I got came with a knockoff apple power adapter, how funny Mar 01 22:42:59 AlexRamallo: basically: you can't, unless I'm missing something fairly obvious Mar 01 22:43:07 and of course, the battery pack itself looks like an iphone, kinda Mar 01 22:43:17 the power adapter even says "designed by apple" Mar 01 22:43:17 heh Mar 01 22:43:34 My game uses resources packaged into a zip which are extracted to a tmp directory in the SDCard. In those resources are some Midis that I am trying to play with SoundPool, but it requires an AssetFileDescriptor Mar 01 22:44:18 A better question would probably be, can I play a sound from the SDCard with SoundPool? Mar 01 22:45:15 https://lh6.googleusercontent.com/-txToIRPOr90/T0_7ub7oFSI/AAAAAAAABSI/8pdEHmGfYos/s741/IMG_20120301_144357.jpg Mar 01 22:46:17 AlexRamallo> http://developer.android.com/reference/android/media/SoundPool.html#load(java.lang.String, int) Mar 01 22:46:20 lol, that actually looks like it's pretty good quality Mar 01 22:46:33 fingerprint magnet though Mar 01 22:46:52 wow I'm a dumbass Mar 01 22:47:00 AlexRamallo> point taken Mar 01 22:48:15 yeah, I hope the battery is actually decent Mar 01 22:48:26 6000mah Mar 01 22:48:33 that's enough to charge my phone 3 times over Mar 01 22:48:39 nice one Mar 01 22:48:52 dealxtreme... Mar 01 22:52:15 hi Mar 01 22:52:47 I have a dilemma. Mar 01 22:53:33 I let the user set the locale via my PreferenceActivity, and it's loaded into the app by setting the locale programmatically Mar 01 22:53:44 How can I use something like dpi when updating the position of my bitmap on a canvas? Basically I want to move the bitmap from y=0 to y=getHeight() with the same number of moves on different screens. Mar 01 22:54:49 However, upon returning from the Settings-actvity, it doesn't redraw (as onCreate() isn't going to be fired) which leavs the whole layout in another language. How would you solve this? If I restart the app, it's all good. Mar 01 23:01:06 dansul: You can get the DisplayMetrics using context.getResources().getDisplayMetrics() - DisplayMetrics has the properties density, xdpi, ydpi etc which you can use Mar 01 23:02:12 That would work I think Mar 01 23:02:13 thanks Mar 01 23:02:21 n20, force a recreate Mar 01 23:02:37 n20, api11+ activity.recreate() Mar 01 23:03:25 Is this available only from surfaceCreated onwards? Mar 01 23:04:39 At which point in the application's lifecycle can I get these infos ? Mar 01 23:07:11 could someone please take a look at my app on the market (free) i cant see it on the market but i did all the submission over a week ago :-( Mar 01 23:07:26 The_Fred: package name? Mar 01 23:07:44 evancharlton, com.nds.mda Mar 01 23:07:55 https://market.android.com/details?id=com.nds.mda Mar 01 23:08:02 aha! Mar 01 23:08:36 so its just a poblem here at home... Mar 01 23:14:02 anyone here got a blackberry playbook? Mar 01 23:17:19 The_Fred: great use of an app, hope the guy breaking into your room doesn't just steal the phone too Mar 01 23:17:52 When I click on something on the battery usage meter, it gives some nice info. How can I get that info if my app doesn't even show up on the batter usage? Mar 01 23:18:00 *battery Mar 01 23:18:35 the battery meter isn't omnipotent Mar 01 23:20:08 lov: if not the battery meter, then what god must i respect? Mar 01 23:21:16 idk you could probably do worse than Tesla Mar 01 23:24:21 lov, yea, that is a concern Mar 01 23:25:33 lov, I haven canned responses for complaints like: i bricked my phone with a uber-magnet.. Mar 01 23:27:27 The_Fred: so I have to have a phone with service which will function as a door alarm? :\ Mar 01 23:27:41 vil33, yup Mar 01 23:27:47 thats dumb Mar 01 23:27:52 make it s send emails too Mar 01 23:27:59 so I could use a crappy phone Mar 01 23:28:05 thanks for the suggestion Mar 01 23:28:05 as a 24/7 door thing Mar 01 23:28:20 then you'll see it having a niche user base Mar 01 23:28:25 vil33, thats the idea... ive had lots of requests Mar 01 23:28:30 right now...a really expensive door alarm Mar 01 23:29:15 i have customers who want to guard machine shops.. they like my 'custom' version Mar 01 23:30:06 Is there a better way to tell if your Activity is running(i.e. the currently focused foreground app) other than using the ActivityManager? Mar 01 23:39:37 "Trail Version! Not free as stated and much too limited in the trial.", 1 star. FU user! Mar 01 23:41:02 I wish I could ban users for ever installing my apps again. Mar 01 23:41:58 "app called X does not provide function Y, 1*, will 5* when fixed" FUUUUU Mar 01 23:42:21 "app is great, but not free, 1*" FUUUU Mar 01 23:42:28 we can go on ;) Mar 01 23:42:44 bubbleguuum: i wish they reset bad ratings when you released an update that fixed the problem they gave you 1* for :( Mar 01 23:43:22 My favorite is getting dinged for problems in SOMEONE ELSE'S apps Mar 01 23:43:23 the problem is that they rate the distribution or econonics, not the app Mar 01 23:43:33 yeah, that too Mar 01 23:43:34 yeah Mar 01 23:43:40 Chainfire: App, Y U NO FREE Mar 01 23:43:44 1* doesn't work on my phone 15 minute refund window passed DEV IS GREEDY Mar 01 23:43:44 apple store kinda has it right Mar 01 23:43:45 I have gotten many 1* for including AirPlay (or whatever that notification bar ads program) Mar 01 23:43:46 fuck you Mar 01 23:43:49 "last update broke it!!! now useless!! please fix! Uninstalled.". FU FUF UFUFUFUFU user Mar 01 23:43:50 * Chainfire doesnt include that ... at all Mar 01 23:43:53 everytime a new version comes out, ratings are "reset" Mar 01 23:44:19 bloody users, seriously... Mar 01 23:44:56 at least they now associate ratings with the version of the app - so *intelligent* users can see if a bad rating was 15 releases ago Mar 01 23:45:12 intelligent users Mar 01 23:45:13 lol Mar 01 23:45:18 Leeds: oh? When did that happen? Mar 01 23:45:21 oh Mar 01 23:45:23 apple, nvm Mar 01 23:45:39 Chainfire: no such thing Mar 01 23:45:41 apple? no, market, on the web... Mar 01 23:45:47 Leeds: wait what? Mar 01 23:45:50 seriously? Mar 01 23:46:14 Leeds: only if the person left a review though Mar 01 23:46:23 oh wow Mar 01 23:46:24 this is new Mar 01 23:46:27 oops, sorry, yes, comments not ratings Mar 01 23:46:33 re: someone elses app, this is regards to "intents" ? Mar 01 23:46:44 the user fires off an intent, it doesn't work and rates your app poorly / Mar 01 23:46:45 ? Mar 01 23:46:49 what is the best practice for opening/closing databases in android? Currently I have a couple methods that deal with the database... so I open the databases in those methods. Mar 01 23:46:50 lov, market associates ratings with installed versions if the review is left from the phone Mar 01 23:47:06 ninjai: you are using a helper, right? Mar 01 23:47:17 Leeds, ... no :( Mar 01 23:47:24 why not? Mar 01 23:47:29 didn't knwo about it Mar 01 23:47:36 sqlitedatabasehelpr? Mar 01 23:47:53 yup Mar 01 23:47:56 if a standard class by default needs a helper... is there a logic fail ? Mar 01 23:48:03 it's pretty clearly recommended in the docs Mar 01 23:48:05 one of the funny comment of today, paraphrasing: "bla bla bla .. will update to 5 star if feature X is supported". App already supports feature X. Mar 01 23:48:44 I do wish that you could reply to comments or something Mar 01 23:48:50 bubbleguuum: Best is :Doesnt work, 1 star Mar 01 23:48:52 but I do hate that people think of comments as a way to contact customer service Mar 01 23:48:58 in that case it would be most than useful Mar 01 23:49:14 DrPenguin: yup, a classic Mar 01 23:49:34 I wish refunds were still 24 hours or so Mar 01 23:49:39 so do I Mar 01 23:49:39 or you know, configurable Mar 01 23:49:43 that, too Mar 01 23:49:45 Chainfire: yeah me too Mar 01 23:49:45 I love users that click report when your app force closes though instead of just moaning Mar 01 23:49:48 I have apps I would happily refund a week down the line Mar 01 23:49:49 always wanted it to be configurable per developer Mar 01 23:49:58 in fact, I always refund Mar 01 23:50:06 One day I will write a full book on the "Stupid Android market User" Mar 01 23:50:06 Id be kosher with a 14 day return policy Mar 01 23:50:09 if a checkout request for refund comes in, I don't even read it, just refund it :P Mar 01 23:50:19 Chainfire, pretty much, same here Mar 01 23:50:36 especially since a refund results in blocking the user from further downloading Mar 01 23:52:04 got a mail finishing by "...give advice or refund". To which I responded: refund. Mar 01 23:52:21 pfn: does a manual refund outside of the refund window acheive the same effect? Mar 01 23:52:42 killring, that's what I've heard, yes Mar 01 23:53:09 cool. I asked about this a while back but (not surprisingly) goog never responded Mar 01 23:53:43 Hi, I want to customize RIL Daemon. but I'm not sure where to begin. Mar 01 23:54:12 bubbleguuum: I don't mind helping users who email me with a proper question, its the ones who email me in some random language, but are using text speak/slang as well, so google translate doesnt work on it and I have no idea what they said Mar 01 23:54:48 my favorite is "your app doesnt work" Mar 01 23:54:59 Amphoras: I see what you mean, I regularly get such mails Mar 01 23:55:11 I make a bazillion apps. Which one? And what doesn't work? On which device? etc ;) Mar 01 23:55:26 "It not working at all never did just wanted to know before I make my comments to my circle and community at college". WTF ? Mar 01 23:55:49 lol Mar 01 23:56:10 followed by: "You have 24 he's. before I start writing it will play videos or music or anything off the and instructions really suck and I purchased the license guess no refunds typical 21st company's these days. Hope you can help I will see I guess in 24 hr " Mar 01 23:56:30 W..T..F Mar 01 23:57:08 https://twitter.com/#!/ChainfireXDA/status/175367832098443264 lol that got a lot of retweets quick Mar 01 23:57:19 15m refund bs Mar 01 23:58:36 * pfn wonders who /likes/ 15 minute refund windows Mar 01 23:58:39 except scammers Mar 01 23:58:46 people who wanna take the money and run Mar 01 23:58:56 yeah I dunno either Mar 01 23:59:06 I think it depends on the app Mar 01 23:59:11 I honestly can't imagine why anyone at Google thought this was a good idea as a default Mar 01 23:59:44 24 hours does seem excessively long Mar 02 00:00:17 Hi, just a quick question, is it possible to easily set the drawables depending on preference without using switches at each drawable set ? Mar 02 00:00:18 pfn: depends on the app I guess Mar 02 00:00:35 yes, it does very much depend on the app Mar 02 00:00:40 Speaking of stupid reviews Mar 02 00:00:44 the problem is there isn't any one limit that will work for all apps Mar 02 00:00:45 some games only have a few hours worth of play value Mar 02 00:00:52 some apps, 15 min is fine for Mar 02 00:00:52 I think it's pretty clearly understood that the window was shrunk for games companies, yes Mar 02 00:00:53 I love getting 1/5 just because users don't want to login. Mar 02 00:00:54 but they're only 99c Mar 02 00:00:59 others, a day isn't enough Mar 02 00:01:27 Chainfire: Consider yourself retweeted. Mar 02 00:01:33 if you make a game with, say, 5-10 hours of content - which isn't necessarily a particularly small game - but people can play it in a day and refund... Mar 02 00:01:34 * n20 puts on that evil laugh. Mar 02 00:01:49 I say game should be 15 minutes Mar 02 00:01:49 15mins only seems enough for if you bought something by mistake Mar 02 00:01:51 Leeds, that was my point Mar 02 00:01:59 games* Mar 02 00:02:02 Amphoras, pretty much Mar 02 00:02:07 or if you wanna pirate ;-) Mar 02 00:02:09 buy Mar 02 00:02:09 copy Mar 02 00:02:10 refund Mar 02 00:02:27 amphoras: assuming there isn't 1/2 hour (or more) of mandatory content download after purchase before you can even use it Mar 02 00:02:47 pfn: but what I'm saying is that it's not really unfair, because a game which can be completed in a few hours doesn't have to be a small/ripoff game Mar 02 00:03:09 * pfn also typically buys stuff and doesn't use it immediately Mar 02 00:03:10 how about ... Mar 02 00:03:13 games are an example Mar 02 00:03:15 pfn: Same here. Mar 02 00:03:23 I buy it, try it out to make sure it works kinda, then let it stew for a while Mar 02 00:03:28 refund time = 4 hours / dollar Mar 02 00:03:30 lol Mar 02 00:03:38 * pfn hasn't touched most of the 10c games he bought in the big sale Mar 02 00:03:44 pfn Mar 02 00:03:45 same here Mar 02 00:03:47 pfn: :-D Mar 02 00:03:47 too lazy to play Mar 02 00:03:49 I only launched them to make sure that they worked, pretty much Mar 02 00:03:53 gaming is overrated Mar 02 00:03:53 pfn: I can't even remember what I downloadde Mar 02 00:03:55 downloaded* Mar 02 00:03:55 and some of them didn't, heh Mar 02 00:03:58 pfn: a couple of them were pretty good :-) Mar 02 00:04:04 majesty is still terrible on GN Mar 02 00:04:15 myeah Mar 02 00:04:21 I'm actually getting a lot of value out of the humble bundle Mar 02 00:04:22 that rally hurt more devs than it helped. Mar 02 00:04:23 For those of you that haven't seen it: http://www.getlocalization.com/ Mar 02 00:04:26 That's the cheese. Mar 02 00:04:27 on the other hand, I've seen one game which offered me a discount IAP when I was halfway though the free content, as long as I paid immediately... which was a bit of a bugger, since I was on an intercontinental flight at the time Mar 02 00:04:35 Does the Runnable class continue running on it's own thread even though I call a lot of functions in it? Or are these functions running on the same thread? Mar 02 00:04:54 Kake_Fisk, runnable only runs in a new thread if you send it to a thread to run on Mar 02 00:05:03 It supports our favorite strings.xml :) Mar 02 00:05:06 and only 'run' executes on a different thread Mar 02 00:05:41 my experience with translations is that its ass Mar 02 00:05:50 unless the translator actually understands what he's translating. Mar 02 00:05:56 translation... either get a professional team to do it, or just give up Mar 02 00:06:04 because a machine translation will be just about as good Mar 02 00:06:05 pfn: If I call a new time consuming function in 'run' would it be runned in the new thread? Mar 02 00:06:08 I've used professionals who sucked balls. Mar 02 00:06:09 might as well use google translate Mar 02 00:06:15 hmm, that sounded wrong Mar 02 00:06:22 not those kinds of professionals Mar 02 00:06:23 professional ball suckers Mar 02 00:06:27 Chainfire: It sure is. On the other hand, other people that speak the language natively will probably be better than my Google Translate:ization. Mar 02 00:06:37 chainfire: you must have purchased their 'premium' services :-) Mar 02 00:06:42 i love this guy that i got to replace me on ios dev Mar 02 00:06:48 it's difficult to get good translations unless people use the app in-context Mar 02 00:06:55 birbeck, awesome or not? Mar 02 00:07:00 People actually gave me lower ratings just because of my really horrible Spanish translation. Mar 02 00:07:03 :D Mar 02 00:07:05 he refuses to accept that apns is just not sending out the notifications Mar 02 00:07:13 Kake_Fisk, no, you cannot call run() directly, you must send the runnable to a thread to run Mar 02 00:07:21 n20: sometimes, more = lower ratings. Mar 02 00:07:22 Kake_Fisk, either by doing new Thread(yourRunnable).start() Mar 02 00:07:31 we get a success back from apple, but nothing shows up in his device logs or ui Mar 02 00:07:38 Kake_Fisk, or ExecutorService.execute(yourRunnable) Mar 02 00:07:43 improve an app with more feature and bug fixes, get lower ratings in return. Mar 02 00:07:46 but it must be a server problem, apple cant ever break Mar 02 00:07:53 bubbleguuum: True story. :( Mar 02 00:07:59 but you can eat it Mar 02 00:08:05 bubbleguuum: Even if you create an app that cures cancer, people will ask you where the Facebook integration is. Mar 02 00:08:15 indeed Mar 02 00:08:22 * pfn needs interesting app ideas to write Mar 02 00:08:22 or why it doesn't look twice as cured on their iPad Mar 02 00:08:25 * pfn can't come up with any :( Mar 02 00:08:26 or it will be called the worst game ever Mar 02 00:08:53 next toy I'll do is add a swipe-pattern interface to keepassdroid Mar 02 00:09:12 * Chainfire needs more ideas and implementations that actually make moneys Mar 02 00:09:16 submit a patch to keepassdroid to accept password/file-name extras in the launch intent Mar 02 00:09:22 Chainfire: Let's create a missile controller Mar 02 00:09:31 Simpsons already did it Mar 02 00:09:42 Chainfire: An app that does it? Mar 02 00:09:45 then write a new activity to save the password/filename and then unlock it with a swipe pattern Mar 02 00:09:50 can't make money off of that, though :-/ Mar 02 00:10:02 pfn: I must have done that 'cause my game works, but that is not my problem. It just seems that run() finishes before some of it's sub function calls Mar 02 00:10:08 n20 wasnt a USB missile launcher one of the Android demos ? Mar 02 00:10:26 Kake_Fisk, read the book java concurrency in practice Mar 02 00:10:30 Kake_Fisk, return once done Mar 02 00:10:39 Okay :| Mar 02 00:10:41 should I create only a single readable/writable database object in my class? IE: SQLiteDatabase readableDb = database.getReadableDatabase() and use that for all my read calls class-wide? Mar 02 00:10:47 Chainfire: I was talking one of those that they needed in that newest Mission Impossible. Would've been a lot more handy with it in their pockets! Mar 02 00:10:57 true Mar 02 00:11:07 but not so good to make big bucks ;) Mar 02 00:11:15 unless you are Dr.Evil or Tom Cruise. Mar 02 00:11:55 * n20 thinks Mar 02 00:12:19 ninjai, depends Mar 02 00:12:20 An app... that... does something... that people want! Mar 02 00:12:37 * pfn can't think of any Mar 02 00:12:43 :( Mar 02 00:12:54 pfn, what does it depend on? Mar 02 00:13:04 ninjai, depends on what you're doing and what you need Mar 02 00:13:10 If I'm using a locale with ab-AB, will it still be usable if the user's using ab-CD? Mar 02 00:13:16 "1StarApp" to train users to 1-star. Mar 02 00:13:20 using a locale ^ => having language files Mar 02 00:13:23 n20, only if you name it ab Mar 02 00:13:31 pfn: Alright, thanks. :-) Mar 02 00:13:44 n20, like values-en applies to values-en_rUS and -en_rUK Mar 02 00:13:49 pfn, I jsut pull some info from a database to fill some spinners, and write to a database when a button is pressed. That's pretty much it. Mar 02 00:13:50 or whatever the format is Mar 02 00:14:02 pfn: I reckon it's better to get a somewhat similar language, than the fallback. Mar 02 00:14:15 but rUS will not work for rUK Mar 02 00:15:24 bubbleguuum> I love your 1StarApp idea Mar 02 00:15:47 that can be made into a fun game too Mar 02 00:17:18 Chainfire: "Here are some popular apps that you should download and try to 1Star" Mar 02 00:18:29 Don't you guys just love it when you've just updated your app, and you notice that it crashes on the first run? :D Mar 02 00:18:51 What are some recommendable apps that do a good job of designing the 'add/edit account' screen? Mar 02 00:19:03 internal vpn on 4.0 Mar 02 00:19:27 thanks :) Mar 02 00:20:14 Chainfire: yes a 1-star game where you can only rate stuff 1 star would be awesome. And it's not too difficult to think of an app icon for it. Mar 02 00:21:13 I can even think of it being social, sharing your 1 star comment with the rest of the world. Mar 02 00:22:05 that game already exist in the form of the Android Market Mar 02 00:23:07 lol Mar 02 00:24:11 1*, would give 5*'s if it had more 1* comments Mar 02 00:24:21 :D Mar 02 00:24:42 we're all playing googles game Mar 02 00:24:46 now dance you puppets, dance ! Mar 02 00:25:15 developpers should be able to rate theirs users Mar 02 00:26:07 1*, can't read Mar 02 00:26:17 1*, can't spell Mar 02 00:26:23 wmealing_: did you mean the 'edit vpn network' one? Mar 02 00:26:52 also those people Mar 02 00:26:56 *sigh* dont you just hate it when people who dont no crud try to tell you what to do? Mar 02 00:27:02 who complain about shit for a 0.99$ app Mar 02 00:27:11 and tell all their friends Mar 02 00:27:15 post on boards Mar 02 00:27:16 etc Mar 02 00:27:23 those people must be really cheap labor to actually hire. Mar 02 00:27:49 vadi2, iirc, yes.. Mar 02 00:28:15 alright. I do like it, thanks for the tip Mar 02 00:29:26 where do screenshots go once saved in the emulator? Mar 02 00:29:27 people. must. die. Mar 02 00:43:48 hi, is there any kind of adapter for filling a simple view with a single object, instead of a listview with a list of objects? Or should I implement my own? Mar 02 00:44:54 bl4ckcomb: With or without a listview? Mar 02 00:45:20 no listview, just a detail view of a single object Mar 02 00:45:54 I want to keep my adapters central, so I can just update them (which causes the views to update) Mar 02 00:46:18 but atm I can only do this for grid-, list-, ...views Mar 02 00:47:10 i'm not totally sure what you need, but you could try setting a listadapter with its empty view, so that when the list is empty it shows that view Mar 02 00:47:52 ie this method: http://developer.android.com/reference/android/widget/AdapterView.html#setEmptyView(android.view.View) Mar 02 00:48:13 sorry, listadapter = AdapterView Mar 02 00:48:25 ok, I'll check that out Mar 02 00:48:41 thank you Mar 02 00:48:58 np, hope it helps ^^ Mar 02 00:50:50 barbs: I'll see, do you know about observableCollections in .net (don't throw any rocks please) Mar 02 00:51:20 i've got no experience with .net, sorry :( Mar 02 00:51:38 ok, nvm then Mar 02 00:52:02 bl4ckcomb, you implement your own Mar 02 00:52:42 pfn: is what I'm trying to do a good practice for Android, or would you suggest something else? Mar 02 00:52:47 Anyone know where I can find a copy of ldd built for ARMv7? Mar 02 00:53:37 bl4ckcomb, it's a generally good practice Mar 02 00:53:38 why dont you just cross compile ldd? Mar 02 00:53:57 pfn, ok thanks Mar 02 00:54:02 ldd works with ld.so, android doesn't use ld.so Mar 02 00:54:17 DrPenguin, that means cross compiling all of binutils Mar 02 00:54:31 and ldd isn't from binutils Mar 02 00:55:48 ohh, glibc >_> my bad Mar 02 00:56:41 i got it confused wich package it comes in with ld.. Mar 02 00:57:28 bionic has its own linker, so ldd wouldn't work Mar 02 00:57:31 maybe there's a variant Mar 02 00:57:31 strace: there are a bunch of independent toolchains for arm which can kinda work w/ android if you statically link Mar 02 00:57:32 * pfn shrugs Mar 02 00:57:49 sourcery is one I've used in the past Mar 02 00:58:17 arguably if you statically link, any arm toolchain can generate usable code, so long as you match the processor. YOu can also compile binaries with ndk, depending on your dependencies Mar 02 01:00:28 Hello. The Android market says that is will filter out devices that do not support GPS. I set android.permission.ACCESS_FINE_LOCATION but my app will still work without GPS, what can I do? Mar 02 01:00:50 So I want permission to GPS but not requiring it. Mar 02 01:01:58 Matt_von_Mises, android:required="false" Mar 02 01:02:05 or whateer the appropriate flag is Mar 02 01:02:07 Matt_von_Mises: http://stackoverflow.com/questions/5745024/android-market-filtering-issue Mar 02 01:02:11 what pfn said Mar 02 01:02:12 Matt_von_Mises, is there a use-feature for gps? Mar 02 01:02:45 No there isn't a use-feature. But thank pfn, I'll try android:required="false" Mar 02 01:02:47 yes: android.hardware.location.gps Mar 02 01:02:59 Matt_von_Mises, you have to specify uses-feature Mar 02 01:03:11 Add a use-feature element with required false Mar 02 01:03:19 Uses* Mar 02 01:05:09 OKay thanks I'll try submitting again... Mar 02 01:06:08 this is getting silly: http://www.androidcentral.com/android-allows-apps-see-your-photos-every-computer-does Mar 02 01:06:17 of course Mar 02 01:06:42 what's next? NYT dsicovers that app can use your CPU to do something without user consent ? Mar 02 01:07:09 although the difference is usually your computer is also not a camera Mar 02 01:07:15 so it doesn't have access to pictures until later Mar 02 01:07:32 i.e. after you've deleted them off your camera and before copying them to computer Mar 02 01:09:59 next NYT will discover that with "modify/delete SD card contents" permission you can upload the SD Card to the internets Mar 02 01:09:59 what a silly story esp since browsers are starting to provide direct access to the camera hardware. if people want to get annoyed about something, get annoyed about that Mar 02 01:10:28 you can also upload movies and mp3 to the internets Mar 02 01:11:43 at this rate, in 10 years reading a file will be considered as malicious Mar 02 01:18:21 bubbleguuum: if Apple doesnt do it, then it must be bad Mar 02 01:18:30 The icon path specified by the manifest is not in the apk. I swear to god it is! Mar 02 01:19:02 LZNPDE: YOU LIE Mar 02 01:19:29 :'( Mar 02 01:20:05 how have games dealt with real-time chat? Mar 02 01:20:15 what's to deal with? Mar 02 01:20:29 just looking for options Mar 02 01:20:40 depends on your interface Mar 02 01:20:44 there's lots of options Mar 02 01:21:03 xmpp, irc, http, custom protocol, etc. Mar 02 01:21:06 I want to use speech recognition Mar 02 01:21:17 and... maybe irc Mar 02 01:21:48 so i guess i need to find out how to bolt irc and the SR together Mar 02 01:21:54 that's easy... Mar 02 01:22:02 good news Mar 02 01:22:13 any tips/hint pfn ? Mar 02 01:23:30 find libraries to do what you want Mar 02 01:23:37 use the SpeechRecognizer intent Mar 02 01:23:54 yea, im already lokking over http://www.andchat.net/ Mar 02 01:23:59 kinda wish there was a good way to programmatically switch to the voice input method on ics Mar 02 01:24:09 The_Fred, qicr has a speech recognition button, try that Mar 02 01:25:00 im considering a childs game, where the kids speak their message to other players, and the tts on the other phone reads it out Mar 02 01:25:07 but you can't just integrate a random irc client into your app Mar 02 01:25:10 ... Mar 02 01:25:22 speaking of tts, is it just me, or is the speech synth on ics a lot nicer Mar 02 01:25:23 AndChat doesn't have built in support for voice but should work with a keyboard that uses it Mar 02 01:25:32 And what pfn says Mar 02 01:25:41 thanks folks Mar 02 01:26:05 pfn: I see you made qirc, nice work Mar 02 01:26:38 thanks... getting kinda bored of it, though, heh; hate it when apps get to the point where they're usable enough for me ;-) Mar 02 01:26:55 get too lazy to implement more options Mar 02 01:31:31 I'm on the night shift tonight, bought my laptop with me in case I find time to do some coding for AndChat hehe, got loads to do Mar 02 01:34:40 mikey|n1: care to implement swipe left/right for switching tabs ala ICS? ( I know you can do it with the top bar, but it;s abit finiky when through a waterproof bag Mar 02 01:35:40 mikey|n1, night shift? where ya workin' these days Mar 02 01:35:50 * pfn recalls mikey saying he didn't want to do software Mar 02 01:36:59 Swiping on text worked fine until gingerbread, am going test a fix when I get time Mar 02 01:37:22 * pfn never had a good experience swiping channels with andchat Mar 02 01:37:25 on any version of android Mar 02 01:37:30 one of the drivers for writing qicr Mar 02 01:37:36 :( Mar 02 01:37:46 that's why I always asked you about it a bunch of times Mar 02 01:37:52 that and the native speech rec stuff I added Mar 02 01:38:05 since I irc a bunch of times where I don't have access to type easily Mar 02 01:38:24 The only other complaint I have is sweitching networks is a bit annoying Mar 02 01:38:33 that's the other driver for me Mar 02 01:38:38 Ah pfn, it was on my todo list, I actually have one of our irc conversation next to the source code Mar 02 01:38:56 switching networks is a big pita Mar 02 01:38:57 SeligArkin: on tablets or phone? Mar 02 01:39:01 since I regularly connect to 3-4 networks Mar 02 01:39:13 bitlbee, freenode, efnet and mozilla Mar 02 01:39:20 mikey|n1: both Mar 02 01:39:58 Server list, ala desktop clients already in request queue, you can also use volume keys to switch Mar 02 01:40:09 As well Mar 02 01:40:30 * pfn personally prefers to view all currently active channels in a cohesive view Mar 02 01:40:45 That's not really practical for most of my phone IRC useage, which is in a waterproof bag next to the pool. :P Mar 02 01:41:44 http://www.theverge.com/2012/3/1/2835343/microsoft-bets-on-metro-windows-8-android-failed Mar 02 01:42:18 * SeligArkin would hardly call 12million tablets sold as "failure" Mar 02 01:43:38 but it doesn't sell headlines Mar 02 01:43:42 SeligArkin: depends on what the size of the market was :D Mar 02 01:44:05 if you could have sold 120 million, but only sold 12, then yeah - thats a failure Mar 02 01:44:16 * SeligArkin loves her Galaxy Tab 10.1 she got at I/O Mar 02 01:44:18 pfn: just installed qirc, I would strongly recommend providing an add server button rather than advising to use menu Mar 02 01:44:42 The number of emails I got about that..... Mar 02 01:46:06 Oh, and syncing the servers with the android backup service would be nice. I wish that thing got used more. :/ Mar 02 01:46:07 if tablet apps are easier to write on Win8 than Android then it might work Mar 02 01:46:31 it might also work if people actually buy the tablets Mar 02 01:46:33 it's hard to write a tablet app? O.o Mar 02 01:46:44 mikey|n1, yeah, I've seen that a few times, too Mar 02 01:47:07 i have a tablet for sale... :) Mar 02 01:47:23 fragments seems painful and horrible. I'm sure that part is covered better for metro app. Mar 02 01:47:25 either the iconia or gslate Mar 02 01:47:30 mikey|n1, just haven't really bothered to implement that yet Mar 02 01:48:10 bubbleguuum: they're not complicated at all. And there's a lot of good reference stuff Mar 02 01:48:25 Pfn, I modified the android-actionbar project from github and was trying to recommit it to git to share as a fork via eclipse, failed miserably Mar 02 01:48:47 I think the changes in it will be really handy for a lot of apps Mar 02 01:48:56 Though to be honest, lately I've been more tempted to write a twitter client than IRC, Twitter just doesn't get android. >:| Mar 02 01:49:21 mikey|n1, why not use actionbarsherlock? Mar 02 01:49:27 SeligArkin: yet generally speaking some Android APIs looks like they were written by 20 different people never speaking to each other. Mar 02 01:49:37 bubbleguuum, fragments aren't that hard Mar 02 01:49:52 http://www.youtube.com/watch?v=8dOzpE1T3Ow last night's light show Mar 02 01:49:56 I'm sure once you spent 3 month of them they seem easy. Mar 02 01:50:00 pfn: needs the compat lib, which I don't need atm Mar 02 01:50:28 And activities need to extend one of its classes iirc Mar 02 01:51:41 yeah, sherlockactivity or some such Mar 02 01:52:31 The changes I made just use a listener and emulated the long press of an action bar item of ICS Mar 02 01:53:33 And other stuff I needed, like dynamic disable / enable of item and changing image of item dynamically Mar 02 01:56:03 What does long press of an item do on ICS? Mar 02 01:56:19 Yay, I fought my way out of Context hell Mar 02 01:56:30 Show the description of the icon action, eg search Mar 02 01:56:43 SeligArkin depends on what you have set up Mar 02 01:56:58 you can have it do ActionMode for like multiple selection Mar 02 01:57:10 But it shows it right near the icon which makes it hard to see the description if your finger is long pressing it :s Mar 02 01:57:34 Ologn: context hell? Mar 02 01:58:21 * SeligArkin wishes google would stop sitting on their thumbs with the Nexus S ICS update. :< Mar 02 01:58:47 I just fixed up some Context code pointing to all kinds of bizarre places Mar 02 02:02:29 can anyone help me with adb shell am? I can't seem to fire any intents - only get a blank response from adb even after restarting with adb kill-serber Mar 02 02:02:43 it doesn't say anything? Mar 02 02:02:49 It says nothing Mar 02 02:02:52 blank response Mar 02 02:02:56 that's weird Mar 02 02:03:04 what if you just do adb shell Mar 02 02:03:08 it works fine Mar 02 02:03:11 does it put you into a shell on the device? Mar 02 02:03:14 only the am command doesn't work Mar 02 02:03:16 Hey guys. I've built a widget with a ViewFlipper inside. It automatically flips between N different Views. I can't (for the life of me) figure out how to make EACH of the ViewFlipper's views clickable. I tried remoteViews.setOnClickPendingIntent, but since each of the ViewFlipper's child Views don't have unique IDs, there doesn't seem to be any way to associate a click event with its children. Any thoughts or ideas? Mar 02 02:03:26 if you do adb shell and get into the shell Mar 02 02:03:29 then run am from there Mar 02 02:03:33 does it still fail? Mar 02 02:03:47 Ologn: did you have that context bug with the support library ? Mar 02 02:04:29 It just echoes what I type in Mar 02 02:05:13 g00s: No. The way the views came into the activity was a timing thing which messed up Context. But I fixed my problem. Mar 02 02:05:36 wchill even with like.. ls or cd? Mar 02 02:05:53 All other commands seem to work Mar 02 02:06:06 actually, am just worked, but working 1 time out of 30 isn't good Mar 02 02:07:07 I'm trying to use onCreateOptionsMenu in my SherlockListFragment - can it work with android's MenuInflater class as an argument, or does it have to be ABS's? Mar 02 02:08:34 When I try androids, it says the method must override the superclass method - yet I can't use ABS's MenuInflater as I had to import androids already for another method to work. Mar 02 02:10:02 * g00s should get one of these http://www.gizmag.com/pocket-geiger-counter/21670/ Mar 02 02:10:36 vadi2: it won't work with android's Mar 02 02:11:13 Hm, guessed as much. What can I do then if I'm already importing android's menuinflater though for another method to work - I can't import the abs one now Mar 02 02:11:35 don't import it, use the fully qualified name Mar 02 02:12:05 aha yeah. works Mar 02 02:12:39 What do you need it for? Mar 02 02:13:12 For my onCreateOptionsMenu Mar 02 02:13:44 You can use Ava's in place Mar 02 02:13:56 Ava? Mar 02 02:14:03 Grr abs's Mar 02 02:14:55 the am command is immensely frustrating... Mar 02 02:14:59 Yeah, I have to. My issue was getting the ABS MenuInflater in, but using the full name solved that Mar 02 02:15:11 thanks :) Mar 02 02:15:20 hmm, so when an issue in the android bug tracker has a status changed to "Updates: Status: FutureRelease", does that mean its happening in the next future release, or some future release :) Mar 02 02:15:45 Yes Mar 02 02:16:00 :) Mar 02 02:16:04 :/ Mar 02 02:16:20 hmm.. What is the recommended way to show a Dialog Fragment after an activity ends? I am trying to show a DialogFragment from the onActivityResult in another fragment but I get an illegal state exception Mar 02 02:17:18 why would you show a dialog outside of your activity, that's just wrong Mar 02 02:17:48 vadi2: I meant why do you impotence the android one, the ABS one is a reimementation Mar 02 02:18:38 Import. The keyboard really does not like me today Mar 02 02:18:58 SeligArkin, gogo autocorrect Mar 02 02:19:48 SeligArkin: Oh because I have to import MenuInflater for .inflate(id, ContextMenu) to work Mar 02 02:19:57 ABS's only seems to like a Menu Mar 02 02:20:03 So I've got http://ideone.com/2jEAw . Is the problem in the posted code, or elsewhere? Mar 02 02:21:27 vadi2: you should use the abs menuinflstor for that Mar 02 02:23:03 kamoricks you using proguard? Mar 02 02:23:17 t0mless: No. Mar 02 02:24:30 SeligArkin: I tried, but it's .inflate function only accepts Menus, not a ContextMenu Mar 02 02:24:39 ideone is so slow... Mar 02 02:25:10 kamoricks, sounds like your parcelable implementation is busted Mar 02 02:25:25 pfn: Okay. Any way to narrow it down to which Parcelable? Mar 02 02:27:30 kamoricks, whichever one line 34 is Mar 02 02:28:20 pfn: That's "List li = Arrays.asList(in.readParcelableArray(AlgorithmResults.class.getClassLoader()));". So if that call's correct, it's one of the Parcelables in the array, yeah? Mar 02 02:28:46 I guess so Mar 02 02:32:12 kamoricks, make sure write and read are symmetrical Mar 02 02:32:24 doesn't look like it to me Mar 02 02:32:25 pfn: Yeah, I was losing an int each way. Thanks. Mar 02 02:32:44 losing an int? Mar 02 02:33:18 looks like you're writing algorithmstate but reading algorithmresults Mar 02 02:33:50 oh, nevermind Mar 02 02:33:53 that's just the classloader Mar 02 02:33:58 I hate that Mar 02 02:34:05 getClass().getClassLoader() Mar 02 02:34:45 how do I force the upstream remote to override my file with git? Mar 02 02:35:03 t0mless, whaddya mean Mar 02 02:35:06 I thought there was a git merge -theirs ... Mar 02 02:35:18 maybe I just want pull.. Mar 02 02:35:24 git merge -s Mar 02 02:35:40 I want to replace the file in my repo with the one in the upstream remot Mar 02 02:35:41 remote Mar 02 02:35:57 t0mless: git checkout ? Mar 02 02:36:19 t0mless, git merge -s theirs Mar 02 02:36:50 could not find merge strategy theirs Mar 02 02:37:08 old version of git or something Mar 02 02:37:32 * pfn shrugs Mar 02 02:37:41 hey guys. I have an hdpi AVD device, but there's no controls for controlling menus, or things of that nature. Mar 02 02:37:55 t0mless, no idea... rollback your local file to the original version and then merge :p Mar 02 02:38:03 actually, it's an xhdpi AVD Mar 02 02:42:28 hmm, i had it on android 2.2. It would seem that the AVD system assumes that devices that big will be running an OS with controls inside of it? Well, Android 3.1 isn't running well in the VM Mar 02 02:42:37 guys Mar 02 02:42:56 Can i set divider on linearlayout between child views in xml? Mar 02 02:43:29 Okay, let me ask my question another way. I'm going through a loop and creating a series of remoteViews to be added to a parent remoteView. I'm looking at the inner remoteView.getLayoutId, and they're all the same (even though I'm very clearly creating new instances for each loop iteration). Any idea why? Mar 02 02:43:34 Seems like a nuance of the remoteViews stuff. Mar 02 02:43:49 yhpark in ICS there is a new dividerVertical attribute you can use Mar 02 02:44:01 yhpark before that you have to do it yourself Mar 02 02:44:15 hmm.. Mar 02 02:44:31 thanks **** ENDING LOGGING AT Fri Mar 02 02:59:58 2012