**** BEGIN LOGGING AT Fri Apr 20 02:59:58 2012 Apr 20 03:00:01 but its fun, because it uses like 20 macros Apr 20 03:01:12 it can also let you play interactively and suggest moves for you Apr 20 03:01:30 preprocessing and metaprogramming is futur Apr 20 03:01:58 word Apr 20 03:02:33 i've just attempted to include actionbarsherlock as a library in eclipse Apr 20 03:02:41 however i cannot import classes from it in my project Apr 20 03:02:58 so you have abs in your workspace, right? Apr 20 03:03:03 yes Apr 20 03:03:06 right click your project Apr 20 03:03:09 and i added it as a library Apr 20 03:03:30 you added it as a library in your project's properties? Apr 20 03:03:33 yes Apr 20 03:03:39 it appears as com_actionbarsherlock Apr 20 03:03:51 which doesn't look right to me Apr 20 03:03:55 take a screenshot of your workspace if you can Apr 20 03:03:57 including that info Apr 20 03:04:04 ok, one sec Apr 20 03:04:56 hesperaux, is the abs library in your workspace folder? Apr 20 03:05:35 yes, it is in my-workspace/third-party libs/subfolder Apr 20 03:05:45 must it be in the workspace root? Apr 20 03:06:03 yes Apr 20 03:06:10 it should be in your workspace in a separate project. Apr 20 03:06:12 I am not sure, maybe, mine didn't work until it was Apr 20 03:06:18 god mspaint sucks Apr 20 03:06:22 don't nest abs into your own project Apr 20 03:06:26 haha mspaint Apr 20 03:06:34 it wasn't nested inside *my* project Apr 20 03:06:43 oh, right Apr 20 03:06:44 it was nested in an external folder within my workspace Apr 20 03:06:46 "third party libs" Apr 20 03:06:49 yeah don't do that Apr 20 03:06:59 yeah i concur Apr 20 03:07:07 then I would want the "library" folder of abs to exist in my-workspace-root/library Apr 20 03:07:11 it's certainly possible to do that, but it's beyond the scope of trying to get things to work right now Apr 20 03:07:16 and if something is in the way of getting it to work Apr 20 03:07:17 screw it Apr 20 03:07:19 get it to work Apr 20 03:07:21 quite Apr 20 03:07:24 * hesperaux agrees Apr 20 03:07:31 indeed Apr 20 03:08:32 I made that change and it still won't see com.actionbarsherlock.* Apr 20 03:09:09 i'll take the screenshot Apr 20 03:10:51 did you include it as a library? Apr 20 03:11:00 yes Apr 20 03:11:05 * hesperaux uploads scrot Apr 20 03:11:15 are you sure its a green check and not a red x? Apr 20 03:11:22 a green check, yeah Apr 20 03:11:39 ok using sdk 14+? Apr 20 03:12:50 * hesperaux rages at imageshack Apr 20 03:13:25 http://img687.imageshack.us/img687/5165/scrotabsimportfail.png Apr 20 03:16:01 using abs 4.0.2? i see a missing libs folder Apr 20 03:16:42 the libs folder is there, but it didn't get added to the project for some reason. It was doing that before as well with AndroidManifest.xml too Apr 20 03:17:09 and you need to extend SherlockActivity Apr 20 03:17:11 not Activity Apr 20 03:17:26 that can come after he gets the importing fixed Apr 20 03:17:34 you should have the support lib in the build path Apr 20 03:18:23 I figured that Apr 20 03:18:31 hello all Apr 20 03:18:35 oops Apr 20 03:18:44 t0mless, in the build path, meaning? Apr 20 03:19:05 right click your abs project, goto configure build path Apr 20 03:19:27 and add the support lib (which should be in the libs folder) to the build path as a library Apr 20 03:19:34 external libraries I think Apr 20 03:19:45 dont remember exactly on eclipse Apr 20 03:19:59 Hi, I want to know. If my app I want to launch another thread on the background and notice in the Status Bar. I only want to know what to search. What is the name of this? Apr 20 03:20:38 Wut? Apr 20 03:21:11 Nic007: you will probably want to use an AsyncTask. Apr 20 03:21:36 Nic007: Notification, I guess, for the StatusBar stuff Apr 20 03:21:48 oh, right. that status bar. Apr 20 03:22:14 t0mless, i think i just did that, but it's not clicking Apr 20 03:22:40 Ah ok, thanks :P I'll go search Apr 20 03:22:48 the support lib is now included in the ABS project under referenced libraries as "android-support-v4.jar" Apr 20 03:22:57 good Apr 20 03:23:12 you might have to include it in your project too, but don't remember Apr 20 03:23:15 you were referring to the library project that i intend to use, not my project right? Apr 20 03:23:17 * t0mless doesn't use eclipse anymore Apr 20 03:23:18 oh okay Apr 20 03:23:21 heh Apr 20 03:23:23 yea Apr 20 03:23:28 i'll try to add it to mine now in the same fashion Apr 20 03:23:55 then you might have to actually build the ABS project Apr 20 03:24:29 hmm Apr 20 03:24:44 it is building automatically right now Apr 20 03:24:56 oh yea, another reason I disliked eclipse Apr 20 03:24:59 that auto build bs Apr 20 03:25:03 which you could turn off Apr 20 03:25:07 but still Apr 20 03:25:14 pfft Apr 20 03:25:20 that's a silly reason, you just proved it Apr 20 03:25:26 lol Apr 20 03:25:31 it was just in the list :) Apr 20 03:25:31 i like autobuild. it doesn't bother me yet Apr 20 03:26:37 only time I ran into problems with that was when another dev pulled in an entire source tree for jmDNS instead of using a jar Apr 20 03:26:52 pretty big src tree slowed down builds badly Apr 20 03:27:04 i can't get ABS into my project Apr 20 03:27:14 i added the ABS project to my project's build path Apr 20 03:27:20 but even that didn't seem to work Apr 20 03:27:32 that should be all you have to do Apr 20 03:27:40 i will do it real quick and record my screen. Apr 20 03:27:43 even though i added it, it didn't enable it. wtf Apr 20 03:27:45 I think there is a video on setting up ABS in eclipse on the ABS website actually Apr 20 03:28:07 a video sounds cool. Apr 20 03:28:09 * hesperaux loads youtube Apr 20 03:28:22 t0mless: let me know if you find one so I don't replicate any work Apr 20 03:28:24 i'm checking now Apr 20 03:28:39 http://www.youtube.com/watch?v=avcp6eD_X2k Apr 20 03:28:44 there's tons Apr 20 03:28:52 well, there you go :D Apr 20 03:29:00 yeah but this guy speaks british! Apr 20 03:29:26 Sherlock is british Apr 20 03:29:32 Sherlock Holmes Apr 20 03:30:00 http://www.youtube.com/watch?feature=player_embedded&v=4GJ6yY1lNNY Apr 20 03:30:01 boom Apr 20 03:31:44 t0mless: i'm waiting for intellij to fix 2 bugs Apr 20 03:31:46 then i can try it again Apr 20 03:31:56 which bugs? Apr 20 03:32:00 http://youtrack.jetbrains.com/issue/IDEA-84811 Apr 20 03:32:03 http://youtrack.jetbrains.com/issue/IDEA-84810 Apr 20 03:32:04 how do i center text relative to the TextView without screwing around in eclipse for half an hour adding space here and there :S Apr 20 03:32:09 reported by me :) Apr 20 03:32:11 one a dup, admittedly Apr 20 03:32:37 they are fixing them now, supposedly Apr 20 03:32:39 which is amazing Apr 20 03:33:02 bluezone: android:gravity on the textview to center inside of it Apr 20 03:33:15 android:gravity="center" Apr 20 03:33:19 kk Apr 20 03:33:26 I have never had either of those problems readme Apr 20 03:33:31 but I use windows, not linux Apr 20 03:33:42 yeah Apr 20 03:33:48 I didn't expect that they happen on windows Apr 20 03:33:54 if they did, no one would be using it Apr 20 03:34:16 or they'd be fixed :) Apr 20 03:34:24 Linux is nice, but it doesn't suit my purposes as a student :S Apr 20 03:34:28 so i dual boot Apr 20 03:34:29 why not? Apr 20 03:35:03 * readme hardcore linux Apr 20 03:35:14 not many games, I guess :) Apr 20 03:35:15 well, insufficient spellcheck (compared to office, and also teachers expect you to use office for various reasons). Also poor video editing software Apr 20 03:35:18 no games Apr 20 03:35:21 well Apr 20 03:35:21 I thought Linux would be perfect for students Apr 20 03:35:32 actually Mac is way awesome for students but students are poor Apr 20 03:35:46 no "non-quake 3 mods natively supported" games Apr 20 03:35:47 bluezone: so the reason is you prefer microsoft office to open/libre office or abiword? Apr 20 03:35:55 why isn't linux perfect for students? Apr 20 03:35:59 and why is mac awesome for students Apr 20 03:36:00 pfn: it is perfect. Apr 20 03:36:07 I think I want a linux workstation as my next work computer Apr 20 03:36:10 there are no windows machines in my house. Apr 20 03:36:11 linux works great for me as a student Apr 20 03:36:21 the only OS in this house are android and linux. Apr 20 03:36:22 readme: and games/with much better video card drivers Apr 20 03:36:22 but i woudln't say it's perfect for any student Apr 20 03:36:30 windows 7 worked for me Apr 20 03:36:31 bluezone: even my GIRLFRIEND uses linux and does her homework on it. Apr 20 03:36:41 she has no problems that she doesn't have on windows. Apr 20 03:36:45 libreoffice is good enough for students Apr 20 03:36:46 if you have a optimus nvidia card with linux = hell. Apr 20 03:36:52 her problems are usually "Why does this website say I have no cookies!?!?" Apr 20 03:37:02 because you let the cookies expire!? Apr 20 03:37:06 readme: yes, but i need a reliable spellcheck Apr 20 03:37:14 i use libre, but i have to be careful when i give that to a job interviewer because it's compatibility isn't quite fixed up with Word 07+ Apr 20 03:37:15 bluezone: dude, linux has aspell and ispell Apr 20 03:37:28 I have spellcheck... in vim! Apr 20 03:37:38 it never displays margins within tables properly in word if i open a libreoffice doc Apr 20 03:38:00 You should always send your resmues as pdf Apr 20 03:38:03 readme: also in my science program excel is a requirment, everything is done with it and they actually take off points if what you hand in is slightly not what they are used to Apr 20 03:38:06 anyway I'll take the time to point out that your problem is not with linux, but with office software. Apr 20 03:38:12 what's wrong with you, sending doc to job interviews Apr 20 03:38:28 I ran linux for a while in college Apr 20 03:38:34 bluezone: I'm not super versed in microsoft office so I can't comment Apr 20 03:38:37 but at least you dual boot ;) Apr 20 03:38:40 I use windoze atm because I play lots of games Apr 20 03:38:42 anyone know of a good way to implement recurring alarms in Android? Design wise, I know how to set the recurring alarm. Apr 20 03:39:16 what's wrong with using the AlarmManager? Apr 20 03:39:22 readme: yeah, really if it wasnt for office and good video card drivers with games (which will probably never happen unfortunately) i would be using it as my default OS Apr 20 03:39:35 there are actually a LOT of games that work with crossover Apr 20 03:39:38 just not new games Apr 20 03:39:40 t0mless: ideally, yes pdf - but i have had recruiters specifically ask for MS word resumes, since they put their logo or shit , and sometimes edit, resume for position Apr 20 03:39:44 yes but with poor drivers Apr 20 03:39:45 t0mless: nothing, I'm asking from a design perspective in Android. repeatType, repeatInterval... how to design it. Apr 20 03:39:52 * g00s would never give out a word doc as resume Apr 20 03:39:56 bluezone: I use linux because of the tools it comes with. If I need something, I just apt-get install, and it installs in 5 seconds. Apr 20 03:39:57 and slower-fps than what you would get in windows lol Apr 20 03:40:27 need node? apt-get install node. done. Apr 20 03:40:37 readme: i remember the days where apt-get didnt select the fastest server, or was that on fedora? i can't remember lol Apr 20 03:40:44 sigh...ubuntu nubs Apr 20 03:40:45 on windows you have to fudge around int he browser trying to find stuff Apr 20 03:40:47 i never used apt for dev tools / libraries Apr 20 03:40:55 always installed that stuff manually Apr 20 03:41:14 bluezone: hm, most distros have some kind of script that can pick a fast mirror for you Apr 20 03:41:20 maybe nowadays, everybody provides a .deb package Apr 20 03:41:28 I am not even sure what order apt tries the servers in sources.list in. Apr 20 03:41:41 but it's usually pretty fsat. Apr 20 03:41:43 fast* Apr 20 03:42:06 in my earlier linux years I used slackware and gentoo Apr 20 03:42:09 g00s, yeah i was specifically asked for a .doc after I sent a pdf Apr 20 03:42:20 * hesperaux uses Gentoo Apr 20 03:42:23 hesperaux: that's called a warning Apr 20 03:42:26 a warning not to work at that company Apr 20 03:42:27 hesperaux: i just say "no" :) Apr 20 03:42:29 There's only been one time I've been asked for a .doc Apr 20 03:42:38 why are doc's so bad? Apr 20 03:42:41 i am in no position to tell them what to do. i need a job very bad Apr 20 03:42:51 QubeZ: because only someone technically incompetent would not be able to read a pdf? Apr 20 03:42:51 QubeZ: recruiters edit them Apr 20 03:42:51 and that was for a recruiter Apr 20 03:43:00 g00s: good point Apr 20 03:43:08 mine was for a recruiter too Apr 20 03:43:14 you can convert pdf to doc, edit it then create a pdf... so... Apr 20 03:43:25 lol Apr 20 03:43:27 recruiters suck Apr 20 03:43:31 they don't wnat to do that; they want you to do that Apr 20 03:43:37 you give your res to them and they will spam it all over the universe Apr 20 03:43:49 i have recruiters too Apr 20 03:43:50 yeah, but if we were to look at fedora for example (or basically any other distro apart from ubuntu) i had a lot of problems getting started because they often respect these "laws" which restrict using simple things like .mp3 , descent video playback etc... Apr 20 03:44:03 but sometimes people are desperate and are social inept at finding their own work Apr 20 03:44:06 i dunno Apr 20 03:44:10 I am not sure, just to confirm: I can't edit UI in a AsyncTask Apr 20 03:44:18 bluezone, linux has come a long way in the past few years Apr 20 03:44:20 any who, back to recurring alarm design... frustrating Apr 20 03:44:21 that's how it was awhile ago in fedora, i don;t know about now Apr 20 03:44:24 lots of things work out of the box now Apr 20 03:44:24 i need a pattern! Apr 20 03:44:26 not in the doInBackground part of it, Nic007 Apr 20 03:44:27 QubeZ: i think they can be helpful, I just think that sometimes giving your resume to a recruiter can put you in a worse position Apr 20 03:44:38 Ok, thanks Apr 20 03:44:39 hesperaux: maybe, but i hear gnome hasn't haha Apr 20 03:44:43 you can use publishProgress() to post something to the UI while the thread is running though Apr 20 03:44:47 * hesperaux doesn't use gnome :) Apr 20 03:44:51 or kde Apr 20 03:44:57 what do you use Apr 20 03:45:03 admittedly gnome has gotten worse Apr 20 03:45:05 Mate Apr 20 03:45:08 gnome is actually my fav, used to be kde since forever Apr 20 03:45:08 gnome 3 is disgusting Apr 20 03:45:14 it is. Apr 20 03:45:18 i use compiz and xfdesktop mostly Apr 20 03:45:26 and either xfce4-panel or tint2 Apr 20 03:45:27 http://en.wikipedia.org/wiki/MATE_(desktop_environment) Apr 20 03:46:14 In the graphical UI editor, how do I set some sample text for an empty text view? Apr 20 03:46:31 I have never used that thing in my life Apr 20 03:46:31 mdwright: double click it'll bring you to the code Apr 20 03:46:44 mdwright: it's under android:text = "" Apr 20 03:46:46 Mate. haven't heard of it Apr 20 03:47:02 oh i see Apr 20 03:47:07 a less epic fail version of gnome Apr 20 03:47:08 lol Apr 20 03:47:15 lol Apr 20 03:48:10 bluezone: I don't want to set default text, I want to keep it empty. I"m pretty sure there's some way to set sample text (i.e. text that shows up in the editor but not in the actual app) Apr 20 03:48:45 blank space? i'm not sure i understand lol Apr 20 03:48:59 [19:00:06] Did I ever tell you how much I appreciate you cow? Apr 20 03:49:01 wtf Apr 20 03:49:07 muramasa....wtgf Apr 20 03:49:09 who is that Apr 20 03:49:12 JakeWharton Apr 20 03:49:13 evancharlton Apr 20 03:49:23 lov Apr 20 03:49:23 canadiancow: i appreciate you too, cow Apr 20 03:49:23 o.O Apr 20 03:49:24 lol Apr 20 03:49:28 :D Apr 20 03:49:33 I appreciate... tipping you down hills Apr 20 03:49:37 * t0mless tips canadiancow Apr 20 03:49:41 dont have a cow ! Apr 20 03:49:49 he'd should of said HellBovine , makes it more interesting lol Apr 20 03:49:56 canadiancow: I don't think it's either of them. Apr 20 03:50:05 but maybe. Apr 20 03:50:10 I think he was assuming they knew him Apr 20 03:50:12 no diablo fans ? :O Apr 20 03:50:19 can't wait for d3 Apr 20 03:50:21 mmm Apr 20 03:50:22 meh Apr 20 03:50:24 and sc2:hots Apr 20 03:50:27 I'm disappointed by d3 Apr 20 03:50:32 why Apr 20 03:50:39 I've been in the beta for months Apr 20 03:50:44 well, you can't really judge it by the beta Apr 20 03:50:45 just not as good as I was hoping for Apr 20 03:50:57 not enough content in there lol Apr 20 03:51:03 probably going to save my $ for Guild wars 2 Apr 20 03:51:05 so i performed the steps in the video with one exception. I used API 15 when i added sherlock Apr 20 03:51:16 and it doesn't import all of the files from the library/ folder Apr 20 03:51:22 i knew it wouldnt be as good as 2 but i think itll still be okay Apr 20 03:51:25 libs/ is ignored and ANdroidManifest.xml and others are ignored Apr 20 03:51:30 t0mless, how about D3 Apr 20 03:51:51 I appreciate... tipping you down hills Apr 20 03:51:53 this Apr 20 03:52:03 :) Apr 20 03:52:14 time for plane ride Apr 20 03:52:15 also JakeWharton Apr 20 03:52:17 you owe me Apr 20 03:52:21 5000 beers Apr 20 03:52:22 tyvm Apr 20 03:52:28 twill be done Apr 20 03:52:55 I'm using a theme for an activity (android:theme="@android:style/Theme.Dialog"); On my first activity that I used this theme, there is a title for the activty, it displays my app name... I just used it again, and this time it doesn't show any title, it just shows my first textview as my title. Anyone know why? I can provide pictures if you need me to. Apr 20 03:53:28 If possible I want to get rid of the title on the first activity, but I don't even understand how it's there in the first place. Apr 20 03:54:24 the title is the android:label attr of the element in the manifest. Apr 20 03:54:46 I already checked that, both don't have one. Apr 20 03:54:50 I deleted that a while back. Apr 20 03:55:11 can i have some of the 5000 beers? Apr 20 03:55:15 http://puu.sh/quVV and http://puu.sh/quW1 Apr 20 03:55:33 jakewharton was here and i didn't ask him how to sherlock :( Apr 20 03:55:36 derp Apr 20 03:55:50 if you follow that video and it's still not working? Apr 20 03:55:54 restart eclipse Apr 20 03:56:07 if anyone wants to force an overflow action item on honeycomb+ devices with hardware keys you can use this code http://pastebin.com/8jkZxjYK Apr 20 03:56:09 well the video i pasted was older Apr 20 03:56:14 and he was using 3.2 for his target Apr 20 03:56:21 i selected 4.0.3 API 15 Apr 20 03:56:21 use the one I linked Apr 20 03:56:25 * hesperaux scrolls up Apr 20 03:56:49 readme, this is my manifest http://pastebin.com/XjeYA4Su line 64 and line 102 are my activities. Apr 20 03:57:45 If this attribute is not set, the label set for the application as a whole is used instead (see the element's label attribute). Apr 20 03:57:49 http://developer.android.com/guide/topics/manifest/activity-element.html#label Apr 20 03:58:39 first way I can think of to "get rid of the title" Apr 20 03:58:42 android:label="" Apr 20 03:58:53 night all Apr 20 03:58:55 other way would be to hide the titlebar with the theme Apr 20 04:00:11 Oh that's what it is. In my java I hide the titlebar. Cool I didn't realize that was the title bar on that theme. Apr 20 04:00:14 Thanks readme :) Apr 20 04:09:02 which sony xperia should I borrow.. Apr 20 04:10:11 pfft, I'll get the sony liveview Apr 20 04:10:13 that thing looks fun. Apr 20 04:13:17 fuck yeah, sony live view coming my way! Apr 20 04:20:26 man, topcoder.com is so not intuitive Apr 20 04:24:01 pfn, is it something like oDesk? Apr 20 04:36:59 its a contest site Apr 20 04:53:31 well, they also do sorta-contracting Apr 20 04:57:41 spec-work Apr 20 04:58:03 What is the proper way to be backwards compatible but not use any deprecated preference apis? Apr 20 04:58:12 I'm using PreferenceFragment Apr 20 04:58:29 I need to make that work on 2.2+, but I'm extending PreferenceActivity, so Apr 20 04:58:46 the compatibility lib does not have this. Apr 20 05:01:14 excellent, commonsware delivers Apr 20 05:01:20 https://github.com/commonsguy/cw-android/tree/master/Prefs/FragmentsBC Apr 20 05:01:30 <[deXter]> pfn, hi there Apr 20 05:01:33 but, the answer is unfortunately "use the old apis on 2.2+" Apr 20 05:09:31 Ugh. I've threaded off the updating of my ArrayAdapter that powers a ListView, made sure I have setNotifyOnChange on false before I start updating, yet when the UI thread needs to do work, it somehow picks up that the data was changed (while it's in the middle of being so) and stupidly crashes with an out of bounds error. Apr 20 05:09:47 Why is it trying to update when I a) set setNotifyOnChange to false and b) did not call notifyDataSetChanged? Apr 20 05:21:19 vadi2: because if you request data from the data source that backs the adapter, it's going to try and access it Apr 20 05:21:31 vadi2: lets say I have an arraylist with three names in it Apr 20 05:21:37 and I delete the third name Apr 20 05:21:44 and I never call notifyDataSetChanged Apr 20 05:21:57 and then the user presses the last item Apr 20 05:22:07 lets say pressing that item Apr 20 05:23:25 I get what you're saying. This is dumb though, if there's an UI event while the *thread* is updating the *adapter*, it crashes because it tries to get items - and I clear the adapter at the start. Apr 20 05:24:08 I could try and only move the clear/adding to the UI thread and do the data processing I need for each item in the background, unlike what I have now - processing + adding, but that will only lower the chance of an UI event happening while it's clearing/adding Apr 20 05:24:24 How do I fix this problem while still not hitting unresponsiveness/ANR? Apr 20 05:25:49 retreives the name Apr 20 05:25:49 what will happen? Apr 20 05:26:04 i finally got ABS to import Apr 20 05:26:09 Lag. Apr 20 05:26:18 i followed the version4 video he posted and it didn't work, but i figured it out Apr 20 05:26:24 readme: did you notice what I said? Apr 20 05:26:31 vadi2: did you get what I said at all? not calling notifyDataSetChanged isn't going to stop your code from accessing your data source. Apr 20 05:26:35 nah I missed it. Apr 20 05:26:40 Yeah I saw Apr 20 05:26:43 I get what you're saying. This is dumb though, if there's an UI event while the *thread* is updating the *adapter*, it crashes because it tries to get items - and I clear the adapter at the start. Apr 20 05:26:46 I could try and only move the clear/adding to the UI thread and do the data processing I need for each item in the background, unlike what I have now - processing + adding, but that will only lower the chance of an UI event happening while it's clearing/adding Apr 20 05:26:49 How do I fix this problem while still not hitting unresponsiveness/ANR? Apr 20 05:26:59 vadi2: you need to synchronize the access to the list with updating it Apr 20 05:27:08 so that accesses don't happen while updates are happening Apr 20 05:27:45 and then notifyDataSetChanged should be called before the "update" is over Apr 20 05:28:09 I'm using an ArrayAdapter Apr 20 05:28:16 I don't control it's private storage element? Apr 20 05:28:36 show some code and describe how you're able to crash it, perhaps include a stacktrace Apr 20 05:29:21 oh, I see, you stated that above. Apr 20 05:29:26 It's pretty reproducible and obvious, so I'm certain that what I've described is the case. Here's the bt: http://pastebin.com/raw.php?i=DwL7D3jQ Apr 20 05:29:27 So, what happens in your onListItemClicked? Apr 20 05:29:37 That's not relevant! Apr 20 05:29:44 uh, how is it not relevant? Apr 20 05:29:48 I'm just scrolling the view up and down, the update comes, and it crashes. Apr 20 05:29:55 ah Apr 20 05:29:58 It does it on the onTouchEvent Apr 20 05:30:04 Which I don't do anything with. Apr 20 05:30:08 it crashes just from scrolling? Apr 20 05:30:10 yeesh Apr 20 05:30:12 Yes. Apr 20 05:30:32 If I'm scrolling while it does this update, it tries to access after I've cleared and before I've added enough elements -> out of bounds Apr 20 05:30:43 see 'Invalid index 19, size is 0' right after I cleared the ArrayAdapter Apr 20 05:30:56 show the relevant code Apr 20 05:31:58 http://pastebin.com/tpzKxAcB . Now what I can do is only thread the item preparation, and add them all on the UI thread - but that'll only lower the risk of this issue happening, not mitigate it Apr 20 05:32:25 ah interesting Apr 20 05:32:44 what if you try not calling setNotifyOnChange and just allowing the arrayadapter to update its UI whenever you do an op on it? Apr 20 05:32:53 I think that is the whole point of having the delegate methods for add, clear, etc. Apr 20 05:33:09 * readme mostly just extends BaseAdapter, so sorry if I misled you with my earlier advice. Apr 20 05:33:21 Hm. Apr 20 05:33:36 I could, I think the only reason I went with this to begin with was because I wanted to make it be quicker (before I threaded) Apr 20 05:33:39 Let me try it. Apr 20 05:33:52 hmm. Apr 20 05:34:01 if you make your own adapter you can be pretty fast Apr 20 05:34:06 try this first though Apr 20 05:34:32 what are you using for lua? Apr 20 05:34:39 android-scripting? Apr 20 05:36:14 no, LuaJava (it hooks with the JNI) Apr 20 05:36:35 There's a nice sample project on github if you want to get started with it - called AndroLua Apr 20 05:36:48 cool Apr 20 05:37:04 *DJs on his phone while waiting for the update* Apr 20 05:37:41 [deXter], hello... Apr 20 05:37:48 hoangtran, it's some kinda project euler similar thing Apr 20 05:37:56 http://www.flickr.com/photos/raindrift/7095238893/in/set-72157629492908038/ Apr 20 05:38:04 Excuse me. You're all wrong. Apr 20 05:38:13 readme: ah man, no, I think it crashes on the first add now because :android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Apr 20 05:38:24 oh well, I guess I wasted an hour or so on topcoder... that seemed kinda lame Apr 20 05:38:28 vadi2: put your updates on the ui thread then Apr 20 05:38:31 So I'll try doing all the adding on the ui thread Apr 20 05:38:33 Yeah Apr 20 05:38:39 <[deXter]> pfn, Are you the developer of qicr? Apr 20 05:38:44 This will work, it might not be very fast. Apr 20 05:38:44 [deXter], yes Apr 20 05:39:02 <[deXter]> pfn, Heh, cool. I was just setting up the server details and I saw your name in the input field. :P Apr 20 05:39:19 eh? it shouldn't default to my name Apr 20 05:39:31 <[deXter]> Nah, it was an example Apr 20 05:39:35 <[deXter]> Which said "m pfn hi there;" Apr 20 05:39:48 I totally did that Apr 20 05:39:50 oh Apr 20 05:39:51 that Apr 20 05:39:58 yeah Apr 20 05:40:11 I probably should change that to someone else in case someone actually tries to use that... Apr 20 05:40:17 spam ftl Apr 20 05:40:17 heh Apr 20 05:40:24 <[deXter]> :P Apr 20 05:40:41 pfn: leave it in for the paid version Apr 20 05:40:43 <[deXter]> Can I make a suggestion to add colored nicks please? Apr 20 05:41:18 dude, implement plugins using DexClassLoader Apr 20 05:41:19 given 16 basic colors, it's hard to really colorize nicks Apr 20 05:41:24 and let use write programs for qicr Apr 20 05:41:35 readme, javascript, I'd implement, dexclassloader, I wouldn't Apr 20 05:41:45 js probably a better idea anyway Apr 20 05:42:32 <[deXter]> pfn, XChat does it well. :) Apr 20 05:42:45 never noticed it if so Apr 20 05:42:56 oh, it's some bluish color Apr 20 05:42:59 kinda worthless Apr 20 05:43:13 <[deXter]> Eh? Apr 20 05:43:14 but if you just want something as a color, I guess I can add that pretty easily Apr 20 05:43:35 maybe my version isn't setup to colorize Apr 20 05:44:10 <[deXter]> pfn, http://i.imgur.com/yMMwD.png Apr 20 05:44:44 I guess I can hash nicks and mod16 it into colors, maybe Apr 20 05:45:11 <[deXter]> In a long screen of text, it's easy to follow conversations Apr 20 05:45:50 http://ezscreens.appspot.com/view/84c4/xchat Apr 20 05:46:23 <[deXter]> Ah, yeah you probably haven't enabled it Apr 20 05:46:26 I'll toss it on the todo list Apr 20 05:46:31 <[deXter]> I suggest you try it out and use it for a while Apr 20 05:46:39 I wanna zebrastripe, colorize some basic messages Apr 20 05:46:45 can anyone point me a decent tutorial on how to create a standard application layout wrapper view? Every page of my app should have the same header and footer, and just the middle content changes… Apr 20 05:46:46 readme: well now the actual adding only takes 20ms, and twice it didn't crash, so I'll leave it at that until I run into it Apr 20 05:46:48 and implement more stuffs Apr 20 05:46:54 readme: success. Apr 20 05:47:02 don't really have time in the near future, though Apr 20 05:47:54 * pfn wishes he could just be on vacation Apr 20 05:50:47 * pfn looks for more ways around type erasure Apr 20 05:53:44 ok Apr 20 05:54:27 \o/ Apr 20 05:54:35 hello , if one were to start developing an android app now for both mobiles and tablets (android) , would it make sense to start with the ics or previous versions ? Apr 20 05:54:51 i assume there's backward compatibility for majority of things Apr 20 05:55:10 .if this is really FAQ, should I go take a look at docs or FAQ section for android ? instead Apr 20 05:55:47 also I hear there's unification of tablet/mobile resolution. so, i assume it starts with the ics or beyond . am i right? Apr 20 05:58:02 Mavericks: you should target 2.1+ or 2.2+ for phones, and 3.X+ for tablets Apr 20 05:58:11 if you want to hit a large majority of devices Apr 20 06:00:55 Leeds: thanks for that information Leeds Apr 20 06:02:34 Mavericks: I would say it's all from the resources tab on d.android.com - but it appears to be broken right now Apr 20 06:06:32 I shall keep that in mind. what about backward compatibility ? if I realize most users are not going to use 2.1 or 2.2 + anymore and move to 4.0 , for example, the low-end phones( despite price of http://www.themobileindian.com/handset-guide/details/MTS-MTAG-3.1 suffers from battery drain . no battery saver doesn't or any such app doesn't help at all) has froyo on it Apr 20 06:07:03 Mavericks: most users are on 2.2 and 2.3 Apr 20 06:07:41 very few are on 4.0 actually Apr 20 06:07:43 there is a graph on d.android.com which shows the breakdown of users across versions - except, as I said, that page seems to be broken Apr 20 06:07:51 2 year contract :) Apr 20 06:08:12 http://developer.android.com/resources/dashboard/platform-versions.html Apr 20 06:08:14 its working for me Apr 20 06:08:18 http://developer.android.com/resources/dashboard/platform-versions.html Apr 20 06:08:27 yeah, it works if you go direct, but the links on the left are dead Apr 20 06:08:32 ah Apr 20 06:08:43 I usually let google be my global navigation to every page of every site Apr 20 06:08:44 not so much dead Apr 20 06:08:46 as non existant Apr 20 06:09:28 well, yeah Apr 20 06:17:47 Hi all...i want to get the applicationname using pacakage name, i tried pm.getapplicationinfo(packagename, 0) but it returns null... please any body help me how to get..thanks Apr 20 06:18:48 Did you spend 2 seconds on google? :P Apr 20 06:20:58 Mikellip: did you? perhaps you could share the link you found. Apr 20 06:21:45 https://www.google.com/search?q=android+getting+application+name+using+package+name&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a Apr 20 06:21:53 http://stackoverflow.com/questions/5841161/get-application-name-from-package-name Apr 20 06:22:18 YW :-P Apr 20 06:22:55 that's the spirit. Apr 20 06:26:17 i bet during i/o they will announce jb Apr 20 06:26:29 whats jb? Apr 20 06:26:35 jelly bean Apr 20 06:26:54 son of a bitch, already Apr 20 06:27:34 http://www.techradar.com/news/phone-and-communications/mobile-phones/android-key-lime-pie-set-to-topple-jelly-bean-1068635 Apr 20 06:28:06 well I'm glad android update alliance is well ready for it g00s Apr 20 06:28:26 huh, android update alliance? Apr 20 06:28:30 when is i/o? Apr 20 06:28:42 wasn't the update alliance announced at the last one? Apr 20 06:28:51 dunno, i wasn't there. Apr 20 06:28:58 wabz: you're funny :D Apr 20 06:29:12 is there really an "update alliance" because I've never heard of it, lol Apr 20 06:29:16 "Could Key Lime Pie bring together not only tablets and mobiles, but also computers to create an uber operating system for all platforms?" Apr 20 06:29:38 well, to compete with wp and ios i would imagine they would have to consider this - Apr 20 06:29:47 but, i relly dont see how they will do it Apr 20 06:29:59 anyhow , readme - it was announced at i/o 2010 Apr 20 06:29:59 I don't think I'd want to use android as a workstation. Apr 20 06:30:15 but , it was not in writing, kind of a "gentleman's aggrement" Apr 20 06:30:18 g00s: I'm more interested in whether it actually manifested into any serious force Apr 20 06:30:31 readme: no, it did not Apr 20 06:30:34 because my guess is that OEMs aren't going to care too much about updating ever Apr 20 06:30:40 since it doesn't sell more phones Apr 20 06:30:43 or more contracts Apr 20 06:30:45 yeah Apr 20 06:31:09 man, i'm reading that the current windows phones aren't getting updated to apollo - ms is in the same shit boat Apr 20 06:31:15 another developer I talked to makes release builds, saves them Apr 20 06:31:23 because he develops faster then he wants to release on the market Apr 20 06:31:29 I bet GOOG also does this with OEMs Apr 20 06:31:41 jbq said 8 mos Apr 20 06:32:07 so something gets announced possibly at i/o, you'll see devices (other than nexus) no sooner than 8 mos Apr 20 06:33:05 its going to be hard making a desktop advertising platform :D Apr 20 06:33:38 Fragments question: is there some sort of onResume() equiv on a fragment that has previously lost focus but is now back up the top of the stack? Apr 20 06:33:48 i also get the impression, the android team is not really staffed heavily Apr 20 06:33:57 not compared to say, ios or wp Apr 20 06:34:58 android will dominate Apr 20 06:35:04 i wonder what the status of the oracle lawsuit is now Apr 20 06:35:09 they were just in court Apr 20 06:35:57 i'm still optimistic on ms; they have the best enterprise ecosystem Apr 20 06:36:18 * g00s hasn't used a ms technology for a long ass time Apr 20 06:36:39 damn, why is everyone who writes about these issues misinformed Apr 20 06:36:55 the first hit on oracle lawsuit android has some fearmonger saying "Google will have to rewrite android from scratch!" Apr 20 06:36:55 omg! Apr 20 06:36:57 http://www.neatorama.com/2012/04/19/hamburger-with-1050-strips-of-bacon/ Apr 20 06:37:18 that is hrrobile Apr 20 06:37:27 seeing that actually makes me not want to eat bacon Apr 20 06:37:46 hehe Apr 20 06:38:37 Main ingredient in bacon, sausage and red meat in general is c-a-n-c-e-r Apr 20 06:38:49 * t0mless disagrees Apr 20 06:38:57 http://store.baconsalt.com/Bacon-Coffin_p_118.html Apr 20 06:39:12 haha Apr 20 06:39:22 should I worry for G, vs O Apr 20 06:39:33 not much you can do about it Apr 20 06:39:35 so why worry Apr 20 06:40:01 It's just science/statistics... vegetarians and people who eat less of that live longer and get cancer to a lesser degree (it's a 10-20% difference) Apr 20 06:40:03 err, maybe I'll need to come back to .NET Apr 20 06:40:21 If oracle won, I don't see why they would not just work out financial remuneration from Google Apr 20 06:40:37 why would they kill a great thing for so many people? I don't see a point. Apr 20 06:41:15 readme: link? Apr 20 06:41:25 http://www.cbsnews.com/8301-501465_162-57415793-501465/google-oracle-lawsuit-continues-as-larry-page-takes-stand/ Apr 20 06:41:27 ty Apr 20 06:41:40 Mikellip, classic correlation != causation case. Read the followups to the red meat kills you articles Apr 20 06:42:45 ^ Apr 20 06:42:54 anyway, i'm going to bed Apr 20 06:42:58 goodnight nerds Apr 20 06:43:54 Just like smoking is a classic correlation = causation? :-P Apr 20 06:43:59 or =~ Apr 20 06:43:59 leeds andand somebody who helped me earlier Apr 20 06:44:10 thansk for that info. i jsut got disconnected due to network signal issues Apr 20 06:44:11 back now Apr 20 06:46:13 how does one take care of backward compatibility issues, if 2.2,2.3 + for mobile and 3.3+ on tablet needs to be considered for targeting majority of devices? Apr 20 06:46:43 is there an irc log for this channel ? Apr 20 06:46:47 No Apr 20 06:47:00 You make your app aware of what device it's running on and handle accordingly? Apr 20 06:47:11 and use the resource modifiers to your advantage Apr 20 06:47:27 Even if Google lost the trial, how would it affect android as an open source project? Apr 20 06:47:41 amazon puts it to pretty good use, for example. Apr 20 06:48:22 I doubt oracle will win. Apr 20 06:48:38 android started *before* they even bought sun. and sun's old CEO will testify on google's behalf. Apr 20 06:48:47 I doubt that G will come out of this without paying a cent Apr 20 06:50:06 Stupid of Oracle. Why would you try to hurt someone for making "your language" more popular? Apr 20 06:50:54 And do they actually have any claim that may hold water? Apr 20 06:51:00 Using the ICS built-in app debugging that the emulator has - how can I actually launch the app once I've selected it? Or I just go and launch it as I would normally? Apr 20 06:51:42 emulator has built in app debugging? Apr 20 06:51:59 ICS got extended features for debugging Apr 20 06:52:00 I always just attach the debugger from IntelliJ after loading my app Apr 20 06:52:02 dev tools -> development settings Apr 20 06:52:35 For example, you can flash the screen if you do heavy UI operations, as a warning, etc Apr 20 06:52:37 It's quite good Apr 20 06:52:49 Once I select the app, what do I do? Apr 20 06:52:51 oh Apr 20 06:52:56 that has been there before ICS Apr 20 06:53:17 Oh really? I didn't notice before ICS, on my phone :) Apr 20 06:53:22 uh Apr 20 06:53:27 in the emulators Apr 20 06:53:28 actually oracle has a pretty good case Apr 20 06:53:30 check this out Apr 20 06:53:37 http://www.eweek.com/c/a/Application-Development/Why-Oracle-Believes-Google-Stole-Java-for-Android-Development-222550/ Apr 20 06:53:46 mainly due to the fact that google admitted they needed to license java, and never did. Apr 20 06:53:55 ah ... Apr 20 06:54:55 1 billion dollars... sounds like dr Evil Apr 20 06:58:41 'Show CPU usage for some reason doesn't want to enable (I tick it and it stays off) Apr 20 07:00:30 ""I met with [former Google CEO, now Executive Chairman] Eric Schmidt in 2010 to discuss a joint project in which Google would use Oracle's version of Java in its Android software for smartphones rather than their own version of Java." Apr 20 07:00:31 lol Apr 20 07:04:58 Oh yes, capitalism working for consumers right there! Apr 20 07:05:42 Let Judge Judy decide Apr 20 07:05:53 the problem here isn't capitalism. it's IP law and patents. Apr 20 07:06:04 agree Apr 20 07:06:11 imho, a market is not truly free when you can go "claim dibs" on an idea with the government. Apr 20 07:06:34 it's arrogant to assume that another human brain hasn't generated the same freaking idea anyway. Apr 20 07:07:05 Does anybody know how to make something like this http://i40.tinypic.com/2zqu7hj.png in java for android? Apr 20 07:07:19 You can even patent genes -.- Apr 20 07:07:22 ideas aren't magic, they come from the collective knowledge that is passed down to you by other humans... lets share. Apr 20 07:07:36 what matters is execution Apr 20 07:07:48 without the work to make it happen an idea is utterly useless. Apr 20 07:08:27 Kisho: you really need to specify what you want to do Apr 20 07:34:00 Time to add a preferences menu to my ABS-powered app: how would I go about this? Add the link to it in the ActionBar? Apr 20 07:34:23 preferences should just be an item in the options menu Apr 20 07:34:28 don't make them an action item Apr 20 07:34:38 options menu of the action bar? Apr 20 07:34:44 if the device has no hardware menu key, it will show up in the actionbar's overflow Apr 20 07:34:52 the actionbar basically uses the options menu. Apr 20 07:35:46 Alright. I take you're referring to http://developer.android.com/guide/topics/ui/menus.html#options-menu ? Apr 20 07:35:53 yeah Apr 20 07:35:58 Okay Apr 20 07:47:15 hi all. Is there an easy way to get the primary key of the the row preventing a new row from being inserted due to unique constraints? CONFLICT_IGNORE somehow doesn't do it Apr 20 07:48:45 use ormlite Apr 20 07:49:01 save yourself the trouble ;) Apr 20 07:49:31 I'm going to implement a multiplayer mode to my app game that already is finished regarding singleplayer.. other than the traditional email+password registration, what are the possibilities for identification that does not require the app to read the address book etc? (I only want the internet permissions as it is today.) iirc there's no way to get an automated unique ID from the device/google? :( Apr 20 07:50:00 xertoz: generate UUID, save in shared preferences? Apr 20 07:50:36 you are right that you will not find a reliable UUID on an Android device unless you create it yourself. Apr 20 07:50:41 and it might as well just be random. Apr 20 07:51:02 externally? I never found a UUID process that does not collide on the device - external generation does solve it however if the phone/app is reset games will be lost. minimal problem though Apr 20 07:51:39 i seriously doubt you're going to see collisions of UUIDs Apr 20 07:51:50 that's why they're called UUID Apr 20 07:52:03 chups, haha no the project is already too advanced to change the backend to orm lite. Besides I like to get my hands dirty with SQL Apr 20 07:52:20 It keeps me in practice Apr 20 07:52:21 well, I could just use the online server to generate that which means it makes sure there are no collisions Apr 20 07:52:53 (I don't like the /possibility/ of collisions, since if they happen it's a nasty report from users to debug) Apr 20 07:52:59 If they're going to need to use the server to play anyway, why not. Apr 20 07:53:22 yeah, they must have internet access whenever using it anyways Apr 20 08:18:02 Is anyone aware of any phones that run honeycomb? Because I personally don't know of any and my searches are turning up mixed results. Apr 20 08:18:26 I thought the reason it wasn't open-sourced was because they didn't want anyone trying to put it on a phone. Apr 20 08:19:00 I don't know. I don't read a lot of tech news and I never purchased a honeycomb device. Apr 20 08:19:05 Well, the public reason. Speculation says otherwise. Apr 20 08:19:06 hi Apr 20 08:19:28 I'm writing an app that is strictly for phones Apr 20 08:19:46 I should say, already wrote. Working on a new release. Apr 20 08:19:51 I had one for renderscript development. There were a lot of bugs. Apr 20 08:20:12 I had a 2.3 tablet. I will be getting an ICS tablet soon. Apr 20 08:20:22 if i develop an app using level api 14 (Android 4.0), why is it runnable on device with Android 2.3 ? Apr 20 08:20:28 (my tablet broke, bad design on the USB port) Apr 20 08:20:47 ech0s7: because unless your app uses APIs that are not in 2.3, there is no reason why it will not run. Apr 20 08:20:59 Does the SDK detect this? Apr 20 08:21:04 you can have a target sdk and a minsdk Apr 20 08:21:29 if you changed your targetSdk variable, it would Apr 20 08:21:49 see Apr 20 08:22:23 I mean, when you build, it could scan through and see what you've depended on, despite what you declared, and if it could tweak the numbers down a bit then it might do it automatically. Apr 20 08:22:40 so i can theorically have target 4.0 and min sdk 2.3 ? Apr 20 08:22:45 yeah, there should be a feature Apr 20 08:22:55 Unless there's a reason you might mandate a version outside of what APIs you depend on. Apr 20 08:22:55 ech0s7: not theoretically. practically. Apr 20 08:23:01 for real dude :) Apr 20 08:23:09 my app targets 15 but min is 8 Apr 20 08:23:21 just make sure you test it on devices that have api level 8 :) Apr 20 08:23:37 you can even do different stuff using the Build.VERSION.SDK_INT variable Apr 20 08:23:51 readme, and when i got error if i use a function introduced in 4.0 ? during install ? or at compile time ? Apr 20 08:24:06 you'll get a ClassNotFoundException and your app will crash Apr 20 08:24:18 or MethodNotFound or something Apr 20 08:24:24 depending on what was not found :) Apr 20 08:24:31 runtime exception, hmmm… bad Apr 20 08:24:38 yeah, so make sure you test :) Apr 20 08:24:51 developing just for ICS is not going to get you many users Apr 20 08:24:53 ok, thanks so much Apr 20 08:24:56 np Apr 20 08:25:04 Can I use a checkbox to manage wich methods should be included in the oncreate method? Like if button 1 is checked then include method1(); ? Apr 20 08:30:21 helly^: if/then/else familiar? Apr 20 08:31:18 helly^: what do you mean by "include"? Apr 20 08:32:55 yes Apr 20 08:33:53 Well. In my app I've created the overlays in their own methods (don't know if that is the correct term). And to initiate them I "add " them to the oncreate . like myoverlay(); Apr 20 08:34:16 But I want to be able to choose wich overlay to ... overlay the map Apr 20 08:35:00 So just do it when certain conditions is met - if/then/else, what is the problem? Apr 20 08:35:34 are met* Apr 20 08:35:36 probably storing the state of the checkboxes is the missing link here. have a look at SharedPrefrences. Apr 20 08:37:00 need to switch back & forth between IDEA & BB JDE, it's like jumping from heaven to hell & vise versa Apr 20 08:37:26 I've created different checkboxes etc. The only this I'm not sure about, is how to input the myOverlay(); if the box is checked Apr 20 08:37:27 When I had to do blackberry development I jumped through a few hurdles to get it working in eclipse instead. Apr 20 08:37:34 it wasn't easy to get eclipse set up for bb dev, but I did it Apr 20 08:38:19 I mean, how can I print myoverlay(); into the oncreate method? Apr 20 08:39:03 helly^: you can't modify your code at runtime. you need to use a conditional statement like if. Apr 20 08:39:36 you can load code at runtime, but that's certainly beyond the scope of this convo. Apr 20 08:39:47 are you sure you're familiar with conditional statements in java? Apr 20 08:40:29 <`teh1> anyone know why Long.parseLong("-10495867495"); gives an invalid number exception? Apr 20 08:40:43 <`teh1> rather, invalid int Apr 20 08:40:45 <`teh1> but meh Apr 20 08:40:53 readme: Fairly new to Java tbh. Got any pointers? Apr 20 08:41:08 <`teh1> oh wait Apr 20 08:41:10 <`teh1> fack Apr 20 08:41:26 helly^: reading a java book, like Thinking in Java would help. Apr 20 08:41:31 and don't skip anything. Apr 20 08:41:43 i'm still highly annoyed that android doesn't scale images up beyond a limit set by the drawable Apr 20 08:42:42 probably to constrain memory usage... can't you scale a subimage instead? Apr 20 08:43:03 what's a subimage? Apr 20 08:44:00 readme: Thanks. I'll read up then Apr 20 08:44:03 let's say my image is 40x40.. android rescales the background image to e.g. 64x64 Apr 20 08:44:11 background drawable that is Apr 20 08:44:25 np, just be patient. android is not going anywhere. Apr 20 08:44:54 by that I mean it is here to stay for a long time, i'm fairly certain of it. Apr 20 08:45:00 then if my screen is e.g. 800 pixels and i set the imageview to width="fill_parent", height="wrap_content" adjustViewBunds="true" and scaleType="centerInside" it doesn't scale up to screen width Apr 20 08:45:07 even if i'd be ok with blurry pixels.. Apr 20 08:45:34 maybe there's a third party imageview class that does it.. Apr 20 08:48:13 morning Apr 20 08:50:23 i wonder what the hell the reasoning of the android devs was for this weird behaviour Apr 20 08:50:46 it's pretty much the only platform that doesn't allow upscaling of images to fill the screen width :D Apr 20 08:51:13 sure i could set the image to the background of the view, but then aspect ration conservation doesn't work.. Apr 20 08:57:54 tapas: you could stick the image in a webview.. maybe that would do the trick. Apr 20 08:58:39 morning RobinB Apr 20 08:59:56 readme: oh, good point :D Apr 20 09:00:16 i wonder how the memory consumption compares though ;D Apr 20 09:01:01 oh shit! diablo 3 open beta this weekend. so much for getting anything done ... Apr 20 09:02:27 before i can do that though i have to resolve a question i had earlier.. Apr 20 09:02:44 Why doesn't ImageView scale by default? Apr 20 09:02:46 the stuff i'm working on is packaged as a library to be used by another team halfway across the globe.. Apr 20 09:02:48 Is that your question? Apr 20 09:02:59 readme: nope :D Apr 20 09:03:04 good I didn't like that question Apr 20 09:03:07 :D Apr 20 09:03:37 so to test if everything turns out allright in the end i have acreated two android projects.. one is the library and the other is small test app Apr 20 09:03:52 RobinB: I'll be super productive on the count that my OS doesn't run any good games. I wonder why ubuntu doesn't slip that into their whitepapers. Apr 20 09:04:15 when i puts assets into the library's assets folder and lateron run the main test app, the asset lookup fails Apr 20 09:04:48 for an example on how to test a library project, see mine Apr 20 09:04:50 https://github.com/tom-dignan/Android-OpenCNAM-Library Apr 20 09:05:06 I use an intermediate app, that I call a teststub and I just put a global application getter in there Apr 20 09:05:30 readme: but in principle it's possible for a library to ship assets on its own| Apr 20 09:05:33 ? Apr 20 09:05:39 what do you mean? Apr 20 09:05:54 you mean resources or /asset dir or what Apr 20 09:06:05 files in the assets/ directory.. Apr 20 09:06:28 nope Apr 20 09:06:37 http://stackoverflow.com/questions/6346889/how-to-reference-an-asset-in-a-library-project see the first answer Apr 20 09:06:44 readme: oh thanks :D Apr 20 09:07:11 resources do work though, so maybe you can use res/raw. Apr 20 09:07:38 will read up on that.. Apr 20 09:07:42 thanks for the pointers Apr 20 09:09:05 interesting in this context: http://stackoverflow.com/questions/2630829/android-display-res-viewable-in-webview Apr 20 09:09:08 XD Apr 20 09:09:30 awesome Apr 20 09:10:34 you can probably also do it by using the mime type Apr 20 09:10:49 http://developer.android.com/reference/android/webkit/WebView.html#loadData(java.lang.String, java.lang.String, java.lang.String) Apr 20 09:11:10 second parameter should be say, image/jpeg, and String data should just be base64 encoded image Apr 20 09:11:59 but your first solution looks easier. hopefully it works on all your target devices easily. Apr 20 09:12:08 Hi, I added some buttons to my app and when I try to compile it, the R class creates a filed that is not used anywhere in ID. This -> public static final int in=0x7f040000; Apr 20 09:12:09 in is grey Apr 20 09:14:03 readme: yeah, me, too Apr 20 09:15:23 Error is: packet R does not exist Apr 20 09:16:23 Tsukaza: if you are in a package other than your application's default package, you will need to import your R Apr 20 09:17:14 readme: The project was working perfectly. Im working on it like for 7 days. I just added 3 new buttons in main.xml, string.xml and some code in the main.java class and bang! R does not exist Apr 20 09:17:31 Tsukaza: there is an error somewhere in your XML that is causing R not to be rebuilt Apr 20 09:17:38 find the error, then build clean Apr 20 09:17:44 check the problems view Apr 20 09:17:45 yeah I checked all the XML, I dont see the error :7 dammit Apr 20 09:18:04 if there is any error in your project anywhere it can cause R not to be built. Apr 20 09:18:13 window -> show view -> problems Apr 20 09:18:48 im using IntelliJ btw Apr 20 09:18:54 oh. Apr 20 09:19:28 I tried to switch to intellij a couple days ago but I found bugs so I filed them and am waiting for the community to fix Apr 20 09:19:37 * readme linux Apr 20 09:19:48 lol Apr 20 09:20:03 the xml are correct I just checked them all Apr 20 09:20:11 try building with ant on the command line Apr 20 09:20:13 "ant debug" Apr 20 09:20:25 android update project -p . -t Apr 20 09:20:31 then ant debug Apr 20 09:20:38 in your project root Apr 20 09:21:10 k, sec Apr 20 09:24:18 cant execute those Apr 20 09:25:03 compile errors? Apr 20 09:25:09 or you don't have ant Apr 20 09:25:46 if you're going to use an unsupported IDE, you might as well know how to do this http://developer.android.com/guide/developing/building/building-cmdline.html Apr 20 09:26:24 ty Apr 20 09:28:56 readme: I had to create the project from existing sources,etc and it worked ;) Apr 20 09:28:57 Ty mate Apr 20 09:29:09 import problems :/ Apr 20 09:29:23 np Apr 20 09:43:57 anyone use ksoap on your android project? Apr 20 09:45:20 what could this mean 04-20 09:43:43.841: E/AndroidRuntime(2477): Caused by: android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed Apr 20 09:46:01 inserting into some table with fk? maybe Apr 20 09:46:08 hoangtran: i have worked on a project that used ksoap2, but wasn't personally responsible for that part of the code. Apr 20 09:48:14 I've got some "java.net.SocketTimeoutException: Read timed out" on call to "org.ksoap2.transport.HttpTransportSE.call()" sometimes. Googling Apr 20 09:49:17 is it possible to write a custom lint check? I've written a library and I'd like to add some checks to make sure it's being used properly Apr 20 09:49:56 i did write a widget that works well under android 2.1 but it isnt in the widget screen on android 4.03 is there some magic line needed ? Apr 20 10:00:46 storkme_: what is the usage that you are trying to restrict? Apr 20 10:01:08 I looked at lint and I think the checks are compiled in. Nothing in the docs says you can make a custom check, although it's a cool idea. Apr 20 10:02:54 yeah, I think it'd be quite a nice feature.. I might file a feature request Apr 20 10:03:26 How can I disable the keyboard on the BluetoothChat example taken from android developers website?? Apr 20 10:04:06 readme: the library is for a sort of logging, tracking custom events and fragment/activity creates/destroys, if a logging call is made in onCreate without a corresponding 'finish' call in onDestroy, the behaviour would be odd. Apr 20 10:07:00 what happens in your "finish" call? Does it save data? Apr 20 10:10:14 modifies a record in a table Apr 20 10:10:52 anyone? Apr 20 10:10:54 any idea? Apr 20 10:11:15 storkme_: not to burst your bubble, but onDestroy might be a bad place to put that Apr 20 10:11:19 http://developer.android.com/reference/android/app/Activity.html#onDestroy() Apr 20 10:11:28 i would put that in onPause Apr 20 10:12:31 it's safe I guess, if the data isn't important. Apr 20 10:14:50 well actually it passes a request off to a service which then processes it, so I think it should be okay Apr 20 10:16:03 "There are situations where the system will simply kill the activity's hosting process without calling this method" Apr 20 10:17:32 just sayin'. do whatever you want. Apr 20 10:17:50 how bizarre Apr 20 10:18:06 yeah, I think it's a crappy method. Apr 20 10:19:05 saying that I think I'm using onPause already Apr 20 11:17:28 to get the javax package, I need to download the Java SDK right? if so, should I get the latest version - Java SDK 7? Apr 20 11:17:43 and if I want it for android, but am developing on windows, do I download the windows version or the linux one? Apr 20 11:20:26 windows Apr 20 11:23:22 k Apr 20 11:23:58 jdk7 does work with adt by my experience Apr 20 11:25:30 alankila: adt? Apr 20 11:25:35 this may be the most disgusting game i've ever heard of Apr 20 11:25:36 android development tools Apr 20 11:25:39 for eclipse Apr 20 11:25:40 http://www.amazon.com/Room-Candy-Games-Pimple-Seasons/dp/B007693VXG/ref=zg_bs_mobile-apps_2 Apr 20 11:25:57 alankila: which version should I get then? Apr 20 11:26:31 Xix19: don't understand the question. Apr 20 11:26:47 which version of jsdk works with adt? Apr 20 11:26:58 6 or 7, I imagine. Apr 20 11:27:45 alankila: "or 7"? but you just said 7 doesn't work with adt Apr 20 11:27:54 Hi all Apr 20 11:28:01 No, I did not. I said "jdk7 does work with adt" Apr 20 11:28:08 hence why I did not understandyour question. Apr 20 11:28:24 jdk and jsdk are not the same thing? Apr 20 11:28:42 missing one s, but otherwise the same. Meaning I suspect so. Apr 20 11:28:53 It's usually called jdk on the filesystem Apr 20 11:29:01 but maybe the marketing talks about it as java sdk. Who knows. Apr 20 11:29:19 ok. so does JDK7 work with adt? Apr 20 11:29:36 oh Apr 20 11:29:53 wait, nvm. I read your previous sentence wrong Apr 20 11:32:31 ok i have JDK7 installed, how can I add it to my project? Apr 20 11:33:13 you have a project already? Apr 20 11:33:19 alankila: yes Apr 20 11:33:30 an eclipse project? Apr 20 11:33:44 yes, a new android project Apr 20 11:33:49 in eclipse Apr 20 11:34:00 well... then you already had a jdk, I guess. Why did you download 7? Apr 20 11:34:49 07:32 < Xix19> ok i have JDK7 installed, how can I add it to my project? Apr 20 11:34:52 you don't Apr 20 11:35:19 well I have this in my project: "import javax.imageio.ImageIO;" Apr 20 11:35:32 but it says it can't solve it Apr 20 11:35:43 it's not part of the android sdk Apr 20 11:35:46 yes, well, installing jdk7 will not do anything about that Apr 20 11:36:02 it was already part of jdk6. And yes, it doesn't work because this library is not there on android Apr 20 11:36:08 if you want to port java libraries to android, be our guest, but we can't support it Apr 20 11:36:18 http://developer.android.com/resources/tutorials/hello-world.html < Xix19 make this tutorial Apr 20 11:36:39 you can then more understand the android coding Apr 20 11:38:43 this is my second android project, done lots of tutorials I think including this one Apr 20 11:39:11 I just don't get what I have to do to make that import work, and this tutorial doesn't cover that as far as I can see Apr 20 11:39:29 Xix19: that class is *not in the android sdk* Apr 20 11:39:31 I am going to suspect that there is nothing you can do to make it work. Apr 20 11:39:52 d.android.com has an index of all the classes you can use. Apr 20 11:39:53 I am trying to follow this tutorial: http://www.richardnichols.net/2011/01/java-facial-recognition-haar-cascade-with-jjil-guide/ Apr 20 11:39:55 at first approximation this is the truth. If you are very advanced, I suppose you could separate the ImageIO from official jdk and make it work on android too, but can't recommend this course of action. Apr 20 11:40:24 Xix19: did you include the jars? Apr 20 11:40:27 from the tutorial? Apr 20 11:40:35 readme: yes Apr 20 11:40:51 Xix19: they have dependencies on that javax.imageio.ImageIO, though. Apr 20 11:40:55 and android doesn't have that. Apr 20 11:40:59 they reference the jars for JJIL which I have imported succesfully, now I need the other 2 imports Apr 20 11:41:28 you need to provide it Apr 20 11:41:31 how you do that is up to you Apr 20 11:41:35 you could code your own, even. Apr 20 11:41:51 but you might be able to just find one that can be dropped in... I don't know. Apr 20 11:42:02 you might want to try opencv instead Apr 20 11:42:06 it may be easier to get working Apr 20 11:42:08 http://code.google.com/p/jjil/downloads/list has some android specific jars Apr 20 11:42:22 tada Apr 20 11:42:24 hmm Apr 20 11:42:26 all dates are in 2008 Apr 20 11:42:58 well, maybe that doesn't matter. Perhaps it was perfect already in 2008 :-p Apr 20 11:43:14 alankila: interesting, gonna try that Apr 20 12:01:41 is there any hotkey to show onscreen keyboard in the emulator Apr 20 12:02:51 http://developer.android.com/guide/developing/tools/emulator.html Apr 20 12:05:01 there seems to not be any keyboard Apr 20 12:05:16 joelmob: the keyboard is shown when you click a view that requires the keyboard Apr 20 12:05:25 like an EditText Apr 20 12:05:35 it is the same on a real device Apr 20 12:05:35 yeah. but why would you like to show the keyboard if nothing is there that requires one Apr 20 12:05:49 :) Apr 20 12:05:57 confusion Apr 20 12:07:00 so if an EditText doesnt require the keyboard, the user cant do any input? Apr 20 12:07:18 an edittext requires keyboard if you click it Apr 20 12:07:42 this is what im doing in the emulator, im clicking on an edittext Apr 20 12:07:58 and nothing happens? Apr 20 12:08:19 the edittext get focused, but no onscreen keyboard appears Apr 20 12:08:31 maybe your emulator got hardware keyboard? Apr 20 12:08:46 or your xml for edittext missing some? Apr 20 12:10:20 ye it has a hardware keyboard, ok then its probably in emulator options somewhere Apr 20 12:10:21 thanks Apr 20 12:10:34 :) no problem Apr 20 12:17:02 hello :) Apr 20 12:25:55 I've got a ImageButton on top of a VideoView (For skipping the video). The ImageView drawable is a transparent png. When the video starts playing the transparent png doesn't blend correctly with the movie. Apr 20 12:32:37 when signing up for a dev account does it accept paypal as a payment option? Apr 20 12:33:14 (couldnt see the option for it) Apr 20 12:33:22 payments are through google checkout Apr 20 12:33:41 I managed to import almost everything needed to get FaceDetect-Android to work, but I get this: "Project has no project.properties file! Edit the project properties to set one." Apr 20 12:33:54 but what about the initial payment of 25$ readme Apr 20 12:34:23 you cant just pay with paypal and then setup google checkout after to recieve download moneys? Apr 20 12:34:38 to use google checkout you need a bank account Apr 20 12:34:44 what your point? Apr 20 12:35:11 I tried adding it manually from another project (it has some comments and the line "target=android-10"), but I still get the error Apr 20 12:35:18 Xix19: android update project -p . -t Apr 20 12:35:26 from inside the project root Apr 20 12:35:32 readme: how do I do that from Eclipse? Apr 20 12:35:36 i'm on windows Apr 20 12:35:41 or right click project -> android tools -> fix project properties Apr 20 12:35:53 no worries,setting up another account for a friend, i thought when i did it i setup google checout afterwards Apr 20 12:35:58 got muddled up, thanks anyway Apr 20 12:36:33 readme: hmm, doesn't seem to do anything Apr 20 12:36:42 readme: I have 2 other errors, maybe because of that? Apr 20 12:36:47 Xix19: what are they Apr 20 12:37:08 "The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project " Apr 20 12:37:24 Project -> Clean.. Apr 20 12:37:30 "The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files R.java /FaceDetect-Android/src/jjil/app/facedetect line 1" Apr 20 12:38:28 when running Project > Clean i get an error about missing /gen folder: http://pastebin.com/uiRJamwn Apr 20 12:39:15 Xix19: did you create an android project? Apr 20 12:39:29 if so, right click the project and select a build target under project properties -> android? Apr 20 12:39:42 ok, I added the /gen folder manually and the Clean worked Apr 20 12:39:55 why it doesn't just create it automatically is beyond me Apr 20 12:39:56 how can i use scrollable widgets? Apr 20 12:40:04 I opened an existing project, I didn't create it myself Apr 20 12:40:25 it works now though? Apr 20 12:40:46 I still get "Project has no project.properties file! Edit the project properties to set one." and the project -> android tools -> fix project properties does nothing at all Apr 20 12:41:00 do you have a build target selected? Apr 20 12:41:02 nothing appears when I click that, the error is not resolved Apr 20 12:41:21 where do I set the build target? Apr 20 12:41:24 I just told you Apr 20 12:41:26 read it Apr 20 12:41:35 oh ok Apr 20 12:42:37 Android 2.3.3 was already selected Apr 20 12:43:37 [2012-04-20 14:40:29 - HelloAndroid] Android Launch! Apr 20 12:43:37 [2012-04-20 14:40:29 - HelloAndroid] adb is running normally. Apr 20 12:43:37 [2012-04-20 14:40:29 - HelloAndroid] Could not find HelloAndroid.apk! Apr 20 12:43:40 but under Java Build Path, Libraries tab, one of the entries says "Unable to get system lybrary for the project" Apr 20 12:44:02 :( Apr 20 12:46:33 I have installet Eclipse 4.1, jdk 6, android sdk and download the android Tools folder and Android 4.0.3 folder in the Android SDK Manager. that right or not? Apr 20 12:47:21 Xix19: try: right click, build path, libraries tab, add library, android classpath container, select your project & click finish Apr 20 12:48:50 MarcAurelio: try project -> build clean. i don't think anything is that wrong with your setup. make sure the apk is in /bin Apr 20 12:48:57 I need to go take a nap Apr 20 12:49:08 readme: that worked, although I had to remove the manually created /gen folder first Apr 20 12:50:17 now I only have 2 new errors: "The type R is already defined R.java /FaceDetect-Android/gen/jjil/app/facedetect line 10" Apr 20 12:50:31 and the other is a simple unhandled exception Apr 20 12:51:17 should I just delete the E.java file? Apr 20 12:51:20 R.java* Apr 20 12:54:46 i deleted it and solved second error, but now I get this runtime error: "WARNING: Application does not specify an API level requirement! Device API version is 10 (Android 2.3.3)" Apr 20 12:55:54 hmm, actually that's just a warning. the actual error is: Apr 20 12:56:05 "java.lang.RuntimeException: Fail to connect to camera service" Apr 20 12:58:50 how do i start an emulator with "-verbose" flag? Apr 20 12:59:17 .... Apr 20 12:59:55 I have a Samsung Galaxy S2 with a working camera. thw line that gives the above error is "this.camera = android.hardware.Camera.open();" Apr 20 13:00:00 I want to encode a string to base64 string. Do I need to convert the string to bytes first then convert the byte array to string using base64.encode? Apr 20 13:00:31 lov: Is it possible to do so from the AVD Monitor? Apr 20 13:01:11 probably. Apr 20 13:01:22 Xix19: did you request permissions for the camera? Apr 20 13:01:26 have you looked at the logcat output? Apr 20 13:01:41 lov: probably? Apr 20 13:01:46 lov: that error is from the logcat output Apr 20 13:01:55 Xix19: ok. Did you request permissiosn for the camera? Apr 20 13:02:04 everythingWorks: yes, probably. You're the engineer. Look at the docs for AVD. Apr 20 13:02:12 lov: I'm trying to get an existing project to work, where do I check if it has requested permission? Apr 20 13:02:14 look on google for "emulator avd verbose" Apr 20 13:02:17 Xix19: .... Apr 20 13:02:20 okay :) Apr 20 13:02:22 Xix19: look in the manifest. Apr 20 13:03:08 Xix19: strongly consider the possibility that some random jagoff's project floating around the internet has been fundamentally broken for 3 years. Apr 20 13:03:20 but yeah, this: http://developer.android.com/reference/android/Manifest.permission.html#CAMERA Apr 20 13:03:31 jiduvah: I would assume you need to use getBytes, yes. Apr 20 13:04:01 lov: wooh! it worked :) Apr 20 13:04:07 camera is working Apr 20 13:04:09 thanks Apr 20 13:04:21 awesome, strongly consider looking at d.android.com instead of random projects on the innertubes Apr 20 13:05:00 lov: I was a little hasty asking. I tried and it worked. Strangly enough I couldn't get basic authentication working with the standard apache classes. I had to set the head myself Apr 20 13:05:10 * pragma- has noticed a couple of d.android.com projects that have been fundamentally broken for 2 years, and counting. Apr 20 13:05:43 Xix19: i had gotten the camera to work with android demos before, now I wanted to get the face recognition one to work Apr 20 13:06:03 how can I fix this error?: An internal error occurred during: "Launching HelloAndroid". Apr 20 13:06:03 java.lang.NullPointerException Apr 20 13:06:05 above message was for lov Apr 20 13:06:34 MarcAurelio: check the line of the error, there's an object that's null there Apr 20 13:07:07 Xix19, is a basic android project not more... Apr 20 13:07:24 MarcAurelio: that's an eclipse error, possibly. Apr 20 13:07:34 or it could be an error while compiling and it's just a really shitty error message. Apr 20 13:07:53 Open the "Problems" view, see if anything shows up there Apr 20 13:08:19 If nothing shows up there, go to window -> preferences -> Android -> Build, set the radio to "verbose", and then clean, build, and run your project. Apr 20 13:08:29 See if anything interesting about errors occurs in the Console view Apr 20 13:08:51 Problems view is blank Apr 20 13:10:15 09:08:24 < lov> If nothing shows up there, go to window -> preferences -> Android -> Build, set the radio to "verbose", and then clean, build, and run your project. Apr 20 13:10:18 09:08:33 < lov> See if anything interesting about errors occurs in the Console view Apr 20 13:11:16 okay im clear build and run the project. please wait Apr 20 13:12:39 so if I'm on activity A, I start activity B to display some data, there's a button in activity B that finishes B and performs some action in A for the users attention - what's the best way of doing this? startActivityForResult seems a bit odd, since I'm not actually expecting a 'result' as such, more a state change. Apr 20 13:13:06 it would be the way Apr 20 13:13:17 a static boolean would certainly be easiest (in A's onResume I could just check if it was true and then show the dialog) Apr 20 13:13:31 the same error and the Problems View blank.. Apr 20 13:13:33 don't let B change A Apr 20 13:13:49 why not? Apr 20 13:14:00 cause A might be killed Apr 20 13:14:12 and there would be no A Apr 20 13:14:15 ah, right. Apr 20 13:14:35 didn't think about that :/ Apr 20 13:15:38 lov, I use Eclipse 4.1... Apr 20 13:15:47 09:10:19 < lov> 09:08:33 < lov> See if anything interesting about errors occurs in the Console view Apr 20 13:16:38 storkme_: use startActivityForResult, please. Apr 20 13:17:14 I'll do it, but I'm not happy about it. Apr 20 13:17:18 eclipse 4.1? that's pretty amazing, the current release is 3.7 Apr 20 13:17:41 console view have DDMS write no more Apr 20 13:18:13 storkme_: why is a state change not a result? Apr 20 13:18:42 I suppose it is Apr 20 13:18:44 MarcAurelio: tap the little icon that looks like a computer module with a drop down Apr 20 13:18:52 the output should change from "DDMS" to "Android" Apr 20 13:19:01 er Apr 20 13:19:04 computer monitor Apr 20 13:20:40 does it happen to anyone else that LogCat simply stops working, and you have to restart Eclipse to get it working again? Apr 20 13:21:22 no, though on occasion it will fail to install my app and i have to toggle usb debugging on the device Apr 20 13:21:46 Xix19: see if the "pause" button was pressed. Apr 20 13:21:55 Out of curiosity is there a standard for making calls to a service / processing the data and then returning it back to the activity? I feel like what i'm doing is wrong Apr 20 13:22:04 Also, if you get disconnected from the device, you may need to tell it what device to look at again Apr 20 13:22:16 I have a service that runs in the background this does the call to the website, grabs the data and then responds back to my activity through Messengers Apr 20 13:22:16 Bear10: listener pattern Apr 20 13:22:17 open the Devices view (under the DDMS tab) and select your emu/phone Apr 20 13:22:33 checking it out Apr 20 13:22:40 lov: it was, then i untoggled it and still no messages Apr 20 13:22:42 Bear10: yeah, registering listeners in your service might be more appropriate Apr 20 13:22:56 09:22:09 < lov> Also, if you get disconnected from the device, you may need to tell it what device to look at again Apr 20 13:22:59 restarted application, still no messages (not paused) Apr 20 13:23:00 09:22:22 < lov> open the Devices view (under the DDMS tab) and select your emu/phone Apr 20 13:23:07 09:23:04 < lov> 09:22:22 < lov> open the Devices view (under the DDMS tab) and select your emu/phone Apr 20 13:23:39 wongk, any tutorials on it? can't seem to find on google Apr 20 13:23:51 it just stops working. happened with all applications not just this one Apr 20 13:23:53 lov, here the log: http://www.pasteall.org/31074 Apr 20 13:23:57 Hey Xix19 Apr 20 13:24:00 see the thing that I posted Apr 20 13:24:06 and then copied and pasted several times Apr 20 13:24:10 I want you to try that then come bac, Apr 20 13:24:15 http://en.wikipedia.org/wiki/Observer_pattern Apr 20 13:24:37 Guys, do you have any idea when Galaxy Nexus will be released in India? :) Apr 20 13:24:40 MarcAurelio: congratulations, your app compiled! Apr 20 13:24:43 napster: wrong channel Apr 20 13:24:46 oh ok sry, didn't realize it was for me Apr 20 13:24:48 lov: thanks Apr 20 13:24:51 ;) Apr 20 13:25:06 Bear10: it's all over android, think about for instance a button press listener Apr 20 13:25:29 How can I create a byte array of unsigned bytes? Apr 20 13:25:43 Tsukaza: there's no unsigned bytes in java :> Apr 20 13:25:54 Tsukaza: you'll need an array of shorts or something Apr 20 13:26:15 alternately, you can fake it by using bitwise operations Apr 20 13:26:54 'sup #android-dev Apr 20 13:27:00 wongk, i see wow i think that is more efficient than what i have lol Apr 20 13:27:07 lov: will try the Devices tab next time it happens (for now restarting Eclipse made it work again) Apr 20 13:27:27 hey guys! having trouble with membervars in custom view... http://stackoverflow.com/questions/10247017/custom-view-and-member-variables-in-android Apr 20 13:27:31 lov, thank you, I would however like my app in the emulator or on the test device. how can I do? Apr 20 13:28:26 MarcAurelio: click the "run" button. Apr 20 13:28:33 lov: ty, i've already found out that I must interpet the byte as unsigned and not declare it Apr 20 13:29:06 lov, then I have the error: An internal error occurred during: "Launching HelloAndroid". Apr 20 13:29:06 java.lang.NullPointerException Apr 20 13:29:11 MarcAurelio: see also http://developer.android.com/guide/developing/device.html and http://developer.android.com/guide/developing/devices/index.html Apr 20 13:29:14 hmph Apr 20 13:29:20 Ok, here's a question Apr 20 13:29:25 do you have any AVDs or devices hooked up? Apr 20 13:29:40 or rather, have you connected any devices which DDMS recognizes, or have you created any AVDs? Apr 20 13:29:52 yes! Apr 20 13:29:56 oh hmm Apr 20 13:30:04 avd and device Apr 20 13:30:05 Sounds like an eclipse error. Apr 20 13:30:26 Go to help -> about eclipse, and tell me what version it gives for eclipse Apr 20 13:31:15 Eclipse SDK Apr 20 13:31:15 Version: 4.1.0 Apr 20 13:31:15 Build id: I20110805-1200 Apr 20 13:31:46 The most recent version of eclipse is like 3.7 Apr 20 13:32:23 the version name should be a codename, like Apr 20 13:32:24 Version: Indigo Service Release 1 Apr 20 13:32:42 I've never had problems with eclipse when I created android projects, it seems to me that it is only from Android 4.0.3. Apr 20 13:33:06 MarcAurelio: that's just an api level. That doesn't really affect launching. Apr 20 13:33:32 but you should probably go to help -> check for updates, update the ADT, and then go to the SDK manager and update the android tools there Apr 20 13:33:56 rokk: i think we need to see more of your activity, where do you call invalidate? Apr 20 13:34:31 lov, I've done this before, maybe it's not because of that? Apr 20 13:34:45 MarcAurelio: unfortunately I don't know how to debug errors that happen at the eclipse level. Apr 20 13:34:48 wongk, thats the whole activity :P Apr 20 13:34:51 You could always fall back to using ant to compile and run your app. Apr 20 13:34:52 the most recent version is Eclipse 3.8 Jazz Musician Apr 20 13:34:59 the invalidate is called from setHandTarget Apr 20 13:34:59 mikedg_: it's Jazz Hands Apr 20 13:35:01 get it right Apr 20 13:35:12 rokk: use setJazzHandTarget Apr 20 13:35:19 oic Apr 20 13:35:31 lov, huh? Apr 20 13:35:35 (that was a joke do not do this) Apr 20 13:35:41 :p Apr 20 13:35:51 wongk, the observer method only works with runnables right? so AsyncTasks are useless in this case? Apr 20 13:36:25 it is unrealted to either class Apr 20 13:36:28 unrelated Apr 20 13:36:39 it's not a method, it's a pattern Apr 20 13:36:53 right but if it extends Observable Apr 20 13:36:57 it cant extend AsyncTask Apr 20 13:37:05 Bear10: I think you're getting confused Apr 20 13:37:11 we're not suggesting you use Observable Apr 20 13:37:13 you don't need to extend observable Apr 20 13:37:13 or asynctasks Apr 20 13:37:21 we're suggesting that you use the Listener Pattern Apr 20 13:37:21 oh then it is possible i'm getting confused Apr 20 13:37:25 which is a general programming concept Apr 20 13:37:30 this doesn't require any Java classes Apr 20 13:37:36 where your class registers itself with some other class for callbacks Apr 20 13:37:36 he doesnt listen Apr 20 13:37:45 we can expect him to do that Apr 20 13:37:50 lov, i see but isnt that sort of what i already have? Apr 20 13:38:08 interface MyServiceListener { public void onSomethingHappened(); } Apr 20 13:38:37 i have a service class that runs in the background, it calls an async that retrieves info from the server and then via message handler it sends the data to my activity Apr 20 13:39:15 Bear10: the service doesn't really need to use an asynctask Apr 20 13:39:30 or is the activity using the async task? Apr 20 13:39:53 its 3 separate classes. Activity (has a message handler), the Service, and the Async Apr 20 13:39:58 bear in mind that asynctask is just a convenient way to run things on a background thread while having hooks into the UI thread Apr 20 13:40:08 lol Apr 20 13:40:11 so if you're not actually doing things on the UI thread, you can just use a Thread. Apr 20 13:40:11 BEAR in mind!@# Apr 20 13:40:20 nyuk nyuk. Apr 20 13:40:23 the activity sends a message to the service -> service runs the async -> async responds to activity Apr 20 13:40:33 well, ok. Apr 20 13:40:38 the service doesn't need to run an async task Apr 20 13:40:41 it can just run a thread Apr 20 13:40:47 yeah that it can Apr 20 13:40:54 but async tasks fix all the problems! Apr 20 13:40:56 so don't worry about where the async part of this comes into play Apr 20 13:41:10 if you guys want to waste an assload of time, goto flickchart.com Apr 20 13:41:21 .... what exactly is the question? Apr 20 13:41:37 yaysync Apr 20 13:41:41 lov, if there was another way because i felt like what i am doing / have been doing is wrong Apr 20 13:41:47 feels like there could be easier ways Apr 20 13:42:21 Bear10: it depends on how robust you need this to be. Apr 20 13:42:30 you could always just have the activity do this itself in its own asynctask Apr 20 13:43:32 test Apr 20 13:43:42 failure Apr 20 13:43:44 error Apr 20 13:43:47 get out Apr 20 13:44:21 hey does anyone know why I launch the emulator and I don't see anything in the file explorer? ….I want to write a text file to the /data/ path Apr 20 13:44:37 john_doe_jr: please don't do this. Apr 20 13:44:48 lov: huh? Apr 20 13:44:52 i assume your emulator isn't rooted Apr 20 13:44:55 /data/ is not meant to be visible/usable to end users Apr 20 13:45:19 /data is for data not hamsters Apr 20 13:45:28 if you need to access your app private storage, use the getDir, etc. methods in Context Apr 20 13:45:30 wongk: I guess it's not rooted then Apr 20 13:45:46 if you have to guess, then no, it's not Apr 20 13:47:38 question about android in general: if i create e.g. 20 instances of a webview, how much memory footprint is that? how much is shared between instances, etc? Apr 20 13:48:00 too much Apr 20 13:48:01 is it somewhat analogous to shared libraries on unixes, with copy on write, etc? Apr 20 13:48:20 i got a tablelayout with first textview in row got fixed width, all other textviews may be dynamically added and should divide the rest of space. how to do that? Apr 20 13:49:12 how can i get text to speach to spell out ROFLMAO instead of saying waffle meow? Apr 20 13:49:32 LOL Apr 20 13:50:08 i just tried it but my phone was on spanish so it came up with Apr 20 13:50:11 "La forma mao" Apr 20 13:51:53 speach? Apr 20 13:53:06 In order to use class context in the following statement, what class do I have to import? Eclipse isn't picking it up….FileOutputStream f = context.openFileOutput("filetest", MODE_PRIVATE); Apr 20 13:53:43 do you have a variable named context in scope? Apr 20 13:54:49 wongk: import android.content.Context; Apr 20 13:55:04 is that a variable? Apr 20 13:55:11 looks like an import to me Apr 20 13:55:27 i'm an old newbie unkown reverser hacker cracker is there some nice app outside to reverse an apk ? Apr 20 13:56:00 lov, I thestet with the Eclipse 3.7.2 the same error. Apr 20 13:56:16 testing Apr 20 13:56:42 elec29a: dex2jar + jd-gui is pretty popular Apr 20 13:57:04 wongk: how do i create a variable like you are asking…openFileOutput is a method of the context class Apr 20 13:57:23 you just asked how to create a variable? Apr 20 13:57:34 thanks alot wongk Apr 20 13:57:51 wongk: I'm confused... Apr 20 13:57:54 MarcAurelio: I have no idea what to suggest, try going to #eclipse and asking for general help or posting on stackoverflow Apr 20 13:57:55 i see that Apr 20 13:58:02 MarcAurelio: I do not know how to troubleshoot this problem. Apr 20 13:58:18 wongk: FileOutputStream f …created a fileoutputstream object Apr 20 13:58:26 john_doe_jr: in what class are you doing this? If you're in an activity, activity extends context Apr 20 13:58:30 so remove the "context." part Apr 20 13:58:38 thx lov, for you help. Apr 20 13:59:03 and by the way i make i decoding contest what is 29a ? standing for ? its simple answer plz unencoded Apr 20 13:59:25 lov: I'm doing it in the public void onClick(View v) class ….I want to save information on the screen when a user clicks a button Apr 20 13:59:26 Hi! What is the best way to report a validation error in a contentprovider's update method? Apr 20 13:59:51 john_doe_jr: that's a method, not a class. Apr 20 14:00:01 john_doe_jr: you may want to learn Java before you actually worry about this. Apr 20 14:00:18 * wongk seconds Apr 20 14:00:41 hey Apr 20 14:00:44 you guys are android devs right Apr 20 14:00:47 lov: I have it in a case statement….I'm assuming that you would want to save information when a user clicks a button Apr 20 14:01:14 what's android? i build robots... Apr 20 14:01:21 alright check it out Apr 20 14:01:37 how possible would it be to take samsung's framework, you know, the video codecs and such Apr 20 14:01:44 and place that into an AOSP rom Apr 20 14:01:47 wongk: I'm taking the code form here: http://stackoverflow.com/questions/3288367/android-how-to-create-file-in-phone-memory Apr 20 14:02:16 i'm stuck on touch wiz because nothing can match samsung's hardware accelerated video play back Apr 20 14:03:07 lov you where my hero last night could you reverse 29a ? i solved the sax problem between Apr 20 14:04:40 a92 Apr 20 14:04:46 * wongk <-- winning Apr 20 14:05:07 ha ha try hex Apr 20 14:06:22 what do you mean by reverse Apr 20 14:06:36 find the bitwise complement? Apr 20 14:06:41 reverse enginer not reverse string Apr 20 14:06:49 logic Apr 20 14:07:01 how do you "reverse engineer" a hexidecimal number Apr 20 14:07:04 that doens't make sense Apr 20 14:07:23 29a its 666 the beast haha try it Apr 20 14:07:47 some channel see it here not Apr 20 14:07:57 it speaks from itself Apr 20 14:08:10 this conversation seems to have reduced to babbling Apr 20 14:08:35 basically Thestrals. Apr 20 14:09:32 yes sure wongk but in some channels they see it here not you arent reverse enginers only coder Apr 20 14:11:25 i tought some one is here Apr 20 14:12:00 new here exploring ppl Apr 20 14:12:34 i have free time my app is running Apr 20 14:13:24 on undernet most ppl know 29a as 666 Apr 20 14:13:46 but they are hackers Apr 20 14:14:52 My app has some permissions, that are not set in the manifest. Why? write external storage and read phone state Apr 20 14:16:00 because your app is a trojan that steals personal information Apr 20 14:16:18 no Pragma Apr 20 14:16:24 http://stackoverflow.com/questions/1747178/android-permissions-phone-calls-read-phone-state-and-identity Apr 20 14:16:33 Hi Apr 20 14:18:46 I have a two 10 x 10 grids in my app which are made of two table layout, the problem is that i made it using 4inch screen now i test on 3.5 and bottom gid is cut off Apr 20 14:19:34 how can I specify the sizesy for each squre in the grid to to mak the grid square and fit any screen size ? Apr 20 14:19:48 using dp instead of px Apr 20 14:19:57 i am using only dp Apr 20 14:20:20 put it on a scrollview ;) Apr 20 14:20:24 but is dp really for this use ? Apr 20 14:20:26 lol Apr 20 14:21:14 in theory if you have screen 100 high and you have button 80 dp high and that use the same layout for 70 high screen the button will be cut off right ? or wrong ? Apr 20 14:21:44 Androidnewbe: that's why you shouldn't use static dp measurements Apr 20 14:22:01 instead, set the layout_weight attributes for your grid objects Apr 20 14:22:18 does that work with tablelayout? Apr 20 14:22:23 yes iirc Apr 20 14:22:34 and what does it do exactly ? Apr 20 14:22:41 lemme check something Apr 20 14:22:52 it'll make it so your 10 objects stretch to fill the width and height Apr 20 14:22:55 if that's the desired behavior... Apr 20 14:22:56 you want things to scale Apr 20 14:23:04 fornext your link is nullshit info between i want more Apr 20 14:23:15 wat Apr 20 14:24:42 elec29a, learn to read Apr 20 14:24:58 don't feed the trolls Apr 20 14:26:29 Rockmaninoff thanks man is that really what it does ? Apr 20 14:26:41 Androidnewbe: is that what you want though? Apr 20 14:26:46 10x10 filling the entire screen? Apr 20 14:27:47 might need to make a custom layout if you want to keep the aspect ratios Apr 20 14:27:53 well i hvae 100 square in one table so to the table is square as well but want the size of the squar to fit differemt screen size becau now i they are all 25x25 but for smaller creens it cust it off Apr 20 14:28:05 can i use weight to fix that ? Apr 20 14:28:18 not if you need certain aspect ratios Apr 20 14:31:12 he could always do scaleType on the ImageViews Apr 20 14:31:18 eg centerInside Apr 20 14:42:04 Hi, why ndk-build says make *** No rule to make target '/native.c/'' ? Apr 20 14:52:13 can someone tell me if this will work inside a while method?? byte b = (byte) (srcData[count] & 0xFF); - Turn srcData[count] into unsigned byte Apr 20 14:57:14 lov: hey, to get access to my apps private storage…how would I write the code in the onCreate method? For example, I've got 'File file = new File(Environment.getExternalStorageDirectory(), "file.txt");' but this uses the external storage... Apr 20 14:58:05 john_doe_jr, look at methods on Context Apr 20 14:58:35 pfn: I really don't understand…sorry I'm a noob Apr 20 14:58:54 john_doe_jr, #1 way to progress from being a noob, learning how to read api documentation Apr 20 14:59:01 john_doe_jr, go to d.android.com Apr 20 14:59:05 john_doe_jr, click on reference Apr 20 14:59:15 john_doe_jr, look for android.app.Context Apr 20 14:59:33 john_doe_jr, read and see what you can do with Context; also understand what is and isn't a context Apr 20 14:59:41 do I ssh to d.android.com? or is it gopher? Apr 20 15:02:06 pfn: I really appreciate your help and understand that Context class with it's methods….do I pass the Contexts.getDir method to the File class as an argument? Apr 20 15:07:00 john_doe_jr, yes Apr 20 15:14:36 pfn: Alright, would this work in my onCreate? Context context = null; File file = new File(context.getDir("/context_data", 0), "file.txt"); Apr 20 15:16:34 no Apr 20 15:16:41 because you do not understand what is and is not a context Apr 20 15:16:45 is there some documentation about how layout_height="wrap_content" interacts with different kind of content? Apr 20 15:17:01 and for that matter, context is null Apr 20 15:17:19 i found that if the html in it contains only fixed positioned images, then t displays nothing Apr 20 15:17:32 oh, in a webview :D Apr 20 15:17:33 pfn: ok a context is 'Interface to global information about an application environment' Apr 20 15:18:35 john_doe_jr, there's more to it than that, do you know any OOP at all? do you understand it? Apr 20 15:19:56 Where is the MediaStore database located? Apr 20 15:20:05 pfn: yes I do Apr 20 15:20:16 john_doe_jr, what are the tenets of OOP? Apr 20 15:20:57 Where do I find the system requirements in order to develop Android apps? is this site current: http://developer.android.com/sdk/requirements.html Apr 20 15:21:12 doesn't take much to develop android apps Apr 20 15:21:24 if your computer is capable of running your OS, it's just about good enough Apr 20 15:23:07 if you want to use eclipse and not rip all your hair out, you need a fairly modern machine Apr 20 15:23:32 pfn: everything is an class until it's instantiated as an object Apr 20 15:23:43 on the eclipse download page I seie eclipse 3.7.2 goes smoothly with this version, the ADT? Apr 20 15:23:54 seie = see Apr 20 15:24:09 john_doe_jr, that's not true Apr 20 15:24:55 pfn: well you do have primitives in java that aren't objects …but I think it's true Apr 20 15:25:20 john_doe_jr, I suppose this means you don't understand OOP Apr 20 15:25:21 primitives aren't objects or classes Apr 20 15:25:25 wongk, a 6 year old machine is okay? Apr 20 15:25:45 I know it is possible to make a ListView adapter that has so-called Overflow Headers. But is there any way to make a Item in a ListView be, or have the same Overflow ability. Overflow = Snap to the top of the listview and stay there until the next listview section pushes it out of the screen, like on iphones :) Apr 20 15:25:45 john_doe_jr, the basic tenets of OOP are abstraction, polymorphism and inheritance Apr 20 15:26:01 pfn: well that too Apr 20 15:26:06 some argue there's more, but I only ever remember those 3 Apr 20 15:26:11 Ginto8 you here? Apr 20 15:26:20 john_doe_jr, now, given that, what can you think applies to Context Apr 20 15:27:12 more info: like this one: http://code.google.com/p/android-section-list/ Apr 20 15:27:33 and can I use JDK 7 for coding android (4.0.3) Apps? Apr 20 15:29:10 Why getMeasuredHeight() returns same height of object, even if View have multiple-line text ? Apr 20 15:29:37 MarcAurelio: you must set the compiler compliance to 1.6 Apr 20 15:30:10 safest to just use jdk6 Apr 20 15:30:11 pfn: well, I'm trying….could you just tell me for now…so I can get it for now…. Apr 20 15:30:24 john_doe_jr, look at known subclasses of Context Apr 20 15:30:32 john_doe_jr, do any of them look familiar Apr 20 15:31:04 Is there someone that is willing to help me for a couple of hours? I need my app to be finished by tonight and I keep hitting brickwalls. Can someone give me a helping hand? Thank you, Zukky. Apr 20 15:31:18 pfn: http://developer.android.com/reference/android/app/Activity.html Apr 20 15:31:24 how can I the compler comliance to 1.6 set? I'm beginner. Apr 20 15:31:26 pfn: activity Apr 20 15:31:30 It's nothing difficult, I'm just a beginner. Apr 20 15:31:35 john_doe_jr, good, what does this mean? Apr 20 15:31:44 beginners abound! :P Apr 20 15:31:48 lol Apr 20 15:31:55 We all start off this way :) Apr 20 15:32:00 An activity is a single, focused thing that the user can do.  Apr 20 15:32:03 i'm trying to do something like this http://nex-otaku-en.blogspot.com/2010/12/android-put-listview-in-scrollview.html, but my elements of ListView have multiple-line text, and getMeasuredHeight() returns the same value as with one-line text item Apr 20 15:32:12 MarcAurelio: Project Properties > Java Compiler Apr 20 15:32:15 john_doe_jr, what does it mean in relation to context? Apr 20 15:32:34 context is like the sandbox for the app Apr 20 15:32:38 :( Apr 20 15:32:44 Anyone willing to help me? I will pay for the assistance. It is important that I get this finished by tonight. Apr 20 15:32:47 john_doe_jr, what are the 3 tenets of OOP? Apr 20 15:33:11 pfn: inheritance, abstract, and polymorphism Apr 20 15:33:21 ok, what is the relationship between context and activity Apr 20 15:33:32 wongk, in the eclipse? wath use you for a version of eclipse? Apr 20 15:33:45 indigo Apr 20 15:33:48 activity is inherited from context Apr 20 15:33:53 Come on someone give me a hand. I will pay for the assistance. Whoever is, Inbox me. Apr 20 15:33:59 john_doe_jr, ok, what does that mean? Apr 20 15:34:09 pfn: it gets all of it's methods Apr 20 15:34:23 john_doe_jr, now you're getting somewhere, it means Activity *is* a Context Apr 20 15:34:35 john_doe_jr, now what can you do? Apr 20 15:34:45 wongk, I have the 3.7.2 Apr 20 15:34:55 activity has access to all of context methods Apr 20 15:35:07 attention all noobs, there is an OOP lesson in progress to your right, i recommend you attend. That is all. :P Apr 20 15:35:11 john_doe_jr, ok, get cracking Apr 20 15:35:15 Anyone willing to give me assistannce? Apr 20 15:35:33 MarcAurelio: that is indigo Apr 20 15:35:41 wongk, help me out; I know i'm begging. I usually don't but I am desperate in this case. Apr 20 15:36:08 don't have time/don't need money Apr 20 15:36:33 Damn...thanks anyway Apr 20 15:37:10 Hey, I have a questio i am hoping someone can help me with. It's so basic I cant believe it's not working. So I have a checkbox, and that works fine. but, setting android:checked="true" in the layout does not make it's default state true Apr 20 15:37:13 does anyone know what could be wrong? i'm very confused as to why it doesnt work. it compiles just fine, i've cleaned everything before make, and nothing seems to make it work the way the documentation states. Apr 20 15:37:36 android:defaultValue? Apr 20 15:37:41 you didn't set android:checked on the correct element Apr 20 15:37:53 pfn - you dont set it on the checkbox? Apr 20 15:38:18 pfn: really appreciate your help… while in the onCreate….since activity is an subclass of Context…I can just do a .getDir and I have the methods in Context….but the following doesn't work: File file = new File(.getDir("eCDL", MODE_PRIVATE)); Apr 20 15:38:33 john_doe_jr, seems like you need to learn java Apr 20 15:38:35 File file = new File(.getDir("test", MODE_PRIVATE)); Apr 20 15:38:59 john_doe_jr, no . Apr 20 15:39:00 pfn: well you gotta start somewhere Apr 20 15:39:10 john_doe_jr, I suggest you read thinking in java Apr 20 15:39:15 and java concurrency in practice Apr 20 15:39:27 both will greatly help any budding android developer Apr 20 15:40:11 pfn: if i dont set it on checkbox, where do i set it? Apr 20 15:40:31 SignalDancer, the correct checkbox Apr 20 15:40:39 pfn: well in this one time ..could you just tell me how I could create a file in the onCreate method…I know I'm close Apr 20 15:40:53 pfn: it's part of the checkbox i want checked? it's in that element? and just doesnt work? Apr 20 15:41:08 john_doe_jr, 08:38 john_doe_jr, no . Apr 20 15:41:18 john_doe_jr, learn to read errors as well Apr 20 15:41:40 "this one time", until the next time you run into something basic you're not familiar with, 10 minutes from now :P Apr 20 15:41:43 SignalDancer, you've given no proof that the correct checkbox is configured how you say Apr 20 15:43:08 john_doe_jr: just call getDir without the dot :D Apr 20 15:43:37 john_doe_jr: also you get a File out of getDir(). no need to call new() Apr 20 15:43:43 http://pastebin.com/ytpGcP47 Apr 20 15:43:55 File f = getDir(...); Apr 20 15:44:42 SignalDancer, are you certain you don't toggle the state of the checkbox in code? Apr 20 15:45:30 pfn, no, i'll check that. this is using a model, and i think the model is used to set the state of the checkbox. trouble is, then i'd need to know if i was creating a new one, or editing an existing to change that logic. and i dont know how to do that. (this is in Android's Calendar code) Apr 20 15:46:32 tapas: that works! thank you Apr 20 15:47:24 SignalDancer, if it's a view adapter, your getview call tells you if it's new or not Apr 20 15:48:11 pfn, ah, okay. fantastic. i will go look at that documentation then. thank you! Apr 20 15:49:20 If it's an adapter, don't bother with android:checked.. Set the state anyway Apr 20 15:49:29 and that Apr 20 15:49:43 * pfn reviews his algorithms book madly Apr 20 15:49:44 heh Apr 20 15:50:03 pfn, SimonVT, i'll see if it's a true adapter. either way hopefully that's enough to get me in the right direction. at least i'm glad to know i wasn't completely insane. Apr 20 15:50:24 * SignalDancer misses algorithms compared to UI work... Apr 20 15:53:40 can anyone explain this to me http://pastebin.com/swsKbnh3 Apr 20 15:54:36 Jug6ernaut: it's doing the string cast first Apr 20 15:54:49 I wish this algorithms book came in epub so I could read it easier on tablet Apr 20 15:55:09 Jug6ernaut: try this: System.out.println("" + ((level>=warningThreshold)?"0":"1")); Apr 20 15:55:11 Jug6ernaut, precedence Apr 20 15:55:32 Jug6ernaut, put parens around the entire ternary Apr 20 15:55:42 your 3rd case is a very different conition, use parens as evancharlton suggests Apr 20 15:55:50 Jug6ernaut: alternatively, don't do that because it's stupid. Do System.out.println(String.valueOf(level >= warningThreshold ? 0 : 1)); Apr 20 15:56:11 evancharlton ahh yea, ur right, u also pfn Apr 20 15:56:12 thx Apr 20 15:56:48 String.valueOf vs. Integer.toString ... i assume no difference? Apr 20 15:57:12 wongk: depends on if you're ever going to change the data within :P Apr 20 15:57:26 true Apr 20 15:57:29 (Integer.toString(..) won't work with e.g. doubles) Apr 20 15:58:03 s/Integer/Double/ doens't present a large challenge, however :P Apr 20 15:58:17 just curious because i always use the latter Apr 20 15:58:50 I always just do "" + Apr 20 15:58:56 because it's 4 keystrokes Apr 20 15:59:06 eh, I just do String.valueOf(..) because it takes whatever you throw at it, haha. Apr 20 15:59:24 just have to watch out because String.valueOf(null) -> "null" (which may or may not be a problem for your use case) Apr 20 15:59:46 "" + null does as well Apr 20 16:04:52 is it possible to use the "LIKE" sql command in android somehow? Apr 20 16:05:27 in sqlite, why not Apr 20 16:05:50 a View always fits the rest of space by default? Apr 20 16:05:53 the .query select thing just confuses me lol Apr 20 16:05:59 rawQuery Apr 20 16:06:12 isn't rawQuery bad to use now or something? Apr 20 16:06:29 I prefer query Apr 20 16:06:32 no Apr 20 16:06:46 Unless I completely control the query string Apr 20 16:07:14 query is also fine Apr 20 16:10:49 erg, it's very annoying that my app still appears 6 pages in when searching the market for "google checkout" Apr 20 16:11:26 Does anyone know where the source for adb can be found? Apr 20 16:11:43 I'm looking at ROOT/sdk/bash_completion Apr 20 16:11:49 but is there more? Apr 20 16:13:12 How can I scale an imageview's imagematrix based on the screens dimensions? im finding that the image seems to stretch to outside of the view bounds... Apr 20 16:13:52 hamiltont: http://lackingrhoticity.blogspot.com/2010/02/how-to-build-adb-android-debugger.html seems relevant Apr 20 16:14:24 although out of date Apr 20 16:14:48 does traceview display accurate thread times? Apr 20 16:15:29 wongk: ah, much appreciated. I now have a reasonably informed search :) Apr 20 16:26:59 I can't get LIKE to work with rawQuery, can someone help me out? I'm trying this: cursor = readableDb.rawQuery("SELECT date FROM mytable WHERE date LIKE '%?%'", new String[] {"Mar"}); Apr 20 16:31:51 ninjai: try adding concatenating the string yourself e.g. LIKE '%Mar%' Apr 20 16:32:02 if that works, then you at least know it's not your SQL that's mucked Apr 20 16:32:39 ninjai: try this instead: readableDb.rawQuery("SELECT date FROM mytable WHERE date LIKE ?", new String[] {"%Mar%"}); Apr 20 16:32:49 hi Apr 20 16:32:54 sqlite already puts single quotes around the argument for question mark Apr 20 16:38:08 Anyone here can help me on the Bluetooth Chat tutorial from android developers? Apr 20 16:39:58 can I use php/mysql as frontend for android dev, and have its buttons call native functions like toast? Apr 20 16:40:19 html5* - php/mysql Apr 20 16:41:13 if you want a shitty app, sure. Apr 20 16:41:14 QubeZ, ... thanks! Apr 20 16:41:52 ninjai: but you really should use .query and pass in the search parameter to your method doing the query Apr 20 16:44:15 i do all my apps in VB Apr 20 16:44:20 and then visuaport it to Anroid Apr 20 16:45:36 anyone else having the problem of losing CWM Recovery after a reboot? :) Apr 20 16:46:06 If so, what phone do you have? Apr 20 16:56:36 Good afternoon all. Can someone direct me to a concise example of use o the ExecutorService class? The reference docs aren't entirely clear to me Apr 20 16:57:51 Do the objects passed into the executorService be themselves, Runable? Apr 20 16:58:26 hillct: that's a generic Java question; there's no need to limit yourself to Android resources for that Apr 20 16:58:38 I'm sure java/sun/oracle has comprehensive docs on how ExecutorService works Apr 20 16:59:50 Nothing has motivated me to revisit Java in the past 15 years short of Android, but I suppose it is... back to Google I go... Apr 20 17:09:57 Are there any easy ways to install sqlite3 on a Galaxy Nexus? Apr 20 17:13:04 push the executable to the device Apr 20 17:13:25 adb push Apr 20 17:13:52 So there's no differences between the binaries for different versions of Android? Apr 20 17:14:17 its the same arm architecture, you should be fine i believe Apr 20 17:14:35 just grab a sqlite binary from one phone and put it on yours Apr 20 17:18:23 hi all Apr 20 17:18:38 QubeZ: Thanks :) Apr 20 17:18:40 where can i change the "selection" color http://dl.dropbox.com/u/4332308/ex110.jpeg ? Apr 20 17:19:00 it appears when i move my finger on the listview Apr 20 17:20:07 which parameter i am needed to change? Apr 20 17:24:04 home, sweet, former home Apr 20 17:25:50 Oo... I just need to add android:cacheColorHint="@android:color/transparent" to my ListView Apr 20 17:33:16 hey can i detect whether the device is "google-enabled", which i guess means if it has google play...? Apr 20 17:34:20 damn why is my ListView so freaking laggy. Apr 20 17:34:23 i hate you ListView. Apr 20 17:34:34 you're lagging it Apr 20 17:34:47 Android hates you in turn Apr 20 17:34:51 lol Apr 20 17:34:59 are you making use of the convertviews? Apr 20 17:35:12 luxurymode, how's you fp learning going? Apr 20 17:35:22 haha its on hold for a bit Apr 20 17:35:22 Can the items you provide for in-app purchases be dynamic? (Provided from a portal on your website?) Apr 20 17:35:25 but haskell has been good Apr 20 17:35:30 thanks for asking! Apr 20 17:35:38 Bear10: no Apr 20 17:35:54 evancharlton, so for that id need a external payment gateway then Apr 20 17:36:06 yes, but then you can't publish to the Play Store. Apr 20 17:36:25 well, you can, but only if you want to violate the CDD Apr 20 17:36:31 erm, DDA Apr 20 17:36:44 ^^ Apr 20 17:36:50 i.e. google can pull you at any time. Apr 20 17:36:56 lol Apr 20 17:37:06 crap then how do i go about this Apr 20 17:37:08 * Bear10 tries thinking Apr 20 17:37:52 luxurymode: you could query the package manager for the Google Play package Apr 20 17:38:21 thanks Jake, figured that out, using queryIntentActivities and checking if the resolveinfo is greater than zero Apr 20 17:38:22 Bear10: IIRC, you can do a bulk-import (via csv?) on your publisher console Apr 20 17:38:29 luxurymode: you could use packagemanager to see if the market app is installed. Apr 20 17:38:31 and also using ABS in my project…as always Apr 20 17:38:35 does anyone have any idea why my emulator continues to get give the error message, 'faield to install test.apk on device 'emulator-5554': device not found" Apr 20 17:39:04 :) Apr 20 17:39:22 JakeWharton, while i have you here…. i forget- do i need to do anything special if i use a custom Application in my manifest? Apr 20 17:39:38 with regards to ABS? Apr 20 17:39:41 i wanna extend Application so i can statically access the context in some spots Apr 20 17:39:42 yes sorry Apr 20 17:39:44 luxurymode: yeah of course i am. Apr 20 17:39:50 evancharlton, well the issue is that i have many companies with a specific item, sometimes that item can end up being sold out (it depends on the day, but on the next day it replenishes) Apr 20 17:39:52 no, it should have no effect Apr 20 17:39:53 luxurymode: i think it's my image views. Apr 20 17:39:57 cool Apr 20 17:40:10 EvilPenguin, that could be Apr 20 17:40:11 now im trying to figure out how this could be handled Apr 20 17:40:31 luxurymode: but im doing an AsyncTask to download them, so i dunno :/ Apr 20 17:41:58 Bear10: hold up a second. Apr 20 17:42:06 Your in-app purchasing Apr 20 17:42:21 is your app basically a native app for an online store? Apr 20 17:42:36 lov, yeah you could consider it something like that Apr 20 17:42:52 You may not have to worry about DDA then. Apr 20 17:43:14 the purchases that your app is driving won't actually affect what happens on the device Apr 20 17:43:26 that's correct Apr 20 17:43:27 you can definitely point at online stores w/ webviews, etc Apr 20 17:43:43 you should actually have your legal dept, whatever it may be, review the market TOS and such Apr 20 17:43:50 they'll be best able to suggest how to proceed Apr 20 17:43:51 Hum, I search how to put a listener on a custom DialogFragment for the moment where it dismiss, it's seems to exist for a Dialog, but not for a DialogFragment :| Apr 20 17:44:30 DialogFragment still uses a dialog Apr 20 17:44:53 hey, I have this simple activity: http://pastebin.com/TGVkmqzE , in the emulator I got an exception that I did not close a cursor explicitly, so I added the "onDestroy" function, this solved the excpetion in the emulator, but on my device the application crashed furiously, when I uncomment the "onDestroy" the application still crashes, but only from time to time, what am I doing wrong here? Apr 20 17:45:07 The reason it has a getDialog method Apr 20 17:47:14 Bah, maybe I just did something wrong to put the listener Apr 20 17:48:32 The method setOnDismissListener(new DialogInterface.OnDismissListener(){}) is undefined for CustomDialogFragment Apr 20 17:48:45 define it on the Dialog, not the fragment Apr 20 17:49:09 DialogFragment is just a container in which the Dialog is managed with respect to the FragmentManager and Activity lifecycle Apr 20 17:49:48 lov, this is more like ticket purchasing and i believe there's plenty of apps on that Apr 20 17:51:36 Ok, so if I understand, I have this: Activity -> Fragment(My main program) -> DialogFragment -> Dialog? Apr 20 17:52:59 Ah well, DialogFragment is not in the Fragment, but it's the Fragment who call it with FragmentManager Apr 20 17:53:19 SimonVT, I found your numberpicker library last night. Tried to include it in my dialogfragment. It shows but theming is off. Tried using styles in the xml, no go. Is it possible? Apr 20 17:53:39 Yep Apr 20 17:53:58 Bear10, yeah, you just don't do IAP via market Apr 20 17:54:07 Bear10, use any mechanism for doing payment Apr 20 17:54:13 It should work fine in a dialog Apr 20 17:54:18 IAP? Apr 20 17:54:25 in-app-purchase Apr 20 17:54:34 (just need JakeWharton to fix one little bug :p) Apr 20 17:54:42 wut Apr 20 17:54:43 ah Apr 20 17:54:44 okay cool Apr 20 17:54:49 SimonVT: fix it yourself? :) Apr 20 17:54:55 :( Apr 20 17:54:56 oh Apr 20 17:54:58 yeah Apr 20 17:55:00 evening all =) Apr 20 17:55:00 i should have done that on the plane Apr 20 17:55:16 i'll look now Apr 20 17:55:28 evancharlton: But but.. MUCH easier to just get others to do the work for me :p Apr 20 17:55:31 SimonVT, ok how do I set the theme to @style/SampleTheme in my DialogFragment? Apr 20 17:56:00 cooldman224: Don't use SampleTheme, copy the attributes from it Apr 20 17:56:27 doh, I thought the point of a library was so I didn't have to? Apr 20 17:57:16 i find myself using a LOT of OnGlobalLayoutListeners in my app to fix things in my layout that I can't seem to do in XML. Is this a 'normal' occurrence or does it sound like I'm doing something terribly wrong? Apr 20 17:57:23 No, it's just to show you what themes to copy Apr 20 17:58:02 for example, I use it to fix the size of an ImageView where the image has been scaled (the height always ends up the same as the original image after it has been scaled to fit the width of the layout) Apr 20 17:58:41 DialogFragment has no UI and therefore no theme Apr 20 17:58:47 you want to theme the Dialog Apr 20 17:58:48 SimonVT, ok I'll copy them, I use style="@style/MyNPTheme" in your Bear10: have your lawyers look at the market TOS but you should be fine. Apr 20 17:58:58 lov, okay thank you :) Apr 20 17:59:10 cooldman224: No, just put those attributes in your applications theme Apr 20 17:59:21 Don't set style Apr 20 17:59:29 Yeah but I use ABS theme Apr 20 17:59:31 hey guys every time i try to turn on usb debugging and test applications on my android using eclipse adb crashes over and over.. any ideas? Apr 20 17:59:52 So? Add the attributes to your theme which extends the ABS theme Apr 20 18:00:01 ABS doesn't touch Dialogs Apr 20 18:00:20 Ok I have never that before Apr 20 18:00:44 I think you a word Apr 20 18:01:12 Apr 20 18:01:20 this ^^^ Apr 20 18:01:24 bakis: we'll need a little more info. what device are you using? do you get an error message from adb when it crashes? have you tried more than one app? does the app you're using run in the emulator? Apr 20 18:01:33 Apr 20 18:01:56 bakis: and any other information you think relevant Apr 20 18:02:37 stupid tab-complete =@ i just tries to tab-complete relevant... like limechat can read my mind! Apr 20 18:02:40 well i can't actually even try an app. basically i open eclipse, turn on usb debugging and then i get an error saying "adb.exe has stopped working" problem event name is APPCRASH. i'm using a rooted htc rezound Apr 20 18:03:12 people that give 1-star ratings with barely any info as to why should be shot Apr 20 18:03:33 are we there yet? Apr 20 18:03:45 bakis: rezound is a new one on me =/ have you tried running the app in the emulator? Apr 20 18:03:54 yeah that works.. Apr 20 18:04:07 but i wanna try using my phone actually cuz the emulator is pretty annoying haha Apr 20 18:04:15 QubeZ: but surely 'i hate it' is information enough... just look into your crystal ball and all the answers will be there Apr 20 18:04:21 SimonVT, aight thanks. This is all under styles.xml right? Apr 20 18:04:29 Sure Apr 20 18:04:40 bakis: i know what you mean. I just wanted to rule out any problems with the app itself... Apr 20 18:04:45 Or themes.xml or myawesomethemes.xml or .. :p Apr 20 18:04:54 the names in values/ are just conventions, you can call it cooldmans_sweet_themes_of_science.xml Apr 20 18:05:01 bakis: have you tried using adb from the command line? Apr 20 18:05:10 no i haven't Apr 20 18:05:27 SimonVT, do I need to copy @style/NPWidget.Holo.Light.ImageButton.NumberPickerUpButton ... etc too for each item? Apr 20 18:05:58 i dunno. it's funny i tried ignoring the message and trying a test app and i got this: "Failed to install HelloAndroid.apk on device 'HT1ATS202443': timeout" Apr 20 18:06:00 cooldman224: https://github.com/SimonVT/android-numberpicker/blob/master/samples/res/values/themes.xml Apr 20 18:06:07 hmm i wonder what else would make a ListView laggy. Apr 20 18:06:24 Examples of a dark and a light theme Apr 20 18:06:47 EvilPenguin: not recycling views Apr 20 18:06:57 loading from cache on UI thread Apr 20 18:07:03 animation on each child Apr 20 18:07:09 HW accel disabled Apr 20 18:07:14 bakis: cd into the platform-tools directory of your sdk and run 'adb devices' (without quote mars) Apr 20 18:07:30 deeply-nested complex measurements on row layouts Apr 20 18:07:40 JakeWharton: load from cache on a background thread, i do animate on each child but only once, hw accel is good Apr 20 18:07:49 JakeWharton: but i dunno if i recycle the views. Apr 20 18:08:11 do you check if convertView == null and only create a new view if that is true? Apr 20 18:08:12 okay well i'm not really familiar with windows command prompts lol. i know unix ones fine but windows ones are weird Apr 20 18:08:38 JakeWharton: oh yeah :P and i only inflate once. Apr 20 18:08:42 and findViewById once Apr 20 18:08:50 and then i just reuse. Apr 20 18:08:53 i get by a tag. Apr 20 18:09:02 bakis: i feel your pain. commands are just the same for cd, just use \ instead of / between dirs Apr 20 18:09:10 alright haha Apr 20 18:09:29 i might just develop on fedora instead of windows.. i feel like it might work better in general haha Apr 20 18:09:37 EvilPenguin: sounds like you're doing everything correctly then Apr 20 18:09:41 what do the dots mean hierarchyviewer? one of my children has a red dot... Apr 20 18:09:46 JakeWharton: yeah but it still lags like no other. Apr 20 18:10:06 EvilPenguin, can you paste your code? Apr 20 18:10:10 bakis: ive developed on both and to be fair I can't tell the difference. well, until anything goes wrong and i need to break out command prompt that is Apr 20 18:10:17 SimonVT, I was looking at the library themes...oops. Well I changed it but I was having another problem last night as well, NoSuchFieldError. Let me paste the trace Apr 20 18:10:28 luxurymode: i cannot, but i would if i could. Apr 20 18:10:40 luxurymode: this isn'y my personal project... Apr 20 18:10:43 isn't* Apr 20 18:10:47 EvilPenguin: try the allocations tracker maybe? Apr 20 18:10:48 ah ok gotha Apr 20 18:10:55 maybe you're getting tons of GCs running Apr 20 18:11:07 alright well first is said adb server is out of date. killing... then * daemon started successfully * then List of devices attached then my device Apr 20 18:11:21 JakeWharton: let me explain what i do: Apr 20 18:11:24 bakis: try with eclipse now then Apr 20 18:11:53 JakeWharton: inside my ListView i have a RelativeLayout that has 3-6 images/texts. When getView is called i set the text from my model, and then download the image in the background. Apr 20 18:12:11 JakeWharton: i scale the Bitmap up before sending back to the UI thread so im not using my frames to rescale the image inside the ImageView. Apr 20 18:12:26 now eclipse says its offline Apr 20 18:12:32 JakeWharton: and repeat. Apr 20 18:13:37 JakeWharton: oh i set background to @null so i dont draw anything, so that should save me some time. Apr 20 18:13:50 JakeWharton: i have my windowBackground sit to @null on the Activity so that should same some frames. Apr 20 18:14:02 JakeWharton: i use Weak/Soft references where needed. Apr 20 18:14:11 s/sit/set Apr 20 18:14:52 bakis: restart eclipse perhaps? seems that running adb devices has fixed the problem from adb's end, eclipse just hasn;t caught up yet Apr 20 18:15:23 well now adb devices says its offline Apr 20 18:16:02 and now adb devices isn't working at all Apr 20 18:16:13 SimonVT, http://pastebin.com/a5yJf5S1 everything you should need Apr 20 18:16:15 should i be in charge only or in disk drive? Apr 20 18:17:44 cooldman224: Clean project Apr 20 18:17:59 It can't find a field in R.. Apr 20 18:19:12 dammit! the second i open eclipse and look at devices it crashes Apr 20 18:19:40 JakeWharton: im goign out to lunch. let me know if you have anyhing. just hiligh tme :P Apr 20 18:22:42 SimonVT, cleaned both library and my project. I am messing around in the sample project and everything works. I have done nothing that is different that I know of. Apr 20 18:22:58 Well, that error is the build failing to generate R Apr 20 18:23:03 Can't really do anything about that **** ENDING LOGGING AT Fri Apr 20 18:23:12 2012 **** BEGIN LOGGING AT Fri Apr 20 18:24:16 2012 Apr 20 18:24:24 okay i did **** ENDING LOGGING AT Fri Apr 20 18:25:00 2012 **** BEGIN LOGGING AT Fri Apr 20 18:26:19 2012 Apr 20 18:26:29 that was, yesterday? Apr 20 18:26:33 yeah Apr 20 18:26:43 day 4 i think ? Apr 20 18:26:45 is there some requirement for going through a CA for your keystore to sign the app for the google marketplace? Apr 20 18:27:18 still, 9 lines of code in rangeCheck - unless i missied something. should not be a big deal Apr 20 18:27:30 unless you're Oracle Apr 20 18:27:39 where 1 line is a big deal because THEY OWN IT Apr 20 18:27:41 I'm being told that without one people have to tick the "Unknown sources" checkbox Apr 20 18:29:16 bakis: then im all out of ideas =( Apr 20 18:29:21 bakis: sorry =( Apr 20 18:29:23 haha alright Apr 20 18:29:27 it's fine. thanks for trying Apr 20 18:30:00 bakis: if you're on linux, run eclipse from the CLI, it might output a stack trace or some useful info for diagnosing the problem Apr 20 18:30:17 preds_: That checkbox is only required if an app is installed outside of google play Apr 20 18:30:23 i'm on windows. i'm thinking about scrapping the programs on windows and trying again on linux Apr 20 18:30:31 (and outside of installing the app to the device via adb) Apr 20 18:30:35 linux seems to work better in general with developing Apr 20 18:30:50 bakis: ah, it *may* do the same launching it from a command window, but I can't say I've tried Apr 20 18:31:04 okay Apr 20 18:31:14 SimonVT, do I need xmlns:np="http://schemas.android.com/apk/res/net.simonvt.widget.NumberPicker" or something like that Apr 20 18:31:23 well i'm gonna give linux a shot Apr 20 18:31:29 cooldman224: Nope Apr 20 18:31:41 i'll probably be back haha Apr 20 18:32:24 cooldman224: Look, that error you pasted is due to your build fucking up.. Nothing with the project or your code.. Clean everything, and rebuild Apr 20 18:32:54 lov, thanks, that's what I thought too, somebody is trying to tell me otherwise Apr 20 18:33:16 preds_: you absolutely don't need a 3rd party to sign your app. That's flat out wrong. Apr 20 18:33:21 You DO need to sign your app, but it can be self signed. Apr 20 18:33:27 SimonVT, any other way to clean project > clean? Apr 20 18:33:40 Delete every gen and bin folder Apr 20 18:33:41 That said! Apr 20 18:33:48 (same thing basically) Apr 20 18:33:54 If an application is already installed, any updates need to be signed with the same key Apr 20 18:34:17 lov, understood, thanks :) Apr 20 18:34:23 SimonVT: Y U NO have project.properties? Apr 20 18:34:40 blah Apr 20 18:34:49 I'll add that, and add NOA as a jar Apr 20 18:35:04 or, Maven <333333 Apr 20 18:35:22 Write a patch Apr 20 18:35:23 :p Apr 20 18:35:39 I will Apr 20 18:35:39 right meow Apr 20 18:35:52 I'm fucking up this github markdown shit Apr 20 18:37:32 hi people, i need help with permissions of mmssms.db and contacts2.db Apr 20 18:37:38 preds_: see also: http://developer.android.com/guide/publishing/app-signing.html Apr 20 18:37:43 can you help me? Apr 20 18:37:43 krabador: and? Apr 20 18:37:49 maybe you should be in #android-root? Apr 20 18:37:53 I need a unique groupId Apr 20 18:37:53 usually a domain you own Apr 20 18:37:53 net.simonvt? Apr 20 18:38:11 Sure Apr 20 18:38:22 lov, yes, i asked 8 hous ago, but all people idleing Apr 20 18:40:03 so? Apr 20 18:40:11 This channel is for android developers, not #android-root-is-lazy Apr 20 18:40:34 are you performing active application or firmware development, yes/no Apr 20 18:41:00 and by firmware development I mean actually compiling a firmware not editing something someone else did Apr 20 18:42:40 winzippers! Apr 20 18:45:17 didn't wanna say it but yeah Apr 20 18:50:19 fetching maven dependencies when leeching Wi-Fi from the Chick-fil-a across the street Apr 20 18:50:24 not fun Apr 20 18:50:24 SimonVT, tried cleaning multiple times. Still have no idea why. Apr 20 18:51:18 why are you stealing wifi Apr 20 18:51:22 are you homeless? Apr 20 18:51:38 mac won't pick up my Wi-Fi at home for some reason Apr 20 18:51:48 SimonVT, from SO, "You need to add the package of you app inside the root element of your layout..." Apr 20 18:51:49 correct SSID and PW but it doesn't get an IP Apr 20 18:51:52 does exporting a signed apk also do that optimising phase we used to have to do Apr 20 18:52:04 cant even reember what it was aligning or something Apr 20 18:52:06 it also doesn't like USB tethering Apr 20 18:52:07 proguard? Apr 20 18:52:14 gaz`: oh, zipalign? Apr 20 18:52:18 no idea Apr 20 18:52:28 gaz`: zipalign is part of the SDK's build process now, afaik Apr 20 18:52:33 oh really Apr 20 18:52:35 thats nice Apr 20 18:52:42 and making signed apks is also painless now Apr 20 18:52:50 i think this app is ready to go up Apr 20 18:52:51 ! Apr 20 18:52:57 freakin killed me making this Apr 20 18:53:23 signing apks is so painless... Apr 20 18:54:30 yeh Apr 20 18:54:34 god i cant wait to see this on market Apr 20 18:54:35 lol Apr 20 18:55:24 gaz`: hope you have a time machine Apr 20 18:55:31 haha Apr 20 18:55:34 oh yeh! Apr 20 18:55:35 PLAY Apr 20 18:55:37 lol Apr 20 18:55:42 this has nothign to do with playing Apr 20 18:57:06 my photos are scaling really badly on the Galaxy Nexus... Apr 20 18:59:00 when I do a 'FileOutputStream fos; fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);'...where does it write the fos file to in the android linux file system....I'm trying to use DDMS but can't Apr 20 19:00:14 hhmmm... if you "force stop" a service in android, does onDestroy() get called in that service? Apr 20 19:01:41 Lol, I did a notification for my app, but I can't delete this notification in my status bar. (I want to let the user delete the App). It must be something stupid, but I didn't find it on Google Apr 20 19:01:51 uh Apr 20 19:01:54 cancel the notification.... Apr 20 19:02:15 lov: Apr 20 19:02:21 john_doe_jr: Apr 20 19:03:08 gaz`, sure, play means entertaining yourself means having fun, which the play store is all about Apr 20 19:03:38 lov: did you see my question? Apr 20 19:03:49 lov: when I do a 'FileOutputStream fos; fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);'...where does it write the fos file to in the android linux file system....I'm trying to use DDMS but can't Apr 20 19:04:08 private data is not visible in ddms Apr 20 19:05:40 pfn: do I have to have my emulator rooted to see the file and then do a ls -al in the linux file system that android uses? Apr 20 19:06:31 emulator should run adb as root, you should be able to navigate to it in ddms Apr 20 19:06:37 /data/data/your.package.name/ Apr 20 19:07:05 lov: it's a notification I update for a download with a AsyncTask, and I want to let the user delete it himself. If I do cancel when it's at 100%, the notification disappear. That's not what I want... Apr 20 19:07:31 john_doe_jr: why don't you read the docs? Apr 20 19:07:37 john_doe_jr: yes, it's in your app private data location Apr 20 19:07:41 you can't see it via ddms Apr 20 19:07:47 you'll need to use adb shell, and use su or something Apr 20 19:08:03 Nic007: ok, I'm not sure what you're asking then.... Apr 20 19:08:03 lov, he's too smart for reading Apr 20 19:08:08 pfn: good point Apr 20 19:09:28 * pfn is done giving out free education for the day Apr 20 19:09:53 lov: I appreciate your help but it saves time to just simply ask Apr 20 19:10:02 it saves /your/ time Apr 20 19:10:04 what about ours? Apr 20 19:10:10 your time is valuable but ours is worthless? Apr 20 19:10:47 pfn: your time is also very valuable and if you need help ...I will do my best to help you Apr 20 19:11:23 so, I need help Apr 20 19:11:24 I need help helping you Apr 20 19:11:24 start reading please Apr 20 19:11:49 pfn: well, I'm a noob in android but there is a lot of stuff I know about but you don't I'm sure Apr 20 19:11:56 hello anybody knows about lockscreen in android? Apr 20 19:12:27 in android the lockscreen unlocks you! Apr 20 19:12:37 I use it every day! Apr 20 19:13:07 lol yeah... gd for u,, but if i want to make an icon of my app appear on the lockscreen Apr 20 19:13:31 Then you're fucked Apr 20 19:13:43 why is that Apr 20 19:14:46 Is it better to store images on SQLLite or on SD Card? I'll be storing between 100 and 300 images. Apr 20 19:15:00 sd Apr 20 19:17:49 hey guys now on linux i'm getting a different problem: "Failed to get the adb version: Cannor run program "(directory where my adb is )": error=2, No such file or directory from '(directory)' - exists=true Apr 20 19:17:53 how did the ICE (in case of emergency) app put a widget on the lockscreen ? Apr 20 19:19:22 not a widget on the lock screen Apr 20 19:19:30 it's another activity on top of the lock screen Apr 20 19:19:54 so they created a lock screen activity that is different from the default one ? Apr 20 19:20:53 there's a few ways, but yeah Apr 20 19:22:02 can u enumerate the different possible ways? so i can search for them Apr 20 19:22:20 no, I won't Apr 20 19:22:27 google for replace lockscreen Apr 20 19:22:33 I don't do it everyday, so I'd have to spend time research as well Apr 20 19:24:21 do i google how to create a custom lockscreen? i just need some keywords ive spent days searching how to put an icon on the lockscreen and didnt find any result Apr 20 19:25:31 pfn, there's any way for the app to "lock" the images files so only the app has access to it? Apr 20 19:26:14 not on sd, no Apr 20 19:29:03 JakeWharton: any more suggestions? Apr 20 19:29:46 EvilPenguin: JakeWharton is having trouble with his wifis from chick-fil-a Apr 20 19:29:54 boooo. Apr 20 19:30:25 well shit. Apr 20 19:31:53 erkout: that's only possible officially in ICS. Apr 20 19:34:51 Alright, 1 more question and I promise I'll leave you alone...I'm running adb shell and I have access to the android linux file system but I can't find my app's file that I created...I don't see a /data/data/ in any directories on linux file system... Apr 20 19:34:55 does anyone know about failed to get adb version error=2? Apr 20 19:35:07 Is there any difference in drag and drop functionality between SDK 2.2 and 3.0? Apr 20 19:37:02 so uh Apr 20 19:37:06 you realize / is the root, right? Apr 20 19:37:14 /data/data/ is an absolute path Apr 20 19:37:16 cd /data/data Apr 20 19:37:18 ls Apr 20 19:37:20 what do you see? Apr 20 19:37:30 if the answer is "permission denied" then you need to use su to become a superuser Apr 20 19:38:46 lov: very sorry about that...assumed that /data/data was relative Apr 20 19:38:50 so i dislike using a ImageView as a place holder for another ImageView to contain an animation glitch (the glitch being setting the place image, download an image, reset to downlaoded iamge, fade in). Apr 20 19:38:53 lov: thanks! Apr 20 19:43:03 can i have an ImageView with a place holder, and then download an image overlaying it? Apr 20 19:49:42 "Woman's 2-gallon-a-day Coca-Cola consumption cited in death" Apr 20 19:49:53 .. Apr 20 19:50:50 2 gallons? Apr 20 19:50:55 of coke? Apr 20 19:51:02 was she a relative? Apr 20 19:51:03 ;-) Apr 20 19:51:16 on the news Apr 20 19:51:30 i just drink water and grape juice :) Apr 20 19:51:55 2 gal of grape juice would probably kill me too, though Apr 20 19:55:20 @lov what do u mean? Apr 20 19:55:35 Is there any difference in drag and drop functionality between SDK 2.2 and 3.0? Apr 20 19:56:45 new android book from oreilly http://shop.oreilly.com/product/0636920010241.do Apr 20 19:57:10 orly Apr 20 19:57:12 orly Apr 20 19:57:13 fuck Apr 20 19:57:16 hahaha Apr 20 19:57:18 p/ Apr 20 19:57:22 :D Apr 20 19:57:33 oh boy, a cookbook! Apr 20 19:57:41 orly taitz ? Apr 20 19:57:42 :D Apr 20 19:58:06 SimonVT and lov are birthers Apr 20 19:58:39 heh Apr 20 19:58:44 where's the private key g00s Apr 20 19:58:50 7.4. Creating a Button and Its Click Event Listener Apr 20 19:58:57 Problem: you need to do something when the user presses a button Apr 20 19:59:08 hrnt: thats a huge problem, indeed :| Apr 20 19:59:34 can someone help me with a getAssets() problem? I can call list("www") on the AssetMananger and see the file I'm trying to retrieve in the returned string list. However, when I call openFd("www/filename"); I get a file not found exception, even though I just saw the same file in the list. It doesn't matter if I use a hard-coded name or the indexed element in the name list. The result is always the same. Apr 20 19:59:52 Solution: Create a button in your layout. In onCreate(), find it by ViewID. Call its setOnClickListener(). In the OnClickListenerImplementation, check for the ViewID... Apr 20 19:59:59 orly :P Apr 20 20:00:19 yarly Apr 20 20:00:40 Arkain: calling openFd from where? On the AssetManager? Apr 20 20:00:49 yes Apr 20 20:00:53 ok Apr 20 20:01:00 good question, I'm not sure why this wouldn't work Apr 20 20:01:03 try stackoverflow? Apr 20 20:01:42 similar questions, same results. Apr 20 20:02:25 perusing through my res/drawable-* directories is always a source of comedy, confusion, mixed with exasperation Apr 20 20:03:21 tech books are too expensive Apr 20 20:03:43 safari bookshelf <3 Apr 20 20:03:50 QubeZ: from orly, you almost always get 50% off with n > 1 Apr 20 20:03:59 but 1 get 1 free, buy 2 get 2 free, etc Apr 20 20:04:08 (android cookbook is already there :P) Apr 20 20:04:22 not bad, i have free subscription to books24x7 through work but sometimes you just need a real book in hand Apr 20 20:04:29 i write a lot in books Apr 20 20:04:42 i hear books24x7 is very nice Apr 20 20:04:54 hi Apr 20 20:05:09 i am used to reading text on a computer screen, so safari is sufficient for me Apr 20 20:05:29 how can I request bt pairing with remote device? Apr 20 20:05:29 i actually prefer it over the dead tree editions, mostly because it has a better search :P Apr 20 20:05:50 I have a bt_addr of remote device already Apr 20 20:06:43 Fisiu: http://developer.android.com/reference/android/bluetooth/package-summary.html Apr 20 20:07:01 also, http://developer.android.com/guide/topics/wireless/bluetooth.html Apr 20 20:07:56 Fisiu: actually, i don't think you can request pair Apr 20 20:08:19 yo can show the bt settings screen which allows one to pair Apr 20 20:08:50 you can also try to connect to an address, and android *might* show a pairing request dialog, if the settings app was recently run (this is truly bizarre) Apr 20 20:09:07 or if not, it might show a notification for pairing request - you dont have control over this Apr 20 20:09:08 it could be an option with showing bt settings screen Apr 20 20:09:22 yeah, so just show the bt settings screen Apr 20 20:09:49 as far as I read, creating connection on bt socket also results with pairing screen Apr 20 20:10:12 it does not work reliably Apr 20 20:10:19 good luck Apr 20 20:12:10 Hi, Would it be possible to set the the height of itemd in listview ? Apr 20 20:12:18 items* Apr 20 20:12:51 t432: you need to specifiy the height on a custom view you provide your adapter Apr 20 20:14:45 g00s: I'm using getView() to set properties for "simple_list_item_1" , tried setting "setTextAppearance" to small, no effect Apr 20 20:16:05 Is there any difference in drag and drop functionality between SDK 2.2 and 3.0? Apr 20 20:17:07 yes Apr 20 20:17:12 wasn't d&d added in 3.0? Apr 20 20:18:07 yes Apr 20 20:18:09 ok i think im stuck on making this thing any faster, lastview. Apr 20 20:19:45 can i add icons to lockscreen in ICS natively ? Apr 20 20:20:33 no Apr 20 20:20:45 you will be able to once ms is released :P Apr 20 20:20:49 you wont even have to make a rom :P Apr 20 20:20:50 wooooty Apr 20 20:20:58 ms? Apr 20 20:21:07 whats ms ? Apr 20 20:21:16 http://www.youtube.com/watch?v=tA9cnemnQ0A Apr 20 20:21:22 use widgetlocker Apr 20 20:21:27 implement your own lockscreen Apr 20 20:21:27 etc. Apr 20 20:21:33 ms is mobile substrate Apr 20 20:21:50 huh Apr 20 20:21:56 I thought that's some ios-ism Apr 20 20:22:02 so i just found out the google wallet office is right down the street Apr 20 20:22:06 pfn: it sure is Apr 20 20:22:09 but it's comign to android Apr 20 20:22:12 and the youtube office is right behind my office Apr 20 20:22:12 pfn: http://www.youtube.com/watch?v=tA9cnemnQ0A Apr 20 20:22:15 is it bad that I didnt even see the name and I just in my head said "hey thats saurik" Apr 20 20:22:18 http://developer.android.com/training/index.html Apr 20 20:22:29 i want to walk into the wallet office and hand them a resume Apr 20 20:22:35 EvilPenguin, I don't see how it's "coming to android" Apr 20 20:23:02 pfn: ms is tricky and android is a pain in the ass, so saurik is "slowing" making it work, Apr 20 20:23:16 pfn, in order to implement my own lockscreen can i do it without widgetlockscreen? Apr 20 20:23:30 isn't wallet in ny? Apr 20 20:23:40 pfn: you can pretty much hook anything atm. Apr 20 20:23:41 why would wallet be in ny? Apr 20 20:23:46 teachnically yes you can erkout but if you have to ask, no probably not Apr 20 20:23:52 birbeck: because a lot of financial things are in NYC? Apr 20 20:23:55 mikedg_: though ny is one of their test markets Apr 20 20:23:57 erkout, if you want to re-write the entire lock screen, sure Apr 20 20:23:59 it's part of commerce and commerce is in ny Apr 20 20:24:14 birbeck i in ny? Apr 20 20:24:18 s/i/is Apr 20 20:24:21 pfn: rewrite? Apr 20 20:24:23 lol no Apr 20 20:24:25 always assumed out of country Apr 20 20:24:25 lov: like square, and paypal and zong and boku and ... Apr 20 20:24:28 pfn: isn? Apr 20 20:24:37 pfn: bisrbeck? Apr 20 20:24:38 oh, zong and paypal are the same now Apr 20 20:24:52 wtf is zong? Apr 20 20:24:52 birbeck: like every bank. Apr 20 20:25:14 birbeck sounds like he's in sf Apr 20 20:25:16 im leaving Apr 20 20:25:20 fuck u Apr 20 20:25:46 he left and took tachyondev with him, heh Apr 20 20:26:12 lov: why would a software company need to exist near the banks? Apr 20 20:26:35 lov: though our bd department is in ny every week taking to banks Apr 20 20:26:44 uh Apr 20 20:26:53 idk if you realize this but a lot of networking is done face to face Apr 20 20:26:59 the execs pretty much live there now, but development remains in sf Apr 20 20:27:00 being able to talk to people in person is a big help Apr 20 20:27:11 yeah Apr 20 20:27:15 16:26:44 < birbeck> lov: though our bd department is in ny every week taking to banks Apr 20 20:27:19 16:27:08 < birbeck> the execs pretty much live there now, but development remains in sf Apr 20 20:27:23 it's this. Apr 20 20:28:57 hey guys Apr 20 20:29:39 lov: google wallet is here http://g.co/maps/zdxmb Apr 20 20:29:46 http://g.co/maps/zdxmb Apr 20 20:30:52 it scrolls amazing on a G1 but sucks on a tablet. Apr 20 20:31:24 you guys are so cute Apr 20 20:31:44 birbeck, mikedg, and pfn in particular Apr 20 20:32:06 ? Apr 20 20:32:11 me? Apr 20 20:32:41 ah I guess you're off the hook Apr 20 20:32:51 whats cute? Apr 20 20:33:01 and thanks ;-) Apr 20 20:33:17 both of you are 100% certain of where the Wallet team sits, and you both point to different coasts Apr 20 20:33:28 birbeck: FINE YOU WIN Apr 20 20:33:32 completely disregarding that a) you could both be right and b) you could both be wrong. Apr 20 20:33:33 they do have an NYC office though Apr 20 20:33:34 lmao Apr 20 20:33:39 im sure they do Apr 20 20:33:41 I heard they were in India Apr 20 20:34:14 I didn't guess where wallet team sits Apr 20 20:34:15 birbeck: don't let me disrupt your world view, then Apr 20 20:34:19 i just imagined that they were in mv, but my pm pointed it out at lunch today Apr 20 20:34:24 I just thought that birbeck was not in the US Apr 20 20:36:00 SimonVT, you there? Apr 20 20:36:11 yep Apr 20 20:36:57 the Wallet was coming from INSIDE YOUR PANTS Apr 20 20:37:14 word I am working on the checkedtextview of LL problem now, you said to use recursion. Do you remember? Apr 20 20:37:26 Eh, sure Apr 20 20:37:29 ctate: yeah, i generally keep my phone in my pants, except when im paying Apr 20 20:38:19 dont know if merchants would like me dry humping their pos's to pay Apr 20 20:38:24 basically my checkedtextivew isnt in the root LL but another and thats why it doesnt get checked. and in order to find it I need to use a recursive function Apr 20 20:38:55 ... Apr 20 20:40:48 SimonVT, so basically I don't know how to use recursion to find the checkedtv. Mind explaining? Apr 20 20:44:32 Yeah, too lazy to explain anything right now, so I already did your work for you ages ago: http://pastebin.com/jKc6ig30 Apr 20 20:45:43 haha sweet I like that Apr 20 20:46:15 when did you do this? Apr 20 20:46:44 hmm. I need advice on what how to approach this before i start and get everything wrong. Here's what i need to do: i need to parse some JSON information which generally contains information about courses a certain student is taking (including the time the course takes place etc.) and i need to make a schedule with it. Any ideas? there's no ScheduleView as far as i'm concerned :D Apr 20 20:46:52 Uh.. Last year some time I think? Don't use it myself anymore Apr 20 20:47:14 Followed advice, created custom list, item height still same as "simple_list_item_1" (too large) - http://pastebin.com/KYx8ingG Apr 20 20:47:40 android:minHeight="?android:attr/listPreferredItemHeight" Apr 20 20:47:41 bluezone: actually, there is a ScheduleView or something in iosched Apr 20 20:47:45 So your minHeight is too large? Apr 20 20:47:57 perhaps? Apr 20 20:48:16 SimonVT, well it works thanks haha Apr 20 20:48:25 g00s: i probably have seen it before but wasn't able to get it working Apr 20 20:48:36 so keep trying to make it work :p Apr 20 20:49:02 SimonVT: if so, how do I set/edit minHeight? Apr 20 20:49:23 tried setting "minheight" directly, makes no difference Apr 20 20:49:35 Change the value? Remove it? Apr 20 20:50:20 t432: try setting height instead of minheight Apr 20 20:50:46 g00s: will trym thx Apr 20 20:50:56 try,* Apr 20 20:53:58 * hackkitten hugs g00s and flops off to bed~ Apr 20 20:55:07 Okay, i have another basic question that I know is hould be able to find out but I can't seem to figure it out. If i want to get *aggregated* presence for a contact, but i only know their email, what would the way to do that be? Apr 20 20:55:18 as there doesnt seem to be a filter URI or anything to let me select off email vs ID or something Apr 20 21:07:51 does anyone develop on androids using linux and eclipse indigo? Apr 20 21:09:58 most people, why? Apr 20 21:11:17 i'm getting an error anytime i try to run an application: "Failed to get the adb version: Cannot run program "(directory)": error =2 Apr 20 21:12:39 did you set up the android dev kit? did you perhaps create a folder at $ADK/platform-tools/adb Apr 20 21:14:05 bakis: is it possible that your tools are for x86 while you're using x64 or vice versa? Apr 20 21:14:12 if you try to run adb directly, do you get the same kind of error? Apr 20 21:14:15 i don't think? Apr 20 21:14:18 hold on Apr 20 21:14:23 that's what it looks like from that error Apr 20 21:14:50 nothing happens at all when i try to run adb directly Apr 20 21:15:17 lov: the tools are only for x86 but the x86_64 arc is backwards compatible Apr 20 21:15:33 did you run android yet? Apr 20 21:15:37 yeah Apr 20 21:15:40 download the needed tools Apr 20 21:15:44 etc. Apr 20 21:15:45 i did Apr 20 21:15:46 hello Apr 20 21:16:03 :-\ not sure. Are you using a weird filesystem? Apr 20 21:16:12 if my app get something from http://localhost/mywebservice Apr 20 21:16:33 can I run it on an android device emulator Apr 20 21:16:40 bakis: vboxsf sometimes breaks things for me Apr 20 21:16:56 what is that? Apr 20 21:17:09 oh virtual box Apr 20 21:17:10 wissem: I would assume so. Apr 20 21:17:12 wissem: as far as I know you'll need a proper host name Apr 20 21:17:19 this is very peculiar... some of my phones aren't appearing on eclipse's manual run list, even though USB debugging is on... Apr 20 21:17:34 do they show in 'adb devices' from the command line? Apr 20 21:17:54 localhost isn't a proper hostname? :) Apr 20 21:18:21 kinda it'll point to the devices machine rather than the development machine Apr 20 21:18:27 ctate: not sure, is that the full command? Apr 20 21:18:49 bluezone, yeah but you have to have the PATH set up Apr 20 21:19:02 ctate: ah, ill see if i can set it up now Apr 20 21:19:40 Sparksis: changing localhost on my machine to let's say an IP adress would fix this? Apr 20 21:20:10 in ICS how can I change the name at the top when I change activities? Mine just says my app name the whole time Apr 20 21:20:11 hi. I hvae an old android repo. today I went into it and ran "repo sync" and it says it cant connect to android.git.kernel.org[0: 149.20.4.77] and fails Apr 20 21:20:18 wissem, probably you might have to set up port forwarding via adb forward if they don't share a network Apr 20 21:20:19 is there some way i can update my repo so that sync works agian? Apr 20 21:20:22 without pulling a full new repo? Apr 20 21:20:47 okay i figured it out i think Apr 20 21:21:05 fedora has its own installation instructions for android development Apr 20 21:21:17 o.o Apr 20 21:21:30 Are you using Fedora's eclipse? Apr 20 21:21:35 no? Apr 20 21:21:38 don't use fedora's eclipse that's bad Apr 20 21:21:40 just regular eclipse? Apr 20 21:21:45 download eclipse from eclipse.org Apr 20 21:21:47 good good Apr 20 21:21:53 oh poo Apr 20 21:21:59 i think i did use yum install eclipse Apr 20 21:22:25 i hate fedora :( Apr 20 21:22:28 yeah that always goes bad for me, install real java from java.sun.com and eclipse from eclipse.org Apr 20 21:22:47 haha okay... Apr 20 21:22:56 you'll also want to "ln -sf /usr/java/default/bin/* /usr/bin" Apr 20 21:22:56 haha why do you hate fedora? Apr 20 21:23:05 I don't I hate IceTea java Apr 20 21:23:14 which fedora uses Apr 20 21:23:21 bluezone said he hates fedora Apr 20 21:24:10 bakis: i don't know, i just hate it lol, i feel they have a harsh stance against non-free software, at least last time i was using it Apr 20 21:24:25 Sparksis: so I forward tthe device emulator to a port that I configure in my local machine in a different port? Apr 20 21:25:00 wissem let me check I forget exactly how it's done brb Apr 20 21:25:00 well isn't the idea of linux to be open source? Apr 20 21:25:36 Sparksis: install java itself or a jdk? Apr 20 21:26:09 yeah but theres a difference between enjoying open source and not allowing me to play widely used media because it's technically "not" open-source lol Apr 20 21:26:30 haha i've never experienced that.. hmm Apr 20 21:26:30 jdk is usually best though I think eclipse doesn't use javac Apr 20 21:26:38 but i had these issues awhile ago it may changed now Apr 20 21:27:01 should i get jdk 6 or 7 Apr 20 21:27:20 if you get 7 you will probably need to configure it to use 6 mode anyway Apr 20 21:27:41 wissem, It looks like the emulator should be able to connect to the server so long as you have the server bound to something other than 127.0.0.1 Apr 20 21:27:47 so just get 6 then lol? Apr 20 21:28:25 wissem, for example bind the server host to 0.0.0.0 or some other active ip address Apr 20 21:28:52 bakis yeah Apr 20 21:29:17 So no port forwarding then, cool. Apr 20 21:29:26 Sparksis: thanks! Apr 20 21:29:29 bluezone, fedora it self has a harsh stance as per RedHat but if you install rpmfusion it runs pretty damn good Apr 20 21:29:46 wissem, does it work then? Apr 20 21:31:11 is it possible that it's not detecting my phone because it's cyanogen mod? Apr 20 21:32:19 doubtful, did you get adb devices to output anything? Apr 20 21:32:55 also check layer1 does is the usb cable in good working order? I always forget physical issues :-\ Apr 20 21:32:58 if you haven't set up permissions for your user there's a good chance you don't have access to the raw usb endpoints Apr 20 21:33:49 Sparksis: wanted to avoid setting up PATH lol it always takes me so long Apr 20 21:34:05 linux/windows? Apr 20 21:34:10 Sparksis: I will try this next week :p Apr 20 21:34:15 but the usb cable works because one of my other phones shows up, windows Apr 20 21:36:17 try this ? https://developer.android.com/sdk/oem-usb.html Apr 20 21:36:39 is the phone a different vendor? Apr 20 21:37:08 wissem, ah okay. Apr 20 21:37:45 btw, I'm using jdbc that souldn't be a problem right? Apr 20 21:38:24 I don't think so. As long as the ip bindings all work in the right directions it should be fine Apr 20 21:39:38 is it posible to record from standard output instead from MIC with AudioRecord or MedriaRecorder? Apr 20 21:40:08 ... record from standard output? Apr 20 21:40:17 like, from the speaker? Apr 20 21:40:41 I recall seeing that it is not sometime around the release of 2.2 but it might be now Apr 20 21:41:04 evancharlton: yes :p Apr 20 21:41:30 I think it was something to do with privacy (ie phone tapping) that caused it to be scorned as a feature but I don't recall exactly Apr 20 21:41:36 As4xk: are you trying to sniff the audio going to the speaker? Apr 20 21:42:19 okay i reinstalled eclipse and the jdk Apr 20 21:42:35 yes. so if i play music for example, the music will be recorded Apr 20 21:43:27 no Apr 20 21:44:00 bakis, did that fix the problem? Apr 20 21:45:58 i dunno i'm trying to get rid of the old eclipse Apr 20 21:46:09 i used yum remove eclipse and that did something but somehow its still there... Apr 20 21:46:40 yum history Apr 20 21:46:50 yum history undo (number that installed it) Apr 20 21:46:57 evancharlton: ok. thanks Apr 20 21:47:48 this doesn't really give enough info to determine which one it was haha Apr 20 21:49:23 nice. got it Apr 20 21:49:31 i mean removing eclipse that is.. Apr 20 21:50:12 okay Apr 20 21:51:55 how do i get eclipse on my startup menu? Apr 20 21:52:09 i tried creating a shortcut but i can't really put it on my favorites Apr 20 21:52:37 heh, um that's a bit more difficult. let me google for the thing again brb Apr 20 21:53:53 as I recall this works http://askubuntu.com/questions/80013/how-to-pin-eclipse-to-the-unity-launcher Apr 20 21:54:27 make sure you change the paths Apr 20 22:00:20 nice. thanks Apr 20 22:00:33 it worked? Apr 20 22:00:42 glad to have helped :) Apr 20 22:00:48 just the eclipse shortcut Apr 20 22:00:48 hahaha Apr 20 22:00:55 :( Apr 20 22:01:03 haven't fully set up eclipse again yet Apr 20 22:01:20 how do i make sure eclipse uses the jdk i installed and not fedoras normal one? Apr 20 22:01:51 Created Dictionary in eclipse Apr 20 22:02:21 Environment variable Apr 20 22:02:43 HOME_JAVA Apr 20 22:02:55 ASK LINUX Apr 20 22:03:26 SHOULD BE SYMBOLICALLY LINKED Apr 20 22:03:32 oops Apr 20 22:03:54 Voice hurts from yelling Apr 20 22:04:32 bakis: typically I use "ln -sf /usr/java/default/bin/* /usr/bin" Apr 20 22:04:44 however there is a ... Apr 20 22:04:45 Beep Beep Hoop Beep Apr 20 22:06:13 window>preferences>java>installed jre Apr 20 22:06:30 menu that will allow you to select what java you'd like to use Apr 20 22:07:39 ping sparksis Apr 20 22:08:03 okay i think i did that part right.. i just hit add, standard VM, then picked the jdk folder i extracted to. Apr 20 22:08:22 um, yes... Apr 20 22:09:40 hahaha Apr 20 22:10:30 I usually use a jdk*.rpm.bin so it's not extracted but what you said is correct for the standard jdks Apr 20 22:11:50 wtf, samsung is coming out with its own cloud service Apr 20 22:12:06 asus did it also wrong channel Apr 20 22:12:43 is there like a margin-left:auto for android anywhere? Apr 20 22:12:53 i bet we'll see sCloud integration in their android phones Apr 20 22:12:59 Yes Apr 20 22:13:07 Layout Apr 20 22:13:19 um what? Apr 20 22:13:36 Horizontal center Apr 20 22:13:43 Gravity Apr 20 22:13:54 U got it Apr 20 22:13:57 FUUUUUDGE Apr 20 22:14:02 still getting that same error Apr 20 22:14:52 android is difficult Apr 20 22:15:12 yeah.. Apr 20 22:15:22 Very fragmented but powerful that way Apr 20 22:16:13 bakis :-\ Apr 20 22:16:34 well now i'm getting a different error? Apr 20 22:16:39 ls -R $ADK and paste it to pastebin Apr 20 22:16:44 oh? Apr 20 22:17:36 yeah i had to install some files due to the 64 bit stuff Apr 20 22:17:41 but one of them wouldn't let me install it Apr 20 22:17:47 and now it's causing an error Apr 20 22:17:56 :-/ Apr 20 22:18:18 Install 32 Apr 20 22:18:19 exit Apr 20 22:18:31 Else trouble Apr 20 22:18:53 What u need 64 for? Apr 20 22:19:05 i dunno? Apr 20 22:19:07 that sucks. Perhaps I should write a verbose tutorial on how to set up an android development environment for fedora. When I first did it I had a lot of weird issues too. Apr 20 22:19:17 http://fedoraproject.org/wiki/HOWTO_Setup_Android_Development Apr 20 22:19:33 it just won't let me install libstdc++.i686 Apr 20 22:19:45 because i have the 64 bit already and it's getting mad Apr 20 22:20:19 is that for adb or java? Apr 20 22:20:20 Fedora sucks Apr 20 22:20:24 wait i got it! Apr 20 22:20:28 Try arch Apr 20 22:20:29 i updated my 64 bit first Apr 20 22:20:36 then it let me install Apr 20 22:20:57 sweet a different error message! Apr 20 22:21:31 Centos? Apr 20 22:21:32 there should be a package you install to get the full 32bit userspace on fedora Apr 20 22:21:44 It is good Apr 20 22:22:09 calmchess: wrong channel, also I'm starting to like centos but it doesn't have gnome 3 Apr 20 22:22:11 yeah but now i have this "the connection to adb is down" and "ensure adb is correctly located at (directory) and is executable" Apr 20 22:22:31 :-S Apr 20 22:22:44 U need gui? Apr 20 22:22:53 ls -l $ADB/platform-tools and make sure that the x bit is set Apr 20 22:23:00 for adb Apr 20 22:23:14 U can launch eclipse without GUI Apr 20 22:24:12 calmchess, how cute a fanboi. There is nothing wrong with having a GUI especially when it's on you default machine that you use for everything. But seriously this is #android-dev Apr 20 22:24:23 for editing .bash_profile, do you have to do export PATH between every path or just once at the end? Apr 20 22:24:44 once at the end Apr 20 22:24:46 Ok Apr 20 22:27:11 so this path says $HOME/ where is that? is it just your home/ directory but in all caps? Apr 20 22:27:58 $HOME is the equivalent to ~ it's usually /home/ Apr 20 22:28:12 Time for Windows 7 ? Apr 20 22:28:32 ~ Apr 20 22:28:33 ah alright. good to know Apr 20 22:29:24 ~/ Apr 20 22:29:58 I open terminal Apr 20 22:30:07 Help u out Apr 20 22:30:18 Using phone Apr 20 22:30:41 Sparksis: did you look at that link i posted? Apr 20 22:32:04 bakis are you talking about the fedora one? Apr 20 22:33:53 Can't use Android terminal :( Apr 20 22:34:08 I suck Apr 20 22:38:07 i'm trying to use a menu inflater in onCreateOptionsMenu() in my main SherlockFragmentActivity. Apr 20 22:38:29 i get the menuinflater from the context, then try to inflate a menu XML by resource Apr 20 22:39:07 eclipse says: inflater.inflate<---error: The method inflate(int, Menu) in the type MenuInflater is not applicable for the arguments (int, Menu) Apr 20 22:39:22 can anyone understand why Eclipse is drunk? Apr 20 22:39:27 alright awesome it now runs but my device is listed as ?????????? and the target is unkown Apr 20 22:40:29 it's telling me that my arguments are correct and incorrect at the same time...wtf? Apr 20 22:41:09 bakis, https://developer.android.com/guide/developing/device.html Apr 20 22:42:03 it suggests that I static cast the Menu item menu which is passed into this method as a Menu...to (Menu) Apr 20 22:42:33 okay it says ubuntu linux but i'll give it a shot Apr 20 22:43:27 i see. it's seeing it as an ActionBarSherlock.view.Menu not a android.view.Menu. Does anyone know why I can't use the actionbarsherlock version of view.Menu? Apr 20 22:43:55 so what if i don't have a udev folder? just create one? Apr 20 22:44:09 just kidding i do Apr 20 22:44:55 bakis, the udev rules.d folder is actually pretty standard across distributions of Linux Apr 20 22:45:03 unlike init... Apr 20 22:45:04 yeah i found it Apr 20 22:45:28 quick noob question regarding ProGuard Apr 20 22:46:25 wat do i need to do in the config, if the davik is unable to find some stuff that i am using in the 3rd party jar Apr 20 22:47:29 google earth has no full screen function on mac; lamesauce Apr 20 22:47:49 bakis, did everything work out? Apr 20 22:50:06 do i have to logout to apply udev rules? Apr 20 22:50:19 because when i do adb devices its listed as ??????????? no permission Apr 20 22:50:20 s Apr 20 22:51:58 ha! Apr 20 22:52:00 got it! Apr 20 22:52:05 i just had to unplug and plug it back in Apr 20 22:53:18 YES! Apr 20 22:53:25 thanks you sooo much Sparksis Apr 20 22:53:31 you can have all my internets Apr 20 22:54:27 oh he's gone.. Apr 20 23:08:38 Hello, all. I hate to spend more energy lashing out than learning, but what is the difference between the `arm-linux-eabi` toolchain and the `arm-eabi` toolchain? Apr 20 23:18:57 to override onCreateOptionsMenu for a SherlockFragmentActivity, do I need to import com.actionbarsherlock.view.Menu or android.view.Menu? Apr 20 23:21:17 Nevermind, I RTFM'd again and realized that this is completely described and addressed on the Usage page. Apr 20 23:24:10 How can I change the spacing between characters when drawing text in canvas? Apr 20 23:25:48 I'm trying to take up a larger horizontal space with text. setTextScaleX() can do this, but it does so by stretching the characters, and that looks too ugly. Apr 20 23:26:21 The docs don't seem to have anything about character spacing or kerning :( Apr 20 23:28:10 no one knows?? Apr 20 23:45:48 I have a ViewPager in one of my activities and I'm trying to add the code for a button, but whenever the activity is started, the app is paused and the debug tab fills up with stuff. Here is the class in question: http://pastebin.com/X65hnMTS Apr 20 23:45:59 Does anyone know how to get the button to work? Apr 20 23:50:13 http://www.forbes.com/sites/insertcoin/2012/04/19/how-mobile-games-are-big-business/ Apr 20 23:55:05 how do you tell proguard to keep the empty constructor (with no parameter) in config Apr 21 00:07:09 test Apr 21 00:07:35 fail Apr 21 00:07:48 Eclipse is choice IDE for Android? Apr 21 00:08:59 good link to setup Eclipse for Android dev? Apr 21 00:10:38 hellllpp Apr 21 00:10:43 http://developer.android.com/sdk/installing.html Apr 21 00:11:04 Leeds++ Apr 21 00:12:20 too old now i guess Apr 21 00:12:49 seems too hard. cant just code and go lol. just want to bounce some pixels on the screen for starters. Apr 21 00:13:08 hey! I'm not *that* old... Apr 21 00:14:15 no me. if I try to follow the directions I get the versions off and have no idea what is what. Apr 21 00:14:16 you can just code and go Apr 21 00:14:53 it is harder for me to figure out an IDE and new classes to do old tricks then to walk and chew gum. Apr 21 00:15:38 also, you don't need to use an IDE if you don't want to Apr 21 00:16:26 super stuck and overloaded at the same time. Apr 21 00:17:30 I'm pasting the hello world example and computer crashes a lot Apr 21 00:22:07 Copy Pasta is a bad dish my friend Apr 21 01:25:50 Hi, want to make a "menu" button send an email. How do you send it through a menu button? Apr 21 01:26:15 I know how to send email through a normal button, but does not work through menu button. Apr 21 01:26:58 ? Apr 21 01:27:04 Anyone here? Apr 21 01:31:35 Zukky create a menu Apr 21 01:31:40 Zukky: it helps if you break problems down into smaller logical steps. The first step would be to make anything happen when someone presses a menu item. Apr 21 01:31:58 such as Log.d(TAG, "menu item pressed"); Apr 21 01:32:04 rather than Send email! Apr 21 01:32:09 lol Apr 21 01:32:15 good advice Apr 21 01:39:46 Sorry mate, yes I meant - user presses menu - there is an option: "Send". When user presses send, an Intent.ACTION_SEND is initiated. Apr 21 01:40:06 For clarification: http://stackoverflow.com/questions/10255422/how-to-send-email-from-menu Apr 21 01:40:33 Thank you for your ample time. Apr 21 01:41:01 Zukky: where is your log message Apr 21 01:41:07 do you know what ample means? Apr 21 01:41:24 (because it is condescending to assume we have ample time to help you) Apr 21 01:41:42 Log.d(TAG, "menu item pressed"); Apr 21 01:41:48 put it in your switch Apr 21 01:41:58 Let me give it a go. Apr 21 01:44:16 also you never did anything with the intent. you just created it and left it. Apr 21 01:44:46 I was wondering it is something to do with the intent. Sorry, still learning. Apr 21 01:45:03 How would I initiate the intent? Apr 21 01:45:16 you should have separated the idea of sending the email from the idea of doing something when the menu item is pressed. Apr 21 01:45:59 http://android-er.blogspot.com/2011/03/send-email-using-intentactionsend.html Apr 21 01:46:04 Hey google Apr 21 01:46:37 Is there an international convention of android? Apr 21 01:47:10 I thought I clarified that in the description. Not that clear from the title. I'll check out the tutorial. I'll post feedback. Apr 21 01:47:48 Hey countzer, I have a website it's http://google.com where you can search things like that Apr 21 01:49:08 countzer: probably the most popular android related convention is google io, which you will not be able to get a ticket to Apr 21 01:49:26 countzer: i think they are giving winners of google code jam an opportunity to buy a ticket, heh Apr 21 01:49:31 win to buy ;P Apr 21 01:50:06 I want them to have a convention here in the pacific islands Apr 21 01:50:15 in french polynesia Apr 21 01:50:28 android is open source. you can start your own convention. no one is going to stop you. Apr 21 01:50:39 readme: It works. I just added StartActivity(i); and it ran. Such a small thing, thank you very much. Apr 21 01:50:44 np Apr 21 01:51:04 start a meetup Apr 21 02:02:12 what are the license terms of using ActionBarSherlock in my app? Do I have to open source my app if I use it? Same question for using some of Jake Wharton's sample code Apr 21 02:03:43 hesperaux: did you read the license? Apr 21 02:04:04 I read the apache license, but i don't know what license the library uses Apr 21 02:04:11 and even after reading it, i don't understand what it says Apr 21 02:04:12 it uses the apache license Apr 21 02:04:22 basically you can use it without restriction Apr 21 02:04:41 do I need to put visible credit in my app for the parts I use? Apr 21 02:04:53 and also link to the apache license in that place? (such as About My App) Apr 21 02:06:26 nah Apr 21 02:06:29 it says i have to redistribute it (in any form) along with the license...but obviously nobody is going to look inside my APK for LICENSE.txt or w/e Apr 21 02:06:31 but if you make a derivative work Apr 21 02:06:39 say, you improve the library and re-release it Apr 21 02:06:44 then you need to comply with section 4. Apr 21 02:06:50 oh Apr 21 02:06:52 all of android is basically apache licensed Apr 21 02:07:05 so redistribution doesn't mean i use it in my app, it means I re-release the code as my library Apr 21 02:07:11 yeah Apr 21 02:07:14 i see Apr 21 02:07:21 if you redistribute your app in source form Apr 21 02:07:23 and include ABS Apr 21 02:07:27 then you should comply with 4. Apr 21 02:07:57 in my code, if I extend, override, or abstract the library or his sample code, this does not require license distribution? Apr 21 02:08:13 Not unless you make your code available for others to use. Apr 21 02:08:37 hmm Apr 21 02:09:38 so when i make my source, i should place the apache boilerplate notice in files that use his sample code, in case I release the source to my app. As for the library, i would not redistribute the jar file with my app source directly Apr 21 02:11:03 legal documents are so confusing to me Apr 21 02:12:20 does pthreads tls in ndk require a certain version of android? Apr 21 02:12:50 Or is this problem I'm having completely unrelated to that Apr 21 02:44:01 Hello people. I went to my project build properties and imported android-sdk/platforms/android-14 and this is what I get: http://paste.lisp.org/display/129075 Apr 21 02:44:36 Does anyone have a clue? Apr 21 02:46:42 Beket: what code libraries are you using? Apr 21 02:47:14 acra-4.2.3, android-support-v4, android.jar, core.jar (from zxing) Apr 21 02:47:24 and also com.android.ide.eclipse.adt.LIBRARIES Apr 21 02:47:38 hmm Apr 21 02:48:05 I tried removing core.jar altogether, but didn't make any difference Apr 21 02:52:57 Hey guys Apr 21 02:53:20 Just wondering is there a way to have like a background application dispatch key events to foreground ones? **** ENDING LOGGING AT Sat Apr 21 02:59:59 2012