**** BEGIN LOGGING AT Wed Mar 21 02:59:58 2012 Mar 21 03:00:13 are you sure the file res/drawable-hdpi/splashanimation.xml exists Mar 21 03:00:43 cleaning it didn't work Mar 21 03:00:44 yes it works Mar 21 03:00:52 if I make it under 16 different pictures Mar 21 03:00:54 it works Mar 21 03:00:59 once i hit 17 DIFFERENT pictures Mar 21 03:01:00 it crashes Mar 21 03:01:11 I'll show my splashanimation.xml, sec Mar 21 03:01:31 http://pastebin.com/wEaR6r5S Mar 21 03:01:45 Are all the files being referred to in the xml in the hdpi dir? Mar 21 03:01:51 yes Mar 21 03:02:10 I tried changing the duration to 50 ms, and it didn't work either, just instantly crashes the moment I get over 16 Mar 21 03:02:35 I tried just repeating splashframe16 like 5 times, which would result in more than 16 items, and it worked (didn't crash) Mar 21 03:02:45 but once i do 17+ different images it crashes Mar 21 03:03:20 java.lang.OutOfMemoryError: bitmap size exceeds VM budget Mar 21 03:03:30 There's the problem methinks Mar 21 03:03:41 03-20 19:58:27.520: E/GraphicsJNI(9218): VM won't let us allocate 1536000 bytes Mar 21 03:03:44 03-20 19:58:27.520: D/skia(9218): --- decoder->decode returned false Mar 21 03:03:44 yeah Mar 21 03:03:46 http://pastebin.com/pFKcHS4d Mar 21 03:03:47 03-20 19:58:27.520: E/Decode resource failed as memory short(9218): java.lang.OutOfMemoryError: bitmap size exceeds VM budget Mar 21 03:03:48 is that my problem? Mar 21 03:03:54 yup Mar 21 03:03:58 you need to do something about the amount of memory all those pictures are taking Mar 21 03:03:58 haha I just found that too Mar 21 03:04:15 My goal is to make a "animation" like a .gif does Mar 21 03:04:18 Try optipng to reduce the file sizes Mar 21 03:04:23 just pictures being repeated super fast Mar 21 03:04:34 Anyone know a better way to do animation then that? Mar 21 03:04:35 yeah, I'm about to work on the same Mar 21 03:04:43 Because obviously my method isn't good Mar 21 03:04:53 nah, that's the best, take mike's suggestion. png can be compressed more than you are doing probably Mar 21 03:04:57 It crashes on image 16, when I have 50 and I'm like 75% done w\ it Mar 21 03:04:58 wait, wait... a movie is a bunch of moving pictures? wtf Mar 21 03:05:09 ^lul Mar 21 03:05:39 My images are 480x800, should I make it smaller? Mar 21 03:05:44 Or find like a compresser or something? Mar 21 03:05:57 Try optipng, see if that helps Mar 21 03:06:10 Is that a program? I'm unsure what that is. Mar 21 03:06:22 It's a png optimizer, reduces file size Mar 21 03:06:31 Gotcha, thank you for your help. Mar 21 03:06:32 Yes, a program Mar 21 03:06:47 Np Mar 21 03:08:53 it doesn't do much... i think the build procress optimizes the png's pretty well Mar 21 03:08:58 process* Mar 21 03:09:44 This quarter, interest in Android phones dropped 4.7% points to 78.6%, and Android tablets dropped 2.2% points to 65.9% from the previous survey. Although close to or within the margins of error, these drops are consistent with the trend of small but steady erosion in Android interest over the last four quarters, even as enormous growth in Android unit shipments continues. Mar 21 03:11:06 "close to or within the margins of error" - aka no actual drop detected Mar 21 03:11:18 http://testing.ybru.com/images/Appcelerator_Report_Q12012_final.pdf Mar 21 03:11:26 yeah. They talk about that a little further down too Mar 21 03:12:13 these numbers are probably scewed a bit towards html5 based things since this is an appcelerator survey Mar 21 03:33:38 is 25kb for a jpg pretty good or think I can get that smaller? Mar 21 03:34:12 Hey, I'm getting "Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead." after I imported a existing project into my workspace in eclipse. I do know you can fix that easily with one of the android tools, but I just want to know what's going on exactly. Mar 21 03:34:48 hstefan: using Sun^WOracle JDK 6? Mar 21 03:36:45 Leeds: yes Mar 21 03:37:14 (version 7) Mar 21 03:37:29 go into project properties -> compiler Mar 21 03:37:32 got an older JDK installed anywhere, maybe? Mar 21 03:37:36 then choose source level 6.0 Mar 21 03:38:12 incidentally, I said 6, not 7... Mar 21 03:38:15 make sure compiler compliance level 1.6 is set in the project specific (or workspace) settings Mar 21 03:39:09 Leeds: there's no other jdk installed, I'll try pfn's fix Mar 21 03:39:55 I have 1.7 avaiable, shouldn't I use that? Mar 21 03:39:58 T-Dub|DlolPics your question makes no sense.. what are the dimensions? Mar 21 03:40:00 no Mar 21 03:40:11 400x800 px Mar 21 03:40:47 also depends on what you're showing of course... more detail = more bits Mar 21 03:41:06 Good point, I noticed that. Mar 21 03:41:16 Just trying to get the kb down as much as possible Mar 21 03:42:51 thanks, it worked! Mar 21 04:17:37 Weird, eclipse doesn't show the AVDs as launchable option. Ever happened to you? Mar 21 04:18:59 eclipse has a lot of funny bugs - close it down and open it back up, should fix most of it's oddities Mar 21 04:21:02 Oh, I was just derping, nevermind. Mar 21 04:28:06 You don't put something in the onCreate of a service, will it stop itself after the onCreate? Mar 21 04:29:14 If you* Mar 21 04:30:51 paradoxx: it will sit there and hog ram, also, you shouldn't block in onCreate() Mar 21 04:32:46 readme, For the life of me, I keep getting a null pointer from my getService() function, even though my Log messages says that it is created. Mar 21 04:33:09 eh? Mar 21 04:33:19 showing code would help Mar 21 04:33:22 kk Mar 21 04:36:10 readme, This is my service: http://pastebin.com/m5rNAiKu Mar 21 04:37:12 Where is the "getService" function you told me about Mar 21 04:37:17 that's where the NPE is, isn't it? Mar 21 04:37:51 readme, This is where I use the code: http://pastebin.com/SEDwWfne. The NPE is on line 21 Mar 21 04:38:49 paradoxx: without looking further than line 19, it's because your service binding happens asynchronously Mar 21 04:39:00 onCreate will continue right after doBindService, even if areaService hasn't been set yet Mar 21 04:39:16 you need to put the areaService.genericSearch in onServiceConnected Mar 21 04:40:06 readme, Is there any way to call the function anywhere else? Mar 21 04:41:25 1. you can't use the service until onServiceConnected has been called 2. You can't block any of the lifecycle methods 3. Therefore you must fire it out of onServiceConnected.. The way I do this is with an abstract method called onServiceReady() that onServiceConnected calls, then I put all this in a BaseActivity that I extend, then instead of doing work that depends on the service in onCreate, I do it in onServiceReady (good if you are going to bind w Mar 21 04:42:14 I pass the "ready" service instance, into my onServiceReady callback Mar 21 04:42:24 then hide all the ServiceConnection stuff in the base class Mar 21 04:43:57 coolie Mar 21 04:44:38 hehe coolie, a coolie in india is the guy that takes your (heavy) bags from the car to your train Mar 21 04:45:44 QubeZ, Here in Jamaica it mean mixed Indian & Black. Mar 21 04:46:09 QubeZ, or as I am using it, related to "cool" Mar 21 04:46:16 nice Mar 21 04:46:26 i did get what you mean the first time, but word reminded me Mar 21 04:46:35 :p Mar 21 04:46:36 was in India 3 months ago Mar 21 04:46:58 went for a month for vacation and somehow got my work to keep paying me even though I had no PTO Mar 21 04:47:01 hehe Mar 21 04:47:05 Nice. Mar 21 04:47:12 :) Mar 21 04:47:22 Saw much smart phone usage while you were there? Mar 21 04:47:31 iPhones everywhere Mar 21 04:47:37 and Blackerry Mar 21 04:47:40 haha. Really? Mar 21 04:47:52 Well, BBs are more predictable Mar 21 04:47:59 Yea, I was trying to push my app but no one had Android Mar 21 04:48:04 Same here in JA. They dominate the market. Mar 21 04:48:11 They = BB Mar 21 04:49:00 very cheap voice/data packages there, i spoke the entire month I was there plus called tons to U.S. -- spent about $30 USD for that month Mar 21 04:49:31 I'd like Larry and Sergey to show me the country breakdown of android activations Mar 21 04:49:45 Certainly not much penetration here in the Caribbean Mar 21 04:56:12 what adapter should I use for diplaying a class with 3 fields on a already existing list item layout? The list is not static, values will be added as the program runs. Mar 21 04:56:14 i bet Mar 21 04:56:40 (showing on a listview) Mar 21 04:56:50 hstefan: db-backed data? Mar 21 04:57:10 QubeZ: nah, just an array/list Mar 21 04:57:31 i used simplecursoradapter for my db-backed data... hmm Mar 21 04:58:13 you probably need to extend ArrayAdapter then Mar 21 04:58:14 yeah Mar 21 04:58:36 you can peek at this and go from there: http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/ Mar 21 04:59:13 Thanks :) Mar 21 05:02:24 Well, I was thinking... db-backed data would be nice... Mar 21 05:03:07 db-backed data is always nice Mar 21 05:09:16 night Mar 21 05:11:31 night Mar 21 05:27:44 hey guys, I'm trying to find a tutorial or something which can show me how to integrate the facebook SDK.. I'm following their guide (https://developers.facebook.com/docs/mobile/android/build/), but it's a bit ahead of me. All I want is an item in my PreferenceActivity which if checked logs into FB and posts things, and if unchecked it doesn't do anything. Mar 21 05:28:21 what I can't figure out is how to many the facebook code run when someone checks the box in the PreferenceActivity view Mar 21 05:35:34 ah, i register an onClickListener for the preference Mar 21 06:49:34 Hi all Mar 21 06:50:45 can anybody help me with this code http://pastebin.com/CJH8d6JQ - activity http://pastebin.com/ChLc19Ft -Handling http://pastebin.com/h4qfyPWr - data collected Mar 21 06:51:30 in eclipse i dont have error, but xml file not parsed Mar 21 06:57:18 Hey I wrote a SyncAdapter, but when I remove it the created contacts won't be removed. Any idesa how I could figure out the problem? Mar 21 07:19:00 afternoon, has any one here tried roboelectric for unit tests? Mar 21 07:20:12 :w Mar 21 07:20:22 Hey I wrote a SyncAdapter, but when I remove it the created contacts won't be removed. Any idesa how I could figure out the problem? Mar 21 07:21:40 m15k: this adapter is for a list view? Mar 21 07:23:28 well if it is, i think you should rather replace the adapter or clear it Mar 21 07:23:43 plan_rich: I'm not quite sure what you mean - It's for syncing contacts Mar 21 07:23:56 hm ok, well i have never done that :) Mar 21 07:24:35 Its kinda strange it seemed that i missed something from the sdk example :-/ Mar 21 07:24:59 but i'm not quite sure what it is Mar 21 07:25:04 well i guess there is maybe something like notifyDataHasChanged Mar 21 07:25:27 maybe (i don't know) you can clear it and say 'ey my data has changed' Mar 21 07:26:11 mh Mar 21 07:26:34 It's like i remove the adapter completely Mar 21 07:26:56 And suppose that the contacts created with the adapter will automatically be removed also Mar 21 07:28:03 can anybody help me with this code http://pastebin.com/CJH8d6JQ - activity http://pastebin.com/ChLc19Ft -Handling http://pastebin.com/h4qfyPWr - data collected. In eclips no error, but xml file not parsed Mar 21 07:30:36 your first link is dead, second does not look like an activity but eclipse will tell you where the error is in your xml file Mar 21 07:31:45 http://pastebin.com/CJH8d6JQ - not dead Mar 21 07:32:01 it s activity Mar 21 07:32:08 nah, that's a dead link Mar 21 07:32:12 it doesn't work here either Mar 21 07:32:18 unknown pasteid Mar 21 07:32:25 ok its not dead but it says to me unknown id so it does not show anything Mar 21 07:33:24 http://dl.dropbox.com/u/30250264/XMLParseTutor.zip - project Mar 21 07:47:34 ZZnOB_: well it builds at my station Mar 21 07:47:47 so did your delete the AndroidManifest.out.xml? Mar 21 07:47:51 you don't need that Mar 21 07:48:00 maybe that is the problem Mar 21 07:58:25 it build at my too, but dont work (xml not parsed, i cant get data from xml). Delete Android Manifest? why? Mar 21 08:06:17 morning Mar 21 08:07:13 not the manifest… the manifest.out.xml Mar 21 08:07:18 see the out Mar 21 08:09:56 i delete it, build without error, but not get data Mar 21 08:10:37 kk wait a sec ill check it out again Mar 21 08:17:09 plan_rich: http://dl.dropbox.com/u/30250264/net.PNG screenshot wit error Mar 21 08:17:46 ZZnOB_: there is an error resolving the hostname. Mar 21 08:17:55 well i debugged it a little Mar 21 08:18:53 and how resolve this problem? in browser it open correctly Mar 21 08:21:29 how debug to see thhis problem? Mar 21 08:21:50 well i don't know the cause of this cause it should work correctly Mar 21 08:22:29 maybe simplify your code Mar 21 08:22:34 check out http://docs.oracle.com/javase/tutorial/networking/urls/readingWriting.html Mar 21 08:22:45 and run this little example Mar 21 08:22:55 just little Mar 21 08:23:13 and then see if it works Mar 21 08:23:30 then change the url from oracle.com to google.com Mar 21 08:23:37 then the weather api url Mar 21 08:24:09 hm... Ok. try it Mar 21 08:30:03 is there a way to get the names of the preferences that are set by a preferenceactivity? Mar 21 08:35:20 wtf Mar 21 08:35:39 they changed AsyncTasks to run serially Mar 21 08:38:53 plan_rich not worked((( Mar 21 08:39:07 use plan poor Mar 21 08:41:04 ChainFire: you can still use parallel though Mar 21 08:41:59 Mikellip> yeah I just figured and replaced execute with executeOnExecutor throughout my code Mar 21 08:42:05 mindboggling move by Google Mar 21 08:42:20 this is not AsyncOnlyFromUIThreadTask Mar 21 08:42:48 probably to protect people from doing beginner mistakes :-P Mar 21 08:43:07 according to the docs, thats it yeah. to prevent common issues Mar 21 08:43:20 next, they will make Thread simply run on the UI thread as well Mar 21 08:43:41 Chainfire: where did you read that asynctasks are run serially? Mar 21 08:43:52 in ASyncTask documentation Mar 21 08:43:54 :-D Mar 21 08:44:02 http://developer.android.com/reference/android/os/AsyncTask.html Mar 21 08:44:14 hrnt> DONUT and earlier and Honeycomb and later run them serially Mar 21 08:44:47 not on the main UI thread, but if you have two AsyncTasks, AT#2 will only be run when AT#1 is finished Mar 21 08:44:49 wonderful :P Mar 21 08:44:57 fortunately i don't use asynctasks Mar 21 08:45:06 I use them a lot Mar 21 08:45:07 The joy! Prevent mistakes from being made <= donut and >= honeycomb :-D Mar 21 08:45:16 * Chainfire wonders why shit suddenly stop working Mar 21 08:45:36 typical, isn't it Mar 21 08:45:57 * Chainfire has so many OS-version-dependant workarounds and whatnots in his code Mar 21 08:47:06 Yeah, it's like writing HTML/JavaScript/CSS while having 1200 different versions of internet exploder Mar 21 08:47:13 :-P Mar 21 08:47:50 hmmm IE6 Mar 21 08:48:08 morning Mar 21 08:51:33 so...asynctasks documentation says that if you really want to run your tasks in parallel, then you should use executeOnExecutor() Mar 21 08:51:38 ...which is API level 11 :( Mar 21 08:53:23 http://pastebin.com/97sWa6tP dosent work for me ^( Mar 21 08:55:36 ugh getting pissed off with waiting for ICS for my S2 Mar 21 09:00:45 how do i add 2 theme things to my manifest like i want android:theme="@android:style/Theme.Light" and android:theme="@android:style/Theme.NoTitleBar.Fullscreen" Mar 21 09:03:45 oh yeah that's just awesome Mar 21 09:03:51 executeOnExecutor API level 11 Mar 21 09:04:11 and execute is marked final, so you can't make a AsyncTask descendant that fixes this behaviour Mar 21 09:04:19 wtf designed this code Mar 21 09:05:46 tell me about it, try overriding setText in a TextView subclass? can't. its final. Mar 21 09:06:33 its like they dont even want us to get any coding done. Mar 21 09:07:12 hmmm AH-eierkoeken are yuk Mar 21 09:07:21 next time i'll get LIDL again Mar 21 09:07:47 * Chainfire makes AsyncAsyncTask with executeAsync method... doh. Mar 21 09:08:19 so asynctask doesnt actually run multiple threads asynchronously? Mar 21 09:08:39 nope Mar 21 09:09:04 thats weird Mar 21 09:10:07 i guess if you subclass it then run them as seperate instances, they'll run asynchrnously? Mar 21 09:10:19 at least thats what i do in my custom httpclient Mar 21 09:10:34 I don't think so, no Mar 21 09:13:55 Hey I wrote a SyncAdapter, but when I remove it the created contacts won't be removed. Any idesa how I could figure out the problem? Mar 21 09:35:59 Hello all... When using ArrayAdapter for Spinner what layout should I use? Mar 21 09:42:38 tell me please why this code http://pastebin.com/33tRy6Qt dont work? It build correctly but no data in textview Mar 21 09:43:09 hello all Mar 21 09:44:28 I have a little question: Is it possible to define which app can read which e.g. contacts over another app ??? Mar 21 09:46:01 what I want to do is, to write an App that, after it has been installed, restricts the access of App xyz to the german entries in the telephone book and App abc should only have access to the italian entries in the telephone book Mar 21 09:48:10 ZZnOB_: What do you expect this code to do? Like this it «would» show the last line from the downloaded page. And log the Exception in the catch clause. Currently you have no way of knowing what went wrong. Mar 21 09:49:45 Lachezar: how i must write code? Mar 21 09:59:38 ZZnOB_: That TOTALLY depends on what you want to achieve... Mar 21 10:00:44 Hi there, is there any way to build some charts? Mar 21 10:02:00 Lachezar: I want to textView derived data (even though HTML code) from url Mar 21 10:06:13 I have a little question: Is it possible to define which app can read which e.g. contacts over another app ??? Mar 21 10:14:58 ZZnOB_: Try this: http://pastebin.com/eqSA7XFz Mar 21 10:15:52 ZZnOB_: Try this: http://pastebin.com/xuQDfNLB Mar 21 10:16:42 Lachezar: thanks i try it Mar 21 10:28:01 Hi .... I am currently working on c2dm and tested my app using CURL and was able to receive notifications. i am currently making the server part and although i get an auth token , and even a 200 response message from c2dm server the message never reaches the phone ...... does anybody know what could be the possible problem Mar 21 10:30:51 is anybody working on Android Push notifications (C2DM) here Mar 21 10:33:53 Lachezar: have this error : "03-20 19:52:18.263: E/TestConnect(1256): java.net.SocketException: Permission denied", but in Manifest i write "" Mar 21 10:35:05 Lachezar: Mar 21 10:38:29 digitalfallacy: thanks, i realy noob ^) Mar 21 10:58:13 is it preffered to use small/ normal/ large/ xlarge/ or ldpi/ mdpi/ hdpi/ xhdpi/ ? Mar 21 10:58:23 is there any easy way to draw some charts? Mar 21 10:58:25 its somewhat confusing really working out what to do Mar 21 10:58:31 gaz` those are completely different things Mar 21 10:58:39 my phone is normal-xhdpi Mar 21 10:58:43 my tablet is xlarge-mdpi Mar 21 10:58:45 ah yeh Mar 21 10:58:59 im just trying to wor out where to put my resources, i have 2 sets really, one for iphone one for iphone4 Mar 21 10:59:01 anyone know a good way of recording a video of an android app in action? for like a promotional video Mar 21 10:59:07 so i want to stick them into the closest android dirs Mar 21 10:59:08 gaz`: start over Mar 21 10:59:21 iphone is technically normal-mdpi, and iphone 4 is normal-xhdpi Mar 21 10:59:50 right Mar 21 11:00:07 confusing Mar 21 11:00:11 all thisdpi stuff Mar 21 11:01:24 do u think that them 2 sets of reosurces would cover android phones sizes alright? Mar 21 11:01:50 just toss everything in xhdpi Mar 21 11:02:01 itll just do all the shitty scaling at run time Mar 21 11:02:09 if you target a modern version Mar 21 11:02:13 thats what ive been doing infact, it was working alright Mar 21 11:02:15 i think 2.1 and older had some issues with that Mar 21 11:02:17 2.1 i think im targeting Mar 21 11:02:32 it might have been 2.0 that was screwy Mar 21 11:02:36 nice Mar 21 11:02:37 i forget the exacts Mar 21 11:02:49 so ican use the high res version of each one and put them in xhdpi Mar 21 11:02:55 and not need the iphon lower res version Mar 21 11:02:56 ? Mar 21 11:03:07 How do you query for every elements on a sqlitedatabase? Mar 21 11:03:09 youll definately want to test on a crappy device Mar 21 11:03:13 but you can get away with that Mar 21 11:03:19 (I mean, is there any "built-in" way?" Mar 21 11:03:22 )* Mar 21 11:03:30 define elements Mar 21 11:03:33 every row? Mar 21 11:03:36 in a table Mar 21 11:03:39 every row in every table? Mar 21 11:03:43 all the meta data? Mar 21 11:03:46 a monkey in a pear tree? Mar 21 11:03:58 ok mikedg thx Mar 21 11:05:15 every ro from a certain table Mar 21 11:05:19 row* Mar 21 11:05:34 select * from table? Mar 21 11:05:52 that is correct Mar 21 11:06:02 yay! Mar 21 11:06:04 hstefan: you might want to read a basic sql tutorial Mar 21 11:06:09 hehe Mar 21 11:07:17 I know a bit of sql already, I mean, I know how to select every rom using sql. Let me change the question: Mar 21 11:07:34 good idea Mar 21 11:07:38 If I do something like: m_resultDb.query(ResultDbOpenHelper.RESULT_TABLE, new String[]{ResultDbOpenHelper.RESULT_DATE, ResultDbOpenHelper.RESULT_NUMTHREADS, ResultDbOpenHelper.RESULT_PROCTIME}, null, null, null, null, null); Mar 21 11:07:47 would I get every row? Mar 21 11:07:56 I mean, passing the null parameters for the selection Mar 21 11:08:09 you need a table to select from Mar 21 11:08:39 That would be the first parameter... Mar 21 11:08:54 oh well then go ahead :) Mar 21 11:09:12 So, it works that way then? :) Mar 21 11:09:24 I mean, passing null for selection gives everything? Mar 21 11:09:28 have you tried it? Mar 21 11:09:36 [07:03:46] a monkey in a pear tree? Mar 21 11:09:39 ok mikedg... Mar 21 11:09:43 s/ok/oh/ Mar 21 11:09:54 I'm on it Mar 21 11:09:55 i am so happy spring is here Mar 21 11:10:07 it makes me wanna hump random people Mar 21 11:10:07 its fucking summer Mar 21 11:10:12 high of 24 today Mar 21 11:10:14 well not entirely random.... Mar 21 11:10:27 random-ish Mar 21 11:10:36 we no speak celsius here Mar 21 11:10:38 go back to canada Mar 21 11:10:44 or talk kelvin Mar 21 11:10:45 suckah Mar 21 11:10:49 kelvin > * Mar 21 11:10:54 but if i use kelvin, no one has any idea Mar 21 11:10:56 mikedg: stfu. celsius rules Mar 21 11:11:01 Well, it's fucking 32 here. Mar 21 11:11:06 it's 14 here Mar 21 11:11:08 me like Mar 21 11:11:09 FUCK GOOGLE MUSIC Mar 21 11:11:12 WORST. MUSIC. EVER. Mar 21 11:11:21 what's that Mar 21 11:11:34 searches translated into music? Mar 21 11:12:34 how do i get an imagebutton to just sit at the left of the containing linear layout? Mar 21 11:12:35 Seriously, remember that things they say about brazil? Like "oh we have a warm weather and beaches and blablabla"? Well, it actually sucks. Mar 21 11:12:55 they say that about miami too and apparently it rains all the time over there :) Mar 21 11:13:54 That would be awesome place to live. I mean, it's a great excuse to not leaving my room. Mar 21 11:20:49 ive got a linearlayout, and in it an image button (that i want on the far left) and a textview (that i want in the middle of the linearlayout) - how do I do that? if align button to the left it looks fine and the textview to the center looks fine BUT its not quite in the center due to the width of the image button to the far left - any ideas? Mar 21 11:22:12 i guess i have to stick the textview inside another linear layout right? just dont want to make it more extravagant than needed Mar 21 11:23:13 gaz use relativelayout Mar 21 11:24:27 ah yes Mar 21 11:24:42 i was ahlf way thru layouts in the book last night when i fell asleep i should finish that first Mar 21 11:24:43 cheers Mar 21 11:25:32 damn eclipse is terrible Mar 21 11:25:56 gaz`: How? Mar 21 11:26:10 gaz`: In what way, terrible? Mar 21 11:26:20 oh unlimited ways :0 Mar 21 11:27:06 when im editing gui stuff Mar 21 11:27:12 all the buttons are flashing like mad Mar 21 11:27:16 holding up the entire program Mar 21 11:27:18 then it crashes Mar 21 11:27:39 gaz`: You sure it's just Eclipse and not the GUI part of ADT that's borking? Mar 21 11:28:20 could be anything i guess Mar 21 11:28:40 xorgate: On that note, I'd like to add that I would be pleasantly surprised if there was a _good and solid_ new IDE for Java/Android development. Something along the likes of when Google started making Chrome to enhance web browsing. Mar 21 11:28:54 but it means eclipse constantly steasls 50+ cpu Mar 21 11:28:54 likes = lines Mar 21 11:31:59 drlaban looks like this http://www.youtube.com/watch?v=DGlFmy48zgE&feature=youtu.be Mar 21 11:33:38 OpenGL ES app will not work in android emulator in Windows 7 using eclipse? Mar 21 11:36:29 tony_787, are you using GLES2? Mar 21 11:37:18 drlaban well im not too fond of chrome but i am pretty fond of intellij idea for android dev Mar 21 11:37:28 no , I am using OpenGL ES 1.1 .. I read that 2.0 is not supported in emulator.. Mar 21 11:37:59 opengl in emu is a bad idea anyway cause it's emulated and very slow Mar 21 11:38:27 Does anyone know if and when the emulator is going to be updated? ._. it's always been extremely slow. Mar 21 11:38:51 i seee Mar 21 11:40:07 hello, does the src in google include all the android mobile's kernel Mar 21 11:51:46 Hi, is there a way to know when the page was scrolled in a webview? Mar 21 12:05:13 Hi all Mar 21 12:07:42 I have a doubt about LocationManager: does LM one required LM.requestLocationUpdates(intent) broadcast the intent even if the device is in sleep? Mar 21 12:08:50 i mean wakelock -> LM.requestLocationUpdates(intent) > wakelock.release Mar 21 12:09:31 hey guys is it possible to have a SQL query like "all rows that do NOT contain xxx in row 15" ? Mar 21 12:09:43 so far i just queried for existing ones Mar 21 12:10:38 Surfer2010: you mean "select * from foo where bar!=5"? Mar 21 12:12:29 Leeds: not sure what you mean ... i wanna basically count how many different values in row 5 are ... since that might take forever i thoguht about a for loop that looks throu and a new query every time that gets all except the allready found ones Mar 21 12:12:36 do you know what i mean? Mar 21 12:12:53 do you want to count how many values, or how many of each value? Mar 21 12:13:19 oh it's sqlclass again Mar 21 12:13:36 i wanna make an ArrayList with all different entries i have in that row Mar 21 12:13:45 onw row? Mar 21 12:13:48 one? Mar 21 12:13:58 one column ^^ sorry Mar 21 12:14:04 geez Mar 21 12:14:25 select distinct foo from bar Mar 21 12:14:34 about 140 rows or more ... and roughly 7 of them have the same entry Mar 21 12:15:01 foo from bar ? Mar 21 12:15:02 yeah use distinct then Mar 21 12:15:17 foo being the column, bar being the table Mar 21 12:15:26 yeah. You must call all your database attributes foo or bar Mar 21 12:15:36 Ivru: better than "row 15" Mar 21 12:16:08 Leeds: I've use a math teacher code once. Each attributes of the classes were alpha, beta, ... Mar 21 12:16:11 sorry i don't get it :D :D ?! *looking confused* Mar 21 12:16:15 Yeah, obfuscate your db column names! Mar 21 12:16:19 instead of lastname, firstname, ... Mar 21 12:16:30 Surfer2010: you want to get a list of all distinct (i.e. unique) values? Mar 21 12:16:41 yes Mar 21 12:17:08 then the query "select distinct COLUMNNAME from TABLENAME" will give you that Mar 21 12:18:04 "row 15" for a column name is pretty obfuscated Mar 21 12:20:01 Leeds: like that: unsreDatenbank.query(true, DATABASE_TABLE2, columnscompleteStats, KEY_OPP, null, null, null, null, null); Mar 21 12:28:19 Leeds? Snuffel? like i posted or do you mean somethign else? Mar 21 12:29:58 I meant what I wrote - the SQL query to get a list of all unique values in a column is "select distinct COLUMNNAME from TABLENAME" Mar 21 12:31:09 ok and put that in the "WHERE" clause? Mar 21 12:31:43 did lol Mar 21 12:31:52 Surfer2010: no where needed Mar 21 12:32:00 this is the FULL query Mar 21 12:32:56 Cursor cFindAllOpps = unsreDatenbank.query("select distinct " + KEY_OPP + " from " + DATABASE_TABLE2); Mar 21 12:33:25 sorry havn't worked a lot with SQL yet so i'm not very smart at that Mar 21 12:34:13 hi ... I am currently working on c2dm and tested my app using CURL and was able to receive notifications. i am currently testing the server part and although i get an auth token , and even a 200 response message from c2dm server the message never reaches the phone ...... does anybody know what could be the possible problem. Mar 21 12:34:23 eclipse always gives me an error Mar 21 12:35:19 can somebody help me out who has knowledge of C2DM (push notifications) on android, i am not getting the reason why i am not receiving the message Mar 21 12:35:26 if I dial *222# that executes a USSD code and then a popup shows up with some details about the calls I made and how much of my plan I've spent. Can I capture that text somehow, so that I can automatically plot a graph with it on my app? Mar 21 12:35:50 nosklo: neight Mar 21 12:36:08 mikedg: :( Mar 21 12:36:15 mikedg: please Mar 21 12:36:32 maybe if I override some accessibility setting? Mar 21 12:37:02 $2 Mar 21 12:38:19 Ivru ? please :) Mar 21 12:39:00 Cursor cFindAllOpps = unsreDatenbank.query("select distinct " + KEY_OPP + " from " + DATABASE_TABLE2); <--- what is now wrong with that? eclipse says it is wrong :D and tells me to match certain formats Mar 21 12:39:21 Surfer2010: http://imgur.com/jacoj Mar 21 12:39:27 just gave eclipse a ton more mem hope this helps Mar 21 12:39:44 Surfer2010: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html Mar 21 12:41:38 i've been there Simon but that only helps if you know all about it then you don't need it ^^ ... = says everythign to you but not that much to me ... i need to use a rawQuery? Mar 21 12:42:11 Well, that page would tell you that there's no query(...) method which only takes one parameter Mar 21 12:42:25 In fact, there's no query(..) method which takes a raw sql query at all Mar 21 12:42:33 There is, tho, a rawQuery method Mar 21 12:42:55 i think you're going to struggle a lot in android development if you don't know how to read a javadocs page Mar 21 12:42:59 Wonder what that does :) Mar 21 12:44:33 yes but not knowing a lot about sql ... select distinct COLUMNNAME from TABLENAME ... makes sence but where to put what :D .... i can do normal queries and can "filter" so i get only ... "all the rows that contain xyz in the column KEY_bla" but this time as i said i wanted to have all distinct rows (distinc concerning the column KEY_OPP) Mar 21 12:45:21 storkme: yeah i allready did but isn't that how you learn ? struggle and then figure it out? ;) Mar 21 12:48:21 Surfer2010: put the columname in COLUMNNAME and the tablename in TABLENAME, geez Mar 21 12:51:19 hi Mar 21 12:52:15 i tried that Snuffel ... :( --> cursor is empty Mar 21 12:52:20 Hello, I have a problem using SharedPreferences. I want to use them as application configuration and I'm using the PreferenceActivities for editing them. The problem is, that I want to have more than one instances of a specific preference in a list, adding them as needed. For every item, I add a PreferenceScreen into a PreferenceCategory, but each time my onCreate-Method is called, which loads the basic preference structure from XML via ... Mar 21 12:52:26 ... addPreferencesFromResource(), the added items are no longer in the group. Mar 21 12:52:28 Snuffel: Cursor cFindAllOpps = unsreDatenbank.query(true, DATABASE_TABLE2, columnscompleteStats, KEY_OPP, null, null, null, null, null); Mar 21 12:53:01 KEY_OPP is the column i wanna have a "destinct selection" ... how ever you say that in english Mar 21 12:58:06 when displaying a google map, is there any way to move the google-icon? I would like to have a button there, but I must show the google-icon :/ Mar 21 13:00:05 I'm looking at making an app that can somehow connect to a PC over wifi, that can receive data and then do things on the phone once received. Can anyone recommend how this can be done? Mar 21 13:00:32 The data would only be a few kB at a time Mar 21 13:01:44 hmm how do i get the image of an imagebutton to scale to the size of the button but stay in the correct ratio? Mar 21 13:02:28 gaz` try the different attributes for "scaleType" if you havent already Mar 21 13:02:54 You can use standard TCP/IP-Connections, ddoom_, as long as you know the PCs ip-address. So you probably would have to implement a server running on the PC. Mar 21 13:03:07 lapdis i tried them all but most of them simply make the image vanihs Mar 21 13:03:09 vamish Mar 21 13:03:12 vanish Mar 21 13:03:42 "center" works but doesnt scale it Mar 21 13:03:54 dasmaze: Ok thanks, I do intend on making a client/server on the pc also that can send and receive data from the android device Mar 21 13:03:58 ddoom_ is bluetooth ok? :P if you can require 4.0 then maybe http://en.wikipedia.org/wiki/Wi-Fi_Direct Mar 21 13:04:27 lapdis: I did see that in the docs, but my device is only 2.3.7, planning to get a ICS device soon however Mar 21 13:04:30 Yeah, there is nothing special about this kind of communication. Mar 21 13:04:32 if a normal client/server-solution works, then I would recommend that as well Mar 21 13:09:21 damn theres something weird about the scaletype on imagebutton, most of the time the image just dissapears Mar 21 13:17:41 anyone know how to make an imagebutton that is filling parent but also has its image scale up but preserving the images aspect ratio ? Mar 21 13:19:08 did you see and/or try http://developer.android.com/reference/android/widget/ImageView.html#attr_android:adjustViewBounds gaz`? Mar 21 13:19:33 oh never seen these Mar 21 13:19:37 are they also in imagebutton tho Mar 21 13:19:46 yes, they are, gaz` Mar 21 13:20:00 thx checkign them out Mar 21 13:20:04 It's an attribute of ImageView, which an ImageButton is. Mar 21 13:20:54 argh Mar 21 13:20:58 doesnt seem to help Mar 21 13:21:03 image just keeps vanishing Mar 21 13:21:11 so frustrating this should be very simpe Mar 21 13:21:59 maybe you could show us the actual code you currently have? paste it somewhere, maybe someone sees a problem. Mar 21 13:22:06 yeh Mar 21 13:26:32 well its really just this dasmaze http://pastebin.com/a9uJM63Q and how do i get the image in the imagebutton to scale up but keep aspect ratio Mar 21 13:28:53 fitXY does as you would expect and stretches it but its not got the ratio anymore, all the rest make the image vanish Mar 21 13:29:40 jesus Mar 21 13:29:44 is this a bug or what Mar 21 13:32:26 unless ecllipse just cant mimmick it Mar 21 13:32:52 dont trust eclipse ever Mar 21 13:33:10 what do you mean, gaz`? Do they just don't appear in the eclipse GUI-Layout editor? Mar 21 13:33:33 yeh they dont appear Mar 21 13:33:49 Chainfire really? god that makes life even harder, guis were annoying enough already Mar 21 13:33:52 Well, have you tried it in the emulator, or on a device? Mar 21 13:34:15 gonna try now Mar 21 13:34:22 if it works its ridiculous Mar 21 13:36:00 hmm yeh it does appear on device Mar 21 13:36:13 shame tho i was using eclipse to test on diff screensizes, such a hassle to set up all the emus Mar 21 13:36:40 what you see in eclipse rarely resembles what it looks like on the device Mar 21 13:36:48 ah Mar 21 13:36:49 :-( Mar 21 13:36:57 Well.. I don't know why, but I tried your code on a device, and I can't see any of the buttons. Mar 21 13:37:08 weird! Mar 21 13:38:28 guess ill make a bunch of diff virtual devices Mar 21 13:38:37 be better if u could deploy to all of the simultanously Mar 21 13:38:40 oh, my bad, I had an error.. wait a moment ;) Mar 21 13:39:21 oh i cant even make a emu with wxga Mar 21 13:39:47 well this eclipse things makes android dev millions of times worse than it was Mar 21 13:40:05 As far as i know, you can choose resolutions freely. Mar 21 13:40:28 yeh i just want a bunch of ones already set up like real word devices, tablets etc Mar 21 13:40:33 At least I can, in my AVD-Manager Mar 21 13:41:03 thanks whoever helped with the TCP server stuff, I have a rudimentary version of what I wanted to do working Mar 21 13:41:10 I do have WXGA720 and WXGA800 as builtins. Mar 21 13:41:51 But only from Android 3.0+, so maybe you could use this version. Mar 21 13:42:05 one more question however, I have the server constantly running. what is the best way to run it? Through the main activity or is there something else I should use? Mar 21 13:42:07 Or download skins from the internet. Mar 21 13:42:52 Do you want to have the connection running when your app is not visible, ddoom_? Mar 21 13:43:05 dasmaze: yes Mar 21 13:43:58 you should probably use a service, if the connection should persist indefinitely. Mar 21 13:44:22 dasmaze: Ok thanks, I'll look into it Mar 21 13:48:22 So who wants to pick up one of these? http://www.newegg.com/Product/Product.aspx?Item=9SIA0U906Z1097 Mar 21 13:54:12 VJTachyon: it's neat but the lid should flip off, instead of coming off completely, or you'll just lose it. Mar 21 13:54:49 lov: the whole thing looks way too easy to loose Mar 21 13:56:08 http://www.newegg.com/Product/Product.aspx?Item=9SIA0KV0662424 Mar 21 13:56:20 lov: It's for putting into this actually: http://www.pioneerelectronics.com/PUSA/Car/DVD-Receivers/AVH-P3400BH Mar 21 13:56:34 lov: I want a small profile storage solution Mar 21 13:57:02 oh, ok, that's not too bad then. Mar 21 13:59:20 oh i think we have a winner: http://www.amazon.com/SanDisk-Cruzer-Fit-Flash-Drive/dp/B005FYNSZA/ Mar 21 13:59:26 didnt have those on newegg Mar 21 14:00:18 $1/gb, amazon prime, name brand Mar 21 14:01:14 ah dasmaze ok Mar 21 14:02:50 gaz`: eh? Mar 21 14:03:18 was rteplying to dasmaze Mar 21 14:03:36 replying Mar 21 14:04:06 can u deploy an apk to multiple emulators? Mar 21 14:07:50 they really got to fix eclipse so it can interpret layouts identically to android Mar 21 14:10:05 Or you learn to write it yourself, correctly Mar 21 14:12:26 I've pretty much always written them myself, I think it's old habits from writing HTML manually since it's so similar Mar 21 14:14:08 doesnt matter u still got to be able to preview it Mar 21 14:14:17 its like ur browser showing u wrong Mar 21 14:21:27 gaz` if you live in console heres a bash script scottferg and I wrote to deploy to all connected devices Mar 21 14:21:30 https://gist.github.com/1152387 Mar 21 14:30:17 wow there are just no android people left in the NYC area Mar 21 14:30:19 its crazy Mar 21 14:30:29 i get at least 3 recruiters a week for jobs here Mar 21 14:30:50 someone needs to start an android school in NYC :P Mar 21 14:33:06 import me Mar 21 14:34:00 Is there any way to install a market app that has permission to directly access the audio hardware (/dev/snd/pcmCxDy)? Mar 21 14:34:50 i.e. a permission that I can declare in the app's manifest. Mar 21 14:37:09 njoos|laptop: where you from? Mar 21 14:37:19 gabrbedd: forget direct access to /dev/snd/pcmCxDy. It is already used by AudioFlinger Mar 21 14:37:32 gabrbedd: yeah Mar 21 14:38:02 gabrbedd: best you can do is use openSL in the NDK Mar 21 14:38:19 bubbleguuum, VJTachyon: Not necc. OMAP4 has a few ports that AF never touches. Mar 21 14:38:47 VJTachyon: doesn't openSL go through AF, though? Mar 21 14:38:51 yes Mar 21 14:39:12 gabrbedd: otherwise, you need root/system access Mar 21 14:39:36 and to kill AudioFlinger...because it is using the device Mar 21 14:39:50 good luck with that Mar 21 14:40:01 yea, might as well just build a custom rom Mar 21 14:40:01 VJTachyon you turned into a virtual jocky now? Mar 21 14:40:10 CallumTaylor: lol? Mar 21 14:40:15 you used to be DJ Mar 21 14:40:24 CallumTaylor: im still more of a VJ than anything Mar 21 14:40:31 fair Mar 21 14:40:46 CallumTaylor: and I haven't done a gig in ages Mar 21 14:40:51 bubbleguuum: AF is not using the device in question, so AF is not the problem. Mar 21 14:41:04 CallumTaylor: $500 for putting $10,000 of equipment on the line for 8 hours of performance isnt really worth it Mar 21 14:41:05 Hi, I am searching doc and tips. What is the best way to get data (Texts and pictures) on external data (Like a server)? Too, my app will send somes data (Texts and pictures). Use a database? MySQL? I don't know. It's the first time I do something like this, but I have the motivation to learn and try Mar 21 14:41:15 :/ Mar 21 14:41:25 gabrbedd: bottom line, you need root access Mar 21 14:41:26 VJTachyon: OK, so it sounds like there's nothing I can put in the manifest to get audio hw permissions. Mar 21 14:41:29 nope Mar 21 14:41:31 VJTachyon: thanks. Mar 21 14:41:39 yup Mar 21 14:44:15 In my custom view's onDraw method, the bitmap that I'm drawing sticks out the edge of my view and is being clipped. Is there a way to prevent this? Mar 21 14:44:36 I tried setting clipChildren to false on its parent to no avail Mar 21 14:45:39 gho5t: change the size of the bitmap or set it to scale? Mar 21 14:47:10 VJTachyon: I'm creating a circle that has a draghandle around its perimeter. I draw the circle first and then the draghandle. The draghandle is being clipped. Is my only solution to change the x,y position of the circle? Mar 21 14:47:17 gho5t still making a custom control? Mar 21 14:47:20 ideally I'd like it to fill the canvas Mar 21 14:47:26 CallumTaylor: yeah. finishing touches Mar 21 14:47:34 gho5t nice Mar 21 14:47:43 thanks to yours and others help : ) Mar 21 14:47:44 the tutorial any help? Mar 21 14:47:55 yeah I passed it onto a colleague too Mar 21 14:47:59 good good Mar 21 14:48:47 so if I draw something off the canvas of the control, which is what I guess I'm doing, is it possible to still see it? Mar 21 14:49:08 some can give me a hint to receve location updates when the phone is sleeping ? Mar 21 14:49:13 i think you can only ever draw within the bounds of the view Mar 21 14:49:28 if you need to draw outside of that, you need to expand the bounds, or look into framelayouts Mar 21 14:49:37 ok Mar 21 14:49:42 yeah Mar 21 14:49:58 gho5t: would have to layer a transparent frame on top Mar 21 14:50:27 Is there any way to append some string on each row, for a specific view (i'm defining a custom row layout) while using a simpleadaptercursor? Mar 21 14:51:03 eg: On my database I have the entry "200" and I want to show "200ms" on its listview row Mar 21 14:51:23 can anone tell me why mShadow.setShadowLayer(10.0f, 10.0f, 10.0f, 0xFF000000); is just duplicating the color? Mar 21 14:51:27 hstefan: use a custom adapter Mar 21 14:51:31 The shadow should be black but it is orange. Mar 21 14:52:10 havent used shadow layer before.. Mar 21 14:53:44 VJTachyon: yeah, wait for me to struggle with it first :) Mar 21 14:54:16 VJTachyon: no "easy" way then? :( Mar 21 14:54:31 hmm my emulator is upside down Mar 21 14:54:49 Zorb: you need to wake the phone up. Use the AlarmManager and/or wakelocks. Mar 21 14:56:09 how do i rotate emu Mar 21 14:56:17 pressinf page up works but its upside down Mar 21 14:56:28 rotate monitor Mar 21 14:56:41 or develop on a device Mar 21 14:56:43 (y) Mar 21 14:57:13 http://stackoverflow.com/questions/4535298/how-to-rotate-android-emulator Mar 21 14:57:29 "how to rotate emulator android" -> first link Mar 21 14:57:34 ctrl + f12 Mar 21 14:57:35 having this tab is best thing ever Mar 21 14:57:36 every day i thank god I dont have to use the emulator Mar 21 14:57:53 still upside down Mar 21 14:57:55 gaz`: Numpad 7 i think too Mar 21 14:58:00 yeh CallumTaylor i kinda do right now Mar 21 14:58:07 eclipse wont show things sacaling properly Mar 21 14:58:12 so i need virtal devices t check Mar 21 14:58:25 ah Mar 21 14:58:34 sucks how eclipse layout manager lies Mar 21 14:58:36 i have the luxry of asking my boss to buy me devices ^^ Mar 21 14:58:43 yup yup Mar 21 14:58:43 norway VJTachyon Mar 21 14:58:48 ah and now eclipse crashes for the 6th time today Mar 21 14:58:48 Hey, is there any good soul with a multicore device avaible? I need to test the speedup of an app I'm developping and I have no multicore device avaiable. I can you you the source, if you think it's unsafe. Mar 21 14:58:53 thats nothing Mar 21 14:58:54 android dev is a joy Mar 21 14:58:57 everytime i use the emulator Mar 21 14:58:58 we are getting 30 devices shipped to us next week :P Mar 21 14:59:00 i get a kernel panic Mar 21 14:59:16 jesus Mar 21 14:59:21 not even sure what that is Mar 21 14:59:22 yeah its fantastic Mar 21 14:59:31 wow Mar 21 14:59:36 damn i need to get SSD's for this laptop Mar 21 14:59:38 kernel panic with the emu running? Mar 21 14:59:48 i like to the play the game 'close the emulator before it causes a kernel panic' Mar 21 14:59:52 when it opens up accidently Mar 21 15:00:04 sounds fun Mar 21 15:00:12 i have the high score Mar 21 15:00:24 Yeah, I'm using my defy too, but emulator runs just fine here. Except that its slow as slowpoke. Mar 21 15:02:55 just plugged tab in and all usb devices stopped working Mar 21 15:04:04 bah i just need a couple more 5 star ratings on my paid dj app Mar 21 15:04:07 http://stackoverflow.com/questions/7230301/android-paint-setshadowlayer-ignores-color-of-its-paint works Mar 21 15:04:12 to get me the 4.5 star graphic Mar 21 15:04:15 well doesn't work Mar 21 15:04:22 if i pay for it Mar 21 15:04:26 will you reimburst me? Mar 21 15:04:59 lol Mar 21 15:05:01 sure Mar 21 15:05:42 oh lol all that complaining baout eclipse not rendering layouts right and when i go to android 3.0 its working Mar 21 15:05:47 SWEET Mar 21 15:06:02 woah £3.49 ._. Mar 21 15:06:19 you have 15 mins to get a refund dont you Mar 21 15:06:22 will it still count my review? Mar 21 15:06:38 ok im back to believing the layotu editor easier than usb hell Mar 21 15:06:54 Ok, seriously now: if any of you guys has a dual/quad-core android device avaiable and want to help me by testing a 20k apk (with source included, you can see everything it's doing, for yours safety), it would make me really happy. Unfortunately, I can't offer you much, I'm just a regular broke student, but you'll surely have my humble thanks and I'll thank you if I ever publicate it somewhere. Mar 21 15:07:32 http://i.imgur.com/bTCKG.png amazing Mar 21 15:07:53 (it might be the beggining of my graduation paper) Mar 21 15:08:46 Is there anything wrong with calling PendingIntent.getBroadcast using "new Intent(this, MyBroadcastReceiver.class)" ? Mar 21 15:09:24 It works how I want but I realise it's not the usual method Mar 21 15:10:13 code1: what would be wrong with that? Mar 21 15:11:21 evancharlton: I thought with broadcast receivers you are supposed to create intents like: new Intent("some.action.name") Mar 21 15:11:43 why? Mar 21 15:12:19 that's how the tutorials lay it out as Mar 21 15:12:51 there's nothing wrong with targeting it to your own broadcast receiver Mar 21 15:13:03 I just want to call my receiver explicitly and was wondering if that's how to do it or if it will come back to bite me in the ass later? Mar 21 15:13:06 do you have an example of a tutorial saying it's wrong? Mar 21 15:13:12 no, doing it that way is fine Mar 21 15:13:52 ok cool, no not found anywhere to say it's wrong but it's not detailed to do it like that in the docs Mar 21 15:13:56 (i don't think) Mar 21 15:14:03 give a possibbility to test what I have for hardware on my smartphone? I want build a basic android 4.0 for my smartphone. Mar 21 15:14:47 MarcAurelio: not sure if I understand your question Mar 21 15:14:59 MarcAurelio: probably not Mar 21 15:14:59 hstefan: glad I'm not the only one Mar 21 15:15:24 evancharlton: could you describe what the difference is between the two methods? Mar 21 15:15:46 Hey, sorry for the Interruption but i have a serious problem. I have different activites which all have a background image... when i switch those activites often - sometimes i get big exception stacktrace, the bottom exception is java.lang.OutOfMemoryError, one above its a java.lang.reflect.InvocationTargetException and the last one is android.view.InflateException , Binary XML file line#7: Error inflating class ... Mar 21 15:15:46 I already found something on stackoverflow, that i should unbind all drawables when the onDestroy() is called, i already do that but its not helping. i'm on Android 3.1 for googleTv. Please can someone help! Mar 21 15:15:46 code1: there really isn't one Mar 21 15:16:29 kazoooka: just put your whole stack trace and, ideally, relevant bits of source code on pastebin.com and send us the link Mar 21 15:16:41 from my understanding, using an action, the system matches the action against receivers, whereas the way i'm doing it just matches it to one explicitly - would that be correct? Mar 21 15:16:52 yes, just like all other intent resolution :) Mar 21 15:17:35 i see Mar 21 15:17:51 Hi guys, is this a good location to discuss the Play Store? I'd like to know why the top Casual game is called "Rip her clothes off" its madness!! Clearly the system is being gamed some how? Mar 21 15:18:08 I want build android 4.0.x for my phone i have a samsung galaxy s 2 and I can not see what I have for a hardware on this smartphone that I can build it for it... sry my english write I learn it. Mar 21 15:18:21 evancharlton: Could i move the broadcastreceiver to be an inner class of a activity? Mar 21 15:18:41 code1: yes, if you want to Mar 21 15:18:44 4.0 should be available to your phone soon if not already Mar 21 15:18:45 anyway Mar 21 15:18:53 is it sim locked? Mar 21 15:19:16 ClockworkAnt: which country? Can you provide a link to this? Mar 21 15:19:24 evancharlton: http://pastebin.com/NpQeBjQY thats the exception trace and ad the bottom the xml layout Mar 21 15:19:27 that seems ... like a mistake Mar 21 15:19:41 evancharlton, https://play.google.com/store/apps/category/CASUAL?feature=category-nav under free Mar 21 15:19:45 Im in the united kingdom Mar 21 15:20:31 kazoooka: how big is your bitmap? Mar 21 15:21:07 I don't see rip her clothes off... I do see "touch beauty", which seems a bit wrong as well Mar 21 15:21:17 Sounds like my kind of game… >.> Mar 21 15:21:59 evancharlton: 4.6 megabyte Mar 21 15:22:10 evancharlton: does that mean that if the receiver is called that the activity will be created because it's an outer class? Mar 21 15:22:31 Its hardly even a game, I havent downloaded it but it seems to just be a terrible slideshow. Is there anyway to help moderate content on the android market? Mar 21 15:22:49 CallumTaylor, I want not the samsung android 4.0.x version. I want a clean version with standart Apps not more Apps from samsung. Mar 21 15:22:59 I find it frustrating from a development and user point of view. Its very hard to find good content and even harder to be found! Mar 21 15:23:11 you should be able to download the stock google rom somewhere Mar 21 15:23:15 MarcAurelio: #android-root Mar 21 15:23:28 also, I see 4 drug games - 3 by the same developer - in the top paid games... not sure that's a particularly good thing, even if it's technically okay by the market terms Mar 21 15:23:55 CallumTaylor: no, there is no 'stock google ROM' except for nexus devices Mar 21 15:24:10 eclipse is using 10 gigs of ram Mar 21 15:24:17 dont know then Mar 21 15:24:21 Leeds is there ANY way to help fix this sort of thing? Mar 21 15:24:22 eclipse is a pile of wank Mar 21 15:24:23 code1: it will likely need to be a static inner class Mar 21 15:24:31 theres a conf file somewhere where you can change it Mar 21 15:24:35 how much ram it uses Mar 21 15:24:36 CallumTaylor yes i can barely get any work done with it Mar 21 15:24:52 ClockworkAnt: legalize drugs? Mar 21 15:24:58 ClockworkAnt: there are Google people here who can pass a message on... it's up to them to identify themselves if they want to... Mar 21 15:25:02 evancharlton: yeah, just reading up on it, and looks that way. Mar 21 15:25:13 VJTachyon, that is a whole other debate! Mar 21 15:25:38 evancharlton: is there any potential problems to having it as a static inner class? Mar 21 15:26:10 code1: not really Mar 21 15:26:29 Leeds, I guess for the time being there is no fixing the issue. If I use the report function, does it actually do anything? Have the google people considered a moderation system akin to stackoverflow? Mar 21 15:26:33 evancharlton: ok thanks Mar 21 15:27:31 ClockworkAnt: moderation in what way? How do you prevent it from being abused? Mar 21 15:27:45 ClockworkAnt: the point of the google play is to NOT filter content unless it runs afoul of their TOS Mar 21 15:27:57 the short answer is that reports don't go into a black hole, AFAIK - even if you don't get a reply Mar 21 15:29:51 lov I agree however content like the ones we are discussing are clearly gaming the system. By moderation I mean some sort of metric where authoritative users can help determine the quality of an application and lower there search ranking accordingly Mar 21 15:30:24 there's no moderation... there's post-publication takedowns of malicious, TOC-breaking or otherwise naughty apps Mar 21 15:30:25 This is off the top of my head so the idea isnt exactly honed Mar 21 15:30:53 How does your system discourage a clique of fuddy duddy users downvoting risque apps that most users actually want? Mar 21 15:30:59 evancharlton: is the size of the png too big? Mar 21 15:31:08 what you're asking for is Very Hard and not easily suited to the google market Mar 21 15:31:42 lov I agree but something must be done, the market is literally flooded with crap and it has no filters to remove them Mar 21 15:31:44 ClockworkAnt: you fancy posting a screenshot of the top apps somewhere? Mar 21 15:31:51 Yea np Mar 21 15:32:17 lots of android devs are just re-releasing their crap under a thousand names Mar 21 15:32:18 kazoooka: most likely, yes. Mar 21 15:32:22 although the crap is filtered by popularity, really - it sinks to the bottom... the question is if someone is gaming something Mar 21 15:32:33 to increase the likelihood of crap showing up Mar 21 15:32:53 Okay, i ll give it a try when i've gotten them smaller Mar 21 15:32:56 Thx for your help Mar 21 15:33:56 Leeds http://imgur.com/aSmny Mar 21 15:34:33 1, 7, 22 all seem like unlike candidates Mar 21 15:35:25 does look odd for that to be number 1 Mar 21 15:35:27 I guess what would help is custom filters on the android market such that I can erase developers from my view of the market Mar 21 15:35:30 its a shame u cant do fill_parent/2 Mar 21 15:35:55 gaz`: layout_weight=1 & weightSum=2 Mar 21 15:36:18 ohh Mar 21 15:36:21 new stuff! Mar 21 15:36:27 weightSum is new as of 1.0 Mar 21 15:36:29 i been reading this book and it barely helps Mar 21 15:36:33 tells me nowr Mar 21 15:36:35 nowt Mar 21 15:36:35 thx Mar 21 15:36:52 1.0? Mar 21 15:37:02 think he was being sarcastic Mar 21 15:37:03 lol evancharlton Mar 21 15:37:13 correct, gaz` :) Mar 21 15:37:25 it is rediculous you cant do stuff like 50% instead of match_parent Mar 21 15:37:28 ah, I don't expect that from USAians :) Mar 21 15:37:29 oh eclipse is goign for its 9th crash of the day Mar 21 15:37:48 CallumTaylor: you can, as I just explained :) Mar 21 15:37:49 seing as you need to be device independant when designing apps for multiple screen sizes Mar 21 15:37:55 yeah but its not obvious Mar 21 15:38:09 and you can only do it for linear layouts Mar 21 15:38:20 i dont see weightsum Mar 21 15:38:26 gaz`, what version of eclipse are you using? Mar 21 15:38:32 oh cant do on imageviews? Mar 21 15:38:43 ClockworkAnt 3.7.0 Mar 21 15:38:57 gaz`: it goes on the parent Mar 21 15:39:00 i think its only linear layouts Mar 21 15:39:05 you set the layout_weight on the child Mar 21 15:39:09 and weightSum on the parent Mar 21 15:39:18 so i have to stick in a layout to put this image view in? Mar 21 15:39:19 and seriously, camel case AND underscores? Mar 21 15:39:26 lol Mar 21 15:39:30 did they have 2 people design the XML attrs? Mar 21 15:39:37 there's no consistancy Mar 21 15:39:51 CallumTaylor: do you break out in hives too? Mar 21 15:39:59 it pisses me off Mar 21 15:40:05 every other normal class "getX" Mar 21 15:40:11 context: "obtainX" Mar 21 15:40:15 seriously, what the fuck Mar 21 15:41:18 yeah it's a little disorganized in that respect Mar 21 15:41:39 google, let me come to your office for like a day and ill fix everything Mar 21 15:41:45 evancharlton - i stuck the imagebutton in a linearlayout then did layout_weight=1 & weightSum=2 but its same size as it was? Mar 21 15:42:19 i thought the LL would go 50% smaller and also the stuff inside Mar 21 15:43:25 CallumTaylor: yeah right ;) Mar 21 15:43:28 did you set the linearlayout width to maktch parent? Mar 21 15:43:31 matchparent Mar 21 15:43:48 i've rewritten so much shit because its not included Mar 21 15:43:56 matchparent? Mar 21 15:44:01 and dont u mean the imageview? Mar 21 15:44:01 the analogClock widget, you cant even change the time of it, it only ever shows the current time Mar 21 15:44:05 match_parent Mar 21 15:44:07 no on the LL Mar 21 15:44:18 so the ll will be full width, then the image view will be half Mar 21 15:44:26 you might need to add a blank view aswell Mar 21 15:44:31 and set its weight to 1 aswell Mar 21 15:44:44 i dont think it works right if the child view's weight dont add up to the weight sum Mar 21 15:44:53 seems to have no effect Mar 21 15:44:58 sign, wasted an entire day on one menu Mar 21 15:45:10 this is ridiculous Mar 21 15:45:14 try adding 2 image views Mar 21 15:45:18 and set the weight to 1 Mar 21 15:45:47 oh eclipses 10th crash of the day Mar 21 15:45:57 gaz: what is the layout_width of the imageview? it should be 0dp if you are using layout_weight Mar 21 15:46:06 Hello Mar 21 15:46:21 layout_ makes perfect sense, since you're referencing a field in another class (LayoutParams). weightSum is a field in LinearLayout, so you can just use it directly. weight is a field in LayoutParams, so you ref it with LayoutParams.weight (or in xml, layout_weight) Mar 21 15:46:58 argh Mar 21 15:47:01 cant work it out Mar 21 15:47:12 all the other images supplied fitted perfectly Mar 21 15:47:15 maybe an image issue Mar 21 15:47:22 is the image big? Mar 21 15:47:29 yeh Mar 21 15:47:30 try setting the adjustViewBounds=true Mar 21 15:47:34 Q: Is it possible to create javascript-ish style modal dialog in android? AlertDialog.Builder will create one - but it is async, meaning code execution continues after dialog is created Mar 21 15:47:36 i spent hours on that one Mar 21 15:47:50 all because the image's bounds didnt adjust when it got resized down Mar 21 15:48:14 silur: no Mar 21 15:48:42 hrnt, so debug breakpoint is the only way to pause code for user (me) confirmation? Mar 21 15:48:59 dp should help really but it doesnt Mar 21 15:49:11 i been designign stuff on the 10.1 tablet view on eclipse so i know its actually scaling Mar 21 15:49:17 silur: i don't count that as a way to pause code ;P Mar 21 15:49:19 but when u use dp it just messes up Mar 21 15:49:23 android:adjustViewBounds="true" Mar 21 15:49:26 try adding that to the image Mar 21 15:49:35 im not fully getting dp yet as i thought its whole point was to work between screensizes etc Mar 21 15:49:37 ok Mar 21 15:50:20 argh Mar 21 15:50:24 it just killed eclipse Mar 21 15:50:27 11 times now. Mar 21 15:51:02 dunno why its horribleo n this pc Mar 21 15:51:28 try updating eclipse/java Mar 21 15:51:42 tried Mar 21 15:51:48 all the gui stuff flashes constantly Mar 21 15:51:49 silur: you could make the dialog an activity with the dialog theme. this way onpause will get called on the main activity and you can handle it there. Mar 21 15:51:51 i think thats whats going on Mar 21 15:53:51 zambo, so they I'd do it: call startActivity(dialog frame activity) from main activity, and then call startActivity(main activity) upon button pressed? Mar 21 15:54:38 didnt do naything CallumTaylor Mar 21 15:54:45 hm :/ Mar 21 15:55:58 actually i could probably solve all this just by making the transparent area in the png bigger Mar 21 15:56:37 you could subclass imageView and have a custom attr for "drawWidth" which accepts % Mar 21 15:56:46 hehe Mar 21 15:56:49 thats the way it should be Mar 21 15:56:51 % rock Mar 21 15:56:57 stupid you cant Mar 21 15:57:04 seeing as theres 100000000 different screen sizes Mar 21 15:57:37 but why wouldnt % work? Mar 21 15:57:52 cause layout_width only supports dimen Mar 21 15:57:59 and dimen is either px or dp Mar 21 15:58:04 or sp Mar 21 15:58:42 eclipse is using 10 gig again must have a leak Mar 21 15:58:53 there should be a way to change the amount of ram it uses Mar 21 15:59:01 in a config file somewhere Mar 21 15:59:04 yeh i gave it more Mar 21 15:59:07 o: Mar 21 15:59:12 give it less then Mar 21 15:59:46 nightmare form start to finish Mar 21 15:59:49 <`z> GIVE IT 640KB Mar 21 15:59:55 <`z> IT'S ENOUGH FOR EVERYBODYYYYYYYYYYYYYYYYYYYYY Mar 21 15:59:57 <`z> ~ Mar 21 16:00:05 256k ram is all you will EVER need Mar 21 16:00:06 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Mar 21 16:01:39 Hello there Mar 21 16:01:49 Does anyone have a straightforward example of tabs? Mar 21 16:02:06 \t\t\t Mar 21 16:02:31 TabHost Mar 21 16:02:32 yeh i cheated in photoshop Mar 21 16:02:36 unless it was deprecated Mar 21 16:02:37 and it works Mar 21 16:03:08 gho5t, I've googled around and often found tutorials that have tabs but focus on something else Mar 21 16:03:11 So tabs aren't explained Mar 21 16:03:41 What I'm telling you is there is a view called "TabHost" Mar 21 16:03:43 in the SDK Mar 21 16:03:49 that you can either use or view the source of Mar 21 16:05:30 Archelaus I thought this one did a pretty good job Mar 21 16:05:30 tabhost is the devil Mar 21 16:05:32 http://developer.android.com/resources/tutorials/views/hello-tabwidget.html Mar 21 16:05:48 http://storkme.org/2011/12/tabs-done-right-viewpager-and-fragments/ Mar 21 16:05:48 ] Mar 21 16:05:50 How/where do I make suggestions about app improvements? Specifically the gallery? Mar 21 16:06:03 wmbest2, saw that and it apparently has a few errors, but I have yet to test it Mar 21 16:06:12 The errors were found when it was linked on StackOverflow Mar 21 16:07:23 Poohba: with a patch? Mar 21 16:07:44 Whats a easiest way to pass String from one activity to another? Mar 21 16:07:57 silur: as an extra in the calling intent Mar 21 16:08:07 ^ Mar 21 16:08:08 Leeds, thanks Mar 21 16:09:50 Leeds: no, just a suggestion. I am not an android programmer (yet). Mar 21 16:10:05 Poohba: what's the request? Mar 21 16:10:11 I would just like for it to display raw images. Mar 21 16:11:03 and the formal standard spec for 'raw images' is where? Mar 21 16:11:29 or to put it another way, don't 'raw images' depend entirely on the camera which produced them? Mar 21 16:11:39 I'm a photographer and I have a program that does the raw images but it would be easier to immediately share if the gallery would display them. If it operated a little more like picasa that would help. :) I know a bit much to ask but if its possible. Mar 21 16:20:53 Hello Mar 21 16:23:25 Hello all... Is there any «generic» way to handle Spinner-type components that deal with LOTS of objects? Scrolling 10000 items seems ridiculous... Any way to make an auto-complete-spinner? Mar 21 16:24:26 I have a design question reguarding lists: I've got a custom list/adpater and I'm wondering how I should be handling item selection. Each item on this particular list will call a particular activity within the app - a string with the intent would be the most appropriate? Or perhaps a class reference to the activitys class? Mar 21 16:25:09 Hi, I got this error. Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Unknown Host dl-ssl.google.com. I don't see where I can force it to http. Mar 21 16:25:13 Lachezar: if you have a hardware keyboard, you can actually just start typing, and it will start filtering for you Mar 21 16:25:16 I've got an ImageView, and am trying to show a header image which fills the screen width, and is only as high as it needs to be. How can I achieve this? height=wrap_content doesn't seem to be working. Mar 21 16:25:22 Lachezar: (assuming that the adapter actually handles this operation) Mar 21 16:25:58 fairuz: it resolves fine for me, try again it probably just timed out Mar 21 16:26:12 fairuz: I don't think that option is there, but https isn't the cause of your issue; you're having a dns issue it sounds like Mar 21 16:26:37 lov: I'm behind a firewall. Maybe that's the issue Mar 21 16:26:59 fairuz: from where are you getting that error? Mar 21 16:27:12 and any firewall that blocks https is a pretty crummy setup.... Mar 21 16:27:19 Kagetsuki: When I open SDK manager Mar 21 16:27:28 lov: erm... no, no hardware keyboard... And the adapter «can» handle filtering if needed, since underlying it's a suggester... But I need it to work like... The Google search for instance... A text field in which I type, and it gets a pop-down with options. Mar 21 16:27:44 hold on, let me take a look Mar 21 16:28:09 pfn: oi Mar 21 16:28:20 ? Mar 21 16:28:31 fairuz: yeah, it needs https. do you have a system proxy set up? Mar 21 16:28:31 pfn: when i do a time make the real is the time im looking at? Mar 21 16:28:53 real 53m55.447s Mar 21 16:28:58 Real is wall clock, so probably yes Mar 21 16:29:00 fairuz: if so are you sure there is no https proxying? Mar 21 16:29:01 thats on my laptop Mar 21 16:29:14 Kagetsuki: Yes I do have https proxy normally Mar 21 16:29:17 now, if i get SSDs ... Mar 21 16:29:19 is there anyway to get an emulator running with calendar support? Mar 21 16:29:30 But I don't if it works :) Any way to test them? Mar 21 16:29:48 shifterz: no phone? :( Mar 21 16:29:55 to test https proxy? try https://google.com Mar 21 16:30:34 Kagetsuki: I can open it just fine with my browser Mar 21 16:30:57 fairuz: well then your browser settings are fine, but I doubt the sdk manager is using those settings Mar 21 16:31:14 I am working with group on a project, and only have one phone :( Mar 21 16:31:22 Kagetsuki: the sdk uses the same setting as my OS Mar 21 16:31:31 I choose the native setting Mar 21 16:31:49 fairuz: hmm, then I'm not sure - just try again a few times Mar 21 16:32:32 Kagetsuki: I already tried at least 20 times :( Mar 21 16:33:10 fairuz: what kind of environment are you in? university or something? Mar 21 16:33:24 Kagetsuki: Company Mar 21 16:34:00 fairuz: you have access to the proxy logs? Mar 21 16:34:14 I dont think so Mar 21 16:34:28 fairuz: is there an administrator? Mar 21 16:34:57 Kagetsuki: Yes, I will surely bug them tomorrow morning :) Mar 21 16:35:46 fairuz: that sounds like the best plan. Theres's really no way for me to diagnose the problem in any detail from here :) Mar 21 16:36:14 whats the best way to hide an element in a View? .setVisibility() doesn't seem to reclaim the space when you hide the element Mar 21 16:36:22 Kagetsuki: Or I can use my Windows machine. I'm pretty sure that I will not have any problem. Mar 21 16:36:53 fairuz: I was assuming you were on windows. If you're on linux then system proxy settings should have done it Mar 21 16:37:02 fairuz: is the proxy SOCKS? Mar 21 16:37:21 Kagetsuki: Hmm how can I know? Mar 21 16:37:47 fairuz: remove all settings other than SOCKS, set the SOCKS proxy address to the proxy server Mar 21 16:38:18 gweedo767: Use setVisibility(View.GONE); Mar 21 16:38:50 Lachezar: thanks, didn't see tat Mar 21 16:38:52 fairuz: SOCKS will handle everything on its own, dynamically configuring the ports and such Mar 21 16:39:01 Lachezar: worked perfectly Mar 21 16:39:06 my socks are dirty Mar 21 16:39:34 canadiancow|work: then change them! Mar 21 16:39:43 i did, but those socks are still dirty Mar 21 16:40:43 canadiancow|work: If you don't have any clean socks and can't seem to find the time to wash them I recommend you just burn your existing socks and wear sandals Mar 21 16:40:56 no i mean Mar 21 16:40:59 i had dirty socks Mar 21 16:41:01 i put on clean socks Mar 21 16:41:05 but the dirty socks are still dirty Mar 21 16:41:09 aaah Mar 21 16:41:14 and im not going to do laundry for just socks Mar 21 16:41:17 so im stuck with dirty socks Mar 21 16:41:21 also: this joke has gone way too far Mar 21 16:41:24 try smoking them Mar 21 16:41:34 Kagetsuki: I can't untick HTTP and HTTPS. That's normal? Mar 21 16:41:47 fairuz: leave them blank? Mar 21 16:42:40 Kagetsuki: Well still no success :( Mar 21 16:42:58 fairuz: well, talk to the admin tomorrow then Mar 21 16:43:56 Kagetsuki: Will do. Thanks btw Mar 21 16:44:18 np Mar 21 16:47:19 I'm having trouble in my layout: I've got an ImageView (height=wrap_content), a Gallery (height=fill_parent), and a TextView (height=wrap_content), all within a vertical LinearLayout. I can't see the TextView - the Gallery fills the rest of the screen. Why? Mar 21 16:50:12 ejcweb: you're misunderstanding fill_parent (which is why it was renamed to match_parent) Mar 21 16:50:46 evancharlton: +1 Mar 21 16:50:53 i trained my intern to use match_parent :) Mar 21 16:51:00 GASP Mar 21 16:52:18 I see that AbsList implements TextWatcher. Does that mean, that all I need to do to link a text field with the list is to add the list as a listener to the text field? Mar 21 16:52:18 ejcweb: what you're looking for is layout_weight, by the way Mar 21 16:52:35 evancharlton: Thanks :) Mar 21 16:52:56 03-21 16:49:43.100: E/MediaPlayer(26868): error (-4, -4) Mar 21 16:53:04 I mean... To make the text field work as a filter for the list? Mar 21 16:53:07 any idea wtf that means? Mar 21 16:54:25 I hope nobody minds if I ask my question again: I have a custom list/adapter and I want to include some sort of callback or class reference to the activty or class of the activity that will be created (through intent), all activities are within the app, what should I use as a reference (string? class reference?) Mar 21 16:55:47 let me make that more general: how should I be passing around activity references? Mar 21 16:56:00 Kagetsuki: To your adapter, I would store a Context-object Mar 21 16:56:29 Kagetsuki: better question is why you're passing around activity references Mar 21 16:58:02 evancharlton: I have a custom list adapter that lists activities within the app but there will be a LOT of activities after a while and I don't want to have to maintain an external switch or whatever that gets called each time the list is pressed Mar 21 16:58:43 evancharlton: also I'm not reall a Java programmer so please excuse me if this is a stupid way to be solving the problem Mar 21 17:02:16 so those phones that dock into tablets Mar 21 17:02:23 how does that work Mar 21 17:02:30 n20: Thanks, I think I get it now Mar 21 17:02:37 does it still say it's normal-xhdpi, or does it update to xlarge-mdpi? Mar 21 17:03:16 the arrived didn't Mar 21 17:03:27 atrix Mar 21 17:04:00 dunno about the padphone Mar 21 17:05:25 sounds like this would really break multi-apk support Mar 21 17:05:26 :P Mar 21 17:05:36 if one device can be two different sizes and densities Mar 21 17:07:09 canadiancow|work: that can already happen Mar 21 17:07:16 canadiancow|work: see also: hdmi Mar 21 17:07:31 but does the phone suddenly say "im large-tvdpi" ? Mar 21 17:07:39 or does it just mirror the phone screen Mar 21 17:07:39 yes, it's a configuration changed event Mar 21 17:07:42 ok Mar 21 17:07:52 so doesnt that totally make multi-apk a stupid bad feature? Mar 21 17:08:01 because people use that to have separate xhdpi, hdpi, mdpi builds Mar 21 17:08:01 etc Mar 21 17:08:05 I guess that's up for the developer to decide Mar 21 17:10:30 well evancharlton, it will break, will it not? Mar 21 17:10:34 ScaleAnimation (float fromX, float toX, float fromY, float toY). <-- If I set toX == 1 is that the normal size? Mar 21 17:10:46 if i have an apk for normal-xhdpi, and i run it on xlarge-mdpi, everything will get scaled down, an di wont have my special tablet layout Mar 21 17:12:07 canadiancow|work: if that's what you call "breaking", then yeah, probably Mar 21 17:12:13 note: I haven't ever tested this Mar 21 17:12:19 heh ok Mar 21 17:12:43 if i put time/effort into a tablet design, and that doesnt get used on a tablet, id consider that bad Mar 21 17:12:45 maybe not "broken" Mar 21 17:12:45 but bad Mar 21 17:13:35 if you put the time and effort into it and then told it not to use it, i'd say that's your problem Mar 21 17:13:36 then don't use multi-apk :) Mar 21 17:14:14 everyones apps are going to break because idiots override onconfigurationchange for stupid reasons Mar 21 17:16:57 because I don't want a stupid keyboard popping up automatically I am an idiot? Mar 21 17:17:00 is 1.0 the normal size of an item when scaling? Mar 21 17:17:29 why is a stupid keyboard popping up Mar 21 17:22:18 Hi when I remove my SyncAdapter the created contacts stay in the phonebook. How could i determine why they won't be removed? Mar 21 17:23:51 because it's a syncadapter Mar 21 17:24:00 not a contactstorageadapter Mar 21 17:24:03 is my guess Mar 21 17:24:50 In the SDK example the contacts are removed Mar 21 17:25:16 [13:14:14] everyones apps are going to break because idiots override onconfigurationchange for stupid reasons Mar 21 17:25:16 lol Mar 21 17:25:25 ZYNGA DOESN'T DO THAT Mar 21 17:25:26 I SWEAR Mar 21 17:27:09 zynga doesnt do that Mar 21 17:27:11 cow does it Mar 21 17:27:15 mooo Mar 21 17:27:18 lol Mar 21 17:27:19 I am trying to have a grid of 3x2 filling the screen, with each cell containing something different. I have got it working without any content in each cell, but when I put content in each cell, the weights seem to shift and the cell sizes change. Any way to stop that? Mar 21 17:27:39 bored_worker: does the content have a non zero size? Mar 21 17:27:57 gho5t: try it and see, I suspect you would've answered your own question by now Mar 21 17:27:59 bored_worker: layout_width="0dp" layout_height="0dp" Mar 21 17:28:13 I'll give that a go Mar 21 17:28:19 think I may have that already Mar 21 17:28:24 bored_worker: and equal layout_weights. Mar 21 17:28:33 weights shouldnt' shift due to content being added Mar 21 17:28:54 I'll be able to example it better with a screenshot, one minute Mar 21 17:29:00 Q: Does SharedPreferences suppose to disappear if I close android emulator? Mar 21 17:29:06 weight is used to distribute the excess space. Mar 21 17:30:12 gesman: if you don't call .commit(), yes Mar 21 17:31:19 okay, I feel really stupid asking. But can someone please explain to me how device independent pixels is calculated? I thought that the formula was screen resolution * 160 / density. This has worked out for me in many of my calculations ... except for the Galaxy Nexus. That has a DPI of 316 which should get rounded to 320 for calculation and thus I understand how the 720 side becomes 360 wide ... but then shouldn't the 1280 side Mar 21 17:31:25 Lachezar, mikedg, readme: Before: http://i.imgur.com/ekbl1.png After: http://i.imgur.com/HKIOK.png Mar 21 17:31:55 evancharlton, oh ok. So Eclipse saves it somewhere and then force-upload them to new emulator instance? Mar 21 17:32:17 The textview doesn't even fill the cell Mar 21 17:33:01 gesman: erm, no? The app on the emulator saves it, just like it would on a device. Mar 21 17:33:53 evancharlton, well then if I close emulator - everything "suppose" to be gone? Or it saves last state somehow? Mar 21 17:34:02 bored_worker: in that, your layout_height must be set to wrap_content for it to expand, no? Mar 21 17:34:04 gesman: no, everything is not supposed to be gone. Mar 21 17:34:22 gesman: closing the emulator is more or less the same as turning off your phone Mar 21 17:34:34 bored_worker: also you might want to wrap the left in a scrollview if it's going to overflow Mar 21 17:34:40 bored_worker: Is the height of your views 0dp ? Mar 21 17:34:52 it's not :) Mar 21 17:34:59 powrsurg: the 1280 side what? Mar 21 17:35:05 evancharlton, ok, so my question then - how can i start my app frmo Eclipse in a clean slate? Or app has to take care of it? I just need ot for debugging of persitant storage logic Mar 21 17:35:19 adb uninstall com.gesman.whatever Mar 21 17:35:41 or make use of the emulator snapshots Mar 21 17:35:59 evancharlton, ok thanks. Good info Mar 21 17:53:01 Can anyone please tell me why I'm getting a very slow frame rate (29 FPS) when I use SurfaceView and draw only a bitmap? Mar 21 17:54:28 bored_worker: What Layout are you using? Mar 21 17:54:41 readme, SimonVT: Fixed it by using a 2 linears (for each row) and making each item inside split into thirds Mar 21 17:54:47 Lachezar: just fixed it, i was using a tablelayout Mar 21 17:55:03 now im just using linear Mar 21 17:55:07 bored_worker: Table layout has not been kind to me... Mar 21 17:55:21 yeah, i would like to use gridview, but.. backwards compatibility Mar 21 17:55:26 gridlayout* Mar 21 17:55:33 SimonVT: specs say that the nexus has a screen resolution of 1280x720. I'm trying to calculate the dips and it works for the width, but not the height Mar 21 17:55:57 it works for the 720 to correctly equal 360 dips Mar 21 17:56:16 powrsurg what's the issue? Mar 21 17:56:20 bored_worker: Well... Nested layouts have a performance penalty, but... Well... maybe you can whip-up your own layout? Would be more effective... Mar 21 17:56:25 PhyzloC: consider only invalidating a dirty area instead of the whole thing. Some devices may also be rate limited. Mar 21 17:56:51 bored_worker: To be honest, I too use nested linear layouts :-/ Mar 21 17:56:53 Lachezar: didnt think of that, might give that a go at some point, never done that properly before Mar 21 17:56:55 PhyzloC: you might need to use a GL surface if you want even better performance for whatever you're doing; blitting a texture involves sending it to video memory, so if it's already there you'll go faster. Mar 21 17:56:57 the galaxy nexus has a scale of 2, so shouldn't the dips for 1280 be 640? I'm getting 598 Mar 21 17:57:44 now i just need to fix actionbarhsherlock making tabs bunch up on small screens Mar 21 17:57:44 now something I just found on basc4ppc.com said that the nexus is actually 1196x720 when in landscape mode. Using 1196 to do the calculation actually results in 598. But where did 1196 come from? Mar 21 17:57:51 lov: I tested the sample LunarLander and it has 60FPS on my Galaxy Nexus. It too is drawing a background image Mar 21 17:57:56 * Lachezar bids everyone good night... Eclipse crashed on me, so it's time to finally go home... Mar 21 17:58:07 nn Lachezar Mar 21 17:58:24 powrsurg, the system bar is probably 84 pixels high Mar 21 17:59:10 Yeah, depends on where you're getting the height from. Both the notification bar and the buttons take up space as well Mar 21 17:59:46 yeah, I JUST noticed that ... Mar 21 17:59:47 lov: I don't know GL but for simple graphics drawing on canvas should be enough Mar 21 18:00:33 I've been trying to figure out the math there ... it different from calculations I'd done on the original droid and the nexus one ... they don't have virtual menus Mar 21 18:01:58 PhyzloC: well, why not look at the Lunar Lander code? Mar 21 18:02:20 it will probably be a lot more productive than whining about framerates on IRC Mar 21 18:03:06 lov: I have! Can't understand why. That's why I'm asking. I'm obviously missing something.. Mar 21 18:03:47 pastebin your code and/or go to stackoverflow Mar 21 18:04:21 I've given a couple of suggestions, you haven't given examples of how that's incorrect or why you can't use those ideas. Mar 21 18:04:36 the onus is on you to make me actually give a shit about your framerate. Mar 21 18:05:50 lov: My original question was why drawing a bitmat reduces the frame rate.. this question doesn't need any example.. Mar 21 18:06:01 right, but I need clarification. Mar 21 18:06:07 Are you creating a bitmap that is the size of the entire screen? Mar 21 18:06:11 because drawing a bitmap takes time. Mar 21 18:06:12 are you creating it new EVERY SINGLE TIME? Mar 21 18:06:21 are you drawing onto that bitmap and then blitting that bitmap to the canvas? Mar 21 18:06:24 THAT would be a slowdown. Mar 21 18:06:40 are you just making a 48x48 bitmap, caching it, and then only invalidating the dirty area? Mar 21 18:06:44 because that would probably be faster Mar 21 18:06:46 WHAT Mar 21 18:06:46 ARE Mar 21 18:06:47 YOU Mar 21 18:06:48 DOING. Mar 21 18:06:53 lov: :) Mar 21 18:07:02 I'm not going to play 20 questions anymore. Mar 21 18:07:10 Either pastebin your code or give specific descriptions of what you're doing. Mar 21 18:09:09 lov: I'm scaling the bitmap to exact screen height/width. I'm doing this once before I start the loop. Then I draw on canvas.drawBitmap(bitmap, 0, 0, null). Mar 21 18:09:43 everything you do takes time Mar 21 18:09:59 drawing takes more time than most things except pooping Mar 21 18:10:07 thus frame rate drops Mar 21 18:10:20 qed Mar 21 18:10:32 PhyzloC: that's probably your biggest killer,. Mar 21 18:10:33 mikedg: but I must be able to draw a picture no? Mar 21 18:10:44 if you're refreshing the entire canvas each time, that's going to take a while. Mar 21 18:10:48 sure, you can and itll reduce the framerate Mar 21 18:11:04 if you are triggering the garbage collector because of some ridiculousness thats going to kill framerate Mar 21 18:11:33 then what is the proper way to draw a background on canvas? Mar 21 18:12:03 generally, once. Mar 21 18:12:23 if you redraw everything every frame, it will take a while (unless you're using GL and loaded everything into texture memory) Mar 21 18:12:32 only redraw the dirty area, that will provide a nice speedup Mar 21 18:12:46 lov: As I understand it canvas doesn't have any layers.. for every frame I neeed to draw all objects on top of eachother Mar 21 18:13:19 PhyzloC: go learn how to use traceview Mar 21 18:13:24 lov: You mean I need track the exact position of any changes? Mar 21 18:13:26 we cant help you here without doing a code review Mar 21 18:13:30 and i dont think anyone wants to Mar 21 18:13:52 NEWP Mar 21 18:14:23 yes, tracking damage rects is a pretty common part of doing graphics stuff Mar 21 18:15:13 hmph, looks like lunarlander also draws the whole background too, interesting Mar 21 18:15:29 yes it does Mar 21 18:15:30 so, you're probably doing something expensive in the meanwhile Mar 21 18:15:34 which you haven't told us about Mar 21 18:15:35 *cough* Mar 21 18:15:39 PhyzloC: go look at Traceview Mar 21 18:15:43 when you get numbers come back Mar 21 18:15:56 or just go use Unity3d Mar 21 18:16:01 and stop making a shit engine yourself Mar 21 18:16:32 alright.. thanks for the help.. it's hard to ask the correct questions when you don't know much and are just learning Mar 21 18:16:46 mikedg: I'm trying to learn, not to make my own engine Mar 21 18:17:06 you are rarely going to need to paint your own shit Mar 21 18:17:14 unless you are making custom views? Mar 21 18:18:00 mikedg: right now I'm trying to create a breaker game. A background, bouncing ball, bricks and a moving paddle Mar 21 18:18:17 mikedg: it's not to create the best game.. but a way to learn to draw graphics Mar 21 18:18:19 PhyzloC: did you get the bounce yet? Mar 21 18:18:33 PhyzloC: check out http://impact.mikedg.com/unt/ Mar 21 18:18:58 readme: yes, but it wasn't that kind of bounce :) Mar 21 18:19:08 PhyzloC: your ball needs to have a value for x and y speed (2d velocity) and when the ball collides with a wall v[x] *= -1; and v[y] *= -1; Each iteration, the ball gets effected by the velocity vector Mar 21 18:19:41 mikedg: what's this? Mar 21 18:20:00 mikedg: does unity web player work on linux? Mar 21 18:20:19 no :( Mar 21 18:20:22 drat Mar 21 18:20:26 I wanted to see your stuff Mar 21 18:20:26 I got a problem with my SyncAdapter when I remove the account the synced contacts won't be removed like in the sdk example. Mar 21 18:20:37 I'm making a game right now, I wrote the engine and it's in a separate library project Mar 21 18:20:37 readme: i can send you the apk Mar 21 18:20:40 sweet Mar 21 18:20:48 PhyzloC: its a ball and paddle type game made in unity Mar 21 18:20:52 I am going to release the engine after the game is on the market and has some users Mar 21 18:20:53 the basics of it were done in a few horus Mar 21 18:20:56 that way I can at least say it's useful :P Mar 21 18:20:58 readme: are you on google plus? Mar 21 18:21:02 mikedg: yeah Mar 21 18:21:19 i got a plus post going with a link to it, pm me your profile Mar 21 18:21:53 im hopefully, retexturing it this weekend and redoing the menus Mar 21 18:21:56 any chance we see java7 language/api features on android ? Mar 21 18:22:59 * pfn guesses not anytime soon Mar 21 18:23:13 android 4.0 ain't got it... maybe the next version Mar 21 18:23:36 language features are relatively easy, libraries and bytecode, not so much Mar 21 18:23:47 and especially considering that harmony is dead... Mar 21 18:24:05 hard to see any future libraries being added Mar 21 18:27:09 pd => com.ninetwozero.battlelog.datatypes.PersonaStats@40f3b540 Mar 21 18:27:14 Hmm, that failed. Mar 21 18:27:21 What the... pd => com.ninetwozero.battlelog.datatypes.PersonaStats@40f3b540 || Followed by: pd => android.support.v4.app.NoSaveStateFrameLayout@40f4e470 ** Mar 21 18:27:47 pd is the same variable, so something must be going awful wrong. o_o Mar 21 18:28:22 No, that was just me being stupid. Mar 21 18:28:25 Disregard it. Mar 21 18:47:40 can i make my own lint check? Mar 21 18:48:04 say for example a Toast.makeText() also needs a .show() :0 Mar 21 18:49:41 xorgate: that's a pretty awesome check actually Mar 21 18:49:55 i reckon i could also make an IDEA inspection for it Mar 21 18:50:03 Is it possible to add an account without an authenticator? Mar 21 18:50:19 hi Mar 21 18:50:34 Is there a way, within a view/layout, to know when the activity on which you are attached is paused/resumed? Mar 21 18:50:45 TextView can't have a android:background="@drawable/foo" like LinearLayout ? Mar 21 18:50:55 (to set a gradient) Mar 21 18:51:10 xorgate: Oh, you should totally suggest that to the tools team Mar 21 18:51:18 Yes it can, maxagaz Mar 21 18:52:16 SimonVT: thanks... my bad, I had a duplicate attribute, sorry for that Mar 21 19:01:57 is there a way to extract a key from a keystore and place it in another? Mar 21 19:02:32 im gonna suggest it first Mar 21 19:03:08 https://plus.google.com/116031914637788986927/posts/AnUmdpwbDdU Mar 21 19:03:12 back to work Mar 21 19:03:50 Always stealing other peoples ideas Mar 21 19:03:57 i hope it works out for you :0 Mar 21 19:04:14 i just got a job offer from google to work on the android tools team Mar 21 19:04:35 i hope you know why manhole covers are round Mar 21 19:04:39 or maybe i should just tell you Mar 21 19:05:29 they are round because God made them that way Mar 21 19:05:33 wow that's awesome Mar 21 19:05:45 lol Mar 21 19:05:57 they didn't ask me that question, ever Mar 21 19:05:58 Round to roll around once you remove them due to being heavy? Mar 21 19:06:09 also, "manhole covers being round" is a microsoft question Mar 21 19:06:41 did they ask any brain teasers? Mar 21 19:07:07 thats an easy one Mar 21 19:07:07 i got asked a bunch of stupid questions when i interviewed at Bloomberg Mar 21 19:07:11 no, I never heard a brain teaser. and iirc if they find out a brain teaser question, that interview might be removed altogether from input Mar 21 19:07:12 its so you can pick them up Mar 21 19:07:15 and i swear one was unanswerable Mar 21 19:07:15 and throw them like a frisbee Mar 21 19:07:23 mikedg: what was it? Mar 21 19:07:31 it was like 2 years ago Mar 21 19:07:43 something about 2 robots place in line with echother Mar 21 19:07:55 you dont know what direction they are facing Mar 21 19:08:09 and you can only give them a command to go forward or backward, find out when they collide Mar 21 19:08:19 i wrote it down somewhere let me see if i can find my notes in evernote Mar 21 19:08:36 just go back and forth was not a valid answer Mar 21 19:09:01 mikedg: http://imgur.com/9Leq9 Mar 21 19:09:05 find out when they collide? how's that possible Mar 21 19:09:30 since not all lines are intersecting Mar 21 19:09:33 yo pees Mar 21 19:09:37 peeps lol Mar 21 19:09:40 i believe it's probably one of those questions that is designed to get you to ask questions about the question, but that can't actually be answered Mar 21 19:09:57 like they are on a road Mar 21 19:09:58 canadiancow|work: vaguely tempted to put that in the topic. Mar 21 19:10:04 that is equal to their width Mar 21 19:10:08 lov lol Mar 21 19:10:12 is the road infinite? Mar 21 19:10:16 yes Mar 21 19:10:22 the robots move at the same speed? Mar 21 19:10:31 i dont remember for sure, but i believe so Mar 21 19:10:40 i cant find my notes :( Mar 21 19:11:19 move both robots forward, if they collide, they're facing each other, if they don't collide, they are either facing the same direction, or have their backs to each other Mar 21 19:11:34 is the goal to get them to collide? because it's definitely not possible Mar 21 19:11:41 you've got like, a 1/3 chance or something Mar 21 19:12:07 1 in 4 Mar 21 19:12:18 because there's 2 states where they are facing in the same direction Mar 21 19:12:24 ff, fb, bf, bb Mar 21 19:12:26 yeah Mar 21 19:12:27 you're right Mar 21 19:12:27 1 state where they diverge, and 1 state where they face each other Mar 21 19:13:07 that's assuming you're moving forward, of course Mar 21 19:13:18 found y notes Mar 21 19:13:19 it gets all confused to hell when you add in moving forward or back Mar 21 19:13:24 I got asked the monty hall problem at an interview a couple days after I saw the movie 21 Mar 21 19:13:30 have them all do the truffle shuffle Mar 21 19:13:32 I just recited the answer from the movie, :D Mar 21 19:13:32 problem solved Mar 21 19:13:39 http://pastebin.com/vp9zJgCK Mar 21 19:13:41 heh, monty hall is a cool seeming paradox Mar 21 19:14:22 my thought is they found some microsoft thing about parachuting robots and then modified and ruined it in the process Mar 21 19:14:25 oh Mar 21 19:14:31 that's solvable Mar 21 19:14:32 thats what i eventually arrived at after hours of googling way back then Mar 21 19:14:35 just have one of the robots stand still, let the other one move Mar 21 19:14:35 it's just a har dproblem Mar 21 19:14:44 lov: that wasnt acceptable Mar 21 19:14:44 and then back it back and forth Mar 21 19:14:46 Just ask the guy who put the robots there how many steps to take Mar 21 19:14:48 going 1 further each time Mar 21 19:14:51 well fuck him them Mar 21 19:14:52 what does he want Mar 21 19:15:04 you don't know whether they collide or not so you can't do something logarithmic Mar 21 19:15:08 er Mar 21 19:15:10 scumbag dropbox wont let me copy public link Mar 21 19:15:12 you don't know whether they've gone through each other Mar 21 19:15:14 I think that's what isSame is for, lov Mar 21 19:15:15 maybe since it was a mobile job, use the gps? Mar 21 19:15:17 detecting the collision Mar 21 19:15:22 oh whoops Mar 21 19:15:24 misread Mar 21 19:15:34 yeah, I guess you can double each way each time or something Mar 21 19:15:45 +1, -2, +4, -8, etc Mar 21 19:15:47 build a fucking robot that can communicte its location? Mar 21 19:15:49 play an audio sound as loud as possible and determine if the volume goes down on the other robot when you move it Mar 21 19:15:50 (where you have to iterate) Mar 21 19:16:22 i gave some really stupid "usable" answers i just forgot them now Mar 21 19:19:41 oh hmm Mar 21 19:20:01 have them both go forward, alternate the number of steps Mar 21 19:20:17 A: 1, B: 2, A: 3, B: 4, A: 5, B: 6 Mar 21 19:20:30 if they're facing the same way they'll eventually overtake one another Mar 21 19:20:38 though I suppose they could also go through each other Mar 21 19:21:04 is the stop method actually used for something? Mar 21 19:22:14 i dont know, it isnt my stupid trivia Mar 21 19:26:09 lol Mar 21 19:27:16 oh look we bought omgpop Mar 21 19:28:10 heh, for some reason my Bitmap.createScaledBitmap(bitmap, getWidth(), getHeight(), true) has stopped working. Returning a bitmap with -1 width and height Mar 21 19:28:11 whos we? Mar 21 19:28:27 zynga Mar 21 19:28:41 figured... Mar 21 19:28:46 is that bad? Mar 21 19:28:56 actually it's probably pretty good Mar 21 19:28:56 "OMGPop Sold Way Too Early -- They Left $800 Million On The Table" Mar 21 19:28:56 Read more: http://www.businessinsider.com/omgpop-sold-way-too-early-they-left-800-million-on-the-table-2012-3#ixzz1pmVIqqzY Mar 21 19:28:59 seems to be a popular game Mar 21 19:29:08 TheBunny, yea, id be sad if i only got 200 mil Mar 21 19:29:12 well that 1 game Mar 21 19:29:26 do you think they were bought just for this 1 hit? Mar 21 19:29:46 "It generates $250,000 of revenue per day." Mar 21 19:29:49 * TheBunny cries Mar 21 19:29:54 im in the wrong busines Mar 21 19:30:18 i can never be successful like that Mar 21 19:30:25 i have a game out there Mar 21 19:30:30 30 buys Mar 21 19:30:32 every big popular thing of that nature is something i would have siad "this is stupid - fuck off" if theyd tried to hire me Mar 21 19:30:34 6 months of work Mar 21 19:30:36 : / Mar 21 19:30:48 haha yep Mar 21 19:30:57 shooting birds at pigs? f off Mar 21 19:31:03 also TheBunny, the graph in that article is wrong Mar 21 19:31:44 and i was just on a site that said draw something had like 22 million DAU Mar 21 19:31:48 that one says 14 Mar 21 19:32:21 i hate reporters Mar 21 19:32:30 "every big popular thing of that nature is something i would have siad "this is stupid - fuck off" if theyd tried to hire me" Mar 21 19:32:33 YES EXACTLY Mar 21 19:32:41 facebook? who the fuck would use that Mar 21 19:32:44 I just has this same conversion to day with my tech lead.. Mar 21 19:32:45 farmville???? Mar 21 19:33:00 who just admitted he can never strike out on his own etc. Mar 21 19:33:21 ive just kind of concluded that i need to go work at a stupid company making stupid products Mar 21 19:33:26 and then i might get rich Mar 21 19:33:31 or bored.. Mar 21 19:33:35 true Mar 21 19:34:10 thats my issue.. Im working on AAA titles and iM not sure im interested in the mobile start ups cause so many of them are so insipid… the products Mar 21 19:34:25 I know they are casual etc... Mar 21 19:35:02 gho5t I made about 12K so far off ios games Mar 21 19:35:19 but thast a few years tech work etc before you could get all the nice middleware etc Mar 21 19:35:19 NICE Mar 21 19:35:25 its not a living tho Mar 21 19:35:32 day jobs pay x10 Mar 21 19:35:35 that Mar 21 19:35:43 yeah I feel bad though cause I dragged my buddy in to make the graphics Mar 21 19:35:49 and his gf gave him shit about it Mar 21 19:35:52 lol Mar 21 19:35:53 ah Mar 21 19:35:53 and then we made no money Mar 21 19:35:55 fuck his girlfriend Mar 21 19:35:57 that sucks Mar 21 19:35:58 so now I look like an asshole Mar 21 19:36:03 you tried, you failed Mar 21 19:36:04 meh Mar 21 19:36:07 try again Mar 21 19:36:10 but hey you learned a lot.. and the next game will be way easier etc Mar 21 19:36:21 Yeah I do at least feel good about being able to say I gave it a shot Mar 21 19:36:47 What did his GF want him to do? Watch Jersey Shore with her? Mar 21 19:36:55 ;) Mar 21 19:37:05 Who knows. I can't wait til he breaks up with that bitch Mar 21 19:37:10 LOL Mar 21 19:37:22 one of the funniest things I have read all day Mar 21 19:37:34 of course they're engaged now Mar 21 19:37:39 so I feel bad for saying that Mar 21 19:37:56 I saw that coming Mar 21 19:40:18 So OMGPOP sold… but oddly I would have though they had been looking for a buyer for a while? Mar 21 19:40:25 and this is not really a 9 day thing.. Mar 21 19:40:40 lol canadiancow|work a stupid company to get rich? :) Mar 21 19:40:50 michaelnovakjr: i think groupme is stupid Mar 21 19:40:54 i think facebook is stupid Mar 21 19:40:57 i think farmville is stupid Mar 21 19:41:00 i think draw something is stupid Mar 21 19:41:09 only zynga is cool? Mar 21 19:41:19 half of what i named are zynga products Mar 21 19:41:30 yah I was wonder where hes going with this... Mar 21 19:41:37 lol canadiancow|work GroupMe definitely isn't stupid... but I don't work there anymore regardless. Mar 21 19:41:45 but you're missing my point Mar 21 19:41:51 everything that i think is stupid does well Mar 21 19:41:56 $200 million is a damn good sale, who cares what was "left on the table" Mar 21 19:42:07 canadiancow|work, maybe you are missing the point then :) Mar 21 19:42:18 canadiancow|work: you realize thats very valuable? Mar 21 19:42:28 what's very valuable? Mar 21 19:42:29 lov: still here? Mar 21 19:42:32 Just invert your opinion on every new product Mar 21 19:42:37 TheBunny: exactly Mar 21 19:42:50 SEE THIS IPAD thing its going to fail right? Mar 21 19:43:04 how can you check to see if there is anything on the back button stack? Mar 21 19:43:20 TheBunny, apple is an exception Mar 21 19:43:25 people will buy shitty apple products Mar 21 19:43:46 canadiancow|work… my business partner is the same way… any new game or tech product he dislikes basically does fine to great... Mar 21 19:43:56 been joking about this for years. Mar 21 19:44:14 but yea Mar 21 19:44:18 if a startup ever gives me an offer Mar 21 19:44:26 if i think what they do is stupid, i will accept Mar 21 19:44:30 if i think its great, i will decline Mar 21 19:44:32 SkyRim… awful game!…. what did we sell like 13 million copies... Mar 21 19:44:34 lol Mar 21 19:44:35 if its somewhere in the middle, i'll have to think about it Mar 21 19:45:56 canadiancow|work, are you saying your startup radar is busted? heh Mar 21 19:46:23 yes Mar 21 19:46:30 ok come on Mar 21 19:46:35 when you first saw farmville... Mar 21 19:46:48 So, I'm using the ViewPagerIndicator, and I'm having trouble with it. I'm adding a tab after the thing is initialized and running, and it seems to work fine, until I click on the tab, and it crashes, saying "Can't change tag of fragment". Any ideas? Mar 21 19:48:35 Anyone know how to prevent crap scrolling on a gallery? Mar 21 19:49:13 farmville made me want to hurt myself :) Mar 21 19:49:29 I do like some of the newer clones more tho I guess Mar 21 19:49:44 like dragon Valle (?) on the ipad Mar 21 19:52:47 JoeTheGuest: "crap scrolling"? Mar 21 19:53:12 JoeTheGuest: don't do allocations on the UI thread Mar 21 19:53:14 canadiancow|work, I've never seen farmville still... Mar 21 19:53:14 Yea, I have a gallery and i'm using an image loader to download the image async and set it in the gallery image view. Mar 21 19:53:54 for that matter, I still don't understand the point of facebook... Mar 21 19:54:38 pfn: it connects people Mar 21 19:54:54 so that they can brag about how often they water their crops? Mar 21 19:55:28 :) Mar 21 19:55:50 heh Mar 21 19:56:23 FB is intuitive... gotta give it that. It's a great way for people to stay in touch. The fact that people use it for other things besides that isn't really the site's fault. Mar 21 19:56:59 ctate: you should play scramble with friends Mar 21 19:57:29 is the game not a hit canadiancow|work ? you pushing it hard on this channel :) Mar 21 19:57:39 oh it's a hit Mar 21 19:57:46 doesnt mean i can't push it Mar 21 19:57:54 although i guess your definition of "hit" might vary from mine Mar 21 19:58:26 anyone running ARHD custom rom perchance? Mar 21 19:58:35 canadiancow|work: success is relative Mar 21 19:58:53 JoeTheGuest: cool bugreport bro Mar 21 19:58:56 Guys, is there any way to refresh a fragment? Mar 21 19:58:57 i dont know why i waste my time with apps, need to focus on games Mar 21 19:59:04 JoeTheGuest: A+++ would read again Mar 21 19:59:04 lov: don't be an ass. Mar 21 19:59:17 I'm asking how to prevent it not reporting it as a bug. Mar 21 19:59:19 I'm changing a fragment's contents dynamically, but the view isn't changing. Is there something like a refresh method? Google's not helping much... Mar 21 19:59:20 JoeTheGuest: watch it D: Mar 21 19:59:39 prevent WHAT. Your problem is "crap scrolling" Mar 21 19:59:42 that's not very precise Mar 21 19:59:50 well duh Mar 21 19:59:54 it's not as smooth as ios Mar 21 19:59:57 oh shi Mar 21 19:59:58 I have choppy scrolling and it's only ICS that sees it. Mar 21 19:59:59 therefore crap Mar 21 20:00:14 ok, that's a little better; now we know this only happens on ICS. Mar 21 20:00:19 profile it and see where it's spending time Mar 21 20:00:22 for starters Mar 21 20:00:26 ^^ Mar 21 20:01:00 real developers can profile in their heads Mar 21 20:01:14 good evening Mar 21 20:01:27 my partner is suggesting that Drawsomthing is a hit FAD app Mar 21 20:01:35 and that users are already bored abd dropping it Mar 21 20:01:41 so? Mar 21 20:01:47 or cheating and just writeing out the words Mar 21 20:01:47 lol Mar 21 20:01:51 LOL Mar 21 20:01:55 real developers can code in their sleep Mar 21 20:02:04 and have it compile with no errors Mar 21 20:02:08 IF That was true… then that would justify selling out FAST... Mar 21 20:02:15 TheBunny: doesn't matter now, its sold Mar 21 20:02:26 are you missing my point? Mar 21 20:02:36 no, i get your point Mar 21 20:02:38 im sure a buyer would do some due diligence and check stuff like that Mar 21 20:02:39 I wish maven did similar to ant's -find argument Mar 21 20:02:45 so I can just do mvn from deep within the tree Mar 21 20:02:48 So why did you repeat it... Mar 21 20:03:06 canadiancow: you would hope :) Mar 21 20:03:37 you dont buy a house without going inside first Mar 21 20:04:28 yes Im sure they are being bought for more then just this 1 app Mar 21 20:04:43 I just refactored a pig from inside an Elephant Mar 21 20:04:45 and it's alive Mar 21 20:04:50 o.O Mar 21 20:05:01 fantastic! Mar 21 20:05:33 im that good Mar 21 20:06:41 hired! Mar 21 20:07:06 are you sure YOU did it? :0 Mar 21 20:08:31 Hey, I'm trying to get android-screenshot-library to take a screenshot, but I'm getting its binary to error out "An error occured: ioctl FBIOGET_FSCREENINFO Bad file descriptor" Mar 21 20:10:21 $200m seems like a lot of money for a single game Mar 21 20:10:28 they better have some awesome underlying technology Mar 21 20:10:39 event talent isn't worth $200m, unless it's like >1000 employees Mar 21 20:10:42 how do you know if pressing back will close the app? Mar 21 20:10:43 Draw Something is 6 weeks old.. Mar 21 20:10:58 pfn: my mom says i'm priceless Mar 21 20:11:33 makes you wonder about due diligence canadiancow|work unless the company was up for sale long before this Mar 21 20:11:35 Q: Can I see execution Stack in Eclipse debugger? Mar 21 20:11:45 silur: yea Mar 21 20:11:53 TheBunny, i have no knowledge Mar 21 20:11:53 snooplsm, how? Mar 21 20:12:03 honestly, the only thing ive seen internally is a link to our public blog Mar 21 20:12:09 just speculating not asking. Mar 21 20:12:12 Im sure Mar 21 20:12:25 big compant hard to follow everything anyhow Mar 21 20:12:30 but no company would just go out and say OHHH A PRETTY GAME HERE IS HUNDREDS OF MILLIONS Mar 21 20:12:37 yeah Mar 21 20:12:39 I agree Mar 21 20:12:56 canadiancow|work: i will give you hundreds of dollars for zynga Mar 21 20:13:13 i will sell you 1 share of ZNGA for hundreds of dollars Mar 21 20:13:21 all of zynga or no sale Mar 21 20:13:28 :( Mar 21 20:13:56 canadiancow|work: does zynga buy games from indie developers often? Mar 21 20:14:06 readme: i have absolutely no idea Mar 21 20:14:13 oh Mar 21 20:14:16 readme: no Mar 21 20:14:20 zynga just copies them Mar 21 20:14:22 dont you read the news Mar 21 20:14:25 i think it is more likely that...ugh Mar 21 20:14:28 nah I don't Mar 21 20:14:33 :) Mar 21 20:14:34 they have a machine that you put the apk in and out pops a copy Mar 21 20:14:36 its more likely that they would see you are a capable game dev, and just hire you Mar 21 20:14:37 with different colors Mar 21 20:14:48 mikedg: is the machine an indian outsourcer Mar 21 20:14:54 lol Mar 21 20:15:01 worse, it's a canadian insourcer Mar 21 20:15:08 its a cow? Mar 21 20:15:09 except indie devs do everything so like hiring them as a programmer sucks Mar 21 20:15:35 i'm animating a frog right now Mar 21 20:15:40 i made some ribbit sounds earlier Mar 21 20:15:46 did you make the ribbits? Mar 21 20:15:54 or did you find a frog and squeeze him til he croaked Mar 21 20:15:59 i found a free ribbit then I edited it in audacity Mar 21 20:16:10 authentic would be good though Mar 21 20:16:17 it sounds cool with the wahwah effect Mar 21 20:16:30 if i started using the next iphone as my day to day device would you still all love me Mar 21 20:16:49 1.2.4 (2012-03-19) [11/0]: Mar 21 20:16:49 Bug fix: Honeycomb crashing bug fixes Mar 21 20:16:54 mikedg, you'd be dead to me Mar 21 20:17:09 im already dead to you, i love my ipad Mar 21 20:17:12 lol Mar 21 20:17:19 mikedg: only if it means you stop hanging out in here Mar 21 20:17:22 you dead would be dead to me too Mar 21 20:19:06 lol Mar 21 20:19:37 Bug fix: Styles for ICS was not using NoTitleBar Mar 21 20:19:55 QubeZ: dare I ask what you're posting? Mar 21 20:19:56 damn cat is copy/pasting Mar 21 20:20:15 evancharlton: To Do Mapr changelog, must have had the text in my buffer... sorry Mar 21 20:20:18 cat came along and pasted Mar 21 20:20:25 get dog Mar 21 20:20:38 haha might soon if she keeps this up Mar 21 20:20:45 Does anyone know how to enable photo uploading permissions in the Facebook SDK? I set "photo_upload" as a permission in the constructor of the "Facebook" class, but when the authorization screen comes up, it only says that it requires basic information (and photo uploading doesn't work) Mar 21 20:22:00 The weird thing is that it used to work, but then I cahnged the AppID to a different app, and its stopped working. Now, even if I change to back to the old AppID, it wont work anymore Mar 21 20:22:18 is it possible to change the button style using a alertdialog.builder WITHOUT using its constructor which takes in a style resource? The reason I'm asking is because im running on pre-Api11 devices Mar 21 20:23:06 Also I can not use the AlertDialog constructor either as this would cause a re-write of my code which i dont want to do Mar 21 20:24:33 blargh Mar 21 20:25:44 TachyonDev, man, how many nicks do you have Mar 21 20:26:46 pfn: im moving from DJ/VJ Tachyon to TachyonDev on here, but everywhere else im moving to my name Mar 21 20:26:48 JaredBanyard Mar 21 20:26:59 changing gmail addresses is going to suck Mar 21 20:27:10 reforwarding everything around Mar 21 20:27:18 have to keep it logged in the phone for the past purchases Mar 21 20:27:34 im going to dump all my emails out of djtachyon and move it to jaredbanyard Mar 21 20:27:51 TachyonDev will be the corporate face Mar 21 20:27:51 :P Mar 21 20:27:55 http://www.youtube.com/watch?v=hcL-_TxnA0Y Mar 21 20:28:14 I see Mar 21 20:28:22 just trying to remanage things around Mar 21 20:34:50 lol TachyonDev Mar 21 20:35:18 canadiancow|work: lol what Mar 21 20:35:28 changing all your crap Mar 21 20:35:31 yeah Mar 21 20:35:32 does that mean i should toss your business card? Mar 21 20:35:35 sick of the dj/vj thing Mar 21 20:35:47 canadiancow|work: my new ones say tachyondev Mar 21 20:37:47 Q: Does anyone knows how to resolve "Waiting for Debugger" ... "Connection Timeout" while debugging app with a phone? Mar 21 20:38:09 Phonme shows "Waiting for Debugger" forever and Eclipse eventually timeouts Mar 21 20:43:32 suppose my app has minSdkVersion 4, and i run it on ICS. What will ics do regarding hardware accel? Mar 21 20:44:23 what's targetSdkVersion Mar 21 20:44:24 Does anyone knows how to resolve "Waiting for Debugger" / "Connection timeout" when debugging app with phone? Phone shows "Waiting for Debugger" forever and Eclipse eventually prints "Connection timeout" Mar 21 20:46:18 targetSdkVersion is not set so defaulting to 4 as well Mar 21 20:46:46 Just wondering, is there a reason why a lot of classes don't have useful toString() methods? Mar 21 20:47:16 silur, wrong port Mar 21 20:47:40 silur, or ddms is not running perhaps? Mar 21 20:47:49 Stuff like the various Views, Context/Activity, yadda yadda. Mar 21 20:48:14 sureaint: what doesn't have toString that you need? Mar 21 20:48:52 soulseekah, ddms is running. How can i check port? Mar 21 20:49:05 netstat Mar 21 20:49:37 silur, DDMS tells you the port (or ports if app is selected), is app on the list? Mar 21 20:50:18 soulseekah, Console says: "Attempting to connect debugger to 'com.precidia.payments' on port 8600" Mar 21 20:50:36 silur, what does DDMS say? Mar 21 20:51:10 hi Mar 21 20:51:19 silur, is com.precidia.payments running on 8600 in DDMS? Mar 21 20:51:20 DDMS lists app as: com.prec.paym 9839 8600/8700 Mar 21 20:51:26 how to test if this: foo[0] exists ? Mar 21 20:51:39 maxagaz, #java Mar 21 20:51:57 silur, does DDMS says anything in its log? Mar 21 20:52:31 soulseekah, you mean LogCat? Mar 21 20:52:41 silur, yeh, I think it's the same Mar 21 20:53:09 silur, try `jdb -attach localhost:8600`, you should have jdb Mar 21 20:53:10 xorgate: You need to target 14 for hw accel to be on by default Mar 21 20:53:27 soulseekah, it says application is waiting for debugger om port 8100 Mar 21 20:53:51 silur 8100? Mar 21 20:53:53 soulseekah, so looks like it's mistmatch Mar 21 20:53:57 of ports Mar 21 20:54:12 silur, the application is actually sleeping .waitForDebugger()? Mar 21 20:54:14 SimonVT well the thing is i dont really care if hw is on, in fact i say nothing about hw accel anywhere in the app. it seems the device just decides to do it by itself. And as such clipPath() is called but not available Mar 21 20:54:18 JakeWharton: You around? I think I've found a bug/undesirable behavior in ViewPagerIndicator Mar 21 20:54:35 silur, yes, but you said DDMS lists it as 8600/8700, has it changed? Mar 21 20:54:40 Or, equally/more likely, I'm not doing it correctly. Mar 21 20:54:42 silur, try on 8100 then Mar 21 20:55:13 soulseekah, correct: DDMS 8600/8700 (left top windows where phone ID and app under it), yet LogCat says app is waiting for debugger on port 8100 Mar 21 20:55:37 wraithguard01: Make a test case before reporting bugs Mar 21 20:55:42 Can i configure app for 8600? Or Can i change debugger to 8100? Mar 21 20:56:12 Well, I'm not sure if it's a bug per se. There may be a way to do what I want, and I just don't know how to do it. Mar 21 20:56:14 silur, change debugger to 8100 see if it works, strange, are you sure you're on the correct device? Mar 21 20:56:50 soulseekah, thanks... well i have only one devive... Need to find out how to change debugger/port now Mar 21 20:57:06 silur, cus usually when it says 8600, it's really 8600, not 8100 Mar 21 20:57:17 xorgate: 4.0 devices can force hw accel on as well Mar 21 20:57:52 silur, I think - Window->Preferences; Select Android -> DDMS Change - ADB debugger base port. Not sure though, don't use Eclipse. Mar 21 20:58:12 SimonVT but i believe 4.0 should have all operations supported in hardware, no? Mar 21 20:58:33 iirc a few are still unsupported Mar 21 20:58:53 soulseekah, thanks, doing it .... Mar 21 20:59:44 SimonVT actually the thing is on 'stock' ics devices there's no problem, but on one guy's custom ics rom the clipPath() is unsupported Mar 21 20:59:58 i should check if they force hw Mar 21 21:01:29 soulseekah, Yay it works! Thanks bunch. Yes - was port mistmatch. I set DDMS to 8100. And HAD TO restart Eclipse to make it work Mar 21 21:02:36 xorgate: Stock ics can force hw acceleration as well Mar 21 21:02:43 But if they are doing that, tell them to stop Mar 21 21:03:13 well that might be a bit forward.. Mar 21 21:03:34 i'd rather not have it crash at all so i'm trying to find a workaround Mar 21 21:04:02 . Mar 21 21:04:40 Is there some way to avoid having to escape every single double quote in a string resource with "\"? I tried using a CDATA section which works for not having to escape any XML constructs, but quotes still get dropped somewhere along the way Mar 21 21:05:29 the quotes are being dropped by something, not xml escaping Mar 21 21:05:42 the answer, it seems, is that you must escape them Mar 21 21:05:54 pfn, yeah something to do with the resource processing... i guess maybe I shouldn't be using a string resource in this case Mar 21 21:06:01 and just use a file in my assets directory instead Mar 21 21:06:51 Hello, could I ask something? Mar 21 21:06:58 don't ask to ask Mar 21 21:08:03 Jacruth: from the channel topic: "Ask your question, don't ask to ask" Mar 21 21:08:05 :) Mar 21 21:09:04 what if that's his question Mar 21 21:09:05 Jacruth, you've used up your quota of one question per day, come back tomorrow Mar 21 21:09:08 Mar 21 21:09:58 http://android-developers.blogspot.com/2012/03/updated-sdk-tools-and-adt-revision-17.html Mar 21 21:10:00 wewt Mar 21 21:11:15 Which is the best way to implement concurrency on Android: Threads or Handler? Mar 21 21:11:34 yes Mar 21 21:11:51 Okay, I'm trying to learn to develop android applications in Linux. I have Eclipse and I have android uncompressed in ~/android/. I have added the path into the environment variable "PATH". I have added https://dl-ssl.google.com/android/eclipse/ in the Eclipse Install options. I think I have done almost all, but I can't make any android project in Eclipse yet, there is no anything related to Android. Mar 21 21:12:01 I have restarted the program several times and nothing. Mar 21 21:12:03 when should you use %1$s and and just %s in string resources? Mar 21 21:12:49 I'm trying to get the source of a native AOSP method (nativeFindAddress). Where can I find it? Mar 21 21:13:04 in the AOSP sources? Mar 21 21:13:16 the emulator now supports running x86 system images in virtualization mode on Windows and Mac OS X. Mar 21 21:13:17 nice Mar 21 21:13:49 $ sgrep nativeFindAddress Mar 21 21:13:50 ./core/java/android/webkit/WebView.java:3553: return WebViewCore.nativeFindAddress(addr, caseInsensitive); Mar 21 21:13:51 ./core/java/android/webkit/WebViewCore.java:504: static native String nativeFindAddress(String addr, boolean caseInsensitive); Mar 21 21:13:58 that's in frameworks/base Mar 21 21:14:06 @ctate right - it's native. but what's the real source? Mar 21 21:14:09 and you want the actual implementation? Mar 21 21:14:14 Ya Mar 21 21:14:15 that'd be in webkit, then, wouldn't it. Mar 21 21:14:41 taht is, external/webkit Mar 21 21:14:42 Will try that, then. Thx Mar 21 21:14:49 do the same sgrep there, voilà Mar 21 21:15:17 external/webkit/Source/WebKit/android/jni/WebViewCore.cpp Mar 21 21:15:17 Thx Mar 21 21:15:28 * ctate <3 sgrep Mar 21 21:15:55 Solved. Mar 21 21:15:59 Added a feature that allows you to run some code only in debug mode. Builds now generate a class called BuildConfig containing a DEBUG constant that is automatically set according to your build type. You can check the (BuildConfig.DEBUG) constant in your code to run debug-only functions such as outputting debug logs. Mar 21 21:16:04 interesting Mar 21 21:16:19 [and mgrep and dgrep and jgrep and ssgrep and resgrep and...] Mar 21 21:17:09 pfn: ewwwwwwwwww Mar 21 21:17:20 i mean, i know why people want it Mar 21 21:17:26 the x86 emu is handy Mar 21 21:17:27 but sigh Mar 21 21:18:16 question: How do I get current display range in degrees for the camera? Can I calculate it from the current zoom level? Mar 21 21:18:42 ctate, codegen ftl... but I guess it's... ok Mar 21 21:19:10 Error ... while compiling: INSERT INTO items(longtitude, text, title, latitude, _id) VALUES(?, ?, ?, ?, ?); Mar 21 21:19:14 what's gonna be really funny is when people put stuff in if (DEBUG) that is actually critical at runtime Mar 21 21:19:33 i guess it takes random the parameters when i db.insert(TABLE_NAME, null, values); Mar 21 21:19:57 cause my order is _id, lat,long, title, text Mar 21 21:20:08 or smthing different ? Mar 21 21:20:17 Added support for custom views with custom attributes in libraries. Layouts using custom attributes must use the namespace URI http://schemas.android.com/apk/res-auto instead of the URI that includes the app package name. This URI is replaced with the app specific one at build time. Mar 21 21:20:18 Yay Mar 21 21:21:31 pfn: exactly. always run all of your code. Mar 21 21:22:10 ctate: what? Mar 21 21:22:41 how would you disable logging? Mar 21 21:22:48 there's a lot of if (false) in android code Mar 21 21:22:58 lol Mar 21 21:23:04 i use a debug constant to turn off logging Mar 21 21:23:18 hmmm noone can help with that camera question? Mar 21 21:24:36 if an ics device has the 'force hardware rendering' checkbox set to true, is there any way for me to still force software rendering? Mar 21 21:24:47 since the checkbox is a developer setting Mar 21 21:25:14 forgive my impudence, but uhh.. why? Mar 21 21:25:26 because certain methods arent implemented for hw Mar 21 21:27:19 for example Canvas.clipPath which gives me nice edges https://lh4.ggpht.com/mqHufq6oQU65Ein42jlFECPdQeedoFZdwt_DsHMxREw4XyG0n0Va4w3CcBh6Xk2L-JI Mar 21 21:27:38 canadiancow|work: he'd recompile the firmware to have the Log class not emit anything :D Mar 21 21:28:07 lol Mar 21 21:28:17 anyway the question still stands Mar 21 21:33:33 So.. Time to start fixing lint stuff Mar 21 21:36:08 if an installed game wants to download data files from 3g / wifi then how to change its download location to memory card not to phone memory ? Mar 21 21:36:12 please help Mar 21 21:36:24 if ICS takes ages to build, me wonders how the Android team test the changes they make, do you rebuild the whole thing to test one block? o.O Mar 21 21:36:53 lolol Mar 21 21:36:57 draw something gave me the word - cowgirl Mar 21 21:37:06 that amuses me on so many levels Mar 21 21:38:01 hm with the new r17 im getting problems with proguard Mar 21 21:38:08 o.O Mar 21 21:38:10 i had problems with r16 Mar 21 21:38:16 becuase they used proguard version very.old Mar 21 21:39:09 i had build a release version before update, all went fine, now i get Unable to access jarfile ..\lib\proguard.jar Mar 21 21:40:18 mikey|, incremental builds for individual unit testing and then full-builds for commits? Mar 21 21:41:06 * pfn shrugs Mar 21 21:41:59 Which is better for concurrency in Android: Threads or Handler Mar 21 21:42:08 depends on your use-case Mar 21 21:42:42 Handler runs on the UI thread no? Mar 21 21:42:45 no Mar 21 21:42:46 no Mar 21 21:42:52 you can use a handler on any looper you want Mar 21 21:42:56 oh right Mar 21 21:43:06 X balls move at the same time Mar 21 21:43:07 help me Mar 21 21:43:12 mikey|: no, it runs on whatever thread you point it at. it's just easiest to use the main UI thread, since that's the one Looper that exists by default. Mar 21 21:43:14 Hey all :) - I am hoping someone might have experience with this as I have searched hi and low through things like Stack Overflow with no luck. Has anyone ever tried creating a PDF document from PDF text and not just strings? - I am pulling XML data from a site - get an encoded string. When decoded it gives me a PDF string - which I then need to somehow save into a document. Mar 21 21:43:24 Ive tried iText but cant seem to figure it out Mar 21 21:43:26 christina: unless you wrote the app, you cannot affect where it will save its data. Mar 21 21:43:29 does anyone know when you should use %s and %1$s in your strings? I don't get what the difference is supposed to be Mar 21 21:43:48 mikey|, the latter is positional Mar 21 21:43:56 ctate suppose if there is no space in phone memory then what it will do ? Mar 21 21:44:01 pfn: meaning....? Mar 21 21:44:07 so you can say "%1$s %2$s", "foo", "bar" Mar 21 21:44:11 and it'll print outt "foo bar" Mar 21 21:44:25 or, if it turned into "%2$s %1$s", it'd print out as "bar foo" Mar 21 21:44:43 ahhhh, ok, thanks Mar 21 21:44:45 mikey|, thus, translations that alter the ordering of your variables don't need to impact your code Mar 21 21:44:59 gotcha Mar 21 21:45:03 s/variables/placeholders Mar 21 21:45:03 christina: then it will fill up the rest of the disk and then fail because it's out of space? i dunno; depends on how the app is written. Mar 21 21:45:23 Hey, please can someone help me out with a quick question on splash screens / pre-loading resources? Mar 21 21:45:24 I have a few activities in my application, which are in order like this: splash -> main menu -> game -> minigame -> further minigame. On these there are a lot of images, a huge amount actually and it would be nice to load them during the splash screen. I can see tutorials on how to load up the resources for one activity, but is there an easy way to load them up for all? I was thinking I could make a seperate clas Mar 21 21:45:24 that up, then call that class from the activities to pull the resources, but i'm not sure if that's going to be any faster than just loading them as it currently is. Any help is much much appreciated!! Mar 21 21:47:09 I want to kind of load them all first, rather than having waiting inbetween activities Mar 21 21:47:21 depends on what you load them into Mar 21 21:47:30 hello, I'm calling a method inside timertask, is this method executing on a new thread? because I'm getting android 3+ exception networkonmainthreadexception Mar 21 21:47:38 and if the resources can be viable without a context Mar 21 21:47:42 if so, load them up into a singleton Mar 21 21:48:05 They're viable without a context, they'll always be the same images Mar 21 21:48:16 just use the same Activity instance for the splash & preload and then turn it into the main UI when that's done Mar 21 21:48:35 here is the code: http://pastebin.com/brxmdBTh Mar 21 21:48:36 Just don't load too much, memory is limited Mar 21 21:49:04 Makes good sense. I need to look into how to work with singletons but I'm sure it's not too hard ( I understand the theory ) Mar 21 21:49:22 "static" HTH HAND :) Mar 21 21:49:44 183 images... 2.23mb Mar 21 21:49:48 Will that cause any issues? Mar 21 21:49:56 ( They'll be smaller actually, I'm going to change a lot to JPG from PNG ) Mar 21 21:50:06 other way around Mar 21 21:50:08 PNG to JPG Mar 21 21:50:19 HAND? Mar 21 21:50:39 NutterzUK, compressed size won't help Mar 21 21:50:48 NutterzUK, it's actually uncompressed image size that will kill you Mar 21 21:51:28 pfn: Have A Nice Day Mar 21 21:51:57 NutterzUK: as he said, it's the *uncompressed* size in memory that is relevant, not the compressed size on disk Mar 21 21:52:52 I got a problem with my SyncAdapter when I remove the account the synced contacts won't be removed like in the sdk example. Any idea how I could determine the problem? Mar 21 21:52:52 ctate, I see Mar 21 21:52:55 Ah. is it possible to find out what that size in memory is? Mar 21 21:53:10 NutterzUK, WxHxBPP Mar 21 21:53:18 rather, WxHx4 Mar 21 21:53:20 As in, without going through the whole process of creating a singleton, putting in all references to it.. and then changing a lot of code Mar 21 21:53:28 ( googling WxHx4 ) Mar 21 21:53:42 width times height times 4 Mar 21 21:53:46 bytes Mar 21 21:53:50 *face palm* Mar 21 21:53:59 no fast emulator on linux? :( Mar 21 21:54:03 ok, thanks pfn Mar 21 21:54:29 I'll try to calculate that and see how it looks Mar 21 21:54:35 hm, wabz ? Mar 21 21:54:50 wabz did you try x86-emu? Mar 21 21:55:16 no, I just read the blog post Mar 21 21:55:38 Yeah, there's only a api10 x86 emulator for now.. Not that useful Mar 21 21:56:06 "the emulator now supports running x86 system images in virtualization mode on Windows and Mac OS X." Mar 21 22:00:37 For all images, looking at around 5.4032135009 megabytes Mar 21 22:00:40 Does this seem ok? Mar 21 22:00:58 ( That's an estimation based on a rough "average" image size... so perhaps give or take 1mb ) Mar 21 22:01:15 "around" + 10 decimal points .. ? Mar 21 22:01:16 :P Mar 21 22:01:23 NutterzUK, that sounds pretty reasonable Mar 21 22:01:29 evancharlton, yeah, awesome number Mar 21 22:01:42 NutterzUK, should learn to round numbers and use sigfigs where appropriate Mar 21 22:01:57 yeah, approximately... my mental arithmetic wasn't good enough to go further.... :P Mar 21 22:02:36 Sorry, I copy / pasted it from a bytes to megabytes convertor Mar 21 22:04:07 Thanks :). Huge help! Mar 21 22:09:09 if I have an Array of Runnable e.g Runnable[] r new Runnable[5]; Then I do r[i] = new Runnable where 0<=i<5 and i sometimes has the same values. Will the garbage collector free the previous news Mar 21 22:09:45 theod87, only once r goes away Mar 21 22:10:02 oh Mar 21 22:10:07 o_O Mar 21 22:10:10 r[0] = something; r[0] = other Mar 21 22:10:13 something will go away Mar 21 22:10:17 misread Mar 21 22:10:18 if you don't have a reference to something, it can be GCd Mar 21 22:10:23 doesn't matter if it's in an array or what Mar 21 22:10:33 assuming something in't referenced elsewhere Mar 21 22:10:35 I meant r = new Runnable[5]; Mar 21 22:10:39 if you have a reference to that array, and the array has a reference to a runnable, that runnable still has a reference Mar 21 22:10:53 theod87, r[0-5] will always be strongly referenced Mar 21 22:11:00 as long as r is referenced Mar 21 22:11:09 so if you "bump out" a runnable, and it's not referenced anywhere else, it's valid for GC Mar 21 22:11:28 if you reassign one of the array indices, the previous value can be gc'd if it is no longer referenced elsewhere Mar 21 22:11:46 So if I do r[0] = new Runnable and then again r[0] = new Runnable the first pointer will be lost Mar 21 22:11:54 theod87, that's right Mar 21 22:12:08 so the GC will free it right Mar 21 22:14:47 pardon my french but srsl fuck eclipse Mar 21 22:16:37 I have a list activity which uses a list adapter that retrieves a list of items via HttpClient, what is the convention when it comes to reloading such data when the items are modified in another activity ? (the item is passed to a single item activity via a bundle). Mar 21 22:21:02 I guess i'm looking for a way to invoke the notifyDataSetChanged() function of the ListAdapter from the single item activity Mar 21 22:21:07 xorgate, the answer is to not use eclipse... Mar 21 22:21:25 pfn i know.. sadly i have a lib i cannot get to work in intellij Mar 21 22:21:50 oh android app build process, why you so complicated Mar 21 22:24:12 trying to update ADT but it complains about some dependency Mar 21 22:24:12 ctate, we were discussing multi-apk earlier Mar 21 22:24:14 anyone seen this? Mar 21 22:24:18 and how it would impact phones that dock into tablets Mar 21 22:24:39 do you foresee big issues with that? Mar 21 22:25:12 should I uninstall Android API Analysis ? Mar 21 22:27:27 hi everybody! Mar 21 22:28:58 * ctate | Thanks to contributions to AOSP from Intel, the emulator now supports running x86 system images in virtualization mode on Windows and Mac OS X. This allows the emulator running at near native speed. Mar 21 22:29:21 canadiancow|work: Of course. That's part of why some of us have opposed multi-APK all along. Mar 21 22:29:35 http://android-developers.blogspot.com/2012/03/updated-sdk-tools-and-adt-revision-17.html Mar 21 22:31:05 a question to all developers making money with their apps: is it necessary to have the skills for developing apps on android as well as on ios? a friend of mine told me, that he sees no future for me making money just with android skills. what do you think? Mar 21 22:31:46 thats bullshit Mar 21 22:31:54 rovio makes as much on android as ios Mar 21 22:31:56 i know it's a very general topic, but with some feedbacks i can decide whether to keep programming apps or not Mar 21 22:32:10 are you talking about your own apps Mar 21 22:32:13 or getting a job as a dev Mar 21 22:32:21 both Mar 21 22:32:21 anyone having issues with library files with the new r17? it seems to just not put the lib in the apk Mar 21 22:32:39 well as i said, rovio does roughly equivalent revenue on both platforms Mar 21 22:32:57 and in terms of getting a job...just ask lov how hard it is to find competent android devs Mar 21 22:33:20 I'm getting this when trying to update ADT: Mar 21 22:33:21 Software being installed: Android Development Tools 17.0.0.v201203161636-291853 (com.android.ide.eclipse.adt.feature.group 17.0.0.v201203161636-291853) Mar 21 22:33:22 Software currently installed: Android API Analysis 1.0.6.201112122256 (com.android.ide.eclipse.api.analysis.feature.feature.group 1.0.6.201112122256) Mar 21 22:34:13 Working fine here, xorgate Mar 21 22:35:00 i wonder wth im doing wrong Mar 21 22:35:11 ^_^ Mar 21 22:36:28 when someone wants an app to be developed on android and on ios, is it typical, that this is be done by two developers? one for android and one for ios? (sounds like a silly question, but i have no experiences) Mar 21 22:37:17 chris_cross: completely no idea, but sometimes I encounter app that are horribly out of place because someone just copied the iOS design over to android Mar 21 22:37:38 chris_cross: I do both Android and iOS apps Mar 21 22:37:47 but sure, you could get two separate devs Mar 21 22:37:53 Is there any way to refresh a fragment... from the fragment itself? Mar 21 22:38:09 "refresh a fragment"? Mar 21 22:38:51 ctate: btw, the hangout controllers in the meeting rooms are fun :3 Mar 21 22:38:55 Chronax: "refresh" in what way? redraw itself? change its layout/contents? Mar 21 22:39:05 Yeah, refresh itself. Mar 21 22:39:23 I'm attempting to modify a listview inside a fragment, but it's not refreshing, and its adapter has no notifyDataSetChanged() method. Mar 21 22:39:27 Not sure why, but I digress. Mar 21 22:39:32 so do you think, that developing "only" on android has a chance on the market (not android market ^^) Mar 21 22:39:33 I'd prefer to just have it redraw itself. Mar 21 22:39:46 Chronax: that wouldn't solve your problem Mar 21 22:39:58 Chronax: since to redraw, it'd simply requery your adapter Mar 21 22:40:00 just invalidate the view you want to have redraw Mar 21 22:40:11 Chronax: leading to exactly the same data Mar 21 22:40:13 Always forget about invalidate. Mar 21 22:40:14 or requery if you want to rebuild the contents, sure Mar 21 22:40:21 they didnt fix find_java.bat in the release of r17 Mar 21 22:40:21 holy Mar 21 22:40:22 crap Mar 21 22:40:26 it's unusable on windows Mar 21 22:40:27 thanks guys Mar 21 22:40:36 Uhm, your adapter will have a notifyDataSetChanged ;| Mar 21 22:41:03 Chronax: this does all beg the question of why you need to manually invalidate (or whatever) at all Mar 21 22:41:04 Chronax: but there's no such thing as 'refreshing a fragment', because view redrawing is not in any way tied to the data being managed by the listview Mar 21 22:41:17 since typically that is done automatically when things chnage Mar 21 22:41:18 ie, if you scroll the listview, you will redraw it Mar 21 22:41:30 canadiancow|work: what's broken / unusable how? Mar 21 22:41:35 *cause it to be redrawn Mar 21 22:41:39 find_java.bat doesnt work Mar 21 22:41:42 so nothing loads Mar 21 22:42:26 "nothing loads"? Mar 21 22:42:30 Like? Mar 21 22:42:30 http://code.google.com/p/android/issues/detail?id=23648 Mar 21 22:42:40 see comment 3 Mar 21 22:43:14 Okay, new question. Mar 21 22:43:57 Why doesn't android.support.v4.app.ListFragment.getAdapter() have a notifyDataSetChanged() method? Mar 21 22:44:07 How can I refresh a ListFragment? I tried to invalidate, no dice. Mar 21 22:44:08 which adapter did you set? Mar 21 22:45:05 It's a custom Adapter that inherits from ArrayAdapter. Mar 21 22:45:26 Cus it returns a ListAdapter, which does not have notifyDataSetChanged Mar 21 22:45:41 ArrayAdapter does Mar 21 22:45:56 well, if you're inheriting from ArrayAdapter, then you have notifyDataSetChanged Mar 21 22:46:02 if it doesn't work, you've broken it Mar 21 22:46:23 canadiancow|work: Everything loads fine here ;F Mar 21 22:46:27 windows? Mar 21 22:46:30 either way, you can simply refresh by recreating the adapter and passing it to setAdapter Mar 21 22:46:34 not a perfect solution Mar 21 22:46:47 Yep, windows 7 x64 Mar 21 22:47:08 creating iphone apps requires a mac for programming, right? Mar 21 22:47:53 Chronax: but you have a listview which loads data using an adapter Mar 21 22:48:00 the fragment has absolutely nothing to do with it Mar 21 22:48:01 i googled some alternatives using a windows pc, but all of them seemed like bullshit to me ^^ Mar 21 22:48:03 Right. Mar 21 22:48:12 are there any shortcuts to make an action bar that works in api level 9 ? Mar 21 22:48:17 chris_cross: yes Mar 21 22:48:25 SimonVT hmm i moved the .jar to libs\ and added jar instead of adding external jar. now it works again >.< Mar 21 22:48:26 chris_cross: as far as i know Apple doesn't support iOS development on non-Mac platforms at all. Mar 21 22:48:51 xorgate: So doing it right fixed your problems.. How odd :p Mar 21 22:48:55 that's really nice of apple :D Mar 21 22:48:58 NOT ^^ Mar 21 22:49:00 rvsjoen: use a compat lib such as ActionBarSherlock? Mar 21 22:49:07 SimonVT whats the deal with adding external jar then? Mar 21 22:49:14 ctate: just found that, looks interesting Mar 21 22:49:16 thanks Mar 21 22:49:16 xorgate: Ask eclipse Mar 21 22:49:28 xorgate: The android way (tm) is putting jars in libs/ Mar 21 22:49:45 SimonVT does this mean everytime i update a lib i need to copy it? Mar 21 22:50:37 Yep Mar 21 22:51:21 It has the added benefit of any jar dependencies are checked into version control Mar 21 22:52:01 why don't all the iphone users put their phones together and throw them away in order to get android... Mar 21 22:52:17 hehe Mar 21 22:53:18 Why don't you stop caring what phones other people choose to use Mar 21 22:53:29 just a few hours ago a friend of mine wanted me to create an app for his club. but after he heared, that i can only do it for android he wasn't interested anymore.... Mar 21 22:54:07 make a html5 site Mar 21 22:54:13 better anyway Mar 21 22:54:22 (for this kind of thing) Mar 21 22:55:00 humm... this makes me feel dumb, I downloaded actionbarsherlock, but there's no .jar Mar 21 22:55:10 he wants to put the app into the market... Mar 21 22:55:29 http://stackoverflow.com/questions/7132204/greendroid-or-actionbarsherlock-setup Mar 21 22:55:36 chris_cross: phonegap Mar 21 22:55:46 rvsjoen: It's a library project Mar 21 22:56:27 i heared of it, but then the app can't be put into google play or app store , right? Mar 21 22:56:40 chris_cross: but in general, it's pretty nonsensical to try to make users install an app to do something when they'd normally simply point their browser to a url Mar 21 22:56:46 completely counterintuitive Mar 21 22:57:00 why would there be a problem putting something into Google Play? Mar 21 22:57:25 unless it's pr0n or something Google doesn't care; they aren't the merchant. Mar 21 22:57:35 ctate: there's no problem, but imo there's no advantage to put it in google play anyway Mar 21 22:57:42 oh, nevermind Mar 21 22:57:44 sorry Mar 21 22:57:55 chris_cross: what's the advantage of google play in this case? Mar 21 22:58:18 Ease of access? :p Mar 21 22:58:31 as opposed to typing in a url in your browser? Mar 21 22:58:50 (and then bookmarking it if they want to) Mar 21 22:58:56 Yep Mar 21 22:58:58 hmm the x86 emu works fine in linux Mar 21 22:59:01 having a shortcut Mar 21 22:59:04 wabz: why wouldn't it? Mar 21 22:59:06 I mean, the main advantage google play imo offers is discoverability Mar 21 22:59:09 he wants an app with a event-calendar Mar 21 22:59:11 because the blog post said mac and windows! Mar 21 22:59:12 but that's irrelevant here Mar 21 22:59:18 updating automatically Mar 21 22:59:47 wabz: some of the hw accel stuff probably breaks under linux corner cases or something Mar 21 23:00:11 possibly - from my limited testing it's kinda awesome Mar 21 23:00:21 just like hw accel in all other use cases under linux? :) Mar 21 23:00:27 I mean, I have lots of clients who want these kind of apps Mar 21 23:00:39 and I have no problem taking their money Mar 21 23:00:55 but imo it doesn't really make sense to have app store apps in this case Mar 21 23:01:09 whether you tell a user to point their mobile browser somewhere or to download some app Mar 21 23:02:52 (most people probably just want to be able to say 'I have an app in the app store!' since that's what people on the news talk about) Mar 21 23:02:55 so you mean i should create the app for example with phonegapp and to get it, just download it from the club-homepage? Mar 21 23:02:56 alright, so using NetBeans, I included the library project in my project, it still doesn't seem to be able to import those packages Mar 21 23:03:02 is there any other magic tricks ? Mar 21 23:03:17 chris_cross: no, in this case I'd simply produce a fancy html5 website Mar 21 23:03:24 using jquery mobile or some other library Mar 21 23:03:52 would you expect that the camera preview uses the same buffer for every frame? I can't find it in the docs. Mar 21 23:04:10 http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html Mar 21 23:04:14 hm...i will think/read about it... Mar 21 23:04:15 chris_cross: as soon as you need native features or offline support, then it makes sense to use phonegap Mar 21 23:04:36 so it makes sense ^^ Mar 21 23:05:41 thank's for the nice discussion. good bye Mar 21 23:06:53 I never understood why huge channels like this don't split into smaller, more specialized channels. Mar 21 23:07:18 they, uh Mar 21 23:07:19 Like? Mar 21 23:07:21 they kind of have already. Mar 21 23:07:28 there's #android and #android-root Mar 21 23:07:31 like #android-graphics, #android-ui, etc Mar 21 23:07:42 well, I tried to get #android-platform going Mar 21 23:07:42 but eh Mar 21 23:07:46 no one went ._. Mar 21 23:07:48 oh well Mar 21 23:08:14 what's different about #android-platform? Mar 21 23:08:19 zpmorgan: there isn't enough narrowly-scoped discussion here to support that, basically Mar 21 23:08:43 zpmorgan: the idea was people who wanted to ask questions like "how do I set up this kernel for this particular board" or "how do I modify the FooProvider that's built into android for my rom" Mar 21 23:09:06 oh, that's pretty specialized Mar 21 23:09:07 as opposed to "hey guys how do i show a new screen in my app" Mar 21 23:10:55 what I love about small channels is that questions don't tend to get lost. I don't mind waiting for an answer as long as those with an answer get to read the question eventually Mar 21 23:11:18 of course, I'm probably in the minority Mar 21 23:11:54 There's never that many talking in here at a time anyway Mar 21 23:12:23 especially when i have a little moment and +m the channel Mar 21 23:13:04 well.. there's something to be said for having more than three people idling in a topic channel too, however lol Mar 21 23:13:07 We call those "episodes" Mar 21 23:13:12 you never have little moments ctate :| Mar 21 23:13:20 (which is a shame because it would liven the place up) Mar 21 23:13:25 heh Mar 21 23:13:39 not sure i've ever seen any of us in #android-platform actually talk... lol Mar 21 23:13:53 You have plenty moments for both of you, lov :p Mar 21 23:14:07 oh I definitely have moments :p Mar 21 23:14:13 but ain't no party like a ctate party Mar 21 23:14:20 haha Mar 21 23:14:24 because a ctate party IS MANDATORY Mar 21 23:14:26 ha ha Mar 21 23:14:28 ctate, irc linebacker Mar 21 23:14:38 THE COMPUTER IS YOUR FRIEND Mar 21 23:14:40 HAPPINESS IS MANDATORY Mar 21 23:14:42 Q: When I call startActivity() from another activity, do I need to call finish() right after that to terminate "old" activity? Mar 21 23:14:51 silur: no Mar 21 23:14:53 silur: no Mar 21 23:15:01 it puts the new activity on top of a stack Mar 21 23:15:06 silur: you don't have to. if you don't, the existing activity will remain in the stack. Mar 21 23:15:09 sometimes that is what you want. Mar 21 23:15:12 if the new one finishes before the old one finishes, you go back to the old one Mar 21 23:15:30 but if you want it to disappear and be replaced by the new one then yes you call finish() when calling startActivity(). Mar 21 23:15:36 wow you peopole are awesome Mar 21 23:15:47 yes. yes we are. Mar 21 23:15:52 people Mar 21 23:15:55 and you best remember that, son. Mar 21 23:15:59 not peopole Mar 21 23:15:59 ;) Mar 21 23:16:02 what do you mean, you people Mar 21 23:16:05 okay, except for lov. Mar 21 23:16:09 I'm not sure what a peopole is but it sounds like a pee pole Mar 21 23:16:11 what do YOU mean, you people Mar 21 23:16:35 no, peopole is the new spelling Mar 21 23:16:38 it just came out today Mar 21 23:16:54 press release or bs Mar 21 23:17:07 lov, but if my Activities are switching to one another wouldn't it increase memory after each call to startActivity() ? Mar 21 23:17:19 not... dramatically. Mar 21 23:17:33 The one thing you need to "get" about android is that the runtime handles your activities and services for you Mar 21 23:17:37 http://lmgtfy.com/?q=peopole+press+release Mar 21 23:17:42 which is to say that if they're not in the foreground they may be killed at any time Mar 21 23:17:52 which is why it is important that you save your state using the appropriate methods! :D Mar 21 23:18:14 lov, ok, thanks Mar 21 23:18:26 (see: onSaveInstanceState et al) Mar 21 23:33:05 anyone have any idea what might cause a gazillion errors like these ? Mar 21 23:33:06 [aapt] F:\temp\ActionBarSherlock\res\values-v14\abs__styles.xml:4: error: Error retrieving parent for item: No resource Mar 21 23:33:12 found that matches the given name 'android:Widget.Holo.ActionBar'. Mar 21 23:33:20 You need to build against api14 Mar 21 23:33:39 if I do that, how will the library work on api10 ? Mar 21 23:33:52 minSdkVersion != targetSdkVersion != build target Mar 21 23:33:54 That's how Mar 21 23:35:50 minsdk = minimum api level your app works on, targetsdk = max api level you tested against, build target = api available at build time (irrelevant at runtime) Mar 21 23:36:31 looks like I need to install api14 then Mar 21 23:36:46 thanks Mar 21 23:41:15 hiya i just installed my jdk and eclipse from the ubuntu repository. now i used eclipse 'add software' to add the android adk Mar 21 23:41:26 but it says error when installing it Mar 21 23:41:41 i'll paste it here: Mar 21 23:41:42 Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 17.0.0.v201203161636-291853 (com.android.ide.eclipse.adt.feature.group 17.0.0.v201203161636-291853) Mar 21 23:41:47 Missing requirement: Android Development ools 17.0.0.v201203161636-291853 (com.android.ide.eclipse.adt.feature.group 17.0.0.v201203161636-291853) requires 'org.eclipcse.wst.sse.core 0.0.0' but it could not be found Mar 21 23:41:51 --- Mar 21 23:42:02 what's going wrong? Mar 21 23:44:46 is there a non dev android channel? Mar 21 23:45:13 Eh, #android ? Mar 21 23:46:09 durrrrr thanks Mar 21 23:46:40 guess I looked on the wrong network Mar 21 23:47:00 ^_^ Mar 21 23:48:39 should i add the android-sdk/lib to CLASSPATH or something? i tried that but it didn't help Mar 21 23:51:48 hi..if i want to link to the market, do i just do a href="market://details?id=" ? or if im using a href i must use the http:// link ? Mar 21 23:52:08 Younos: not sure, but try downloading the last version of eclipse from their website. Mar 21 23:52:49 oh thanks, i'll try that Mar 21 23:54:15 gigidawg: market:// will launch the Market app Mar 21 23:54:18 won't work on PCs Mar 21 23:54:36 ok, cool...because i was testing it in my browser and wasnt working Mar 21 23:54:37 http://market.android.com (i think?) will allow you to go there on a pc browser Mar 21 23:54:44 but should work fine on the device, right ? Mar 21 23:54:47 right Mar 21 23:55:16 ok, thanks ! Mar 22 00:01:22 ok I finally got the actionbarsherlock library project built as a dependency, but i'm still unable to import the packages, do I need to do something more than include it as a library project ? Mar 22 00:01:45 Not really Mar 22 00:01:48 what's the error? Mar 22 00:02:07 there's no error, I just can't use the classes, it doesn't find them Mar 22 00:02:11 arakn0: ah thanks it works now, i'm in the SDK manager Mar 22 00:02:12 I mean, the IDE Mar 22 00:02:37 is it in Project Properties > Java Build Path > Libraries? Mar 22 00:03:23 i'm using NetBeans, but it is listed under "Library Projects" for my project, and the R file for actionbarsherlock is generated inside my project Mar 22 00:03:44 try building or cleaning the projects Mar 22 00:03:49 i have no experience with netbeans though Mar 22 00:04:39 if I do 'import com.actionbarsherlock;' it simply says package com doesn't exists, so it probably is the build path, just have to figure out where to configure it Mar 22 00:04:55 somewhere in the properties of the project Mar 22 00:08:20 Younos: I think I encountered the same problem in the past Mar 22 00:24:38 arakn0: it works like a charm now, i'm doing a a hello world Mar 22 00:25:12 enjoy! Mar 22 00:25:44 its gonna be a bit of a struggle probably to get it from my AVD into my galaxy nexus Mar 22 00:26:48 i did ./adb devices and my phone didnt show up but ok i'll have to download the samsung driver first Mar 22 00:27:05 JakeWharton, the new ABS breaks 1.6 compatibility. is there any way to fix that? Mar 22 00:28:02 There's always a way Mar 22 00:28:20 I'm trying to do simulate button animation by having it fade in, however I'm not being sucessfull one bit. http://codepad.org/DoGwfCdS that's my code. Anyone have any suggestions and point me in the direction I should be going in? Mar 22 00:28:21 1.6 support just causes more trouble than it's worth Mar 22 00:28:58 SimonVT, the market tells me I have 14,000 users on 1.6; I can't break them Mar 22 00:29:25 i don't think you mean "break" Mar 22 00:29:33 you mean "stop providing app updates to" Mar 22 00:29:37 ctate, yea Mar 22 00:29:54 in broader terms, Android 1.6 is something like 0.8% of the active device base. Mar 22 00:30:02 maybe I want that but maybe there's an easy way to fix it Mar 22 00:30:36 0.8% is not negligible I don't think Mar 22 00:31:04 i dont even bother with 2.1 anymore Mar 22 00:31:15 but then again maybe I can get more users by working on new features instead of compat Mar 22 00:31:36 etuleu: You'll most like have to provide yet another custom implementation to support <2.0 Mar 22 00:32:47 1.6 crashes if you have call in a method body to methods which does not exist. Even if wrapped in if (SDK_INT >= VERSION) Mar 22 00:33:00 This includes calls to super (which is kinda useful) Mar 22 00:33:17 (and part of the reason ABS doesn't support 1.6) Mar 22 00:33:20 what about hte class loader trick? Mar 22 00:33:45 class loader trick? Mar 22 00:34:06 SimonVT, I see Mar 22 00:34:30 etuleu: Check how ABS works. It registers implementations, and chooses the right one based on API level Mar 22 00:34:39 If you want 1.6 support, provide your own implementation for 1.6 Mar 22 00:34:46 SimonVT: utilizing demand loading to load only code that will work Mar 22 00:35:18 p_l|dublin: Not sure I know what that is Mar 22 00:35:43 you load a diff class based on api level Mar 22 00:35:46 to get around that Mar 22 00:36:20 you end up never referencing classes containing unsupported code Mar 22 00:36:54 where does getSystemAvailableFeatures() get its info from exactly? Is this the manifest file? Mar 22 00:40:19 Right, that's just a shitload of extra work duplicating code to support a platform with virtually no users Mar 22 00:48:45 I updated and installed api15 using the sdk manager, and now all of a sudden even when I compile by app with api10 the icons on the tabs are gone and replaced by some new interface, is that normal ? Mar 22 00:54:18 rvsjoen, that's normal Mar 22 00:54:19 wasnt there a time when you needed a permission to change a device's volume? Mar 22 00:54:33 rvsjoen, you mean you set target=10? or target=15? Mar 22 00:55:30 well, I set target=15, and then afterwards I set it back to target=10 Mar 22 00:55:44 set target=10 and clean Mar 22 00:58:30 can I store this variable: Map chartsBitmaps; into my preferences ? Mar 22 00:59:04 I mean, into the SharedPreferences Mar 22 00:59:07 no Mar 22 00:59:17 ok, thanks Mar 22 01:01:32 oi oi oi Mar 22 01:02:21 you can if you write some custom code to convert it cleanly into a string and back :) Mar 22 01:02:24 [i.e. ewww] Mar 22 01:02:34 canonical path means: path+"/"+fileName ? Mar 22 01:03:17 and starting from root, I guess Mar 22 01:03:20 it means the full absolute path from /, having unwound symlink traversal and the like Mar 22 01:03:46 (iirc) Mar 22 01:04:13 this is documented, btw. you could read the friendly manual. :) Mar 22 01:04:38 * ctate | An absolute path is one that begins at the root of the file system. A canonical path is an absolute path with symbolic links and references to "." or ".." resolved. Mar 22 01:04:47 so, it doesn't content the file name Mar 22 01:05:00 heh Mar 22 01:05:13 "I'd be writing this with manpage in hand" <--- quote from my interview :D Mar 22 01:05:46 maxagaz: yes, it does include the leaf file name Mar 22 01:05:51 (file or directory) Mar 22 01:16:37 I don't know if this is the place to ask, but I'm having alot of trouble unlocking my bootloader for my Tmobile G2 Mar 22 01:17:10 I'm following the instructions on the HTC Website and the RUU Won't work, keeps giving me an error Mar 22 01:17:11 It is not, try #android-root Mar 22 01:17:18 ok, thanks Mar 22 01:18:09 sec Mar 22 01:18:24 http://androidforums.com/galaxy-s2-t-mobile-all-things-root/467128-telus-galaxy-s2-t989d-ultimate-root-optimization-guide-steps.html Mar 22 01:18:26 for Elektrey Mar 22 01:18:28 jfyi Mar 22 01:18:55 ur tmobile s2x is just like my telus s2x Mar 22 01:19:25 Sorry, It's a G2. Mar 22 01:19:40 oh, im sorry Mar 22 01:19:45 i read wrong Mar 22 01:19:50 It's fine, easy to misread. Mar 22 01:28:45 batos Mar 22 01:33:25 Hey. I ran into a different problem today: I'm studying parallel programming and I need to test my application, to see what speedup it's getting with multithreading and the problem is: I don't have any multicore device avaiable, so I can't really test my app. Is there any owner of a multicore device insterested in testing that on your device? It's a simple app, you just enter the number of threads you want and the length of the vectors and then it calc Mar 22 01:33:55 multithreading has benefits in single processor devices too Mar 22 01:34:20 Yeah, it does, but I want to test how it goes with multi-cores Mar 22 01:56:18 Can Android be built under a 32-bit OS? Mar 22 01:57:08 yep Mar 22 01:57:21 i assume you mean the dev tools Mar 22 01:57:32 no, the operating system itself Mar 22 02:00:37 taixzo: it can be built on a 32 bit OS. Mar 22 02:00:44 taixzo: also, it can be compiled to run on x86 Mar 22 02:01:23 I know the latter, but I found a few mentions that it wouldn't compile on 32-bit OS, and I wanted to check whether that was an absolute statement, Mar 22 02:01:25 . Mar 22 02:01:58 I think to compile on 64 bit we have to install tons of 32 bit libs Mar 22 02:02:11 so i don't see why it wouldn't be possible Mar 22 02:02:31 How can you more easily organize your drawables? Like I want to create folders inside my drawable-hdpi named like "backgrounds" and "animation" etc, but it errors out. Is anything like this possible? Mar 22 02:02:47 Can I just make a folder in my res and still use it as a drawable? Mar 22 02:02:50 wootwoot my first hello-world runs on my phone now Mar 22 02:03:39 T-Dub|DlolPics: i just use naming conventions for the files Mar 22 02:04:15 Yeah I'll probably end of up doing that, but it isn't hard to find my png's it's just the visual looking at it. I'd rather see like 4 olders than 50+ images Mar 22 02:04:27 folders* not olders Mar 22 02:04:58 I don't usually look there to find them, I just type R.drawable. and autocomplete them Mar 22 02:05:11 Yeah when coding I do that. Mar 22 02:05:19 I'm more referring to the xml though Mar 22 02:05:31 it can autocomplete in xml too Mar 22 02:05:36 can you reference a random folder? like "@hidude/test" Mar 22 02:05:41 nope Mar 22 02:05:45 rather than @drawable/test Mar 22 02:05:46 damn Mar 22 02:09:51 autocomplete is lame Mar 22 02:12:23 :( Mar 22 02:12:29 im teaching my intern inheritance Mar 22 02:12:31 :(:(:( Mar 22 02:12:33 at 10pm Mar 22 02:12:36 :( Mar 22 02:12:45 BUT HOW DOES THE FRUIT KNOW IT'S AN APPLE Mar 22 02:12:48 it doesnt Mar 22 02:12:52 BUT THEN HOW DOES IT WORK Mar 22 02:12:52 etc Mar 22 02:14:41 ... Mar 22 02:14:44 sounds... painful Mar 22 02:17:02 Can you do underscore in file names in the drawable? Mar 22 02:17:06 Or does it fuck it up? Mar 22 02:17:23 I know capitals are a no-no Mar 22 02:17:53 underscores are fine Mar 22 02:19:01 * p_l|dublin suspects two people were involved, one java fan, the other a C fan Mar 22 02:19:22 lol Mar 22 02:19:48 Thanks Leeds Mar 22 02:25:16 I have an app that get's stock updates from Yahoo. How can I do that? What's the term used to do that? Mar 22 02:26:10 maybe its an rss feed? Mar 22 02:26:15 HTTP GET? Mar 22 02:26:18 C2DM/ Mar 22 02:26:24 many possibilities Mar 22 02:27:50 since it's not async i'd do timed http get Mar 22 02:28:28 what term should i google? Mar 22 02:38:50 canadiancow - at least your intern isnt a coworker or employee Mar 22 02:39:24 I can honestly say none of my coworkers understand oo concepts such as abstract classes and methods, base classes vs interfaces, polymorphism Mar 22 02:39:31 co/contra variance Mar 22 02:40:37 so do something useful like teach them. it would be more productive for the business you work with, than whining about it on irc Mar 22 02:41:14 pragma_ - everyone at my work knows it all already Mar 22 02:41:17 theres no helping them Mar 22 02:42:10 lol Mar 22 02:42:33 I am nto trying to be an ass, but the quality in the workforce I've seen lately is depressing Mar 22 02:42:41 +1 Mar 22 02:43:13 nobody knows it all, and I sure as fuck dont... I think knowing/understanding that is the best asset an engineer can have Mar 22 02:43:46 we got a new team member recently Mar 22 02:44:02 a colleague of mine said "it's nice how all of [new person]'s stuff just works :)" Mar 22 02:44:16 makes me wonder how some people get hired Mar 22 02:44:27 my boss doesnt do any android dev, thus no code reviews etc... I started looking at shit the other day... there is *0* code re-use Mar 22 02:44:36 not across classes, not within the same class Mar 22 02:44:40 why would you reuse when you can rewrite? :) Mar 22 02:44:42 same functionality copy/pasted 10 times Mar 22 02:44:46 lol Mar 22 02:44:53 i want a code analyzer that will find identical code Mar 22 02:45:01 they have that for eclipse Mar 22 02:45:13 it analyzes for efficiency Mar 22 02:45:31 my boss loves this guy because he gets stuff done fast Mar 22 02:45:48 really? eclipse plugin??? Mar 22 02:45:50 after all building things a bit more abstractly can be a bit more time consuming in the planning phase Mar 22 02:45:53 sure, it gets done fast, then it can never be maintained :) Mar 22 02:46:09 no error message is listed in my eclipse logcat window when I run my app, why ? Mar 22 02:46:28 http://pmd.sourceforge.net/integrations.html#eclipse Mar 22 02:46:30 any idea ? Mar 22 02:46:36 maybe it worked? Mar 22 02:46:43 +1 Mar 22 02:46:56 readme - they bitched me out because I spent time designing the infrastructure of this app... Mar 22 02:47:08 then we found out that for what we're doing the apache client bs jsut wasnt going to work Mar 22 02:47:22 I swapped out the network connection in one day, to blank faces Mar 22 02:47:26 ron_frown: how so, HttpClient is highly robust Mar 22 02:47:30 build shit right, loosely coupled Mar 22 02:47:38 and you're swapping out implementation Mar 22 02:47:38 LOOSELY COUPLED Mar 22 02:47:41 BLASPHEMY, I SAY Mar 22 02:48:18 readme the http protocol defaults, the memory allocation defaults, and just plain performance didnt come *CLOSE* to httpurlconnection in later versions of android Mar 22 02:48:37 I will admit httpclient is possibly more CAPABLE Mar 22 02:48:44 if you don't like your job, i hope you are looking for something better Mar 22 02:49:00 I get to build some badass shit Mar 22 02:49:14 bleeding edge tech, building android os variants, porting to new hardware etc Mar 22 02:49:39 I've got an ImageView, and I want to draw a cross on top of it - how can I do this best? Mar 22 02:49:42 *BUT* very old school business practices... *0* professional software experience in the company Mar 22 02:49:53 canadiancow: no, it crashes Mar 22 02:50:15 ejcweb: i'd just overlay a transparent view. You can stick them both inside a framelayout, put the overlay second. Mar 22 02:50:25 ejcweb: you can give the appearance of "crossing out" with an animation Mar 22 02:50:43 theres huge huge huge potential at my current employer, but I've realized I need to figure out how to sneak my ideas to my bosses boss to get any sort of recognition.. Mar 22 02:51:00 all my ideas arent great, nor are they always the best interest of the companies Mar 22 02:51:04 readme: Can I generate the transparent view I'd overlay in code easily? ie. a simple cross in XML somehow? Mar 22 02:51:06 but my boss DEFINITELY sabatoges shit Mar 22 02:51:14 ejcweb: you can use a second imageview, probably Mar 22 02:51:35 time to watch archer Mar 22 02:51:37 ejcweb - create a custom view that inherits form framelayout Mar 22 02:51:47 put your imageview, then your overlay Mar 22 02:51:51 DONE AND DONE! Mar 22 02:52:37 So I'd just get a jpg of a cross? I figure there might be a better way that isn't dependent on image dimensions or anything. Mar 22 02:52:49 what Mar 22 02:52:56 are you trying to draw on a bitmap Mar 22 02:53:03 or just display something over the top in the ui Mar 22 02:54:00 ron_frown: I've got a jpg that I'm showing in an ImageView, and I want to render a red cross on top of it (as if it is crossed out). Mar 22 02:55:25 yeah so if you think about it in layers, framelayout add your imageview Mar 22 02:56:04 then add another imageview over the top with transparency, or you can get a canvas, and draw the x manually etc Mar 22 02:56:12 To make a TextView bold, which attribute is it? Mar 22 02:57:50 textstyle nvm **** ENDING LOGGING AT Thu Mar 22 02:59:58 2012