**** BEGIN LOGGING AT Thu Apr 04 02:59:58 2013 Apr 04 03:00:08 Is there a way to get in touch with, for example, the actual people who wrote 'Play Music' Apr 04 03:00:55 StingRay_, One second. I'm uploading a video of my situatino. Apr 04 03:01:06 timusus: I'd like to too Apr 04 03:01:10 tell them how crap it is Apr 04 03:01:11 haha Apr 04 03:01:21 I WANT to decide my audio dirs Apr 04 03:01:26 and scan locations Apr 04 03:01:32 dammit!!! Apr 04 03:01:49 As someone with 9 months experience writing a music player which isn't yet better than Play Music, I'd be telling them they've done a good job. Apr 04 03:03:45 9 month, thats quite a lot of dedication. personal project? Apr 04 03:04:42 Yep Apr 04 03:05:15 Mind you that includes learning java for android, with no prior programming experience and a full time job and studying masters for a completely different field!! Apr 04 03:05:17 StingRay_, So this is my problem. Apr 04 03:05:18 http://www.youtube.com/watch?v=PfcOwdNp75k Apr 04 03:05:29 But still, writing a music player is hard, and users are super fussy. Apr 04 03:05:44 its on the play store? Apr 04 03:06:09 cbates, the app im making? Apr 04 03:06:21 The app timusus is making. Apr 04 03:06:24 The first example code on http://developer.android.com/guide/topics/ui/dialogs.html dosn't compile Apr 04 03:06:31 the one that timusus was talking about Apr 04 03:06:33 agy2154: ok well you just need a bit of isButtonEnabled Apr 04 03:06:34 Yep, Shuttle and Shuttle+ music player Apr 04 03:06:48 @agy, who's going to do that with your app? Apr 04 03:06:54 and set it based on the start and end conditions of what your doing Apr 04 03:06:58 I get The type new DialogInterface.OnClickListener(){} must implement the inherited abstract method DialogInterface.OnClickListener.onClick(DialogInterface, int) DafDialog.java /Shas/src/com/yidsoftware/shas line 16 Java Problem Apr 04 03:06:59 timusus, lmafo Apr 04 03:07:18 lol Apr 04 03:07:27 or a better name for the boolead, clicksAllowed Apr 04 03:07:28 ari_aaron: Put @Override above it Apr 04 03:07:42 StingRay_, Woah... what do you mean? Like disable the tab if it is selected? Apr 04 03:07:55 no i mean whatever your doing to swap views Apr 04 03:08:08 needs not to be in transition when the buttons are clickable Apr 04 03:08:09 Yeah Im using tabs. Apr 04 03:08:18 tabs ? Apr 04 03:08:24 actionbar.tab Apr 04 03:08:25 kakazza: like the one they have? Apr 04 03:08:30 oh Apr 04 03:08:34 So i think it would be good to disbale the tab when it is currently drawn? Apr 04 03:08:37 the fragment? Apr 04 03:08:42 they? Apr 04 03:08:50 http://developer.android.com/guide/topics/ui/dialogs.html Apr 04 03:08:57 the first example Apr 04 03:09:02 Yes, but above the onClick Apr 04 03:09:40 @ is Invalid AssignmentOperator Apr 04 03:09:47 agy2154: give me a link to your app on play, cause I'm going to post a 1 star review, saying that when I tap like a mofo it crashes ! Apr 04 03:10:14 paste the code you got Apr 04 03:10:20 On a pastebin site Apr 04 03:10:56 http://pastebin.com/LZgunxW9 Apr 04 03:10:57 StingRay_, Haha... LMAO. I unpublished it atm... ill republish tonight. That will be on my list to fix that. It will be a good question to ask Jake. Apr 04 03:10:59 agy2154: I have to on some of my views, detect click and 1st thing I do is disable clicks, until the result of the click is finished Apr 04 03:11:28 or I can do that too Apr 04 03:11:38 StingRay_, Thats actually a good strategy. I never thoguht of it that way. Apr 04 03:11:41 or worse I can launch 3 instances of an activity Apr 04 03:11:45 ari_aaron: So you deleted the onClick from the setPositiveButton Apr 04 03:11:55 if I go streetfighter on it's ass Apr 04 03:12:03 Unlike the example on the site you linked. Apr 04 03:12:36 oops. :S Apr 04 03:12:39 thanks Apr 04 03:12:47 np Apr 04 03:12:49 StingRay_, LMafo..... StingRay_, I guess its only a problem for me when you have a fragment because all my other actvities do everything before being drawn Apr 04 03:13:20 irrelevant Apr 04 03:13:24 StingRay - nice app. good idea posting default cover art if not available. Apr 04 03:13:39 huh ? Apr 04 03:13:44 cbates: ? Apr 04 03:14:45 wring a generic media control app. I grab all of the meta data, cover art, artist ect for the widgets Apr 04 03:14:57 StingRay_, I really get pissed when I see 1 star reviews on apps and comments like "could have been better" Apr 04 03:15:12 not all of the media apps Ive tested have posted the meta data correctly Apr 04 03:15:20 keep having to work around issues Apr 04 03:27:28 I can't wait till im done with this app. Going to make my own library. Apr 04 03:33:17 Hey folks. What is a good viewtype or element to display a list of text/icons inside of a scrollable view, that must be opened via a button? Apr 04 03:33:38 aka, "Requests > " you click the > and a list appears below it of the content Apr 04 03:34:08 expanding to a set size, then allowing scrolling through the content. Apr 04 03:34:58 no Apr 04 03:35:02 do not have a " > " Apr 04 03:35:05 :( Apr 04 03:35:08 ? Apr 04 03:35:39 why not? Apr 04 03:35:41 http://developer.android.com/design/patterns/pure-android.html Don't use right-pointing carets on line items Apr 04 03:36:03 well ok, the > is meaning an arrow. Apr 04 03:36:15 not specifically the > text. Apr 04 03:36:25 yes... dont do that Apr 04 03:36:39 canadiancow: there is nothing wrong with an arrow Apr 04 03:36:40 anyway, if you want a list, you probably want a ListView Apr 04 03:36:55 can that be opened and closed via a button? Apr 04 03:37:09 yes Apr 04 03:37:11 even the default "expandable listView" has an arrow Apr 04 03:37:25 huh? Apr 04 03:37:41 expandable listView item Apr 04 03:37:48 has a down arrow Apr 04 03:37:55 if you dont override the drawable Apr 04 03:37:55 yes, a down arrow Apr 04 03:38:06 not a right arrow on the right edge of the item Apr 04 03:38:09 http://www.blindmanstudio.com/dropbox/Selection_021.png Apr 04 03:38:25 lawds. that was just an anecdotal explanation of the function. not at all explaining what it would look like. Apr 04 03:38:28 wait WACOMalt, do you want an ExpandableListView Apr 04 03:38:36 like that exact behaviour? Apr 04 03:38:43 I believe so. but I guess I have no idea how to use it :/ Apr 04 03:40:28 I tried to have a scrollview inside of it, which I guess is a no-no Apr 04 03:40:57 no Apr 04 03:40:58 lol Apr 04 03:41:09 search around for examples. you'll find some :) Apr 04 03:50:27 i want a grid view with section headers. sadly gridview doesn't do spans and GridView/AbsListView rely on too many non-sdk functions to copy the code into my own project Apr 04 04:04:42 DAmn chrome just forked webkit Apr 04 04:05:32 anyways goodnight Apr 04 04:21:30 hi @all Apr 04 04:21:43 i am working on gameclosure sdk to develop html 5 games Apr 04 04:22:06 but the problem is when i try to run the game it crashed Apr 04 04:22:44 can anyone have a look at my adb logcat file i have piped into another text file and help me figure out the problem Apr 04 04:23:08 yep, pastebin :) Apr 04 04:23:20 kkz bankai_ Apr 04 04:26:42 http://www.viewdocsonline.com/document/lb6j2a bankai_ Apr 04 04:26:48 @all as well Apr 04 04:26:53 anybody please help me out here Apr 04 04:27:15 i am using the andoid virtual device Apr 04 04:27:45 the name of the app is 'testapp' Apr 04 04:27:51 bankai_, Apr 04 04:28:24 oh and anybody can u tell me if the AVD can run OpenGL ES apps?? Apr 04 04:41:51 hi all Apr 04 04:42:02 I can't compile android kernel Apr 04 04:42:13 I got: development/samples/FmRadioTransmitter/src/com/example/android/fmradiotransmitter/FmRadioTransmitter.java:21: package android.hardware.fm does not exist Apr 04 04:42:13 any idea? Apr 04 04:43:14 debarko: it didn't used to, but i think they've added support now Apr 04 04:44:51 debarko: that adb output you posted ( please don't use that text site again, it's awful ) has exceptions all over the place... Apr 04 04:45:12 ok Apr 04 04:45:49 any idea on to any specific thing Apr 04 04:46:04 can your emulator reach the net ? Apr 04 04:46:17 yup Apr 04 04:46:29 the facebook ones, u can easily ignore them Apr 04 04:46:36 i knw why they are occuring Apr 04 04:46:49 the ones regarding the testapp are that of concern Apr 04 04:48:20 did you set hardware emulation in your manifest? Apr 04 04:48:28 sorry, acceleration Apr 04 04:48:40 no Apr 04 04:48:46 i will try that once Apr 04 04:50:13 umm.. bankai_ Is it the 'Use Host GPU' checkbox?? Apr 04 04:52:29 probably need to do that too Apr 04 04:52:53 what else do i have to do other than that Apr 04 04:52:54 ? Apr 04 04:53:07 i thought for opengl you needed to enable Apr 04 04:53:15 where? Apr 04 04:53:34 btw: is it possible to check my compiled kernel and android os before I run it on my mobile phone? Apr 04 04:54:03 make an emulator image? Apr 04 04:54:29 bankai_, where do i set that thing??? the hardware accel one?? Apr 04 04:55:32 I mean to run it on android emultaor Apr 04 05:32:18 bankai_, it worked man!! hardware accel was required Apr 04 05:32:19 :) Apr 04 07:57:50 is there a way to force a color to a system drawable? Apr 04 07:58:01 meaning, if i use ic_menu_send Apr 04 07:58:18 can I force it to be the dark one even though I'm not using Theme.Holo? Apr 04 08:03:35 anyone? Apr 04 08:07:02 copy the drawable to your app thepoosh Apr 04 08:07:40 leslie: tnx, I'm trying to avoid that Apr 04 08:07:50 trying to keep my app as small as possible Apr 04 08:08:05 the design guidelines recommend it Apr 04 08:09:26 Hello, I am sending some short mp4 videos(~300kb) from my android(4.2.2) to my web server. It works fine on Wifi, it even works fine on HSDPA. I`ve noticed i had to remove proxy/port on my provider(Vodafone) APN list to make it work with HSDPA, when i had proxy on even HSDPA data sending was getting refused. Apr 04 08:10:17 Now i dont know why same is going on with 3g, it just doesnt timeout at all. It`s probably not even server problem, since i started 2 different servers(one is debian, other is on windows with XAMPP).. Apr 04 08:10:45 Anyone has any similar experience or idea what`s going on? Apr 04 08:15:44 hello guys Apr 04 08:16:32 i have this php code for upload file normaly i can upload file with POST a form, now i want to upload a file from my android app , i want to know how can i send POST request ??? Apr 04 08:23:59 pii3: HttpURLConnection Apr 04 08:34:03 someone played ingress? Apr 04 08:41:36 squ, sure :O Apr 04 08:41:41 can anyone tell me whats the best method to license a app? i got a free app (which shows a nag screen from time to time) and i got a donate app. now i want, if anyone buys the donate app, he get rid of the annoying nag screen in the main app. but how i could do this best? sharedPreference WorldReadable/WorldWriteable? or licensing service? Apr 04 08:41:46 I want to create multiple (free/paid) versions of a project using a library project. Using subclasses and dependency injection was recommended to me but I'm stuck at this simple code example: http://pastebin.com/vjk8AhRn How should the library/the two subprojects look? Apr 04 08:42:48 ninharp, you could detect if the donate app is installed Apr 04 08:43:28 ninharp: invite me? Apr 04 08:44:03 squ, i got no more invites :( Apr 04 08:44:07 licensing is also possible but iirc it's not intended to be used to check licenses on every app start Apr 04 08:44:15 but if i got new invites i will give you one Apr 04 08:44:22 :( Apr 04 08:44:32 do you know someone who have? Apr 04 08:44:44 EPG, whats the best method to determine if the donate app is installed? Apr 04 08:45:37 check the package name _and_ the signature imho Apr 04 08:45:55 squ, no :( Apr 04 08:46:47 EPG, i found a lot on google! i try it out Apr 04 08:49:02 but how to get the signature? Apr 04 08:50:23 ninharp, http://www.yoki.org/2010/07/31/creating-a-freepaid-app-pair-for-the-android-market/ Apr 04 08:54:24 EPG, ok cool! but the same signature than the original app? Apr 04 08:54:49 ninharp: We use an in app purchase. When the purchase is made, our serverside API is notified and their user object is updated. Our app constantly checks against our api (caching the result for 1 week) whether the current user has a purchase Apr 04 08:55:14 ninharp: Bit more complicated. But eliminates the risk of your donate apk getting distributed and pirated Apr 04 08:56:16 JuiceSSH, but its for my app, and the small target of people it receives, a little too much i think Apr 04 08:56:54 and if i use the method to check if the donate app is installed, i got no permission internet in my app Apr 04 08:57:10 ninharp: :) Fair enough. Just thought you might be interested Apr 04 08:57:17 good point Apr 04 08:57:34 internet access is already a given for our ssh client :) Apr 04 08:58:26 JuiceSSH, i got a small app to learn for theoretical exam Apr 04 08:58:53 ninharp: What's it called? is it published? Apr 04 08:59:08 yes its published Apr 04 08:59:44 https://play.google.com/store/apps/details?id=de.sauernetworks.thwtheorie Apr 04 08:59:55 but its very specific and in german language ;P Apr 04 09:00:50 ninharp, maybe this simple code snippet is sufficient (second answer): http://stackoverflow.com/a/6508738 Apr 04 09:01:16 JuiceSSH, its for the theoretical exam of the young federal agency for technical relief assistants Apr 04 09:01:39 EPG, wait. i take a look Apr 04 09:01:54 ninharp: Looks good :) Apr 04 09:02:17 ninharp: If i'm ever training for the young federal agency I'll check it out! Apr 04 09:02:20 EPG, yep thats what i searched for! Apr 04 09:02:32 JuiceSSH, :) Apr 04 09:05:12 ninharp, btw, you don't happen to own sauernetworks.de, do you? Apr 04 09:06:41 EPG, no i got no own domain right now Apr 04 09:15:31 so i had to go for now! be back later Apr 04 09:30:24 morning Apr 04 09:30:42 Eclipse tells me that Nested weights are bad for performance. How can I avoid this here? http://pastebin.com/bk4CujmU Apr 04 09:32:01 I think your paste is truncated. Apr 04 09:32:47 I didn't paste the whole layout Apr 04 09:33:03 The URL didn't work? Apr 04 09:33:18 Hello everybody. Can you please help me with one dumb question: I am having rough times trying to understand how does NotifyDatasetChanged work. More exactly, can you please tell me how to bind data to the adapter properly. I need the listview to display data from the server, which is being polled every minite or so. Thank you ^^ Apr 04 09:33:21 it worked, but all I see is some horizontal buttons inside a vertical layout Apr 04 09:33:54 stork: correct, but on line 16 I get "Nested weights are bad for performance. " Apr 04 09:34:08 I set weight in the linearlayout as well Apr 04 09:34:23 I have a few linearlayouts Apr 04 09:34:29 have you considered changing the root layout to a RelativeLayout Apr 04 09:35:13 here is the complete layout: http://pastebin.com/aG0HReHN Apr 04 09:35:58 so it's a 5x4 square grid of buttons? Apr 04 09:36:02 yeah Apr 04 09:37:08 l9ooked into GridLayout? Apr 04 09:37:18 nah Apr 04 09:37:40 that's what I'd be doing if I was in your shoes. Apr 04 09:38:20 I'll look into it Apr 04 09:38:25 thanks Apr 04 09:38:40 any idea HOW bad nested weights are for performance? Apr 04 09:38:51 in case using gridlayout messes too much up Apr 04 09:39:02 probably not enough to lose any sleep over Apr 04 09:39:11 use hierarchyviewer to check if you like Apr 04 09:39:24 ah, gridlayout requires api level 14 Apr 04 09:39:38 GridLayout is in the support lib as well Apr 04 09:39:40 it's in the support library, I'm told Apr 04 09:41:12 hehe Apr 04 09:47:39 :C Apr 04 09:56:23 is there an ssh app that has decent hardware keyboard support, emacs doesnt seem to work too well under vx conenctbot Apr 04 09:58:33 stowelly: I'm not sure if the problem isn't with how the hw keyboard/IME interacts with apps... Apr 04 10:01:13 Hello, we want to make a game (FTL STYLE) for android! Now i am searching for some Good Group Names and Game Names. Where are the creatives here? Some suggest :)))???? Apr 04 10:05:38 stowelly: Have you tried JuiceSSH? We get good reports of hardware/bluetooth keyboards working well Apr 04 10:05:57 stowelly: https://play.google.com/store/apps/details?id=com.sonelli.juicessh Apr 04 10:06:17 p_l: to capture ctrl and arrow keys and work wierdly / inconsistently Apr 04 10:06:24 thanks will give that a go now Apr 04 10:07:15 stowelly: No probs. If you can't find us on here, chuck us an email (support@sonelli.com). We're all ears for questions/suggestions :) Apr 04 10:08:48 cool i have it running, seems to work with "ctrl + key" combination but if using alt + key it doesnt seem to send the right results. will look into it more later to see if there is a setting or something that needs to be changed Apr 04 10:09:34 stowelly: We've had similar reports for the latest version (we made some changes). There'll be an option in settings to revert these changes in the next release Apr 04 10:09:52 stowelly: If you email us, we'll be sure to let you know when the fix is out there. Apr 04 10:10:13 will do, thanks Apr 04 10:10:16 stowelly: np Apr 04 10:15:30 I use cyanogenmod with 4.2.2 and my widget buttons appear see-through. Is it touchwiz that makes the widget appear black on samsung phones? Apr 04 10:15:55 appwidget Apr 04 10:16:10 what is the proper way to log apache.HttpRequests in android? I want to log the whole request Apr 04 10:16:31 using EntityUtils.toString just gives me the data Apr 04 10:16:37 it's not enough for me Apr 04 10:16:49 I want a standard log of the request Apr 04 10:19:55 I followed the guide on how to create custom preferences, shown here: http://developer.android.com/guide/topics/ui/settings.html#Custom but I'm unsure on how to add it to my preferences XML file (where ListPreference elements can be added for example) Apr 04 10:32:14 JuiceSSH-Tom: email sent, thanks Apr 04 10:34:41 Hello, maybe someone can help me... I got MainActivity. It has a TextView. I also have a ViewPager that returns Fragments. Each Fragment is an ImageView. Anyway, I'm trying to update the TextView in MainActivity with each slide of a picture in the PageViewer. Meaning each time I change a pic, the text in the TextView gets updated. Apr 04 10:35:06 do the Textviews represent titles perchance? Apr 04 10:35:17 yes Apr 04 10:35:22 its the image title Apr 04 10:35:41 Any where I can read about this subject? Apr 04 10:35:45 have you looked into https://github.com/JakeWharton/Android-ViewPagerIndicator Apr 04 10:36:05 Ahh thank you!! code examples :) Apr 04 10:36:10 thanks Apr 04 10:36:20 better yet, a library to do the work for you :p Apr 04 10:37:33 heh :) Apr 04 10:37:34 sweet Apr 04 10:45:44 On my device with cyanogenmod and 4.2.2 the widget looks like this: http://bildr.no/image/1431236.jpeg . On a Samsung Galaxy S III it looks like this: http://bildr.no/image/1431235.jpeg . How can I make it look like the first pic on both? Apr 04 10:53:33 <[deXter]> n Apr 04 11:00:50 Can anyone point me to a tutorial for writing a widget? :) Apr 04 11:01:04 I set the background to @null for all the buttons: http://bildr.no/image/1431245.jpeg Apr 04 11:01:28 guess I need some alpha Apr 04 11:03:41 silly question Apr 04 11:03:56 is there any place like pastebin that lets me quickly add some html and see it? Apr 04 11:04:15 i basically just want to test something on my phones browser Apr 04 11:04:24 Hi everyone, my downloadprovider is broken. I found this `DownloadProgressManager.makeNewCursor: Download progress cursor null` in my log. I think there are something wrong in my download queue. Is there any ways to clear the download queue? Apr 04 11:06:34 anyone use the android sliding menu library? Apr 04 11:07:10 gaz`: i have Apr 04 11:07:10 just checked it out but it wont compile in eclipse for some reason Apr 04 11:07:20 the one by jfeinstein? or is there an official one now Apr 04 11:07:32 yeh jfeinstein Apr 04 11:07:36 oh there is? Apr 04 11:09:34 did u have any issues compiling it mikedg? of is there some special way to import into eclipse Apr 04 11:11:18 Guys, trying to use BitmapOptions.inBitmap to reuse memory when loading stuff, but it fucks me with "Problem decoding into existing bitmap" Exception all the time Apr 04 11:11:42 I could understand if it just ignored the option and decoded into a new bitmap Apr 04 11:11:53 But it halts with an exception for some reason Apr 04 11:12:03 The bitmap I'm trying to re-use is mutable and is not recycled Apr 04 11:12:16 gaz`: nope Apr 04 11:12:27 what problems are you having? Apr 04 11:12:36 What could I have done wrong? I'm creating it with createBitmap with the same width and height as the image (which I calculate using injustdecodebounds) Apr 04 11:12:43 it needs google apis for 4.2 Apr 04 11:17:24 ah its ok i was importing it wrong lol Apr 04 11:20:24 wow ##java is really a big help if you have some java questions :D Apr 04 11:20:32 i geuss we should stop forwarding ppl to there Apr 04 11:28:03 has anyone in here debugged to a RockChip device from linux? I'm trying it now, but the device isn't being recognised Apr 04 11:31:18 I don't know what to add to 51-android.rules to get it recognised Apr 04 11:31:40 any ideas? Apr 04 11:40:59 ##java is awesome Apr 04 11:42:15 brace yourselves, the FB phone is being announced today Apr 04 11:42:26 oh yeah, what time? Apr 04 11:42:43 dunno; i'm sure i'll be sleeping through it ;) Apr 04 11:46:40 I just want to know when exactly I need to start preparing for the shitstorm Apr 04 11:48:22 g00s: great, something to troll people about :> Apr 04 11:50:43 remember the HTC CHA CHA Apr 04 11:52:06 trading one company's spyware for another ;) Apr 04 11:53:43 i'm waiting for the pets.com phone myself Apr 04 11:54:05 and the square phone, which will be square … and have a card reader ! Apr 04 11:54:38 at least the api will be nice for the square phone Apr 04 11:56:43 hi! i was wondering how to access the view from inside my task's "onPostExecute" so i can show the results on the screen? Apr 04 12:01:10 get a reference to a view to your task Apr 04 12:03:19 gonna wipe my note today Apr 04 12:03:47 I need help with a custom shape: http://pastebin.com/UHd7wKA8 . I want the button to expand about 5 dp with #4400ddff when pressed. What must I do? Apr 04 12:04:07 mikedg yeah but how exactly? Apr 04 12:04:09 It doesn't expand at all the way it is now Apr 04 12:04:47 I don't understand if I need padding or it's the width of the stroke in unpressed mode Apr 04 12:04:56 jon_w: how would you pass a reference to any other object? Apr 04 12:05:29 mikedg constructor of course Apr 04 12:05:59 jon_w: right, try that Apr 04 12:06:29 mikedg but i thought it needed to be done in a different way since the point is not to mix up async processing with the view thread Apr 04 12:06:46 mikedg anyway, thx i'll try that lol Apr 04 12:09:48 you want to make sure you aren't keeping stuff too long Apr 04 12:09:56 what am I doing wrong? :/ Apr 04 12:16:13 actually a square phone could make sense, as a pos terminal Apr 04 12:16:27 piece of shit? Apr 04 12:16:35 point of sale :| Apr 04 12:16:43 :D Apr 04 12:16:51 :) Apr 04 12:17:28 p_l: have you tried using firefox tab groups in place of tree style tabs? Apr 04 12:18:02 I was always wondering, does any of actual google devs sit here? Apr 04 12:18:25 Sometimes, yes. Apr 04 12:33:49 Hi, I'm having a problem that I keep getting illegalstateexception that the app can't find a method: http://pastie.org/7313517 but I've put the method inside the MatchActivity class as you can see in the pastie Apr 04 12:34:01 I've cleaned, rebuilt etc Apr 04 12:35:36 got it going mikedg, its super cool! Apr 04 12:35:46 love how u can drag it out with your finger Apr 04 12:35:52 yeah its fun Apr 04 12:36:19 was cursing the client for wanting it but now its gonna go into my standcard template :) Apr 04 12:37:16 gaz`: What exactly? Sounds interesting Apr 04 12:38:22 this thing Apr 04 12:38:23 https://github.com/jfeinstein10/SlidingMenu Apr 04 12:38:29 its awesome once u get it working Apr 04 12:39:10 Whats the drawable for appwidgets called? I want to use the one in 4.2 for older android versions Apr 04 12:39:45 so you too can facebookify your app (y) Apr 04 12:40:08 yeh ppl keep saying that, its not liek that on my fb app tho Apr 04 12:42:24 anyone got any idea for my problem? :( Apr 04 12:42:38 if i want a TextView to have a mathematical formula , how can i use Math Markup Language in conjunction with the TextView? Apr 04 12:44:29 I tried searching through sdk\platforms\android-4.2\data\res for "widget" but I only found kg_widget which I assume is for the keyguard Apr 04 12:45:17 I need this: http://bildr.no/image/1431236.jpeg Apr 04 12:48:38 what does this mean ? Supported Android devices 2410 devices Apr 04 12:50:06 have a guess ;) Apr 04 12:51:35 actually where can i check that on mine Apr 04 12:51:40 2410 does seem excessive Apr 04 12:51:48 madness how many android devices there are Apr 04 12:52:04 just cant wait to get my game out there :D Apr 04 12:52:24 Hi, I'm having a problem that I keep getting illegalstateexception that the app can't find a method: http://pastie.org/7313517 but I've put the method inside the MatchActivity class as you can see in the pastie Apr 04 12:53:32 oh yeh my game has 2490 supported devices! Apr 04 12:54:10 we are onto a winner coding this :) Apr 04 12:54:51 try adding @Override WhereIsMySpoon Apr 04 12:54:57 heh Apr 04 12:55:08 gaz`: that makes it not compile Apr 04 12:55:16 The method freeTextSearch(View) of type MatchActivity must override or implement a supertype method Apr 04 12:55:22 i publish the app but i cant see any link yet for it Apr 04 12:55:32 i think that there shuld be a preview thing Apr 04 12:56:08 gaz`: aha, it's because it was private Apr 04 12:56:12 derpyderp Apr 04 13:02:51 Nobody? How can I get this style of widget on other Android versions than the AOSP? http://bildr.no/image/1431236.jpeg Apr 04 13:09:16 client crashed.. did anyone answer? :) Apr 04 13:11:20 Quacked: no Apr 04 13:12:14 ok Apr 04 13:13:26 hehe menus on both sides now mikedg, feels like a little desktop Apr 04 13:13:40 ah WhereIsMySpoon Apr 04 13:16:07 does a manual refund of an order in the dev console for an app using the LVL, revokes the license rights for that user ? Apr 04 13:16:21 anyone tried using adwords to promote your app? it's just about the least usable website ever Apr 04 13:16:36 bubbleguuum: I think so Apr 04 13:17:09 I also think so but I'd like to find conformation Apr 04 13:18:50 bubbleguuum: i think so too Apr 04 13:20:15 i must be going blind Apr 04 13:20:20 i cant find the phone app on my note 2 Apr 04 13:26:14 ironic eh Apr 04 13:26:29 cant wait to get a good phone, still using nexus one Apr 04 13:59:39 hello guys. im searching sql-query's to add/remove contacts from contacts2.db .does anyone have some snippets? Apr 04 14:06:04 eni23: please go to #android-root. Apr 04 14:06:36 So if I use a custom view in the ActionBar do I basically lose all of the ActionBar API stuff, e.g. onTabSelected and all of that stuff or is there a way to wire up my custom view to the APIs? Apr 04 14:07:29 lov: is only java here? Apr 04 14:09:25 eni23: it's not messing with system stuff here Apr 04 14:10:27 Leeds: imho asking for sql-querys has nothing to do with system stuff. Apr 04 14:10:41 but thanks for your friendly help Apr 04 14:10:59 rephrase your question :) and you'll be pointed to SQL help... Apr 04 14:11:13 eni23: your question implies that you're not doing actual app development, or even general frameworks hacking Apr 04 14:11:34 I appreciate your enthusiasm, but this really isn't the appropriate place. You might want to go to #sqlite or something. Apr 04 14:14:13 lov: im doing dev things ;) i know howto use sqlite and stuff but i didnt find any docs about it and MABYE someone else knows working querys. otherwise i have to analyze like 100 tables. imho its damn android specific Apr 04 14:14:55 i mean didnt find any docs about contacts2.db. Apr 04 14:15:09 eni23: why not use the contacts api in the android sdk? Apr 04 14:15:10 dis gon b gud Apr 04 14:15:59 ._. Apr 04 14:16:22 appel1: mabye i give this a try. but sqlite transactions are faster Apr 04 14:16:24 eni23: the reason you didn't find any docs is because the internals of the contacts DB, and in fact how the contacts system works, is implementation specific. Apr 04 14:16:36 you're not SUPPOSED to know or care how the db works. Apr 04 14:16:53 see http://developer.android.com/reference/android/provider/ContactsContract.html et al Apr 04 14:17:02 lov: android is open source or not? Apr 04 14:17:05 oh ffs. Apr 04 14:17:08 look guy. Apr 04 14:17:09 and i know the sdk docs Apr 04 14:17:24 eni23: this channel is about developing apps using the Android SDK :) Apr 04 14:17:53 appel1: hm okay then- Apr 04 14:18:04 you're either making your own rom, which is great but which is more appropriate for #android-root or #android-frameworks in most cases Apr 04 14:18:06 eni23: for custom roms and more #android-root or perhaps #cyanogenmod is better Apr 04 14:18:20 or you're just noodling around on your own phone and fucking with it (which sounds a lot more likely) in which case #android-root is DEFINITELY the place. Apr 04 14:18:46 in either cases, you're cordially invited to look at the source code to see how the implementation works because there's no public documentation Apr 04 14:18:52 lov: lol my phone? im working with an emulator Apr 04 14:19:04 whatever, I honestly do not care. Apr 04 14:19:19 lov: oh thats not so hard to see Apr 04 14:19:21 eni23: are you writing an app you want to release on Google Play? Apr 04 14:19:40 appel1: not google play but yes Apr 04 14:20:10 eni23: either way, you'll just make it harder for yourself if you don't use the documented apis. Apr 04 14:20:50 eni23: for example, an app cannot directly access the contacts database so your approach would only work on a custom rom with broken security or by requiring root access Apr 04 14:21:45 appel1: yeah mabye i should. look i comfing from the linux-dev world and alot of this android-api-crap does not make sense to me. Apr 04 14:22:17 but thanks for your input Apr 04 14:22:47 eni23: Android is different from what you're used to. In most places, Android is not broken, your expectations are. Trying to "fix" Android is generally a mistake. Apr 04 14:23:27 eni23: do you generally read and write raw bytes from the harddrive on linux then because the fs api is crap? ;) Apr 04 14:24:01 appel1: he may be a gentoo user... Apr 04 14:25:28 :) Apr 04 14:26:12 to put it another way, your life will be simpler and less stressful if you abandon the notion that from an app's POV (and app developer's POV), Android is more than distantly related to the (GNU/)Linux you're used to Apr 04 14:28:03 or, How I Learned to Stop Worrying and Love the Android Apr 04 14:28:51 Dr. Rubin Apr 04 14:29:19 just get me a shell Apr 04 14:29:22 Leeds: lov: appel1: in some way you guys are right. and this is all more a philospohy thing. even if i dont like it that i cant access things directly, i decided to use java and ContactsContract for my current project. even if it kills me inside Apr 04 14:29:37 lov: and hell no, debian! Apr 04 14:30:01 then you should be used to programming against opaque packages. Apr 04 14:30:05 eni23: so you run all programs as root on debian then? Apr 04 14:30:19 sounds secure Apr 04 14:30:44 appel1: some things do require root-permissons ;) Apr 04 14:30:46 Ok, I think you guys should stop. You made your point and eni23 seems to understand what you're getting at. Apr 04 14:30:56 This is going nowhere. Apr 04 14:31:06 kakazza: aww, I was just getting into this Apr 04 14:31:21 Next time! Apr 04 14:31:27 I was going to chime in with a really killer gun-control metaphor Apr 04 14:31:31 kakazza: on the contrary, it gives us a smug sense of superiority, which is really what arguing on the internet is all about in the end. Apr 04 14:31:42 no one cares who is right or wrong Apr 04 14:31:47 the important thing is that you feel like you won Apr 04 14:31:59 that's winning. Apr 04 14:32:21 * lov stares wistfully as a comet bursts overhead Apr 04 14:32:22 yeah kakazza what do you want lov to be, Not Winning? Apr 04 14:32:44 lov++ Apr 04 14:48:43 #Winning #TigerBlood Apr 04 14:49:35 may the good lord preserve the Sheen Machine Apr 04 14:54:45 anyone know a good ide for android apart from eclipse Apr 04 14:54:53 something as good as xcode Apr 04 14:54:57 or visual studio Apr 04 14:55:00 for android Apr 04 14:55:16 eclipse is way better than xcode Apr 04 14:55:19 so is visual studio Apr 04 14:55:32 really Apr 04 14:55:38 intellij? Apr 04 14:55:40 but xcode looks grea Apr 04 14:55:42 but xcode looks great Apr 04 14:55:45 in the pictures i seen Apr 04 14:55:46 yah, it has bugs, but at least you can choose to reindex on demand Apr 04 14:55:54 and eclipse looks fine, definitely not a visual issue Apr 04 14:55:59 intellij is nice from what i hear Apr 04 14:56:15 eclipse has buggar all in the way of dragging Apr 04 14:56:24 and dropping buttons etc Apr 04 14:56:25 IDEA is a great IDE, I dunno how the android support stacks up. Might be worth a try. Apr 04 14:56:26 Dr_Coke, not true, drag into project Apr 04 14:56:36 unless you're already quite experienced with android dev, stick with eclipse. Apr 04 14:56:41 i mean Apr 04 14:56:43 if you have eclipse problems there's always #eclipse Apr 04 14:56:45 because all the examples and official stuff is based on it Apr 04 14:56:48 visual studio Apr 04 14:56:57 (the temptation to channel my inner kanye right there was really hard to resist) Apr 04 14:57:05 has so many features i can just draw onto the form Apr 04 14:57:13 but when i set up eclipse Apr 04 14:57:20 i tried both ways Apr 04 14:57:23 Dr_Coke, eclipse adt does hav an interface builder, it just sucks Apr 04 14:57:27 yer Apr 04 14:57:29 thats it Apr 04 14:57:30 Dr_Coke: you should learn how to build layouts in xml, save your self a lot of problems :p Apr 04 14:57:31 adt Apr 04 14:57:36 really Apr 04 14:57:49 but xml takes time to learn and write Apr 04 14:57:56 Draw user interface with an IDE is a bad idea...use the IDE for the UI Stub and refine it directly on the XML file Apr 04 14:57:59 dragging sh it onto a form seems much easier Apr 04 14:58:03 lol Apr 04 14:58:30 I think the nature of android development (all sorts of different screen sizes/aspect ratios might pop up) makes such a ui builder an elusive beast Apr 04 14:58:41 for now, certainly, your best bet is to learn how to write layouts in xml Apr 04 14:59:06 XML doesnt take time to learn Apr 04 14:59:10 Use the eclipse UI editor only for the final check of the UI, without a build-deploy run on a real device Apr 04 14:59:18 it's not turing complete, it's just mark-up Apr 04 14:59:38 oh Apr 04 15:00:05 and with eclipse or any good IDE it will autocmoplete Apr 04 15:00:12 so you dont even have to think about what attributes are available Apr 04 15:00:20 right Apr 04 15:00:26 but i had a look at xcode Apr 04 15:00:43 and i seen someone just draw a menu like in visual studio Apr 04 15:00:47 xcode/obj-c has a nice interface builder, unfortunately it's also very buggy Apr 04 15:00:52 and it looked very apple Apr 04 15:00:56 oh Apr 04 15:01:09 what about if i learn c# Apr 04 15:01:22 or can i put java in visual studio Apr 04 15:01:32 and use the visual studio ui builder Apr 04 15:01:47 iOS devices are, by nature, really easy to design interfaces for -- because they only come in like 4 different sizes. Apr 04 15:01:57 i heard about people using vs with monobuilder and can program for ios and android Apr 04 15:02:08 if you get some sort of ios pack from xarmin Apr 04 15:02:10 Dr_Coke remember: You can not completely trust a visual UI editor Apr 04 15:02:14 for 300$ a year Apr 04 15:02:15 Dr_Coke, sure, you can use mono to build for both i believe Apr 04 15:02:15 or something Apr 04 15:02:26 BUT, it wraps a lot of stuff Apr 04 15:02:31 i find that the generated code is actually slower Apr 04 15:02:32 Dr_Coke also in IOS or XCODE Apr 04 15:02:39 really Apr 04 15:02:57 is mono any good Apr 04 15:03:03 i mean Apr 04 15:03:12 i dont want to use mono instead of visual studio Apr 04 15:03:25 Dr_Coke, i like mono, and visual studio Apr 04 15:03:28 and eclipse Apr 04 15:03:29 i wanted to program c# in visual studio with all the drag and drop Apr 04 15:03:38 certain things about mono piss me off Apr 04 15:03:42 can i use the drag and drop Apr 04 15:03:42 indentation, for example Apr 04 15:03:44 in vs Apr 04 15:03:56 because in mono the ui builder isnt even there Apr 04 15:04:01 i dont think Apr 04 15:04:04 or very limited Apr 04 15:04:20 i would love to see mono with a ui builder Apr 04 15:04:28 like vs 2010 Apr 04 15:04:35 talk to jonp Apr 04 15:04:38 ;) Apr 04 15:04:48 whos that Apr 04 15:05:00 the resident Xamarin.Android guy Apr 04 15:05:05 ahh Apr 04 15:05:11 and the resident mono guy Apr 04 15:05:14 that too Apr 04 15:05:20 lol Apr 04 15:05:35 speak of the devil Apr 04 15:05:46 jonp Apr 04 15:05:59 is there a ui builder plugin for mono Apr 04 15:05:59 o/ jonp Apr 04 15:06:09 Dr_Coke: Eclipse for starters because all guides and lots of StackOverflow questions cover Android development with Eclipse. Later on, I'd give IDEA IntelliJ a try, because it's very smooth, has a very good Text Editor etc. Many people in here use IntelliJ, including some of the actual Android Developers working at Google. Apr 04 15:06:15 to make it like visual studio Apr 04 15:06:19 Dr_Coke: Xamarin Studio and Xamarin.Android for Visual Studio both provide UI builders for Android Apr 04 15:06:34 really Apr 04 15:06:48 and can you program in java Apr 04 15:06:50 jonp Apr 04 15:07:02 or just c# Apr 04 15:07:05 in visual studio Apr 04 15:07:27 Interface Builders with Android, meh. I'd avoid them, personally. There is really no way around it, and the sooner you get familiar with XML Layouts, the better. In my experience, you'll also get much better support. Apr 04 15:07:40 Dr_Coke, if it's for andriod, it is java Apr 04 15:07:54 even if you write it in C#, it will still be wrapped to java Apr 04 15:08:01 I use Xcode too. I like the way it works, but the Text Editor lacks behind. Apr 04 15:08:17 i heard that in visual studio with the xamarin plugin Apr 04 15:08:20 i dont want none unless you got buns hun Apr 04 15:08:24 and ios plugin Apr 04 15:08:31 you can write code in c# Apr 04 15:08:38 for both android and ios Apr 04 15:08:46 and actually reuse your code Apr 04 15:08:54 and port it to either platform Apr 04 15:08:57 i read Apr 04 15:09:22 Dr_Coke, again, it will generate/wrap this code Apr 04 15:09:28 Dr_Coke: Android builder: http://docs.xamarin.com/guides/android/user_interface/designer_overview Apr 04 15:09:31 Unity3D offers this sort of thing Apr 04 15:09:37 and it comes packaged with mono Apr 04 15:09:44 thanks jonp gonna check it out Apr 04 15:09:46 Dr_Coke: it does generate ye normal Android layout .xml files (though we use a .axml extension; same contents) Apr 04 15:09:55 oh really kaneda Apr 04 15:10:01 Dr_Coke: so you could feasibly just copy the files into a Java project and use away Apr 04 15:10:14 oh nice Apr 04 15:10:25 you mean Apr 04 15:10:26 i've never tried to do so Apr 04 15:10:30 say i open eclipse Apr 04 15:10:33 so i have no idea how well that workflow will work Apr 04 15:10:37 but IN THEORY... ;-) Apr 04 15:10:39 and copy and paste into the xml file in there Apr 04 15:10:43 right Apr 04 15:10:47 i think that'll work Apr 04 15:10:50 (famous last words) Apr 04 15:10:53 i might learn c# Apr 04 15:11:02 i heard its like java Apr 04 15:11:03 anyway Apr 04 15:11:07 Dr_Coke, ya,rly Apr 04 15:11:10 in the syntax Apr 04 15:11:24 like java...9. ;-) Apr 04 15:11:25 or 10 Apr 04 15:11:27 that way i can get the ios and android plugin Apr 04 15:11:31 (note: i'm biased) Apr 04 15:11:39 and port to each Apr 04 15:11:56 oh jonp what do you like more Apr 04 15:11:59 c# or java Apr 04 15:12:24 given that Java 8 hasn't been released yet and I just implied that C#5 is akin to Java 10... Apr 04 15:12:32 i don't think it's hard to guess which i prefer ;-) Apr 04 15:12:35 I think you'll like Java. The way you write text is very similiar to Java. It takes you 10 lines to convey information that would usually take 1 line. Apr 04 15:12:47 kakazza: +1 :D Apr 04 15:13:10 i'm creating a ImpliedFactoryFactoryFactory! Apr 04 15:13:24 :D Apr 04 15:13:37 also, io and netcode in java is a pain Apr 04 15:14:19 you need like 23423423 objects to output and input to a file Apr 04 15:14:21 D: Apr 04 15:14:29 hi everybody. I am currently trying to set up a simple test project that uses the NDK. I have installed the NDK and the NDK Eclipse plugin, created a new app project, added native support to the project and built a simple hello world like in the hello-jni example. It builds the C++ part, but when I now want to build and run the rest, it throws me an error: Android NDK: WARNING: APP_PLATFORM android-14 is larger than the android:minSdkVersiono 8 in ./Andr Apr 04 15:14:35 isn't that why you just use serialization? Apr 04 15:15:03 evident: it's a warning; you can ignore. :-) Apr 04 15:15:08 evident, seems evident that it's just a warning Apr 04 15:15:10 lol jonp Apr 04 15:15:11 :D Apr 04 15:15:12 i see now Apr 04 15:15:21 im not up to date much on javas latest version Apr 04 15:15:28 i always hated the idea of java Apr 04 15:15:34 evident: if you like warning-free code, change your C++ code to build against android-8, not android-14 Apr 04 15:15:40 i always liked c++ Apr 04 15:15:48 but then i found c++ takes a lot more effort Apr 04 15:15:49 *hated Apr 04 15:15:51 i liked C++ until i had to use it in a professional manner Apr 04 15:15:56 then i ran fleeing in terror Apr 04 15:15:59 then i started heearing Apr 04 15:16:03 about c# Apr 04 15:16:10 manual memory management? separate include files? oh man, sign me up for that torture Apr 04 15:16:15 Dr_Coke: this really isn't the channel to discuss C# Apr 04 15:16:17 and that it takes away a lot of the hard stuff that c++ has Apr 04 15:16:20 true Apr 04 15:16:23 Dr_Coke: #monodroid/irc.gnome.net or ##csharp would be more appropriate Apr 04 15:16:33 oh thanks dude Apr 04 15:16:36 is it on freenode Apr 04 15:16:38 i doubt everyone else here wants to hear the glory & praises of C# Apr 04 15:16:43 lol Apr 04 15:16:46 Dr_Coke: ##csharp is; #monodroid is not Apr 04 15:16:46 true Apr 04 15:17:06 jonp: but it shows it as error and not under warnings ... ;) And doesn't build and run it Apr 04 15:17:38 evident, do you have "pedantic" enabled? Apr 04 15:17:45 it -Wall ? Apr 04 15:17:49 -Werror? Apr 04 15:17:50 or* Apr 04 15:17:53 -Werror is the work of the devil Apr 04 15:19:18 haven't enabled it by myself... it's the default build settings in Eclipse Apr 04 15:22:53 found that I need to add an Application.mk to my jni folder which sets the version to 8... let's see if it works Apr 04 15:26:30 if you wanted to pop up a text editor dialog to let the user edit some pre-existing text, would an EditText be appropriate as your "editor" ? Apr 04 15:27:05 I wouldn't know what else you would use. Apr 04 15:27:15 using an EditText to edit text? Preposterous Apr 04 15:27:39 haha Apr 04 15:27:42 point taken, thanks Apr 04 15:30:30 tnzr: the proper solution, obviously, is to embed a WebView, load some HTML, and have the user enter text into an ! Apr 04 15:30:34 Apr 04 15:30:51 haha Apr 04 15:30:58 I don't know why I felt like I needed to ask Apr 04 15:31:02 have the
post to a server and the server returns the data via c2dm Apr 04 15:31:09 of course! Apr 04 15:31:17 so the server can spell-check! Apr 04 15:31:21 that would be fantastic someone shoulddo that Apr 04 15:31:26 haha Apr 04 15:31:39 tnzr: you felt the urge to read some sarcasm? Apr 04 15:31:53 i guess so, urge is fading though Apr 04 15:31:59 * tnzr stares Ankhwatcher down Apr 04 15:32:25 Yo do you do the open bottle? Apr 04 15:32:46 hi, i got a android app which should use ndk/jni, one of the libs i want to use has a init function which returns an object, how would i pass this object back to java/work with it? Apr 04 15:32:54 is there some way to store this instance object in my jni/native only class? Apr 04 15:33:28 how did you get the app? like, in a back alley cash kind of deal? Apr 04 15:34:26 stephanj: your "JNI lib" should come with a .jar file which has the appropriate `native` method declaration Apr 04 15:34:28 anyone have experience with the android SIP stack? wondering if it's possible to send arbitrary data down the line while a SIP call is in place. Apr 04 15:34:32 stephanj: so you'd just invoke the Java method Apr 04 15:34:38 lov: heh, i am writing it from scratch Apr 04 15:34:57 jonp: i am the one who has to write the interface to jni/java for this lib Apr 04 15:35:06 stephanj: then you do the normal JNI workflow Apr 04 15:35:23 stephanj: write your Java class with a `native` method, compile it, run javah on your .class/.jar (i forget which) Apr 04 15:35:41 javah generates a .h which declares the function your JNI code needs to implement Apr 04 15:35:42 .class Apr 04 15:35:49 you implement it, you're done Apr 04 15:36:06 (well...compile, include into .apk, pray, make chicken sacrifice, pray some more...) Apr 04 15:36:16 i have a bit of experience with the JNI mechanism... Apr 04 15:41:04 jonp: a chicken sacrifice into the ritualistic deep fryer Apr 04 15:41:25 Mmm... Apr 04 15:42:29 This is how my widget looks without and styling: http://bildr.no/image/1431236.jpeg . But in touchwiz and earlier android versions its not transparent. I made a custom button style like this: http://bildr.no/image/1431386.jpeg . But it doesn't look as good when it doesn't have that white border on top of the buttons. How can I make it look the same? :) Apr 04 15:43:58 maybe i'm crazy, but i don't see a difference there. Apr 04 15:44:17 good morning, how can i swipe between 2 or more activities with gestures Apr 04 15:44:38 what things do i have to implement Apr 04 15:44:45 toxie: this would be a good start: http://developer.android.com/reference/android/support/v4/view/ViewPager.html Apr 04 15:44:48 jonp, you dont? :P Apr 04 15:45:00 ok Apr 04 15:45:01 jonp, the custom style also have rounded corners Apr 04 15:45:07 that is damn subtle Apr 04 15:45:14 i'll check thanks Apr 04 15:45:14 So don't give it rounded corners Apr 04 15:45:15 need to see the big versions to see it Apr 04 15:45:37 you dont get big versions? :S Apr 04 15:45:55 i was just looking at the small version Textual displayed inline Apr 04 15:46:05 should be 800x480 Apr 04 15:46:09 ah Apr 04 15:46:11 :D Apr 04 15:46:22 http://www.jprl.com/tmp/x/0cd42048.png Apr 04 15:46:27 so, uh, subtle ;-) Apr 04 15:46:40 hehe, yeah Apr 04 15:47:14 my app is under android 2.2 code apilevel 8 do i need to upgrade to 4.2 Apr 04 15:48:00 what Apr 04 15:48:06 ==canadiancown Apr 04 15:48:09 er, cow* Apr 04 15:48:11 what is your minSdkVersion, targetSdkVersion, and build target Apr 04 15:48:22 and why are you concerned about this at all Apr 04 15:49:34 jonp: but I was thinking it should be possible to use the original style Apr 04 15:49:38 and copy it to my project Apr 04 15:51:09 min=8 target=8 build=8 Apr 04 15:52:25 ok, so i would probably suggest setting target=17, but only if you can actually verify that stuff still works there Apr 04 15:52:27 * stork shudder. Apr 04 15:52:32 it will disable a lot of fugly compatibility modes Apr 04 15:53:08 i still remember a fairly large app that released an update in december 2011, with a changelog of "ICS support". they set targetSdkVersio="14" Apr 04 15:53:18 which made their menu inaccessible Apr 04 15:53:35 I think I need to use one of those 9.png files, but I cant figure out which Apr 04 15:53:40 there are so many :P Apr 04 16:13:12 Hey guys, I'm goign to be implementing a log-in page in an android application and I was wondering whether using sessions would be a good idea? I heard that sessions are closed when the 'browser' is closed does this mean that whenever a user exits the app, then they're automatically logged out? Apr 04 16:13:51 hi coco89 :) Apr 04 16:14:03 timroes: hello :) Apr 04 16:14:26 you should dig into some http standards first. Sessions are just something the server sends to your client and your client keeps on sending it with the next http request Apr 04 16:14:43 a browser normally deletes this session when you close it, since its what its meant to be Apr 04 16:14:57 ofc nothign rpevents you from sending your session id the next time you start the app Apr 04 16:15:11 but most servers will time out a session after some time of inactivity Apr 04 16:15:15 so its not valid anymore Apr 04 16:16:14 I see, so basically I won't be kept logged in like for example the facebook app? Apr 04 16:16:19 hmm Apr 04 16:16:48 so what should I be looking into, if not sessions Apr 04 16:17:06 depends on what your server is :D Apr 04 16:17:31 if its an existing interface, you have no control over you won't have much choice Apr 04 16:18:10 if you are coding the interface yourself, and e.g. its something REST like you could just implement Basic auth (or similiar HTTP authentication; make sure to use HTTPS anyway!) Apr 04 16:18:49 you can also implement something custom like challenge-response-mechanism yourself Apr 04 16:19:55 basically it will end up in either of these situiations: you send login data in every call OR you send login data one time, get a unique id (commonly known as session ID) from the server, and will send this id with every call (so the need of sending valuable login data over internet is reduced to the first call, but ofc introduces other problems as well) Apr 04 16:20:50 I see Apr 04 16:21:38 hey is there any way to implement viewpager and actionbar on api level 8 Apr 04 16:21:39 I think I understand Apr 04 16:23:16 toxie: viewpager support library and actionbar ActionBarSherlock Apr 04 16:25:35 ok Apr 04 16:25:53 i have a custom view in which id like to do some scrollY when it finishes inflating. the problem is that it seems that point that calculations about different x and y position of the view itself and its children arent ready yet to give me the correct values, e.g. it gives me 0 when thats clearly wrong. when is the first point at which i can get correct calculations? Apr 04 16:25:54 so do you think they'll switch android over to use Blink? Apr 04 16:28:10 nah, android will use Stare Apr 04 16:30:08 ~_~ Apr 04 16:30:22 yeah, they will. Apr 04 16:30:37 http://prng.net/blink-faq.html this is a pretty nice explanation Apr 04 16:31:03 pretty much sums it up Apr 04 16:31:07 :D Apr 04 16:33:57 Does anybody have an idea why Eclipse says "Symbol 'vector' could not be resolved" when I want to add STL to an NDK project? I have added "APP_STL := stlport_static" to the Application.mk and the path to the stlport in the Eclipse include path. So it lets me "#include ", but when I want to create one, it says it cannot be resolved. Any idea? Apr 04 16:36:24 lol Apr 04 16:36:41 i remember when webkit was just in konqueror Apr 04 16:37:24 and was called khtml Apr 04 16:37:28 :) Apr 04 16:37:34 and it really sucked Apr 04 16:38:18 still sucks Apr 04 16:38:46 i havent used kde in probably 8-10 years, so i dunno Apr 04 16:38:58 only gnome for me Apr 04 16:39:41 i've been using kde for about 9 years Apr 04 16:39:46 but now apple claims to have invented webkit Apr 04 16:39:52 3.5 was by far the best Apr 04 16:40:17 only kde app i liked was amarok Apr 04 16:40:30 then they ruined it with 4.0 Apr 04 16:40:41 it took years for it to work about the same Apr 04 16:40:41 yeah, was just going to say that Apr 04 16:40:48 does it now? Apr 04 16:40:51 yeah Apr 04 16:40:59 hmm, might have to try again Apr 04 16:41:11 all the features that were removed because of dumb reasons were slowly added back in Apr 04 16:41:22 right now im just using the google music player on web Apr 04 16:41:42 i personally can't live without yakuake Apr 04 16:41:56 never heard of it Apr 04 16:42:07 it's a quake-like terminal Apr 04 16:42:14 oh, lol Apr 04 16:42:18 you set up a command and it just pops down from the top to give you terminal access Apr 04 16:42:20 yeah i have guake Apr 04 16:42:25 it's basically konsole underneath Apr 04 16:42:56 i have it set to alt+j Apr 04 16:43:03 heh, i googled it: Guake is a top-down terminal for Gnome (in the style of Yakuake for KDE Apr 04 16:43:06 uses gnome-terminal naturally, bound to f12 Apr 04 16:43:26 i guess some gnome user got annoyed with having to install all the kde-libs and qt just to have yakuake Apr 04 16:44:19 i remember having a terminal applet in gnome before that did basically the same thing, but gnome 3 killed applets Apr 04 16:47:08 heh Apr 04 16:48:33 in my customview, getChildAt is returning the first child of that child Apr 04 16:48:37 instead of the direct child Apr 04 16:49:07 e.g. one of my children is a gallery, and it's returning that gallery's first item Apr 04 16:50:34 LuxuryMode: pastebin Apr 04 16:51:31 https://gist.github.com/levinotik/895efaca77db07f7b7ec Apr 04 16:51:42 evanc, it only does this for the first scrolling that i'd like to do Apr 04 16:52:02 after that first scrolling, when scrolling is not a fake scroll, but based on the DPAD, it works just fine Apr 04 16:54:17 How do you check what it's returning Apr 04 16:55:22 Because I kind of doubt it's returning the child of a child view Apr 04 16:56:15 SimonVT_, i debugged and it shows you me that the View v was a certain view type which happens to be the 0th item in my gallery's adapter Apr 04 16:56:26 also, i think part of the issue is when im doing that first scroll Apr 04 16:56:40 if i do it in onFinishInflate i was getting 0 values for the center of parent and child Apr 04 16:56:52 but if i do it in onLayout, then the value is way off Apr 04 16:57:09 and that was because it was giving some strange value for the first child of that child Apr 04 16:59:15 A viewgroup has no idea what its child views are tho.. It just fetches them from a View array Apr 04 16:59:41 right Apr 04 16:59:45 actually think i see a bug here Apr 04 16:59:51 im not recycling my typedattributes Apr 04 16:59:57 and its giving me the wrong value altogether Apr 04 17:00:00 And yeah, in onFinishInflate your view is not measured yet Apr 04 17:00:00 so lemme fix that first Apr 04 17:00:12 so this should be done in onMeasure or...? Apr 04 17:01:36 Sure, once you measured them you will know their size Apr 04 17:03:14 ok im an idiot, i had added attrs so i could set the initial scrollto child in my xml Apr 04 17:03:20 but then was doing it in code as well Apr 04 17:03:23 hence my problem Apr 04 17:03:24 cool Apr 04 17:06:08 SimonVT_, having the same issue Apr 04 17:06:16 where its not giving me the right center of the views Apr 04 17:07:33 What do you mean center of views Apr 04 17:07:45 As in, on the screen? Apr 04 17:08:00 You can't get that until you call layout of them Apr 04 17:08:05 https://gist.github.com/levinotik/5312156 Apr 04 17:08:13 both those values are 0 Apr 04 17:09:23 oh ok, how do i know when layout has been called on them? cuz im not doing that, im simply relying on the super to do that…i think... Apr 04 17:11:33 SimonVT_^ Apr 04 17:11:34 Right, so.. This is for setting the initial scroll position? Apr 04 17:12:21 yeah but i want an actual visual scrolling to that child Apr 04 17:12:43 in my case it happens to be the first child. so i want to scroll y such that the 0th child is centered vertically in the parent Apr 04 17:13:00 Then scroll once super.onLayout returns Apr 04 17:13:18 oh ok, i tried that before, lemme try again Apr 04 17:14:16 maybe it just wasnt working before bc i had overridden my xml value in code Apr 04 17:14:17 lemme see Apr 04 17:14:24 Also, you don't want to use getTop/getBottom when getting your viewgroups center Apr 04 17:14:37 Those define their position in the parent Apr 04 17:14:39 awesome, that works Apr 04 17:14:48 Since you are the parent, getHeight / 2 is the center Apr 04 17:14:55 ah ok Apr 04 17:14:57 thanks SimonVT_ Apr 04 17:15:50 you're saying it should be something like this? https://gist.github.com/levinotik/5312227 Apr 04 17:16:25 Yep Apr 04 17:17:42 awesome, thanks SimonVT_ Apr 04 17:18:29 or well, I guess it makes no difference the way you're calculating it Apr 04 17:18:42 right Apr 04 17:18:44 or wait, it does Apr 04 17:18:49 the scrolling is kind choppy :( Apr 04 17:19:11 No, it doesn't Apr 04 17:19:32 Maybe it does.. I can't figure this out right now Apr 04 17:19:38 lol! Apr 04 17:20:40 I'll find my calculator (google) Apr 04 17:21:07 Yeah, it matters Apr 04 17:21:14 hehe Apr 04 17:21:14 Glad we got that figured out Apr 04 17:21:19 haha Apr 04 17:21:33 anything i can do to make the scrolling smoother? Apr 04 17:21:38 e.g. with a top of 20 and a bottom of 120, your method would return 70.. But you want to center your view around 50, since the height is 100 Apr 04 17:21:45 happens to be kind of a dense view hiearchy in a way Apr 04 17:21:51 right Apr 04 17:22:49 i guess there might be some GC going on Apr 04 17:22:52 Use hardware layers maybe? Apr 04 17:22:52 *sigh* Apr 04 17:23:04 already have hardware acceleration turned on Apr 04 17:23:07 you mean something more? Apr 04 17:23:25 View#setLayerType(LAYER_TYPE_HARDWARE) Apr 04 17:23:39 ah ok Apr 04 17:23:41 on the parent? Apr 04 17:24:36 No, I think the parent gets invalidated Apr 04 17:25:11 hmm Apr 04 17:25:20 i see you've dealt with this sort of: http://stackoverflow.com/questions/12272094/android-view-animation-and-hardware-layers Apr 04 17:26:01 Yep, it absolutely sucks to work with Apr 04 17:26:26 so its more than just setting hardware layer type on all the children? Apr 04 17:26:34 Well, yes and no Apr 04 17:26:51 cuz that seems to not help at all Apr 04 17:28:34 No, because you can just set layer type on all children and it works.. Yes, because the framework has to actually build the layers (which takes up to 100 ms on e.g. ICS).. This delay is only there during the intial layout tho (and every time the view changes size, I believe) Apr 04 17:29:22 right Apr 04 17:29:33 With my menudrawer, I use hardware layers.. But waiting 100 ms on the layers to be built is just not acceptable when it's triggered by e.g. a drag Apr 04 17:29:36 so for me, setting layer type to hardware on the children seems to smooth out the later scrolls Apr 04 17:29:41 but the first one is pretty choppy Apr 04 17:29:55 So I had to ensure all the layers were built during the initial layout.. Which is just so broken Apr 04 17:31:02 When you initially set the layer type, there's going to be a delay.. This is probably acceptable in your case, since you scroll automatically as soon as the view is laid out Apr 04 17:31:12 (The delay is much smaller in JB tho) Apr 04 17:31:58 i dunno, it just seems choppy still on that initial scroll Apr 04 17:32:55 TIL facebook developers are better android developers than the android platform developers Apr 04 17:33:21 bullshit stork, why do you say that? Apr 04 17:34:42 http://www.youtube.com/watch?v=bkWEqGHirJw Apr 04 17:35:06 i'm watching the facebook event livestream thing right now, apparently in the new 'facebook home' they have, and i quote, "rewritten a lot of the basic framework components to make them faster and snappier" Apr 04 17:35:27 so SimonVT_, is there anything i can do to compensate for that initial delay? Apr 04 17:35:43 stork: I am sure they meant their own framework Apr 04 17:35:53 and honestly, any time someone uses the word "framework" you know you are getting bullshitted Apr 04 17:35:55 just saying Apr 04 17:36:04 no, they were quite explicit about what they meant Apr 04 17:36:04 stork, hard to tell though if thats bc they're such great developers or because they are doing so much work in their app and the design is so absurd that they couldnt get by just doing things with the out-of-the-box API Apr 04 17:36:12 The delay is always going to be there Apr 04 17:36:37 I can't imagine anything legitimate that the fb app does that needs something special rewritten in android Apr 04 17:36:43 but I can imagine them doing it anyway Apr 04 17:36:50 anyone know any cool library or simple way to achieve this kind of thing, or even where id start if not? (the white boxes will have images in them) http://www.youtube.com/watch?v=Nmtso70JwwI&feature=youtu.be Apr 04 17:36:52 it was a pretty clear implication that they think android isn't good enough for the app that they wrote Apr 04 17:37:10 stork: or wasn't liberal enough Apr 04 17:37:13 To be fair, the framework widgets have to handle A LOT of use-cases.. Once your start having special requirements, it's often faster to just write your own Apr 04 17:37:25 http://www.facebook.com/notes/facebook-engineering/under-the-hood-rebuilding-facebook-for-android/10151189598933920 Apr 04 17:37:29 which i think is probably Dunning-Kruger on their part, having seen some of the posts on their dev blog Apr 04 17:37:38 im thinking it will be a lot of work to implement this sort of thing.. Apr 04 17:38:32 "moving from a hybrid native/webview to pure native code" you mean that? Apr 04 17:38:42 stork: heh it's facebook, what do you want Apr 04 17:39:06 obviously it is absurd at this juncture for something as complex as facebook to try to get away with using nothing but a webview Apr 04 17:39:10 i'd be okay if they either fixed their old app or stopped shit talking Apr 04 17:39:18 and even after they rewrote the facebook app in native code Apr 04 17:39:22 their new app, fyi, is a Launcher Apr 04 17:39:23 it's still a jumbled poc app Apr 04 17:39:32 is it possible to get the download progress when calling BitmapFactory.decodeStream(InputStream) ? Apr 04 17:39:33 and it's even sillier that they design a whole custom interface just to be rendered in a webview Apr 04 17:39:36 when they could design the interface natively Apr 04 17:39:52 if you want to use the new facebook you will have to replace your current android launcher. If you don't, well, I hope you enjoy webviews 'cause you'll be stuck with the old one. Apr 04 17:40:09 i guess this comes from the people that write PHP code Apr 04 17:40:13 and compile it to C Apr 04 17:40:34 you guys act like no one ever does dumb shit because its cost effective Apr 04 17:40:44 did anyone check out my video? :) wondering easiest way to do this sort of gui animation http://www.youtube.com/watch?v=Nmtso70JwwI&feature=youtu.be Apr 04 17:41:19 I had to explain to this woman at an office the other day why it doesn't matter that 15% of her work hours are wasted on entering things twice (two systems), because it would cost them $3000 to have *me* fix it, and I would charge a fraction of what anyone else would Apr 04 17:41:35 I bet she liked that. Apr 04 17:41:52 I said "look, they pay you by the hour. stop concerning yourself with how much of it is wasted because of decisions over your head" Apr 04 17:42:32 the real complaint is "my job is boring and I hate having to type instead of not type" Apr 04 17:42:37 someone's worried about a measly $3k to fix system redundany? Apr 04 17:42:57 oGMo: it's ab absolute no brainer... they could pay those women to work HUNDREDS of hours for the cost of me fixing it Apr 04 17:43:00 and by then there could be a new system Apr 04 17:43:04 or they could be out of business Apr 04 17:43:31 some people are penny wise and pound foolish, but this was not one of those cases Apr 04 17:43:42 and I dont think the facebook php->c thing was either Apr 04 17:44:04 the calculation is simple Apr 04 17:44:07 root66: a few hundred, at minimum wage (though i think i'm underestimating that), then they still have to fix the system, _and_ continue to pay hours while the work is being done Apr 04 17:44:13 sounds like someone can't do simple arithmetic Apr 04 17:44:17 crappy php devs come a dime a dozen Apr 04 17:44:25 maybe you get a good one in ten, keep him Apr 04 17:44:28 or her Apr 04 17:44:46 375 hours at $8/hr Apr 04 17:44:50 split between 2 women Apr 04 17:45:05 note, a work month is 160 hours Apr 04 17:45:15 so that's about 1 month for two people Apr 04 17:45:39 that's also a 40-hour week, assuming they don't have to pull overtime Apr 04 17:46:09 ok so they pay a month's wages in order to START recovering 10-15% of the following months Apr 04 17:46:27 which means it would take over a year for it to have been a wise decision Apr 04 17:46:33 that also assumes a 0% error rate and no extra time to recover from or detect errors from double-entry Apr 04 17:47:11 well first we are working on the assumption that they are not exaggerating how much of their time is wasted by typing in a name and address twice Apr 04 17:47:18 hey romainguy how psyched are you for for FB Home on a scale of one to ten :3 Apr 04 17:47:23 I believe 10-15% of their day "wasted" to be a gross exaggeration Apr 04 17:47:30 so it would really be more like 2-3 years to recover it Apr 04 17:47:34 apparently you've never done/observed data entry :p Apr 04 17:47:47 that bad huh? Apr 04 17:48:17 next we are assuming they hire me and not someone who does this for a living and is in/out in 2 days and charges $8-10k Apr 04 17:48:19 hunt and peck typing Apr 04 17:48:25 it's so painful to watch Apr 04 17:48:40 the fact they're sweating $3k to fix this kind of thing simply to make the lives of the data entry people easier means they're shitbags to start with and the data has little real value on top of it Apr 04 17:48:55 oGMo: no one is arguing that point Apr 04 17:48:57 I fully agree Apr 04 17:49:01 sonOfRa: not the good ones at all Apr 04 17:49:30 what on earth are you guys talking about? Apr 04 17:49:42 doing dumb shit because it is financially sound Apr 04 17:49:45 can we get back to android development? Apr 04 17:49:59 evanc: what're you working on and what's the problem? Apr 04 17:50:14 can we still bitch about the facebook announcement Apr 04 17:50:18 excuse me princess.. the analogy was about facebook Apr 04 17:51:05 i have a gui issue if anyones bored :) trying to make this http://www.youtube.com/watch?v=Nmtso70JwwI&feature=youtu.be Apr 04 17:51:24 I scrolled up and the last thing evan said was sacraficing chickens Apr 04 17:51:38 oGMo: working on getting #android-dev back on topic and the problem is you guys aren't :P Apr 04 17:51:46 Hello, i create a new activity from menu, but when i push the back button to return to previous activity i see that the listview is empty, why? Apr 04 17:52:21 gaz`: seems like you'll need some translate animations and some grow animations Apr 04 17:52:23 this doesn't appen when i start activity from button Apr 04 17:52:50 uragano2: pastebin the relevant bits of your code, please Apr 04 17:53:02 evanc, i see, whats the easiest way to start, not done anything like this in android? Apr 04 17:53:17 i had hoped there was some nice library to help me :) Apr 04 17:53:31 gaz`: the animation APIs Apr 04 17:53:43 yeh Apr 04 17:53:46 ok Apr 04 17:53:56 bet its not gonna be easy Apr 04 17:54:43 uragano2: I might be in the monirity, but I wouldnt recommend using separate activies for everything especially if you are dealing with lists, forms, etc Apr 04 17:54:47 *minority Apr 04 17:55:09 I show and hide views unless its a preference screen or something Apr 04 17:59:33 i sent a patch to gerrit about a month ago. is it ever going to get reviewed? Apr 04 18:00:52 evanc: relevant code http://pastebin.com/sYMFA2fx Apr 04 18:02:10 how do you inflate a view from a layout resource? Apr 04 18:02:24 why could I get a NullPointerException when doing findByViewId on an layout element that exists and is well reference in the generated R resource class ? Apr 04 18:03:01 toxie: LayoutInflater Apr 04 18:05:27 http://pastebin.com/ZyzvPiiT why is getSupportFragmentManager undefined? Apr 04 18:05:48 ari_aaron: because you need to extend FragmentActivity Apr 04 18:05:52 root66: ok, but i want to know why this happen :) why does it happen if i start activity from menu, but it doesn't if i start activity from button? Apr 04 18:06:42 so i make my main activity extend fragmentactivity instead of extend activity? Apr 04 18:07:25 is it possible to reconfigure widgets on long click? Apr 04 18:07:47 I've seen a bunch of widgets having a configure symbol in a corner, but I don't want that Apr 04 18:09:03 Quacked: no Apr 04 18:09:10 uragano2: what do you mean "start activity from bottom"? Apr 04 18:09:15 Quacked: long-press is how the user moves/deletes widgets Apr 04 18:09:20 ari_aaron: yes. Apr 04 18:09:46 uragano2: you are probably launching the intent with the wrong flags set, or not recycling an intent properly, so its creating a new one each time Apr 04 18:09:53 evanc: yeah, but what about the options you get when you long press, such as "delete", depending on the launcher you use Apr 04 18:10:07 evanc: is that only set by the launcher or can I add stuff there? Apr 04 18:10:22 if you long press and let go I mean Apr 04 18:10:52 Quacked: that's all controlled by the launcher. You cannot know that your widget was even long-pressed Apr 04 18:11:23 evanc: thanks! Apr 04 18:11:24 makes sense, just a pal that said he thought hed seen it in a widget Apr 04 18:12:04 Quacked: if he's got an example, I'd love to see it Apr 04 18:13:06 he didnt have any widgets with that now ;) Apr 04 18:14:43 So I'm getting a NetworkOnMainThread excpetion. Tried to do a work around by having a different class handle Http Client stuff and then have a variable reference that method in the main activity but it still is complaining. Can I really not have any http in the Main Activity Apr 04 18:16:27 MainThread not MainActivity Apr 04 18:16:34 anyone ever use a ListView as a custom view added to the ActionBar? Apr 04 18:16:52 Why would you do that ;O Apr 04 18:17:06 "it's just crazy enough to work!" - nobody, ever. Apr 04 18:17:44 SimonVT_, i dunno..cuz i cant get the damn thing to look exactly the way i want Apr 04 18:17:49 keep in mind this is a left nav bar Apr 04 18:17:51 for a tv app Apr 04 18:18:33 SimonVT: oh right. So what's a NetworkOnMainThread exception Apr 04 18:18:47 I'm resizing the text size in my widget when it's on lockscreen like this: http://pastebin.com/3St8t3Fk . But is there a better way to do this? :) Apr 04 18:18:49 SimonVT_, is there a better way? Apr 04 18:19:36 I have no idea how android looks on a tv :p Apr 04 18:20:01 hook it up with hdmi! Apr 04 18:20:03 in any event im grabbing this custom view but i cant seem to get my onitemclick to get called on the listview Apr 04 18:20:09 i still need to try that Apr 04 18:20:31 coco89, it's kinda in the name Apr 04 18:20:46 would it keep the phones resolution and scale it up? or would it use the tv's resolution? Apr 04 18:20:52 SimonVT: lol Apr 04 18:20:56 Guys, i'm doing training at d.android.com and wondering about preferences. My question is does getPreferences() is private for another activity in same App ? Apr 04 18:21:54 I dunno about Preferences' privacy concept in Preferences. Pri Apr 04 18:22:08 private for the activity https://developer.android.com/reference/android/app/Activity.html#getPreferences(int) Apr 04 18:22:14 SimonVT: but i've been following a tutorial step by step and I don't see why i'm getting this error Apr 04 18:22:25 LuxuryMode, so did you give up on using my sbt plugin? Apr 04 18:22:28 *I dunno about Preferences' privacy concept. Whether it for another activity in same app or private for another app. Apr 04 18:23:02 coco89, do you know what the main thread is? Apr 04 18:23:21 SimonVT: Activity? Apr 04 18:23:29 :( Apr 04 18:23:35 Yeah, google it Apr 04 18:23:36 :( Apr 04 18:23:37 f2prateek: Thanks, so, if I wanna put my key-value pairs accessible from another activity in same app I should use SharedPreferences? Apr 04 18:23:37 lol Apr 04 18:23:38 ok Apr 04 18:24:12 xviv: use https://developer.android.com/reference/android/preference/PreferenceManager.html#getDefaultSharedPreferences(android.content.Context) Apr 04 18:24:38 f2prateek: Thanks a lot! gonna try it... Apr 04 18:26:14 root66: I followed your advice anyway, thanks :) Apr 04 18:26:47 hmm Apr 04 18:27:26 I have an AsyncTask that issues an HTTP request, and parses the response; the first task (on activity startup) seems to be okay, but the others block on issuing the http request Apr 04 18:28:17 "the others block" what are the others? Apr 04 18:28:36 well, the app is a series of buttons that issue a call to a service class Apr 04 18:28:50 by defaults, on ics+, asynctasks run serially Apr 04 18:29:14 yeah, but the first one should be completing fully Apr 04 18:29:22 I suppose that's a worthwhile thing to check though Apr 04 18:29:29 pfn, sadly yes Apr 04 18:29:35 i havent done a ton of scala stuff recently Apr 04 18:29:41 but had better luck with the other plugin Apr 04 18:29:43 LuxuryMode, why the change? no idea integration? Apr 04 18:29:53 uh there were other issues as well Apr 04 18:29:54 or was it the desire to use apklibs Apr 04 18:30:03 no not apklibs, just other issues Apr 04 18:30:11 honestly cant even remember exactly at the moment Apr 04 18:30:15 ok Apr 04 18:30:36 mainly getting library projects and their dependencies working…i think... Apr 04 18:30:44 intellij may have had a little to do with it as well Apr 04 18:30:51 I thought you managed to figure that out, the library projects stuff Apr 04 18:30:58 but it's more likely the intellij stuff Apr 04 18:32:01 so what's facebook home, the new facebook native app? Apr 04 18:32:25 as far as I could tell from watching the keynote, yeah. Apr 04 18:32:31 and it is quite refreshing to be able to write an app for a big client that is ics+ only Apr 04 18:32:34 pfn: another facebook native app Apr 04 18:33:36 Android just won mobile Apr 04 18:34:07 it's blocking on getResponseCode(), which is funkified Apr 04 18:36:10 "just won mobile" ? Apr 04 18:36:27 evanc, make the higher ups at google open a contest for the opportunity to buy tickets to IO again Apr 04 18:36:30 * pfn pokes Apr 04 18:36:33 yeah, everyone is going to ditch the other platforms Apr 04 18:36:42 and go to android cause of facebook Apr 04 18:36:47 heh Apr 04 18:36:48 facebook should create their own widget store Apr 04 18:37:07 oh god please no Apr 04 18:37:30 I'm still a bit incredulous.. they haven't managed to make an app that doesn't such majorly, now they're releasing a launcher? Apr 04 18:37:52 it's typical developer narcissism Apr 04 18:37:55 as a user, I'm relatively pleased with the facebook app Apr 04 18:38:01 everyone thinks their app is the only one anyone needs Apr 04 18:38:16 so why not make it into the whole UI? Apr 04 18:38:18 I'm appalled by it Apr 04 18:38:23 considering some random statistic said people spend half of their time in facebook... Apr 04 18:38:31 that's somewhat true in facebook's case Apr 04 18:38:38 it will flop hard. you heard it here first Apr 04 18:39:16 yeah pfn, im gonna take a look again if i get back to some android scala stuff Apr 04 18:39:34 LuxuryMode, it works well for android java stuff, too :p Apr 04 18:39:48 LuxuryMode, that's actually my primary use-case for my sbt plugin Apr 04 18:39:54 since 90% of my work is java-based android projects Apr 04 18:40:07 only 10% of it is my own that's in scala Apr 04 18:40:23 LuxuryMode, so for me, retaining compatibility with eclipse and ant users is pretty high Apr 04 18:40:46 pfn, right but i have very little interest in tinkering with build systems and especially not SBT and plugins, etc when e/t else just works when I'm doing straight java Apr 04 18:40:52 right, i hear that Apr 04 18:41:37 is it possible to have more than one element in my manifest, pointing to the same App Widget Provider? i have multiple broadcasts that I want it to listen to, some of which I want protected by a permission and some (APPWIDGET_UPDATE, specifically) that i don't. Apr 04 18:42:31 well. this is very odd. First http request goes through, subsequent ones... block on getting the inputstream, it looks like Apr 04 18:43:47 tophyr: i don't think so, but why dont you try it? Apr 04 18:43:50 and report back Apr 04 18:44:30 am I right in saying that the SIP 'api' in android isn't really a sip api, just a really high level sip client for initiating calls via a gateway? Apr 04 18:44:41 pretty much Apr 04 18:44:42 mikedg_: doing so now heh Apr 04 18:45:33 lame. looks like I have to learn C, then Apr 04 18:45:46 pfn: does asynctask have a specific marker for doneness? Apr 04 18:45:59 nope, doesn't work. Apr 04 18:46:15 dreamreal, not particularly, once your doInBackground returns, I suppose Apr 04 18:46:45 dreamreal, check the stacks of your asynctask threadpool to see where your task is stuck Apr 04 18:47:56 how do I do that? Apr 04 18:48:05 launch ddms Apr 04 18:48:11 and request the thread stack for your app Apr 04 18:52:34 can i use a spinner in a dialogfragment? Apr 04 18:52:47 i dunno, can you? Apr 04 18:52:58 pfn: it's definitely going into never-never land on connection.getInputStream() Apr 04 18:53:12 it created a new thread ("AsyncTask #2") and executed up to that point Apr 04 18:53:14 it says findViewById is undefined. it can only be in a activity or fragment Apr 04 18:53:26 dreamreal, so fix your request so that it responds :p Apr 04 18:53:34 dreamreal, or enable concurrent asynctask execution Apr 04 18:53:37 ari_aaron: thats a method of a view Apr 04 18:53:38 depending on your needs Apr 04 18:53:41 dialog has a findViewById method Apr 04 18:54:06 so what should i use? Apr 04 18:54:22 eg. myRootViewThatIsControlledByWHateverImusing.findViewById() Apr 04 18:54:39 http://pastebin.com/JRJLcPVz Apr 04 18:54:43 Please help me think a bit here. I'm resizing the text size in my widget when it's on lockscreen like this: http://pastebin.com/3St8t3Fk . But the first time the widget is created, the widget is in small mode, but the text is not resized. Theres just some logic missing :P Apr 04 18:55:37 If I change between small view and large view its working fine. So it's because the storedMaxHeight is 0 in the beginning Apr 04 18:56:24 I have this layout which is filled with other views like buttons and etc; I want to resize it but as long as it's full it seems I can't resize it. Is there anyway? to push buttons inside( just imagination :D!) somehow and resize the layout? Apr 04 18:56:31 pfn: well, I'll be darned to heck Apr 04 18:56:52 StingRay_: how do i referance it? just the class name is not working? Apr 04 18:57:06 ari_aaron: reference what ? Apr 04 18:57:08 Spinner spinner = (Spinner) HomeScreen.findViewById(R.id.spin_masechta); Apr 04 18:57:30 pfn: okay, this is very odd: I can issue the requests from a browser, with no concerns Apr 04 18:57:33 I want to reduce layout's width, while it's full and wrapped the content inside it. Apr 04 18:57:41 ari_aaron: and where are you wanting to reference that ? Apr 04 18:57:46 and where is it ? Apr 04 18:57:52 http://pastebin.com/JRJLcPVz Apr 04 18:58:11 yeah Apr 04 18:58:15 there is no spinner here ? Apr 04 18:58:17 it's in a dialogfragment. and you said i need to referance the main activity Apr 04 18:58:19 in ths dialog Apr 04 18:58:50 btw this layout is a horizontal scroll view. Apr 04 18:58:54 it's just a dialog from AlerDialog builder Apr 04 18:59:10 http://pastebin.com/sqs0Jyt8 here's what i have now Apr 04 19:00:00 R.layout.dafpick_dialog <--- its in that layout ? Apr 04 19:00:06 oh wow, green Apr 04 19:00:08 :) Apr 04 19:00:13 yah Apr 04 19:00:27 what does builder.create() return you ? Apr 04 19:00:43 as in the return type ? Apr 04 19:00:49 I'm having nullPointerException. Am I using sharedpreferences in a wrong way? http://tny.cz/31a7fca0 Apr 04 19:00:52 dreamreal, that's something for you to figure out :p Apr 04 19:01:10 dreamreal, a hanging request can be any number of things Apr 04 19:01:14 a DialogFragment Apr 04 19:01:20 no Apr 04 19:01:26 my oculus rift shipped Apr 04 19:02:06 ? Apr 04 19:02:28 is this a custom dialog you want ? Apr 04 19:02:35 yh Apr 04 19:02:45 cause dialogFragment is a nice housing for anything you want Apr 04 19:02:53 you dont need dialog builder Apr 04 19:03:01 as in just inflate whatever you want Apr 04 19:03:21 myRootView = inflate(R.layout.anything); Apr 04 19:03:37 myRootView.findViewById(anything); Apr 04 19:03:48 return myRootView Apr 04 19:03:49 ah, i see. Apr 04 19:04:04 so builder is only for the basic dialogs Apr 04 19:04:06 as log as you return the root view to the fragment manager at the end Apr 04 19:04:10 it dont care really Apr 04 19:04:18 ari_aaron: yeah Apr 04 19:04:20 and i create the buttons myself in the xml? Apr 04 19:04:22 I never use it Apr 04 19:04:46 indeed Apr 04 19:04:50 and inflate yourself Apr 04 19:04:58 ok, thanks Apr 04 19:05:05 and from you inflated view findViewById Apr 04 19:05:12 and at the end return you root view Apr 04 19:05:19 well thats what I would do neways Apr 04 19:05:28 disclaimer : I'm not a programmer Apr 04 19:05:31 :) Apr 04 19:05:47 wow. i wonder what a programmer would know :) Apr 04 19:06:04 dunno there are a few in here Apr 04 19:06:33 what is the resorse type for the view? Apr 04 19:07:13 you mean an int pointer to R ? Apr 04 19:07:38 when i do myRootView = inflate(R.layout.dafpick_dialog); Apr 04 19:07:42 I need to save a simple variable to retain after an orientation change? Do I do this in onPause? Apr 04 19:07:51 whats the root view of that xml ? Apr 04 19:07:54 anything you want Apr 04 19:07:56 Hey everybody, what can cause this error: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. Apr 04 19:08:00 whywhywhy: onsavedinstancestate Apr 04 19:08:14 pfn: this will be fun to solve :/ Apr 04 19:08:16 icehaunter: you added a view to two layouts Apr 04 19:08:18 View, ViewGroup or specific Relative Liniear etc Apr 04 19:08:23 root view? Apr 04 19:08:36 mylayout.xml Apr 04 19:08:44 will have 1 view at the root Apr 04 19:08:47 that can be anything Apr 04 19:08:51 frameLayout Apr 04 19:08:54 linLayout Apr 04 19:08:59 relative etc Apr 04 19:09:20 Hmm Apr 04 19:09:40 so if you want to use exact typecast, create and instance of that type to return from inflate Apr 04 19:10:05 normally in my dialogs I use linLayout unless it's something complex, then relative Apr 04 19:10:11 but I cast to ViewGroup neways Apr 04 19:10:33 ok Apr 04 19:11:03 I'm now offically not a fan of inflate Apr 04 19:11:28 and I'm attempting to cut down on my use of any XML things Apr 04 19:11:55 but i need inflate to put the xml into the dialog Apr 04 19:12:08 or Apr 04 19:12:09 i'm still confused http://pastebin.com/kJ4AxfBh Apr 04 19:12:39 xml: http://pastebin.com/fC2rAnpU Apr 04 19:13:03 that looks fine Apr 04 19:13:44 I'm having nullPointerException. Am I using sharedpreferences in a wrong way? http://tny.cz/31a7fca0 Apr 04 19:13:59 the arguments on inflate are wrong Apr 04 19:14:42 StingRay_: Can you try and estimate, my error would be from OnCreate(), one of the fragments or an adapter? because I looked thru anything view and layout related and it looks just fine... Apr 04 19:15:07 inflater.inflate(mylayout, container, false); Apr 04 19:15:23 container being the input container from fragment manager Apr 04 19:15:44 so use onCreateView Apr 04 19:16:05 since your using the fragment view directly Apr 04 19:16:20 override onCreateView with what you have there Apr 04 19:16:33 and use those params in inflate Apr 04 19:16:57 I do use OnCreateView() on both fragments Apr 04 19:17:02 onCreateView of what? Apr 04 19:17:11 dialogFragment Apr 04 19:18:59 http://pastebin.com/2E1uQTjq Apr 04 19:19:03 like thus Apr 04 19:20:05 I have a list that's initialized at oncreate. I'm saving data to it. I save the list in onSaveInstanceState and restore it onRestoreInstanceState. How do I stop it from reinitializing in oncreate? Apr 04 19:20:27 icehaunter: should say in the strace Apr 04 19:21:28 thanks! Apr 04 19:21:49 one last thing: createFromResource needs a context for the first variable. the example had it as "this" Apr 04 19:25:26 StingRay_ : it does NOT point me to any part of my code Apr 04 19:25:55 Only exception points at android libs Apr 04 19:26:29 icehaunter: pastebin your stacktrace please Apr 04 19:26:31 icehaunter: see the topic Apr 04 19:26:37 to wit, the last link Apr 04 19:27:45 http://pastebin.com/S1G2jgib Apr 04 19:28:21 erm Apr 04 19:28:49 i kinda tells you on the 1st line Apr 04 19:28:53 ._. Apr 04 19:28:56 eh Apr 04 19:29:00 The specified child already has a parent. You must call removeView() Apr 04 19:29:22 Yeah.. Apr 04 19:29:26 as in your parenting a view, or something is, where the view is already attached and has a parent Apr 04 19:29:27 I kinda get that Apr 04 19:31:04 anybody here ever work with webservices over https with cert auth in android? Apr 04 19:32:38 icehaunter: and I it also gives you an indication as to what/where if you read what is throwing this error Apr 04 19:32:48 as in the actual trace path Apr 04 19:33:11 StingRay_: what's my Context? Apr 04 19:33:30 a programmer in a bedroom who smokes to much ? Apr 04 19:33:43 in what btw ? Apr 04 19:33:48 your dialog ? Apr 04 19:33:58 the code you gave me before :) Apr 04 19:34:38 oh well you can get context lots of ways Apr 04 19:34:40 http://pastebin.com/RdbV5ShC Apr 04 19:34:42 getActivity() Apr 04 19:34:43 this Apr 04 19:34:59 depends what context you want really Apr 04 19:35:02 this is not working. because it's a dialogframent maybe> Apr 04 19:35:06 StingRay_: sorry for dumb question, but where does it point at the error? I looked thru my code.. seems ok Apr 04 19:35:36 icehaunter: well I dont read st all that well but looks like a viewPager thing Apr 04 19:35:41 getActivity() works, thanks! Apr 04 19:36:12 another disclaimer : I'm still not a programmer, and I just woke up Apr 04 19:37:33 hrhr Apr 04 19:38:06 Ok Apr 04 19:39:17 if I want my app to use the holo theme on newer android versions, but not on older ones, is there a quickfix without integrating holoeverywhere or abs? Apr 04 19:39:20 icehaunter: 1 way to possibly look at it, is there anywhere where you are fighting against the grain of normality, where you attach/add a view ? Apr 04 19:39:43 also where does it happen ? you could just attach the debugger and walk through it Apr 04 19:40:37 Ge0rG, extend holo in values-v11, don't in values Apr 04 19:41:01 Please help me think a bit here. I'm resizing the text size in my widget when it's on lockscreen like this: http://pastebin.com/3St8t3Fk . But the first time the widget is created, the widget is in small mode, but the text is not resized. Theres just some logic missing :P If I change between small view and large view its working fine. So it's because the storedMaxHeight is 0 in the beginning. Apr 04 19:41:02 finally worked out what i need and its by jake wharton again lol Apr 04 19:41:39 the ubiquitous JW Apr 04 19:41:50 SimonVT_: I thought there might be some global setting that automatically changes the default theme... Apr 04 19:42:41 Well yeah, if you don't specify any theme at all it'll use holo Apr 04 19:42:50 (As long as your targetsdk is at an appropriate level) Apr 04 19:44:03 SimonVT_: ah, thanks. is this affected by the project.properties value or the targetSdkVersion in the manifest? Apr 04 19:44:24 targetsdk Apr 04 19:44:40 Your build target is only relevant to your compiler Apr 04 19:44:43 OK, I have got simply no idea Apr 04 19:44:43 It changes nothing at runtime Apr 04 19:44:45 anyone using HoloEverywhere +SlidingMenu ? Apr 04 19:45:13 I've looked at this over and over and I can't think of a good way to do it :P I think its easy to spot Apr 04 19:45:45 icehaunter: when does it occur ? Apr 04 19:46:09 and with what ? Apr 04 19:46:18 find those 2 and then your sorted Apr 04 19:46:20 Right at the start Apr 04 19:46:41 I am quite aware of what I need to be looking for Apr 04 19:46:47 why do java developers wear glasses? Apr 04 19:47:00 Because fuck you, that's why Apr 04 19:47:11 because they don't see sharp Apr 04 19:47:29 java causes cataracts Apr 04 19:47:31 icehaunter: so when you say you have simply no idea thats wrong then :) Apr 04 19:48:25 The thing is, I placed a breakpoint right at the start of each class. It only passes the one at the MainActivity start. Does not even reach OnCreate of MainActivity Apr 04 19:50:47 If someone has a few seconds to spare, please have a look at http://pastebin.com/3St8t3Fk and see if you can find out how I can make the sysout("small view") trigger on first run instead of "large view" Apr 04 19:51:20 or perhaps my method is just stupid :P Apr 04 19:53:12 It's the only thing that remains before I can publish my widget update Apr 04 19:53:24 O_O Apr 04 19:53:29 Quacked: query the size somewhere else (when you're initially drawing the widget) Apr 04 19:53:42 Quacked: this is waiting until the size changes Apr 04 19:54:14 I need the size when it changes. You know for the small view on lockscreen Apr 04 19:54:17 According to breakpoints, it just skips these 2 lines: Apr 04 19:54:19 ViewPager mViewPager; Apr 04 19:54:50 evanc: if view is small then I set text size small, if view is expanded then text is large Apr 04 19:55:22 evanc: onAppWidgetOptionsChanged triggers the first time widget is created Apr 04 19:57:08 Quacked: does it? I thought it only trigger when, you know, the size changes Apr 04 19:57:18 Ok Apr 04 19:57:22 Quacked: what's the order? does it trigger after the widget is created? Apr 04 19:57:31 evanc: but it outputs "large view" the first time its created and the widget is created in small view Apr 04 19:57:57 (my widget that is) Apr 04 19:57:58 Good night or whatever you have there. I will sort it out tomorrow. Good luck to everyone Apr 04 19:59:56 evanc: I tested a sysout onupdate. Twice it posted onupdate, then the large view and then onupdate again Apr 04 19:59:59 Quacked: I think I'd need to see your onUpdate to understand what's going on here Apr 04 20:01:22 its long but its just the same code over and over for every button: http://pastebin.com/Fj6ey7vG Apr 04 20:02:01 holy fuck Apr 04 20:02:13 * Quacked hides Apr 04 20:02:27 Quacked: holy shit, do I need to teach you what a method is? Apr 04 20:02:38 hnngh Apr 04 20:02:38 I will clean it later :D Apr 04 20:02:48 :D Apr 04 20:04:34 JakeWharton: ping Apr 04 20:04:42 DEATH Apr 04 20:05:02 JakeWharton: sorry to bother you, but I was curious about the wake lock permissions in spoon. Apr 04 20:05:23 there's a comment on it that tells you what it's for Apr 04 20:05:24 JakeWharton: are you really removing keyguard and wake lock before pushing apps to prod? Apr 04 20:05:38 no, we use manifest filtering so they're only enabled on development versions Apr 04 20:05:45 ok Apr 04 20:05:55 Quacked: seems like you should make use of this in your onUpdate flow, meaning you don't have to wait for onBlahBlahOptionsChanged: AppWidgetManager.getInstance(context).getAppWidgetOptions(appWidgetId) Apr 04 20:06:17 i figured always having them and a comment was easier Apr 04 20:06:28 JakeWharton: thanks, I've never heard of that kind of filtering, but I at least have something to google now Apr 04 20:06:28 Quacked: have you considered that computers are very good at distilling repetative things into a short sequence of instructions that can be run over and over again? Apr 04 20:07:12 lov: yes yes yes, :P I just copied it from a small widget :) Apr 04 20:07:44 yes, it's pretty apparent that you copied it. Apr 04 20:07:46 and then you pasted. Apr 04 20:07:47 a Apr 04 20:07:48 lot Apr 04 20:07:52 hehe Apr 04 20:07:55 ctrl-alt-down Apr 04 20:08:01 times 16 Apr 04 20:08:29 it was a test, and then it worked, and I havent fixed it yet Apr 04 20:08:56 evanc: what do you mean? Apr 04 20:09:38 get the max height in onupdate and store it there? Apr 04 20:10:00 Quacked: I don't know why you're even storing it at all Apr 04 20:10:11 you can read your widget sizes whenever you want; it's a free operation Apr 04 20:10:15 me neither, it was the only thing I could think of Apr 04 20:10:38 onAppWidgetOptionsChanged should just call AppWidgetManager#updateAppWidget(appWidgetId) Apr 04 20:11:32 and do the if (isKeyguard) in onupdate you mean? Apr 04 20:13:15 but how do I check if the view is in small view or large view? Apr 04 20:13:25 Quacked: look at the size of the widget Apr 04 20:13:39 yeah, but AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT should vary between all devices Apr 04 20:13:41 AppWidgetManager#getAppWidgetOptions(int) will get you a bundle. Read that Bundle to see the sizes Apr 04 20:14:26 Quacked: yeah, but just scale it based on buckets. if (widgetHeight > 200) { drawBigishWidget(); } Apr 04 20:15:00 bryanl: it's only supported by the Gradle build system, or if you just roll it yourself. We do it ourselves with a custom maven plugin Apr 04 20:15:17 widgetHeight wont be more than 200 in small mode on high resolution devices? Apr 04 20:15:28 JakeWharton: i'm just going to roll it myself until the new Gradle stuff is stable. Apr 04 20:15:43 JakeWharton: thanks for the pointers and for spoon, i've already gotten some use out of it Apr 04 20:15:49 sweet! Apr 04 20:15:56 spoons aren't supposed to be pointy Apr 04 20:16:39 stork: you should /nick spork Apr 04 20:17:01 Quacked: I don't know; do some testing. You get the values in dips so the resolution bucket won't matter Apr 04 20:17:04 don't be a square Apr 04 20:17:13 Quacked: I think if it's wider than it is tall, you can assume it's in small mode Apr 04 20:17:27 Quacked: alternatively, look at what DashClock does Apr 04 20:17:46 I couldnt figure out what dashclock did :P Apr 04 20:18:59 this is dashclock widgetprovider: http://code.google.com/p/dashclock/source/browse/main/src/com/google/android/apps/dashclock/WidgetProvider.java Apr 04 20:20:35 Quacked: man, I already see some improvements to make to this, haha. I should submit a patch. Apr 04 20:20:48 :D Apr 04 20:22:51 that "wider than it is tall" was a good tip Apr 04 20:22:53 Quacked: boom! https://code.google.com/p/dashclock/source/browse/main/src/com/google/android/apps/dashclock/render/DashClockRenderer.java#98 Apr 04 20:24:14 did code.google.com just break? Apr 04 20:24:46 link no workie and I cant open anything else of the source anymore Apr 04 20:26:20 any tips for doing a multi state listview? so it can be either in the 'loading', 'load_failed', or 'done' state - with different views for each (the last one being the actual listview itself) Apr 04 20:26:23 Quacked: works for me Apr 04 20:26:25 works again Apr 04 20:26:29 should I wrap it in a ViewFlipper and just show the appropriate child? Apr 04 20:27:49 evanc: your idea was cooler than that one though Apr 04 20:28:26 Quacked: that's basically doing the same thing Apr 04 20:28:38 just checking a min height; I suggested that as well as landscape mode Apr 04 20:29:01 yeah Apr 04 20:29:30 but there you go, venture forth Apr 04 20:29:38 * Quacked dances Apr 04 20:29:39 thanks Apr 04 20:29:49 oh, and clean up that code while you're at it Apr 04 20:29:54 hehe, yeah Apr 04 20:30:21 stork: you can use types Apr 04 20:30:35 I'm just about to implement the same thing ish Apr 04 20:30:44 'types' ? Apr 04 20:30:48 getType() Apr 04 20:31:02 will fetch and create a new recyclable set of views Apr 04 20:31:12 well no that wont return/fetch Apr 04 20:31:17 but you get my point Apr 04 20:31:29 could be getViewType() Apr 04 20:31:35 ohh right Apr 04 20:31:47 I was thinking about states for the whole list - not individual items Apr 04 20:31:48 not got to it yet, but I'm gonna do same thing in a few hours Apr 04 20:31:56 oh Apr 04 20:32:12 what state would affect the WHOLE list and it's items ? Apr 04 20:32:29 whether or not the list items have loaded :) Apr 04 20:32:45 sure thats betton on a per item basis ? Apr 04 20:33:23 just put the ListView in a FrameLayout with sibling loading/error states; then show a single one at a time Apr 04 20:34:09 isn't that essentially the same as a ViewFlipper (but I get pretty animations done for me)? Apr 04 20:38:15 I thought (probably incorrectly) that ViewFlipper could only have two children Apr 04 20:38:28 ViewSwitcher has two children I think Apr 04 20:38:34 * evanc | Simple ViewAnimator that will animate between two or more views that have been added to it. Apr 04 20:39:12 (that's ViewFlipper) Apr 04 20:39:24 yeah, ViewSwitcher is just 2. Good call. Apr 04 20:50:22 Hi, quick question: when I ran "adb shell", the shell wraps my commands after i write more that 80 characters, is there any way to change that ? Apr 04 20:50:46 here's a nickel, get a better shell. Apr 04 20:50:51 (by default no) Apr 04 20:51:10 =( Apr 04 20:52:21 what silly command are you trying to use that is longer than 80 characters? Apr 04 20:52:33 anyone know an easy way to generate a unique file name in the internal cache dir? Apr 04 20:52:47 maybe use UUID? Apr 04 20:54:39 timestamp ? Apr 04 20:54:42 in millis Apr 04 20:54:45 HorizonXP: you could append the date and time (including microseconds) to the file Apr 04 20:54:53 HorizonXP: UUID Apr 04 20:57:23 yeah, gonna try UUID.randomUUID.toString() Apr 04 20:58:44 I've been writing this app, and I really don't like the architecture i'm using... I'm trying to get real-time data over bluetooth, do minimal processing of the data, and display it on the screen. I absolutely do not want to miss any data that is sent over the link. How do I accomplish this? A service doesn't feel right to me, but I might not be thinking correctly. An Asynctask wouldn't be suitable because I want a steady stream of data instead of Apr 04 20:58:45 intermittent results... Apr 04 20:59:03 Which event handlers should I use on a listview to detect a selected item on that list? Apr 04 20:59:06 I'm very new at this and I need to finish this in less than 1 month Apr 04 20:59:22 Also what is the function signature of that handler? Apr 04 20:59:31 hesperaux, a service is a lifecycle management tool Apr 04 20:59:53 and if your application has a lifecycle that extends beyond the visibility of your activity on-screen Apr 04 21:00:02 having a service is absolutely the right approach Apr 04 21:00:31 pfn, but I want the service to spawn threads to do the real time capture, correct? I only want the service to dispatch actions? Apr 04 21:00:51 hesperaux, any background processing must be done in separate threads, yes Apr 04 21:00:56 the service itself doesn't do anything Apr 04 21:01:05 it's just a lifecycle management mechanism Apr 04 21:01:41 as for making sure your activity does not miss any data Apr 04 21:01:52 implement a simple queuing+polling+notification system Apr 04 21:02:18 send a broadcast event upon new data, and the activity polls and empties the queue of data upon receipt of the broadcast Apr 04 21:02:39 pfn, the data will be integer streaming at 115200bps. I'm scared that however I store it, it will blow up in my face. Should I be concerned? Apr 04 21:02:40 synchronize stuff as necessary to make sure it does the right thing Apr 04 21:02:54 hesperaux, rate-limit the data as appropriate Apr 04 21:03:06 you only really need to re-render "realtime" data every .5 to 1s Apr 04 21:03:20 that's true Apr 04 21:04:53 pfn, how would you store such a data stream? I would like to save the incoming stream, as well as access it Apr 04 21:05:31 that depends, maybe consider something rrd-like Apr 04 21:06:06 i'm familiar with the tool, but not with its implementation. has that been done on android before? Apr 04 21:06:20 a google search indicates there's an rrd4j Apr 04 21:06:38 lol, wow Apr 04 21:07:41 awesome Apr 04 21:08:08 would this work if I added it to my android project? Apr 04 21:08:17 dunno, that's for you to figure out Apr 04 21:08:22 heh Apr 04 21:08:24 fair enough Apr 04 21:12:38 i am going to lie awake at night wondering if the design decisions i have made are the correct ones Apr 04 21:12:53 lol i did that last night xD Apr 04 21:13:00 a severe case of 'perfectionist engineer syndrome' Apr 04 21:13:12 i woke up at 2AM and started thinking about Handlers and Loopers Apr 04 21:13:27 stork want an opinion from a designer ? Apr 04 21:13:29 i think i came up with something good, but i decided to sleep instead of remember it Apr 04 21:13:38 hesperaux: stay away from hearing about HandlerThread. Oops, too late. Apr 04 21:13:44 granted not a very good one :) Apr 04 21:14:08 evanc, HandlerThread? is it a good thing or a bad thing? lol Apr 04 21:14:21 hmm Apr 04 21:14:22 sure StingRay_ Apr 04 21:14:27 hesperaux, it's a convenience Apr 04 21:14:28 neither Apr 04 21:14:32 hesperaux: it'll give you more to think about at 2am Apr 04 21:14:35 where did sdklib source code go? it was removed from sdk/sdklib with a comment that its now being pulled from prebuilts Apr 04 21:14:37 lol Apr 04 21:14:39 if you want to start a thread for use with a Handler, then use HandlerThread Apr 04 21:14:49 jasta: probably a different branch? Apr 04 21:15:03 err, i don't think so? Apr 04 21:15:12 good to know; thanks for the tip Apr 04 21:15:23 kinda looks like it was just simply deleted? Apr 04 21:17:18 if I have a Camera object, how might I get its CameraInfo so that I can determine its orientaiton? Apr 04 21:17:19 oh here we go. i think it may have landed in tools/base. Apr 04 21:17:27 there it is. Apr 04 21:17:33 jasta: nice Apr 04 21:18:14 there's a bug in it that performs badly on my shitty ecryptfs set-up Apr 04 21:18:27 doesnt use a bufferedoutputstream with zipoutputstream, causing hundreds of thousands of 1 byte write syscalls Apr 04 21:18:36 err sorry, apkbuilder does this Apr 04 21:18:47 HorizonXP: Camera#getCameraInfo ? Apr 04 21:19:08 evanc: that takes an integer as a camera ID Apr 04 21:19:18 HorizonXP: you had to have the integer to open the camera Apr 04 21:19:20 I don't have that value, I'm just being passed the Camera object Apr 04 21:19:21 no? Apr 04 21:19:24 "INSERT INTO table (key,count) VALUES('x',1) ON DUPLICATE KEY UPDATE count=count+1;" <= is this possible in 1 query? Apr 04 21:19:24 ah, hm Apr 04 21:19:25 yeah you do Apr 04 21:19:47 and i technically have control over the code for that Apr 04 21:20:05 but I'm trying to compartmentalize it so that I can ship this as a "library" Apr 04 21:20:37 currently, my thought is that I need to modify the function call to pass in the camera ID Apr 04 21:20:47 but I'm hoping to avoid that Apr 04 21:22:18 evanc: I think I'm SOL, I don't think I can do what I want to Apr 04 21:23:08 HorizonXP: yeah, I think you are too. I don't see any way to do it Apr 04 21:23:11 that's annoying Apr 04 21:25:37 What is a good onClick handler example for ListView?' Apr 04 21:26:20 evanc: yeah, CameraInfo should be associated with a Camera object. It shouldn't be static. Apr 04 21:27:23 i kinda wish services were not singletons unless specified. i keep running into the scenario where i have multiple independent but identical services that need to run; trying to have one artificial android service babysit the lifecycle of the subservices is messy Apr 04 21:28:16 kinda like how an executor can have a thread policy, a service policy. (each intent either starts a new one, or goes to an existing one) Apr 04 21:30:13 huh? Apr 04 21:30:34 that really doesn't make sense Apr 04 21:31:46 a service isn't a generic container for "work" Apr 04 21:32:28 on BB 10 i can just start N processes and just talk to them, thats much better Apr 04 21:33:16 what exactly are you trying to accomplish? Apr 04 21:33:24 you can just as easily start N threads and just talk to them Apr 04 21:33:38 why would you start N services, the service isn't a container for work Apr 04 21:34:09 its a unit of work that must be done outside the UI lifeycle Apr 04 21:34:17 but it isn't Apr 04 21:34:25 huh? Apr 04 21:34:25 a service is a lifecycle container, it does no work Apr 04 21:35:29 O.o Apr 04 21:35:31 k, nm Apr 04 21:36:46 if I've got two different layouts - one for portrait, one for landscape - and the only difference is one line (the portrait one has layout_below), what's the best way of doing it? Do I literally just c&p into the new layout and delete that line? is there a better way? Apr 04 21:37:25 if it's a single element that's only visible in landscape vs. portrait Apr 04 21:37:39 use a @boolean/whatever to manage its visibility Apr 04 21:37:46 and use values-landscape Apr 04 21:38:12 or the difference is a single attribute? Apr 04 21:38:14 similar thing Apr 04 21:38:27 they're both visible, but in portrait, text2 is below text1, and in landscape text2 is vertically centered Apr 04 21:38:30 layout_below is an integer value, so use @integer/whatever and plug in the appropriate value of layout_below vs. whatever Apr 04 21:41:42 Does java have anything like a predicate that I'm used to in C++? A function pointer Apr 04 21:41:51 I want to provide a sort of special max / min function Apr 04 21:41:53 ProgramMax: See Guava. Apr 04 21:41:58 and find the max one time and the min another time Apr 04 21:42:13 but don't relaly, because Guava is a heavy beast :) Apr 04 21:42:47 yes, guava has predicates and functions Apr 04 21:42:59 and guava on android isn't terrible, unless you have a bajillion other libraries already Apr 04 21:43:01 bummer. Maybe I can explain what I'm trying to do and find what you suggest if you don't really suggest guava Apr 04 21:43:04 in which case, you'll need to proguard Apr 04 21:43:15 I've used guava in my last two android projects (professional) Apr 04 21:43:30 I have an m3u playlist and I'm trying to find the item on that playlist with the highest bandwidth Apr 04 21:43:42 the playlist is organized mostly into groups called medias Apr 04 21:43:44 simple iterative loop :p Apr 04 21:44:00 each media can have several transcodes inside it for different bandwidths Apr 04 21:44:09 but then some of the transcodes do not belong to a media Apr 04 21:44:21 so it's like a free list, and a list of medias, which each has a list Apr 04 21:44:33 I have some code to iterate over all those lists and find the max bandwidth of them all Apr 04 21:44:40 I now need to do the same thing for minimum Apr 04 21:44:47 and would prefer to not rewrite that huge chunk of code Apr 04 21:44:52 just to change the max to a min Apr 04 21:45:01 I would prefer to use a predicate where I can pass in max/min Apr 04 21:45:05 and reuse that big block of code Apr 04 21:45:08 make sense? Apr 04 21:45:14 you can use guava, or write up your own basic predicate and wrapper functions Apr 04 21:45:39 So you still suggest a predicate route? Which leans toward guava? Apr 04 21:46:47 if it allows you to express what you want easier, sure Apr 04 21:47:03 I come from the C++ world and don't know if there is a more java-y way to do it than predicates Apr 04 21:47:40 the java-y way sucks Apr 04 21:47:53 bummer :( Apr 04 21:48:16 the java-y way involves making big loops, nested as many times as needed Apr 04 21:54:06 mr burns is so funny in that simpsons game ;) Apr 04 21:55:03 just fyi - I'm using ViewFlippers to handle a tri-state ListView (loading, loading failed, and loaded) and it's very pretty. Apr 04 22:07:07 messing with the BB10 native sdk is depressing; such a beautiful piece of technology … that will probably go nowhere. need to do something in the background? no coordinating activity & service lifecycles; run_when_backgrounded .. done. Apr 04 22:08:50 of course :p Apr 04 22:11:50 What do you guys think of my Blockout so far? (Photoshop, have yet to start coding the real thing) http://www.wacomalt.com/development/armory/Screenshot_2013-04-04-16-42-03.png Apr 04 22:12:22 WACOMalt: the W & T aren't aligned Apr 04 22:12:30 oops wait thats the crappy test I did. check THIS link http://www.wacomalt.com/development/armory/armoryblockout.jpg Apr 04 22:12:43 derp wallet ! Apr 04 22:12:47 :) Apr 04 22:12:55 you can have many wallets, of any name. Apr 04 22:13:01 in this case, derp wallet. Apr 04 22:13:36 swipe left on this would take you to the transactions activity, which I havent fully designed yet. Apr 04 22:13:46 WACOMalt: I like it, but there are two things I dont like Apr 04 22:13:57 fire away Apr 04 22:14:30 thats a pretty high fidelity prototype; i'd worry about the IA first Apr 04 22:14:44 well in either a luminance or pallet sense you have 1 or 2 things that are not really complimentary Apr 04 22:15:06 1st is the logo + pallet of the app Apr 04 22:15:39 minor things but to me the red/blue of the logo dont fit with the same lum/color of the pallet in use in the app Apr 04 22:15:41 I bet the Wallet: selector on the top is one of them Apr 04 22:15:51 hi guys Apr 04 22:16:15 I see what you mean. The blue on the logo is much darker than the blue in the actual layout Apr 04 22:16:15 another is the light blue incomming messages Apr 04 22:16:22 and no red to be found anywhere in the app Apr 04 22:16:32 seems to be a few shades off the rest of the blues Apr 04 22:16:40 THough, as you swipte to the transaction view, the sliding header turns red background Apr 04 22:16:52 if I set WindowManager.LayoutParams.FLAG_SECURE on an activity, will it interfere with things like HierarchyViewer, PixelPerfect, DDMS screen capture, etc? Apr 04 22:17:12 and lastly the wallet color, is almost but not quite complimentary to the pageIndicator blue Apr 04 22:17:13 Ah yes. I will try ot get all the shades of blue to either match android default, or the logo. I definitely have some variance going on right now Apr 04 22:17:27 I think it's a tad washed in comparison Apr 04 22:17:39 Ah yes. do you think more vibrant and more orange would be good? Apr 04 22:17:50 maybe due to we dont see as much orange as we do blues, in a perception way Apr 04 22:18:02 That image, I am debating making customizable by the user per wallet. But that's still undecided Apr 04 22:18:06 well see, that orange dont suit ON WHITE Apr 04 22:18:15 and you have it on white in the indicator Apr 04 22:18:16 very true Apr 04 22:18:26 a washed orange like that needs a gray to sit on Apr 04 22:18:38 so yeah…just a few of my thoughts Apr 04 22:18:42 That whole wallet choose on the top will likely be moved to the action bar Apr 04 22:18:53 very good though if you have no artiness in your blood Apr 04 22:18:55 Thank you for the input. You have a very good eye. Apr 04 22:19:06 I have a little, but this was 10 minutes in Photoshop :P Apr 04 22:19:18 I have not seen a programmer with a near perfect complimentary pallet b4 Apr 04 22:19:22 :) Apr 04 22:19:24 haha Apr 04 22:19:51 well, I'm more artist than programmer for sure. but my Artistic skill is not in design. it's in Visual Effects. That's what I make my living on :P Apr 04 22:20:07 interesting Apr 04 22:20:12 for who ? Apr 04 22:20:15 and where ? Apr 04 22:20:27 I was in LA for 3 years working for a company called Look Effects. Apr 04 22:20:39 Got out before all this BS with bankruptcy and stuff. Apr 04 22:20:51 now I'm in Ohio (my home) and working for myself. Apr 04 22:20:54 ah, see if you had said UK, I know all, but not states side Apr 04 22:20:55 At my LA rate :) Apr 04 22:21:11 and what do you do ? Apr 04 22:21:13 Well, our biggest claim to fame was The Black Swan Apr 04 22:21:29 but we werent nearly a big house like Digital Domain or Weta Digital or ILM or anything Apr 04 22:21:52 I am a compositor and matchmove artist. Got my degree in Computer animation as well. Apr 04 22:22:00 Though I tend to stay on the compositing side. Apr 04 22:22:31 ah, so nuke, pf etc. Apr 04 22:22:40 Exactly :) Apr 04 22:22:45 indeed Apr 04 22:23:04 Nuke, Fusion, Shake, AE, Maya, PFTrack, Syntheyes etc etc Apr 04 22:23:14 I take pride in knowing any tool they throw at me XD Apr 04 22:23:16 fusion ? Apr 04 22:23:23 ew Apr 04 22:23:28 well not ew ew Apr 04 22:23:29 it's lesser used any more. simmilar to Nuke Apr 04 22:23:40 Hi, my application crashes when I do "Notification.Builder builder = new Notification.Builder(getApplicationContext())" and then ".setVibrate(new long[] { 1000, 1000, 1000, 1000, 1000 })". Why is that? .setSound and .setLights works perfectly. Apr 04 22:23:42 I know exactly what it is Apr 04 22:23:44 yeah I'm not a fan. but a few commercial houses use it Apr 04 22:23:51 I was there when it was pre-born Apr 04 22:23:57 haha Apr 04 22:24:00 as alias/maya composite Apr 04 22:24:05 Ah nice. Apr 04 22:24:08 called maya fusion Apr 04 22:24:11 :) Apr 04 22:24:14 I didnt graduate until '08 and got in right after. Apr 04 22:24:31 ah I thought that was Toxik and now composite? Apr 04 22:24:40 I never followed it closely. not sure :X Apr 04 22:24:47 yes it is Apr 04 22:24:55 but fusion was maya fusion Apr 04 22:24:59 then was sold Apr 04 22:25:00 aahh Apr 04 22:25:27 eg, you had a cross platform DAGraphing system way ahead of it's time Apr 04 22:25:38 sold to some1 who made it dominant on windows Apr 04 22:25:39 It's amazing how much VFX software companies merge/sell/split/buy Apr 04 22:25:42 what a fluff up Apr 04 22:25:52 yeeah Apr 04 22:25:58 like apple buying (and killing) shake Apr 04 22:26:06 I loved shake, though it was already outdated when I started Apr 04 22:26:19 well if you had already licensed the source, was irrelevant Apr 04 22:26:20 if they hadnt bought it I would love to see how far it'd be by now Apr 04 22:26:28 True Apr 04 22:26:38 and everyone I know had Apr 04 22:26:44 neways, enough off topic :) Apr 04 22:26:52 how much was a source code license? Apr 04 22:26:55 ah yes, sorry :P Apr 04 22:27:03 think there were 3 tiers Apr 04 22:27:16 ranges from $70k - $250k Apr 04 22:27:22 iirc Apr 04 22:27:30 yeah... I definitely couldnt do that Apr 04 22:27:39 Anyone? Apr 04 22:28:12 Hi, my application crashes when I do "Notification.Builder builder = new Notification.Builder(getApplicationContext())" and then ".setVibrate(new long[] { 1000, 1000, 1000, 1000, 1000 })". Why is that? .setSound and .setLights works perfectly. Apr 04 22:28:20 reposting your question since I buried it with offtopic Apr 04 22:28:25 Syaoran-kun: http://imgur.com/jacoj Apr 04 22:28:57 Okay. Apr 04 22:29:19 Well, it's time for me to go, thanks again for the design pointers StingRay_ . I'll be reporting back with updates later this week :D Apr 04 22:29:45 hey, how come the Play Console won't let me add a New Awesome Application any more ? Apr 04 22:30:38 It only allows non-awesome applications now Apr 04 22:32:10 :( Apr 04 22:32:24 thats what we've been doing all along :D Apr 04 22:36:02 maybe they noticed. You said they were awesome, but they werenÄt Apr 04 22:36:05 weren't Apr 04 22:36:10 now they don't wanna play anymore Apr 04 22:47:17 im new to android, can i get an easy guide on adb shell commands? thanks Apr 04 22:47:49 http://developer.android.com/tools/help/adb.html Apr 04 22:48:57 how can i set a start drawable to a textview programmatically? Apr 04 22:49:13 you can do it via xml but not in code Apr 04 22:49:32 thanks bankai_ , last episode was almost trash where bleech had to crying Apr 04 22:50:17 what does everyone use for bakup/restore? Need to test on ICS Apr 04 22:51:13 looking for a way to switch from ICS to JB and back again. Apr 04 22:51:49 cbates: you're looking for nandroid, if you're talking about installing different roms and backing them up Apr 04 22:52:06 but that's more of a discussion for #android-root Apr 04 22:52:13 thanks thats what I thought Apr 04 22:52:41 for switching between things like that, i generally just run different emulators ;) Apr 04 22:59:10 Does the google api android client automatically pick up proxy settings from the system? (I'm using AndroidHttp.newCompatibleTransport() ) Apr 04 23:01:53 I want to overlay a black color filter at 50% opacity to an entire layout of TextViews, what's the easiest way to go about this? Right now I'm applying the filter to each view's background individually. Apr 04 23:02:31 jdawes: I would suspect it's easier to replace the background with a drawable that is 50% trans Apr 04 23:02:44 but I only suspect that :) Apr 04 23:03:14 StingRay_: Replace the background of each TextView? Apr 04 23:03:32 As opposed to a filter. Is that what you're saying? Apr 04 23:03:33 if by each you mean the 1 style that they would call then yes Apr 04 23:04:00 as in myEditTextStyle Apr 04 23:04:50 howdy, anyone interested in a monetary reward to help integrate a touchscreen driver into an MK808B firmware? Apr 04 23:04:53 I'm afraid I don't know how to use styles, I'll do some research, thanks StringRay_ Apr 04 23:08:35 cbates, adb backup/restore Apr 04 23:17:12 oh, that's annoying, clover found a scala developer already... Apr 04 23:17:14 * pfn grumbles Apr 04 23:17:34 are there any good 3rd party android profiling tools? Apr 04 23:19:10 jdawes: what is the type of the viewgroup containing the textviews? Apr 04 23:19:19 LinearLayout Apr 04 23:21:29 jdawes: well. Probably the cheap trick might be to stick that, and an overlay view into a framelayout. If you want to save a viewgroup, you can try a relativelayout instead. Apr 04 23:21:31 kbs: Does it make much of a difference? I should be able to just iterate through using getChildAt(index) with either. Apr 04 23:21:44 kbs: Oh. Apr 04 23:22:16 kbs: So I'd just be putting the filter on one item, right. Apr 04 23:22:37 What's the problem with my Adapter? http://pastebin.com/uQferXA8 Apr 04 23:22:44 right -- you could just add a single view on top of the entire viewgroup, which would have a 50% transparent background Apr 04 23:23:55 ari_aaron: you going to have to think more about what your posting when asking a question like that Apr 04 23:24:09 as in stack trace Apr 04 23:24:19 and a paste that include whatever is relevant Apr 04 23:24:39 The constructor ArrayAdapter(new AdapterView.OnItemSelectedListener(){}, int, List) is undefined Apr 04 23:24:58 i firgured i just did something dumb and you'd be able to tell right away :) Apr 04 23:25:00 um Apr 04 23:25:11 you're trying to pass in an OnItemSelectedListener to the adapter's constructor? Apr 04 23:25:50 the first parameter needs to be a Context Apr 04 23:26:01 Check here for constructors: http://developer.android.com/reference/android/widget/ArrayAdapter.html Apr 04 23:26:09 ah, thanks Apr 04 23:28:33 You know when you press a button and a listview changes from a regular listview into one with checkmarks beside it and you can select ones to delete, is that built into android somewhere? Apr 04 23:29:01 Am I just completely off-track; or is a 2.x (what about later?) compatible app expected to handle http proxy settings essentially by itself? ( eg: https://github.com/shouldit/android-proxy-library ) Apr 04 23:30:06 do0ob: closest is that there's a checkedtextview; but there's no checkedlistview in the framework (if that's what you're looking for.) Apr 04 23:30:47 argh, yet more code Apr 04 23:31:22 I think the way to look at it, is to be happy there's a checkedtextview ;-) Apr 04 23:34:40 $50 to whoever can get an evdev touchscreen device (works in vanilla linux) working on an MK808B :)? i've got one to test with, just need a compiled driver i think.. Apr 04 23:35:34 just out of curiosity -- have you used the mk808b long enough for feedback on how useful it is? Apr 04 23:35:44 depends on what you're wanting to do with it Apr 04 23:36:09 probably watch movies, and play occasional games/youtube Apr 04 23:36:18 seems to be missing a lot of possible drivers for peripherals and i've not yet discovered how to compile them for its kernel Apr 04 23:36:32 ah :-) ok -- so still on the bleeding edge, software wise. Apr 04 23:36:34 it works fine for that Apr 04 23:36:46 oh, I see Apr 04 23:36:56 there's a lot you can do with them, a lot of mods, but missing documentation on doing things like what i am requesting help with here Apr 04 23:37:36 what do you use to control it? (sorry if I'm asking a pretty naive question) Apr 04 23:38:10 it's got bluetooth built in, but i'm trying to get an Elo touchscreen working on it Apr 04 23:38:23 *nod* gotcha - thanks for the info :-) Apr 04 23:41:55 opinions on OS to go with on a VPS Apr 04 23:43:27 jug6ernaut_: DOS, obviously. Apr 04 23:52:18 lol Apr 04 23:52:56 is it possible to inflate a view and then clone it over and over rather than inflating a view multiple times? Apr 04 23:54:55 do0ob: no Apr 04 23:55:45 Hey guys.. I have a linearlayout (vertical) with an ImageView and TextView.. when all widths are set to WRAP_CONTENT in the XML, the linearlayout correctly sizes to wrap the content. If I set the TextView in code to be smaller than the image via an explicit integer in the layoutparam, the linearlayout seems to size to the TextView even though the ImageView is much larger.. any ideas why it would do this? Shouldn't it still Apr 04 23:55:45 wrap to the largest width? Apr 04 23:57:35 what's weird is if I set the layout_width in the XML it does size correctly.. that behavior only happens when I do it programmatically Apr 04 23:58:51 :( the shortcuts i wish to take just aren't possible Apr 04 23:59:02 shortcuts for what ? Apr 04 23:59:37 like selecting a file, get the user to select a file, but there is no file selection dialog Apr 04 23:59:39 stuff like that Apr 05 00:00:00 well you can just ask the system to handle it Apr 05 00:00:05 via an intent Apr 05 00:00:16 too unreliable Apr 05 00:00:35 there is no default handler, can't rely on it Apr 05 00:02:16 well i think a file picker is quite easy, if you look at apps that just use a listview Apr 05 00:02:24 like dropbox, drive etc Apr 05 00:02:43 but its wasting my time Apr 05 00:03:21 not if you want it Apr 05 00:03:32 wasting time = doing something you neither need or want Apr 05 00:03:44 a color picker and file picker should probably be standard components Apr 05 00:04:03 I dont think so Apr 05 00:04:13 exactly Apr 05 00:04:14 StingRay_: wasting time = spending time on accidental complexity, not inherent complexity Apr 05 00:04:15 StingRay_: why not? Apr 05 00:04:42 cause too many variances and style choices Apr 05 00:05:19 only if you are an artist ;) Apr 05 00:05:31 do0ob: try finding something on github? Apr 05 00:05:53 yea i looked at the code, still took a day Apr 05 00:06:29 g00s: yeah I suppose I look at things a bit different Apr 05 00:07:16 anyhow, this is spaaaartaaaa ! Apr 05 00:09:51 you're looking for a color picker? there's an open source color picker I grabbed and used for penroser, that I can dig up, if you're interesting Apr 05 00:10:47 oh, I guess not Apr 05 00:10:49 nevermind :) Apr 05 00:11:17 JesusFreke: which one did you choose ? Apr 05 00:11:55 cause I think I like https://github.com/LarsWerkman/HoloColorPicker Apr 05 00:12:12 https://code.google.com/p/color-picker-view/ Apr 05 00:12:46 see I like the HSV picker for user interaction Apr 05 00:14:42 you still have HSV, they're just arranged differently Apr 05 00:15:10 with a 2d plane, instead of 2 separate 1d choosers Apr 05 00:15:14 I mean linear controls for hue/value Apr 05 00:15:24 rather than combined Apr 05 00:15:35 yeah, it is easier to change them independently with them separate Apr 05 00:15:50 i think the average brain can use them easier Apr 05 00:15:55 but I like being able to see the full range that's available Apr 05 00:16:12 you dealing with single units rather than one unit that produces both x,y Apr 05 00:16:23 users don't think about it that way though Apr 05 00:16:29 they just see the color they want, and click on it :) Apr 05 00:16:41 then do a fixed pallet then :) Apr 05 00:17:21 my point is that you get to see the full range of colors for that hue Apr 05 00:17:45 but anyway :) Apr 05 00:17:50 either way is valid :) Apr 05 00:17:57 both have advantages and disadvantages Apr 05 00:18:31 and I don't really have a strong preference either way. just a slight preference for the 2d style Apr 05 00:19:31 So I've been following this tutorial http://www.youtube.com/watch?v=TxcfhAU2dDg step by step, but when i run it i'm gertting a networkonmainthread exception? Apr 05 00:20:02 The Exception name pretty much tells you what's wrong. Apr 05 00:21:56 but i've copied the tutorial word for word :S Apr 05 00:22:06 that's what i'm confused about mainly Apr 05 00:22:09 code? Apr 05 00:22:35 coco89: older version of android Apr 05 00:22:47 StingRay_: Ah I see Apr 05 00:23:01 coco89: this is probably much better Apr 05 00:23:02 https://developer.android.com/training/basics/network-ops/connecting.html Apr 05 00:23:03 exception introduced after to stop people doing silly things Apr 05 00:23:22 f2prateek: cheers Apr 05 00:39:07 Hello guys! Anybody got Facebook Home apk? Apr 05 00:39:25 at a guess I would say facebook do Apr 05 00:39:31 lol Apr 05 00:40:21 even if you did, it's locked to specific adresses for a while i believe Apr 05 00:40:45 Addresses? Apr 05 00:40:59 as in just employees Apr 05 00:41:31 Hm… maybe. Apr 05 00:42:38 i really hope key lime pie disables custom launchers Apr 05 00:42:49 funkbox: why? Apr 05 00:42:50 Why? Apr 05 00:43:00 well for one, no more facebook home Apr 05 00:43:05 I use Nova Launcher and I really like it. Apr 05 00:43:12 if you don't like it, don't use it Apr 05 00:43:17 Yep. Apr 05 00:43:21 nova launcher is just the AOSP launcher ? Apr 05 00:43:43 Nova Launcher is based on AOSP but it has some new features. Apr 05 00:44:16 Like gestures to specific commands and the ability hide the dock Apr 05 00:44:56 i really hope key lime pie disables stupid people Apr 05 00:45:09 pragma-: that would be nice Apr 05 00:45:13 lol Apr 05 00:45:14 although i wouldn't really want ot be disabled Apr 05 00:47:57 hello all Apr 05 00:48:10 i was wondering if someone could help me with a scrollview problem Apr 05 00:48:44 specifically, i want the selector to stay stationary and scroll the entire row, like the netflix app Apr 05 00:49:39 wdolorito: what header? the action bar? Apr 05 00:49:57 header > Apr 05 00:50:00 ? Apr 05 00:50:18 or rather the pseudo action bar they have Apr 05 00:50:47 no, i think he means like the ios time spinner has Apr 05 00:50:56 but these are pretty diverse guesses Apr 05 00:51:05 f2prateek well, i make a horizontalscrollview and add imagebuttons to them Apr 05 00:51:07 :) Apr 05 00:51:12 heh Apr 05 00:51:23 so you mean the genre titles that they have? Apr 05 00:52:03 well, not the titles, but the thumbnails under the titles, the whole row moves instead of the highlight Apr 05 00:52:41 ah a horizontal scroll in a listVIew ? Apr 05 00:52:47 right now, when i use my buttons on the emulator, and on the device i'm using, the highlight box moves to whatever is selected, i want to keep that highlight box stationary Apr 05 00:53:21 is that what i need to use, StingRay_, a listview? i've just been putting everything in to a linearlayout and then putting that in to the horizontalscrollview Apr 05 00:53:44 dunno Apr 05 00:54:00 tbh everytime i think I know what your describing you say something that kills my theory Apr 05 00:54:02 :) Apr 05 00:54:09 LOL Apr 05 00:54:26 yeah, i've been having problems trying to track down an example in google too Apr 05 00:54:31 this was my last resort, heh Apr 05 00:54:33 go look at the iOS set time widget Apr 05 00:54:40 is that what your on about ? Apr 05 00:55:03 wdolorito: i'm conufused coz i don't really see the highlight moving in the app Apr 05 00:55:17 (or rather i don't see a highlight) Apr 05 00:55:35 that's what i'm talking about f2prateek, there's a box over one item, it doesn't move at all Apr 05 00:55:38 f2prateek: I dont either Apr 05 00:55:40 that's the effect i'm looking for Apr 05 00:56:09 so, a user uses the buttons to move that box over their selection, and when they hit enter, that selection rolls out more windows Apr 05 00:56:50 ok yep you did it again Apr 05 00:56:55 totally lost now Apr 05 00:57:51 1 second sounded like you were talking about a horizontal scroll in a list view, then a listView with a selector on top like ios timepicker, then now a expandableListView Apr 05 00:58:07 find what you want an post a vid Apr 05 00:58:11 or soemthing :) Apr 05 00:58:23 that's what i've been looking for, StingRay_ :D Apr 05 00:58:34 well you say nextfix does it Apr 05 00:58:37 find a vid Apr 05 00:58:44 the netflix app is exactly what i'm looking for, but i guess i'm not describing it right Apr 05 00:58:54 cause my netflix on ios android mobile or tablet dont do what you describe Apr 05 00:59:52 ok, i see the confusion Apr 05 01:00:10 sorry, StingRay_, f2prateek, i've been playing with the google TV versions of the netflix app Apr 05 01:00:28 wdolorito: that makes a bit more sense. Apr 05 01:00:37 or, actually, if you've ever used the playstation 2 netflix app, it's like that Apr 05 01:01:03 you mean ps3 Apr 05 01:01:14 lol, right StingRay_, you got me again :D Apr 05 01:01:16 your not great with these descriptions Apr 05 01:01:18 :) Apr 05 01:01:22 for real, lol Apr 05 01:01:23 wdolorito: just dump the view hiearchy in ui automator to see how they did it (on phones it's a webview so not very helpful) Apr 05 01:01:43 oh man! i CAN'T believe i never thought about that, f2prateek Apr 05 01:01:45 genious! Apr 05 01:02:17 I want an xbmc netflix app dammit Apr 05 01:02:38 and I want them to ditch that silverlight crap Apr 05 01:04:42 seems like the FB Home thingy has gotten a pretty chilly response Apr 05 01:05:18 g00s: would you want to give fb control of your personal device ? Apr 05 01:05:31 na. i dont have fb anyhow Apr 05 01:05:43 hope you did what i did Apr 05 01:05:51 change the info to irrelevance 1st Apr 05 01:07:21 this kinda reminds me of the google toolbar for IE; eventually it had to bust out into its own browser. i guess this gives FB some time to grow deeper tentacles into the OS, maybe eventually fork it Apr 05 01:25:39 hey guys Apr 05 01:27:45 I see a debug.keystore and a release.keystore Apr 05 01:27:54 is that all it takes to have your app signed? Apr 05 01:28:23 I'm being told to make sure the app I submitted to someone is signed with the same app key as the existing app in the Google play store Apr 05 01:45:27 ProgramMax: told ? Apr 05 01:57:25 I am not an android developer, but I have taken a couple of CS courses, and I was wondering about android development…more specifically, the ability to intercept/clear notifications Apr 05 01:57:26 I was perusing facebook home and noticed that the status bar has a plethora of notifications on the "android" layer, (but seen by Facebook Home.) Does the API for android not allow for the clearing of these notifications, especially if Facebook home has seen/dealt with them? I'd imagine that the number of notifications in the status bar would be annoying Apr 05 01:59:58 krupawan5618: you mean dismiss other peoples notifications ? Apr 05 02:00:03 or other apps rather Apr 05 02:00:20 they are for the owner (app) to dismiss Apr 05 02:00:23 or the user Apr 05 02:01:40 no; for exmaple the sheer amount of sms notificatiosn i the status bar Apr 05 02:02:06 well android gives the user a dismiss all button Apr 05 02:02:21 i get that; but why have those notifications in the status bar present when the user has already seen the message/replied to the message Apr 05 02:02:23 and if they are from a single app, it's up to that app to manager Apr 05 02:02:34 ^ Apr 05 02:03:25 okay. I feel like there should be some higher order construct that all apps should have the ability to handle all notifciatons; but i could see how that would get out of hand. Apr 05 02:03:58 well yeah, and then too open to bad actions by bad apps Apr 05 02:04:21 yea; i feel like it wouldn't be that bad if it was specified in the app permissions though Apr 05 02:04:35 oh it would Apr 05 02:05:12 i mean so facebook home will continually have that plethora of sms notifications reforming in the status bar Apr 05 02:05:35 and the end user should then just be desensitized to the android notifications or have to clear them constantly Apr 05 02:05:36 that would be the least I would worry about if I were using facebook home Apr 05 02:06:04 ha whats the general consensus about faecbook home? Do people hate it Apr 05 02:06:29 well facebook aint all that great is it ? Apr 05 02:06:47 and if it is, your a 13 year old socialite girl Apr 05 02:06:50 :) Apr 05 02:06:56 lo Apr 05 02:06:57 lol Apr 05 02:07:12 as a college student i find it pretty useful Apr 05 02:07:13 StingRay_, Woah that was harsh on FB Apr 05 02:07:21 not really Apr 05 02:07:25 ask me about whatsApp Apr 05 02:07:27 :) Apr 05 02:07:31 then you see harsh Apr 05 02:07:33 Lmfao Apr 05 02:07:49 StingRay_: What is ur networking site of prefence Apr 05 02:07:58 linkedin Apr 05 02:08:01 Didn't they spend millions on TV campaings? Apr 05 02:09:35 linkedin is evil though Apr 05 02:09:41 "Hey look! Someone checked out ur profile. Apr 05 02:09:51 now pay 19.95 monthly and we'll tell you who it is. Apr 05 02:10:09 who cares Apr 05 02:10:14 if you care about that Apr 05 02:10:21 your an insecure 16 years old boy Apr 05 02:10:23 :) Apr 05 02:10:25 i mean its job oriented Apr 05 02:10:54 yes/no Apr 05 02:10:58 hahaha u are harsh…what od you think of WhatsApp Apr 05 02:11:05 dont ask Apr 05 02:11:12 too late Apr 05 02:11:37 well for years they have served millons Apr 05 02:11:48 how do they make money from that ?? Apr 05 02:12:40 no idea... Apr 05 02:12:44 i'm not a developer... Apr 05 02:13:01 WhatsApp in a paid app. Apr 05 02:13:03 is* Apr 05 02:13:13 never on android Apr 05 02:13:15 for years Apr 05 02:13:16 It costs 0.99/yr Apr 05 02:13:35 * jug6ernaut_ still doesn't understand whatsapp Apr 05 02:13:39 It asked to pay sometime, but I've dismissed, and they never asked me again. Apr 05 02:13:42 yeah they now have to charge, cause court rulings stoped them from the way they used to do it Apr 05 02:14:47 court rulings? Apr 05 02:15:17 StingRay_: confused…just tell me why i shouldnt like WhatsApp Apr 05 02:15:42 read and understand their t&s Apr 05 02:15:53 Leeds: yes Apr 05 02:16:12 StingRay_: dammit why do you think I would ever want to read through terms and agreements Apr 05 02:16:14 ahahaaha Apr 05 02:16:20 People read those? Apr 05 02:17:36 I mean it seems like a smart approach…make it free, and then charge after the first year. Apr 05 02:17:44 thats smart of them..isn't it? Apr 05 02:19:01 whatsApp is to messaging apps as lottery is to people (stupid person tax) Apr 05 02:19:51 StingRay_: i think ur just jealouss Apr 05 02:19:58 StingRay_: jk Apr 05 02:20:12 http://www.thestar.com/news/canada/2013/01/28/whatsapp_violated_canadian_law_says_privacy_commissioner.html Apr 05 02:20:17 canada has the right stuff Apr 05 02:20:38 but other constitutions dont have their….. intellegence Apr 05 02:21:20 dude its shameful how negligent developers are when its comes to encryption Apr 05 02:29:25 haha Apr 05 02:29:30 facebook home will have ads Apr 05 02:29:36 that you cant opt out of Apr 05 02:29:55 thats all you need cluttering your phone when attempting to do something Apr 05 02:39:21 StingRay_, really? lol Apr 05 02:39:28 not for the start Apr 05 02:39:30 but yes Apr 05 02:39:34 as in not for the release Apr 05 02:39:43 just read snippits from press conference Apr 05 02:39:50 everyone was asking that Apr 05 02:43:00 how do i referance the parent dialog from in a button onclick event? http://pastebin.com/5EXJ9hAf Apr 05 02:43:33 by putting this Apr 05 02:43:41 or most often "nothing" Apr 05 02:43:50 as in this.dismiss() Apr 05 02:43:52 or Apr 05 02:43:56 dismiss() Apr 05 02:44:15 i tried that, but i think that referances the button Apr 05 02:44:58 i tried with this. nothing seems to work Apr 05 02:47:13 make the class extend onClickListener Apr 05 02:47:20 then do it in onClick Apr 05 02:47:26 works then Apr 05 02:47:47 sorry implements Apr 05 02:47:51 not extend Apr 05 02:47:52 :) Apr 05 02:49:06 Why does the tabbed layout require the support library? Apr 05 02:52:06 and TabActivity is deprecated so...? Apr 05 02:52:20 Just a guess, but possibly to do with the pager tabs? Apr 05 02:52:30 so fragments, viewPager + indicator Apr 05 02:52:37 and the introduction of fragments Apr 05 02:53:06 I'm trying to use fragments directly from android.app rather than android.support.v4.app Apr 05 02:53:19 so how do i remove support.v4 and have a tab like view? Apr 05 02:53:29 or did that get removed in favour of another layout? Apr 05 02:54:20 StingRay_: android.support.v4.view.ViewPager its part of support v4 Apr 05 02:55:20 how do i pass a variable back from my dialog to the activity? Apr 05 02:55:34 sorry to bother you so much, StingRay_ Apr 05 02:56:00 ari_aaron: lots of ways Apr 05 02:56:25 a callback, and interface, and event bus, or calling directly getting a ref from fragment manager Apr 05 02:56:45 oh to the root actiity ? Apr 05 02:57:08 yah, the HomeScreen class Apr 05 02:57:11 scrub fragmentManager off the that list **** ENDING LOGGING AT Fri Apr 05 02:59:58 2013