**** BEGIN LOGGING AT Sat May 03 02:59:58 2014 May 03 03:05:07 dex is a combination it's more like a jar May 03 03:08:00 Hmm, I won't ask you to explain that, I will take it at face value and do some research later. May 03 03:08:33 Thanks though May 03 03:12:07 I've looked at Loaders and Adapters and i'm trying to find a good design pattern for loading data remotely from a network source. Ie: instagram. The problem isn't the transport protocol, but more in how to know when to load more data and how not to do it on the UI thread and how to properly update the UI. May 03 03:12:38 i could do this manually by detecting that they're at the bottom of a gridview and spawning a task to add more data May 03 03:22:47 sounds easy enough... May 03 03:23:19 * pfn still hasn't found a use case for loaders May 03 03:23:23 * pfn sad May 03 03:45:50 * g00s somehow doubt's pfn is truly sad May 03 03:56:34 i don't know why activity.findViewById returns null May 03 03:58:07 i have setContentView correctly May 03 04:14:21 Are you sure you are loading it from an activity and not some view group? May 03 04:32:51 Anthaas: yes May 03 04:33:05 the type of activity is Activity May 03 04:33:18 and i use activity.findViewById May 03 04:34:34 this problem drive me crazy X| May 03 05:44:44 hi May 03 05:48:58 it's my notification example code but it only shows an icon on top of screen http://codepad.org/xXwFcqey it doesn't show the text it's like this http://axgig.com/images/57251722945856248039.jpg why ? May 03 05:49:21 hello all May 03 06:01:07 hello May 03 06:01:35 does any body here use adBuddiz? May 03 06:02:06 they are sending me email ,how can you if it is a spam or not? May 03 06:09:25 hello May 03 06:25:51 "Samsung wants to talk about health at May 28th event", well of course, because Apple does too XD May 03 06:26:10 losers May 03 06:31:56 "MDPI is still maintaining a surprisingly powerful position, in large part due to the remaining Gingerbread user base." May 03 06:32:07 there is a correlation between MDPI and GB ? May 03 06:32:44 g00s: lots of nowadays low-end phones still came with GB and MDPI screens May 03 06:32:51 (when 4.1 was already available) May 03 06:33:16 hm, just looking at the new stats http://developer.android.com/about/dashboards/index.html May 03 06:34:27 it's my notification example code but it only shows an icon on top of screen http://codepad.org/xXwFcqey it doesn't show the text it's like this http://axgig.com/images/57251722945856248039.jpg why ? May 03 06:58:55 hello g00s May 03 06:59:03 you know adBuddiz? May 03 06:59:13 never heard of it May 03 06:59:27 i hate adds May 03 07:01:07 hello g00s May 03 07:01:13 you know adBuddiz? May 03 07:03:13 .:yola:. hello g00s May 03 07:03:13 .:yola:. you know adBuddiz? May 03 07:03:13 .:g00s:. never heard of it May 03 07:03:13 «--- yola (~ubuntuhx@213.55.108.116) has Quit (Read error: Connection reset by peer) May 03 07:03:13 .:g00s:. i hate adds May 03 07:05:16 http://forums.makingmoneywithandroid.com/advertising-networks/1771-please-enlighten-me-d-paid-game-advertising.html May 03 07:07:57 Justin_T: you hate adds? how do you monetenize then ? only saling? May 03 07:08:46 i just copy/pasted from g00s May 03 07:09:09 I dont hate ads at all May 03 07:12:18 hello, as the owner of a paid app i cant download it for free, i've tried buying my app and got a message that's now allowed too... any idea what's the deal here? May 03 07:38:32 No idea why notification doesn't show text? May 03 08:11:03 Reading here: http://developer.android.com/guide/topics/resources/runtime-changes.html It mentions that "Caution: Beginning with Android 3.2 (API level 13), the "screen size" also changes when the device switches between portrait and landscape orientation. Thus, if you want to prevent runtime restarts due to orientation change when developing for API level 13 or higher" I am targeting api10, an May 03 08:11:03 d so according to that my application should not terminate if I have Orientation specified, however it does. Any suggestions? May 03 08:12:46 *repasting for the netsplit* Reading here: http://developer.android.com/guide/topics/resources/runtime-changes.html It mentions that "Caution: Beginning with Android 3.2 (API level 13), the "screen size" also changes when the device switches between portrait and landscape orientation. Thus, if you want to prevent runtime restarts due to orientation change when developing for API level 13 or high May 03 08:12:46 er" I am targeting api10, and so according to that my application should not terminate if I have Orientation specified, however it does. Any suggestions? May 03 08:15:02 what did you specify in the manifest? May 03 08:16:54 http://codepad.org/ZN6javMW May 03 08:17:03 minus the screensize May 03 08:17:07 that doesnt work on 10 May 03 08:18:17 so this: http://codepad.org/OCwiEx17 May 03 08:19:00 change your targesdk May 03 08:22:24 ill try that May 03 08:24:28 oh cool yeah that worked May 03 08:25:19 thanks, I was under the impression that should be set to the highest level on the phone tested May 03 08:27:22 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html read this, third paragraph, it explains a bit more May 03 08:27:35 (third paragraph of 'targetsdk') May 03 08:31:00 ah ok I must have misread that earlier May 03 08:32:02 guys, is there any project/method to use a C library or something like this to speed up listview browsing when there are many photos in it? May 03 08:35:45 the ndk May 03 08:36:09 you can do whatever you like in c/c++ using that May 03 08:39:22 Hi anyone can help me doing a soap request using ksoap2 library? May 03 09:08:59 Nilium wow http://www.theverge.com/2014/5/2/5674258/apples-wwdc-plans-rumor May 03 09:09:29 I don't pay attention to rumors. May 03 09:09:51 It's not important to me 'til it's announced, documented, and I have an SDK. May 03 09:11:24 when i try to add new activity, eclipse force me to add fragment layout :( May 03 09:12:01 This is by design, get used to it or don't add an activity using a wizard. May 03 09:20:04 Nilium i was just about to update to 10.9; i'm pretty lazy that way (updating OS). May 03 09:20:14 maybe i should just wait until 10.10 May 03 09:20:52 its getting to be a pain since things from MAS are requiring 10.8 or later, gotta do something May 03 09:30:23 I tend to update my OS on day one or nearly. May 03 09:30:56 It's become less of a risky thing to do lately. May 03 09:31:06 yeah. i'm still on 10.7 :| May 03 09:32:14 I can't imagine why anyone would upgrade to 10.7 then not upgrade to a newer OS >_> May 03 09:32:16 10.7 was bad. May 03 09:32:44 yeah i have a lot of flaky issues May 03 09:33:06 the most annoying, is when an app is full screen, banging the top with the pointer often doesn't pull the menu down May 03 09:33:12 Not like Vista bad, but it's the crappiest of the OS X versions since 10.3-ish May 03 09:33:22 Whereas 10.9 is kind of like 10.6 -- just enough improvements in every area to make it work really well May 03 09:40:12 Nilium have you played with Haskell yet ? May 03 09:40:46 was contemplating goofing around with it or ocaml May 03 09:45:56 Hello. I'm using AsyncTask to populate listview. I found out that my code wasn't of very high quality, so I'm refactoring it. I want to incapsulate asynctask in API class instead of having everything related to my fragment in its "onPostExecute". I have things like assigning textwatchers and adapters there. What is the best way to keep my AsyncTask where it belongs to, and to signalise main fragment that data is ready and can be loaded? Or should I w May 03 09:47:34 * g00s doesn't use asynctask; has no idea May 03 09:48:19 g00s: so, if I need to build a client for http requests do a data source with RESTful-ish API, what should I use? May 03 09:48:40 isn't that what retrofit is for? May 03 09:48:45 yes May 03 09:50:05 and like magic... :) May 03 09:50:08 And it is okay that it isn't in android by default? To the point that you don't use AsyncTask at all? Interesting. Thanks, a very valuable info for a newbie. May 03 09:51:06 I want to rewrite my current app using retrofit and picasso rather than volley... the boss wants to ship, unfortunately May 03 09:52:22 damn those bosses wanting to have a product out :) May 03 09:53:11 he's on holiday this week, so I'm going to try to get at least picasso in, I think May 03 09:53:23 :) May 03 09:53:59 Leeds and you can get almost 24x7 support from JakeWharton if you say picasso 3 times May 03 09:54:07 in the mirror May 03 09:54:12 g00s: that is, in fact, the plan :) May 03 10:02:14 What if my API not exactly RESTful, should I still go for the lib you suggested? May 03 10:04:15 Okay, it was a dumb question, nvm. May 03 10:12:50 has anyone figured out how com.google.android.googlequicksearchbox.VOICE_SEARCH_RECORDED_AUDIO works? May 03 10:13:03 I think it's what the Moto X uses to pass audio to Google Search May 03 10:13:43 g00s: No, and I have no plans to right now. May 03 10:14:05 And now off to sleep. May 03 10:31:29 does Crouton let you put buttons / actions in there ? May 03 10:31:36 like gmail undo May 03 10:38:16 g00s the one that looks like a Toast? May 03 10:38:55 yes May 03 10:39:05 g00s https://plus.google.com/+RomanNurik/posts/RA9WEEGWYp6 May 03 10:40:08 There's also https://github.com/jenzz/Android-UndoBar and https://github.com/soarcn/UndoBar May 03 10:40:16 I've only tried Roman's implementations May 03 10:40:19 -s May 03 10:40:42 MohammadAG yeah, thats what i was wondering … if crouton lets you put an action in there. i don't see a way May 03 10:40:48 https://github.com/keyboardsurfer/Crouton May 03 10:41:03 I don't like the undo thing in general. May 03 10:41:04 doesn't that show at the top though? May 03 10:41:12 yes May 03 10:41:27 I'd much prefer a confirmation much of the time (e.g., in Google Keep). May 03 10:41:29 you can anchor it to a viewgroup May 03 10:42:24 TacticalJoke I prefer undo cause it's a bit faster when you actually want to delete stuff May 03 10:42:39 but I get why it could be hated May 03 10:42:52 g00s I don't imagine having a button in that will look good May 03 10:42:57 optimize for the 99% case May 03 10:43:05 99% of the time when you delete something, you meant to May 03 10:44:40 classic Alan Cooper; don't give the possible and probable equal weight ;) May 03 10:46:36 Every time I delete a note in Google Keep, I feel slightly uncertain of whether I got the right one. A confirmation dialog tells me which note I picked. May 03 10:48:00 seems like a wasteful step May 03 10:49:22 JakeWharton do you use anything like crouton ? May 03 10:49:37 for more contextual notifications i guess May 03 10:49:42 https://github.com/SimonVT/MessageBar May 03 10:49:57 oh May 03 10:50:11 we have our own undo bar May 03 10:52:56 hipster May 03 11:04:14 hello May 03 11:14:55 g00s: hey May 03 11:15:05 hello Napalm May 03 11:15:08 how goes? May 03 11:15:49 trying to stay awake. only up because i'm about to go into the desert to take a picture of a flower that will open up sometime in the next week May 03 11:16:05 only one chance May 03 11:16:17 oh dear.. i think i know whats going to happen May 03 11:16:21 g00s: I'm using retrofit, it is very nice May 03 11:17:10 Napalm its going to open sometime in the next week May 03 11:17:20 every day, get up there, see ... May 03 11:17:29 at the last moment.. the time when you just cannot keep your eyes open anymore and you've fought off the deep desires to sleep 3 times before will it be that you cant this time and then the flower blooms May 03 11:17:41 :D May 03 11:17:46 heh May 03 11:18:23 * Napalm waits for g00s to wake up with a inverted keyboard imprinted into his face May 03 11:18:26 :D May 03 11:19:06 thats better than saguaro ;) May 03 11:19:36 g00s: if you had a Rounded Rectangle ImageView that essentially clips its image.. would you think the background drawable of the view should show in the corners or be clipped aswell May 03 11:19:38 i cant decide May 03 11:19:47 just the default expected behaviour May 03 11:20:13 hm, not sure. not good at the ui stuff May 03 11:20:22 not good at anything these days :| May 03 11:34:56 On https://developer.android.com/guide/topics/providers/document-provider.html I use the readTextFromUri() code from the under the "Get an InputStream" chapter. But it reads the newilnes without linebreaks because BufferedReader.readLine() doesn't include the \n or \r characters. What can I do to get linebreaks? May 03 11:35:33 I could append \n myself, but then it would change the linebreak encoding on saving, and wouldn't respect that Windows and Linux and Mac have different line breaks, CR, LF, CRLF May 03 11:36:24 I need a function use input parameter is an Uri, and the output is a string (including linebreaks) May 03 11:37:15 smallfoot- um May 03 11:37:28 smallfoot-: why don't you not read it line-by-line May 03 11:37:28 lol May 03 11:37:34 yeah ;) May 03 11:38:09 reading as a stream won't nuke the eol May 03 11:38:11 Napalm, I do read it line-by-line, then I append it to a StringBuilder, because the method needs to return a string May 03 11:38:20 lol May 03 11:38:21 no May 03 11:38:25 one sec May 03 11:39:22 It uses a while loop to call .readLine() then appends that line to a StringBuilder, and the Java documentation for .readLine() says it contains the line without the line ending May 03 11:40:22 then use a stream that doesn't nuke the EOLs? you can still use a stringBuilder with other streams May 03 11:42:03 But my input to the method is of type Uri, I suppose I read that with InputStream May 03 11:46:20 This is the signature I need "private String readTextFromUri(Uri uri)" May 03 11:46:26 input = Uri May 03 11:46:28 output = string May 03 11:46:34 smallfoot-: https://gist.github.com/slightfoot/03a589a88228e666fb7f May 03 11:47:15 Hi, anyone knows some guide where explains how to use the google mirror api within django? The quickstart guide is built over GAE, but my app is in other platform (amazon) May 03 11:49:01 Napalm, thanks! May 03 11:51:46 smallfoot-: i've updated it. May 03 11:53:46 alright May 03 11:54:08 Napalm, what would happen if a line was longer than 1024 bytes? May 03 11:54:32 nothing May 03 11:54:37 it doesn't matter May 03 11:54:38 we loop May 03 11:54:40 read the code May 03 11:54:44 I see May 03 11:55:01 Will the finally part still be executed if the try contains a return statement? May 03 11:55:54 Also why does StringBuilder gets instanced with a parameter, StringBuilder sb = new StringBuilder(in.available()); May 03 11:55:59 yes, thats the point May 03 11:56:08 why else is it called "finally" May 03 11:56:09 lol May 03 11:56:35 smallfoot-: if the stream has some data ready you pre-allocate the StringBuilder for it May 03 11:56:42 just a little optimization May 03 11:58:14 I see May 03 12:16:05 I bought this bluetooth Plantronics M100. But i cant play music on it from my Android Smartphone May 03 12:16:28 No idea what that is May 03 12:16:52 Also #android-dev is for development, you might wanna go to #android for non-development questions May 03 12:17:40 smallfoot-, http://www.plantronics.com/us/product/m100 - this is the hardware which is now connected to Android Smart phone but i cant hear music on it, and #android always says Cannot join #android (You are banned). May 03 12:18:13 what is a good intro to android unit testing May 03 12:18:45 IamTrying, don't get banned, it's a bad idea, you should have acted good in order to avoid getting banned. You might want to mail Plantronics tech/customer support. May 03 12:19:08 resistfascism, depends on what IDE you use, Android Studio or ADT (Eclipse) May 03 12:19:20 android studio May 03 12:19:30 I wonder too May 03 12:19:48 resistfascism, http://developer.android.com/tools/testing/testing_android.html May 03 12:20:02 resistfascism, https://developer.android.com/training/activity-testing/activity-unit-testing.html May 03 12:20:04 smallfoot-, YES - i did called them and they said its Android Compatible, now i cant play Music with it, then they said i have to contact Android for it May 03 12:51:53 hi, all. is the best way to build a regular linux software for android using NDK? I want to build a tcpdump binary for my device, what method is recommended? May 03 12:52:39 use GCC from NDK May 03 12:53:14 you can split only GCC out of it by running make-standalone-toolchain.sh script May 03 12:58:29 thank u, I'll try it May 03 13:15:34 https://gist.github.com/slightfoot/48baa2e44f17e100268f#RoundedImageView.java May 03 13:15:37 if anyone wants it May 03 13:20:23 neat :) May 03 14:18:27 hey, I'm trying to make a bulleted list in an alertdialog. In the xml I use • May 03 14:18:39 How can I do that in the alertdialog May 03 14:29:38 hello? May 03 14:35:49 daweefolk: try \u8826 May 03 14:36:10 will do :) May 03 14:36:47 8826 or 8226? May 03 14:36:58 whatever May 03 14:37:00 lol May 03 14:37:19 thanks May 03 14:40:37 can i show FDN dialog programaticaly? May 03 14:40:45 or can i disable and enable FDN programaticaly May 03 15:29:51 how do I do an Intent to "com.android.systemui.recent.action.CLOSE" ? May 03 15:32:33 and how do I find out, wether my Intent was fired? May 03 15:37:58 what is a better idea May 03 15:38:17 downloading adt bundle or downloading eclipse with adt plugin? May 03 15:40:24 I suggest to download eclipse and then install adt May 03 15:40:25 gregor2: that depends on your use case. If you want to use eclipse for other things, you might want to get a "normal" eclipse distribution and add the plugins you want May 03 15:42:32 where can I ask about admob? May 03 15:42:40 does the adt bundle has anything that eclipse with adtbundle doesnt have? May 03 15:43:54 and are there possibly compatiblity problems on eclipse and the bundle? May 03 15:52:25 Mavrik: hey.. if your using that RoundedImageView I've updated the gist.. it now inherites from a MaskedImageView so you can actually change the shape of any image. https://gist.github.com/slightfoot/48baa2e44f17e100268f May 03 15:53:30 nah, I'm using my own solution based on shaders :) May 03 15:53:43 so's mine :D May 03 15:54:13 Mavrik: in the updateMask function you can apply a shade to the maskPaint May 03 15:54:18 so you can do anything you like per-pixel May 03 16:07:35 anyone here using RxJava? May 03 16:13:54 it was my understanding that this: https://gist.github.com/alexfu/66113b6aad67db1305a5 is a non blocking operation May 03 16:57:24 Hi, I have a problem with switching activities - when the button is pressed, the app crashes with nullpointerxception - https://gist.github.com/anonymous/ee1cbb61b87aef94aff2 May 03 16:58:41 Why does my AsyncTaskLoader reload when switching between activities? May 03 17:04:34 Trieste: can we see the exception? May 03 17:09:11 guess not May 03 17:13:35 Leeds: sorry, didn'ŧ see the message May 03 17:15:44 damn. May 03 17:16:15 well, if anybody else is willing to help, https://gist.github.com/anonymous/acb3420f75d132652eef May 03 17:17:16 hi everybody May 03 17:17:43 I am newer in android. I am testing an application, I created an ADV and the first time execute fine but after, eclipse shows the application with the datas that i typed it before. May 03 17:17:52 And when i want to type something, eclipse show an error. May 03 17:18:18 I follwed this http://stackoverflow.com/questions/2160454/helloandroidemulator-5554-disconnected-cancelling-com-example-helloandroid-he May 03 17:18:25 but it show the same May 03 17:18:38 can anybody help me? May 03 17:24:15 Trieste: The last "caused by" in your stacktrace is the actual issue. The line after that is where the exception was thrown May 03 17:24:55 So something is wrong on that line. And the type of exception tells you what May 03 17:33:53 What would be the android equivalent of a MouseMotionListener? May 03 17:36:53 Is there any way for me to use gmail video chat on my android phone? May 03 17:42:49 . May 03 17:44:20 RetroDude: I believe the GMail vidchat is now the same things as Hangouts... May 03 17:50:21 SimonVT: oh, okay, thanks! May 03 17:54:01 hi, anybody knows why eclipse show this? emulator-5554 disconnected! Cancelling 'at.vcity.androidim.Login activity launch'! May 03 17:58:56 help me :/ May 03 17:59:24 restart it May 03 18:00:10 yeah, but every time is the same May 03 18:00:33 it's android :) May 03 18:00:49 i have to create a new AVD May 03 18:00:49 hmmm May 03 18:01:06 but in a mobil, this application doesn't install May 03 18:05:31 what? May 03 18:07:24 when I install the file apk in my mobil, it doens't install May 03 18:08:41 it start to install and it is infinite May 03 18:08:46 how do you install it? May 03 18:09:21 copy the file apk to my mobil, and later select that file May 03 18:09:54 so, it start to install May 03 18:10:51 gdrc, is it right? May 03 18:11:07 what if you install it via eclipse ? May 03 18:11:30 no May 03 18:11:46 just copy the file apk in my mobil May 03 18:13:10 I said, what if May 03 18:13:56 hmm, i am going to try it May 03 18:14:34 i didn't know it May 03 18:27:09 is it ok to make a free version of my app called "appname v1" and then a paid version called "appname v2" or am i suppose to call them "lite" or "pro" or something May 03 18:29:04 you can choose^^ May 03 18:29:41 lite and pro is just a common "naming convention" May 03 18:33:33 i see. the reason is, because i want to release a free verison first and only make a paid version if the free one is popular enough so it would be a bit weird to call the first one "lite" or "demo" if i dont release a paid version because people would think there was one and be dissapointed when they search for it... and the paid version would be quite updated(improved interface etc) May 03 18:33:43 almost like a sequel, so v1 and v2 makes sense to me May 03 18:39:27 though it is not very common to make the sequel paid, usually i think its better to have common code for paid and nonpaid and make the paid just have more features May 03 18:48:37 if I do decide to make a paid version, can I change the name of the free one after it is published? to "apname" to "appname demo" ..... I suppose I could add "pro" to the paid one but I hate that, it sounds a bit tacky May 03 19:12:37 I want to create file picker May 03 19:12:42 what class should I use May 03 19:12:55 Im using now May 03 19:12:55 Intent intent = new Intent( Intent.ACTION_OPEN_DOCUMENT ); May 03 19:13:14 but by using this method I do not see "my sdcard" under emulator May 03 19:13:34 just 2 folders recent and download May 03 19:25:51 I have a very simple question ( i hope ) May 03 19:26:03 how do i set breakpoints in android studio May 03 19:26:33 M4N1AC: click on the left margin on the line you want to set breakpoint May 03 19:26:47 it should work the same way as in IntelliJ May 03 19:27:46 ah, you're unable to do it on empty lines May 03 19:27:49 thanks :) May 03 19:29:25 I've looked at Loaders and Adapters and i'm trying to find a good design pattern for loading data remotely from a network source. Ie: instagram. The problem isn't the transport protocol, but more in how to know when to load more data and how not to do it on the UI thread and how to properly update the UI. May 03 19:29:27 i could do this manually by detecting that they're at the bottom of a gridview and spawning a task to add more data May 03 19:29:32 anyone have any ideas? May 03 19:29:50 just looking for a way to encapsulate all of this stuff - similar to a cursor May 03 19:38:26 I'm running some debuging on my application which is force closing. this line is cauing a null exception : preview.addView(mPreview); May 03 19:38:38 in the debug i'm getting preview = null May 03 19:38:55 so make it non null? :P May 03 19:39:04 mCamera = getCameraInstance(); May 03 19:39:04 mPreview = new CameraPreview(this, mCamera); May 03 19:39:05 FrameLayout preview = (FrameLayout) findViewById(R.id.camera_preview); May 03 19:39:05 preview.addView(mPreview); May 03 19:39:15 that's what i'm trying to do xD ^ May 03 19:40:01 Does anyone have a good source of android learning resources? Thinking podcasts, weekly newsletters, conferences, etc. May 03 20:03:49 M4N1AC, it can't find a view with that id May 03 20:03:54 hence it's returning null May 03 20:05:26 canadiancow, that's weird.. could it have something to do with the use of fragments? May 03 20:17:10 canadiancow, do i need to find the view differently when i'm using fragments? May 03 20:19:29 m4n1ac: use the layout you set for your fragment to find the preview if it's in there. instead of findViewById(), mView.findViewById() where mView is your inflated layout May 03 20:20:05 canvs2321, ah, that makes sense to me :) May 03 20:20:10 i'll try it May 03 20:22:47 canvs2321, this is in onCreateView : View rootView = inflater.inflate(R.layout.fragment_main, container, false); May 03 20:23:06 so rootView.findViewById(), if camera_preview is inside it May 03 20:23:22 but i can't refer to it in onCreate as rootView.findViewById() May 03 20:24:15 take View rootView, and move it outside the scope of just onCreateView, make it accessible to other methods May 03 20:26:17 canvs2321, i'm not sure i'm following you there May 03 20:47:38 weekends are always such a boring time on #android-dev May 03 20:49:56 programmers must have social lives on the weekend May 03 20:54:49 can someone explain to me how i can findViewById in a inflated fragment called rootView in the onCreate method May 03 20:55:05 it is of course inflated in the onCreateView May 03 20:55:12 but i can't access it in onCreate May 03 20:55:30 like rootView.findViewById() May 03 20:56:40 You can't access the view in onCreate since it hasn't been created yet May 03 20:57:01 https://developer.android.com/reference/android/app/Fragment.html#Lifecycle May 03 20:58:21 so does that mean i should do it in onStart() May 03 21:00:33 Rather onCreateView May 03 21:00:38 Or onViewCreated May 03 21:05:37 SimonVT, non-static field 'mCamera' cannot be referenced from a static context May 03 21:05:55 in onViewCreated May 03 21:09:01 https://www.google.dk/search?q=non-static+field+cannot+be+referenced+from+a+static+context May 03 21:11:22 whats good Chainfire May 03 21:36:24 dead in here tonight what gives? May 03 21:40:43 * Napalm thinks its Pizza Time May 03 22:01:27 Can anyone explain why this does not draw to my SurfaceView when I click/move on it? The events are firing, and when I click the screen turns from white to black for some reason, but that's it. http://pastebin.com/SamP8PKM May 03 22:25:53 Hi May 03 22:27:16 hello, how can I set the xml view attribute baselineAligned (to false) programatically instead of in the xml. May 03 22:27:22 I cannot seem to find the answer on google May 03 22:29:25 Check the javadocs for the view that has that attribute May 03 22:41:12 How do I make an image transparant in my game. FYI, I'm not using any layouts. May 03 22:41:23 the image is a simple .png file May 03 22:52:27 This is more of an architecture question -- if you have a ListView that shows some persisted data, where tapping an item takes you to a new Activity that lets you edit that item's details. Which object would you give the responsibility of saving the info in the form into persisted storage? May 03 22:53:16 Would you pass the form's data back to the Activity that contains the ListView? Or would you have the form activity save the data? May 03 22:54:47 I think it makes more sense to do it in the form activity. May 03 22:55:22 That activity's purpose is updating the information. May 03 22:55:38 So if it's saved within a SQLite DB, have the form activity open up a new connection so that it can save the data? May 03 22:56:33 Well, the way the SQLite stuff works you're likely not actually opening a new connection if it's done properly (I'm no expert on this, though) May 03 22:57:52 No prob. Was looking online for any sort of best practice, hadn't had much luck yet. May 03 22:58:47 From what I understand it basically caches the database connection and returns that if you request another connection elsewhere, and does something similar to reference counting/garbage collection to close it if it's not needed. May 03 22:59:25 Gotcha. May 03 22:59:33 (Don't quote me on that, I have about 12 weeks experience with android :P) May 03 22:59:38 Heh May 03 23:01:37 I'd want to pass a model object that contains a save() method which the form activity could call, but it seems that would be too much overhead -- besides, I've only seen the ability to pass simple types, rather than custom objects via the Intent or Bundle objects that are given to an activity. May 03 23:04:04 From what I understand you can pass objects but they must be serialized and deserialized, so you define how to do that and implement the apropriate interface May 03 23:06:16 anyone ever played a bit with reverse engeneering google play client? May 03 23:06:44 highcup, I just send the primary key of the item I want to update to the dialog/activity. May 03 23:08:25 jasonj8: Makes sense, guess that does make the activity pretty self-sustaining. Thanks man. May 03 23:09:10 np. I have no idea if that's "best practices" sort of stuff, but it works pretty well and doesn't seem awful to me :P May 03 23:09:14 precisely -- objects passed in Intents are serialized May 03 23:11:35 Hi, is there anyone here that can answer one questions about Google Play for me? May 03 23:12:55 My questions is, If you release an update for your android app in google play, does it make it eligible for the "top new" lists again? May 03 23:15:17 Romans_I_XVI: https://support.google.com/googleplay/android-developer/answer/1295940?hl=en the lightbulb note in the middle of the page.. May 03 23:15:18 Can anyone explain why this does not draw to my SurfaceView when I click/move on it? The events are firing, and when I click the screen turns from white to black for some reason, but that's it. http://pastebin.com/SamP8PKM May 03 23:17:34 Highcup: Thank you, wasn't the answer I hoped for, but I got my answer so thanks. May 03 23:17:47 Romans_I_XVI: NP May 03 23:18:37 Regarding the relatioship with opengl context and orientation changes and background events: https://forums.libsdl.org/viewtopic.php?p=43318#43318 to what extent this is SDL specific I am unsure, however I would appreciate if someone could have a look at the post and give some advice. Thanks May 03 23:18:43 relationship* May 03 23:22:11 anyone have good / bad experience with retrolamda yet ? May 03 23:23:39 JakeWharton have you tried retrolamda yet by any chance? May 03 23:44:16 g00s: no need. May 03 23:44:26 I am progromatically adding a scrollview to a linear view. The problem is the ScrollView.LayoutParams class does not have a field for setting the layout weight. How can I set the layout weight of a scrollview progromatically? May 03 23:45:19 g00s: it doesn't offer anything I care about. The lambda syntax is the least interesting and useful part of them May 03 23:56:49 A lot of people talk about unit testing and dependency injection - When should I use them on Android? May 04 00:15:20 Hey guys c: May 04 00:15:41 nice to meet you all :D May 04 00:16:48 is anyone here more literate with Android Wear? May 04 00:31:25 Got a problem using a ListView inside a ScrollView. I've checked the data arraylist in the adapter and it contains all the values, however it only displays the very last value... Any ideas why? May 04 00:32:47 add android:fillViewport="true" to the ScrollView May 04 00:33:45 wow May 04 00:33:49 thanks XD May 04 00:33:56 Didn't expect it to be that easy May 04 00:34:06 your welcome May 04 00:34:45 one follow up question May 04 00:35:04 any other attribute I have to set to make the list view scrollable? I thought the scroll view did that May 04 00:35:11 but it's not scrolling May 04 00:37:48 a list view is already scrollable May 04 00:37:54 don't put it inside of a scroll view May 04 00:41:07 oh, thanks May 04 00:41:14 so what should a scrollView be used for? May 04 00:41:23 like May 04 00:41:27 text May 04 00:41:32 or images May 04 00:41:47 if you have a lot of images then you can use a scrollView May 04 01:11:57 a scroll view should be used for making a non scrolling view scrollable May 04 01:12:17 very straightforward May 04 01:24:43 is the second parameter in the inflater constructor/method the view you want to add the inflated view to? May 04 01:25:00 yes May 04 01:25:17 ahh now it makes sense May 04 01:26:51 does that mean I have to have declared setContentView(Layout)before doing this? May 04 01:29:30 no May 04 01:49:23 I'm getting a nullpointer exception when I press a button with this code: http://sprunge.us/YgQD it works fine if I don't have the vibrate command in there. May 04 01:59:55 * jumblemuddle looks around ('-' ) (._. ) (o_o) ( ._.) ( '-') May 04 02:13:47 Changed things around a bit, same issue: http://sprunge.us/ZBWS May 04 02:18:32 here's the error: http://sprunge.us/MfNc May 04 02:35:42 when it comes to an AVD, I've noticed there are things that are specified in both config.ini and in hardware-qemu.ini. Which one has the priority? May 04 02:56:02 does anyone know a good way to compile c/c++ ndk codes through code::blocks? **** ENDING LOGGING AT Sun May 04 02:59:59 2014