**** BEGIN LOGGING AT Sun Mar 23 02:59:58 2014 Mar 23 03:45:23 I wanna share my bitmap through Intent and this is my code http://pastebin.com/z52SDnAm Mar 23 03:47:03 my temp image file is created in the cache directory correctly, but when I try to send it through email (it is attached correctly to the mail), for example, on the other end, I only get an email without the image Mar 23 03:47:14 bitmaps are parcelable? Mar 23 03:47:37 I used DDMS to open the image in cache dir, it open correctly Mar 23 03:47:42 pfn: what do you mean ? Mar 23 03:48:07 oh you're saving to disk Mar 23 03:48:30 yes, the file is saved correctly ( I can open it to view through DDMS) Mar 23 03:48:41 looks like saving to apps cache dir, does email have permission? Mar 23 03:48:56 but when sending, in the other end, i cannot see the attached file Mar 23 03:49:03 maybe /data/local/ or something Mar 23 03:49:35 canvs2321: what do you mean ? Mar 23 03:50:36 /data/data/ur.app/cache/bitmap.bmp? does email app have permission to folder Mar 23 03:50:57 or is .getCacheDir() a global folder? Mar 23 03:51:15 getCachedDir is not the global folder, it belongs to my app Mar 23 03:51:16 ok Mar 23 03:51:25 so it wouldn't have rw access Mar 23 03:51:27 right? Mar 23 03:51:42 could be Mar 23 03:51:46 lemme check Mar 23 03:53:45 i'm betting it'd be a permissions issue Mar 23 03:54:34 yes, i think so. Data from my app cannot be accessed from other apps Mar 23 03:54:39 will remember this Mar 23 03:55:02 can always create bitmap where you have it then change permissions on that file, cuz seems on my device /data/data/myapp/cache/ is rw by all, but the files are rw for the owner Mar 23 03:55:34 shit n/m, only rw by owner&group not user Mar 23 03:55:59 use sdcard, or a open(rwx) internal Mar 23 03:56:05 then just remove once sent Mar 23 03:56:23 yeah, i will go for the external storage Mar 23 03:57:48 check that out&report back Mar 23 03:59:18 change to getExternalCacheDir will solve the problem Mar 23 03:59:24 will or does? Mar 23 03:59:29 did Mar 23 03:59:33 sweet Mar 23 03:59:42 :D Mar 23 04:00:33 probably the right way is to use the content provider, pass the URI in an extra Mar 23 04:01:27 http://developer.android.com/reference/android/support/v4/content/FileProvider.html Mar 23 04:01:43 but would file still need to be outside of /data/data/ scope? Mar 23 04:02:24 no Mar 23 04:02:28 thats the whole point ;) Mar 23 04:02:47 then yes go w that! :) i didn't know bout it Mar 23 04:03:02 is checking it out Mar 23 04:03:19 one word of caution; exported=false didn't work for me, so you may have to play with that Mar 23 04:05:55 good catch g00s, i usually hack my way through stuff, still i start refactoring&i've never needed to share files like that :) Mar 23 04:06:25 that is just a convenience thing; if you already have a provider then just add the one method needed Mar 23 04:28:24 hello all, doing oauth for user authentication reasons, info on google seems out of date, what's the go to method for doing this with a number of services? (ie. google, twitter,facebook) Mar 23 04:57:29 actually oauth would probably be the standard Mar 23 04:58:01 and like any standard, it has a bunch of options ;) Mar 23 05:12:09 if you put a Switch in the action bar like so http://stackoverflow.com/questions/12107031/how-to-add-a-switch-to-android-action-bar Mar 23 05:12:36 how do you get hooked to setOnCheckedChangeListener Mar 23 05:12:48 or how do you know when the Switch changes position ? Mar 23 05:14:30 oh, i add the listener in onCreateOptionsMenu Mar 23 05:14:32 hi Mar 23 05:15:14 i'm testing one of my apps on android x86 kitkat rc1 Mar 23 05:15:58 it cannot capture video because the camera app lacks the check to confirm this is the video you want, only the X to cancel. Mar 23 05:18:00 how is it going p_l Mar 23 05:18:11 a bit fine Mar 23 05:18:24 By May I should finally finish my Master's Mar 23 05:18:35 oh yeah? in CS ? Mar 23 05:18:46 AI, so yeah, computing science Mar 23 05:19:01 congrats; i think that was better choice than going to google ;) Mar 23 05:19:10 g00s: I'm not so sure :P Mar 23 05:19:22 also, I'm actually in middle of recrutation to google ;P Mar 23 05:19:38 thats cool. i'd finish the degree though :) Mar 23 05:19:45 almost there ... Mar 23 05:19:51 they can wait Mar 23 05:20:00 well, yeah - recrutation doesn't mean you go immediately Mar 23 05:20:35 oh i get it, they know you are graduating soon so - uh yeah, recruiting Mar 23 05:20:46 hey guys, sup g00s Mar 23 05:20:52 oh oh Mar 23 05:21:03 hi jareddlc :) Mar 23 05:21:14 i think i fixed all the wierd bugs Mar 23 05:21:17 with bt Mar 23 05:21:24 nice Mar 23 05:21:30 err "fixed" figured out how to hack it so it works accordinly Mar 23 05:21:39 well just UI portion atleast :D Mar 23 05:21:45 … but there is an endless supply of weird BT bugs on android :) Mar 23 05:21:46 now try to figure out how to do services Mar 23 05:21:52 oh yes g00s Mar 23 05:21:56 hope you are ready to put time in to supporting your app :D Mar 23 05:22:03 xD Mar 23 05:22:07 its not ready yet Mar 23 05:22:22 so now i gotta learn how to do service Mar 23 05:23:03 for you guys using android studio, a lot of time when i go to collapse a directory in the tree view, it asks me if i want to move the folder ... Mar 23 05:23:09 its a little 'move happy' or something Mar 23 05:23:15 do you guys see that too ? Mar 23 05:23:40 bah Mar 23 05:25:53 haven’t switched to android studio yet.. sticking with intellij for the time being… is it worth it to move to android studio right now? Mar 23 05:26:23 if you are productive with what you have , probably not Mar 23 05:27:06 especially if you aren't using gradle Mar 23 05:27:18 dunno how plain intellij looks these days Mar 23 05:27:29 g00s: hmm. I have to write an abstract for a conference today Mar 23 05:27:45 insanity strikes again! :D Mar 23 05:27:51 p_l for a tesis ? Mar 23 05:27:53 *thesis Mar 23 05:28:00 well, they’re adding the same features as android studio, will probably try android studio for small side project to get familiar Mar 23 05:28:50 g00s: I was thinking of submitting my Master's work for a conference session Mar 23 05:30:13 Log.i(TAG, "initiated vars"); gives error "Main.java:19: expected" Mar 23 05:31:39 p_l i like kurt vonnegut's thesis http://visual.ly/kurt-vonnegut-shapes-stories-0 Mar 23 05:32:00 do a nice diagram like that Mar 23 05:32:04 :) Mar 23 05:32:15 otoh, if his was rejected ... Mar 23 05:33:18 mine doesn't fit such work. His probably also didn't fit requirements. Mar 23 05:34:10 "best Master's thesis" in my parents' graduation year was, however, a Maths student's thesis that fit on 2~3 pages (A4) Mar 23 05:34:53 https://gist.github.com/santosh/4c8fe6805f8de35a08ce#file-terminal-output Mar 23 05:37:55 hey guys quick question how do i get the string out of a handleMessage(Message msg) Mar 23 05:38:11 mHandler = new Handler() Mar 23 05:38:29 i have a problem setting up android development in intellij Mar 23 05:40:28 guys, what's wrong in my code? Mar 23 05:40:37 jareddlc you probably stuffed it in msg.obj Mar 23 05:41:22 g00s: Message msg = mHandler.obtainMessage(); Bundle b = new Bundle(); b.putString("message", "isEnabled"); msg.setData(b); mHandler.sendMessage(msg); Mar 23 05:41:50 yeah so getData gives you the bundle back Mar 23 05:43:57 so how would i get the message back? Mar 23 05:45:55 b.getString() ? Mar 23 05:46:38 i'll google it Mar 23 05:46:45 i figured someone might know on top of head Mar 23 05:47:08 ... g00s answered you... Mar 23 05:47:28 comprehension fail Mar 23 05:49:49 What is wrong in this line? --> Log.i(TAG, "initiated vars"); Mar 23 05:50:25 learn java and fix it Mar 23 05:52:07 maybe you should put it inside onCreate Mar 23 06:20:27 hey Chainfire , see this ? http://www.magiclantern.fm/ Mar 23 06:20:53 i though the interesting thing was the iso bracketing for hdr-ish effect Mar 23 06:48:22 hello Mar 23 06:48:36 is the kernel version string different in android? Mar 23 06:49:56 chairman_meow: not really - it's just normal kernel version string of the specific kernel used for the OS Mar 23 06:50:24 (you need, however, specific build for the hardware and some android-specific drivers) Mar 23 06:50:38 the full version string is Linux version 3.4.0-perf-gdfc96e2-00006-g32b3f6d (ccadmin@BUILD14) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Mon Aug 19 18:59:38 CST 2013 Mar 23 06:51:29 which is a normal version string (with specific git changeset referenced, probably, in the "extra" part of the version string) Mar 23 06:52:05 hmmm ok. Mar 23 06:52:25 I don't have the kernel sources, so i'm looking for it in CAF, through the commit hash Mar 23 06:55:07 thats a dang long version string Mar 23 06:55:13 hey guys Mar 23 06:55:19 on listpreference can i get value of text? Mar 23 06:55:31 i can get value of the selected but can i also get the text? Mar 23 06:55:39 g00s: typical for google Mar 23 06:59:52 g00s: sup person? Mar 23 07:02:23 thepoosh i am goose, not person Mar 23 07:02:30 oh my Mar 23 07:02:36 sup goose? Mar 23 07:02:40 :) Mar 23 07:03:13 not much. rewriting an old app for api14+ Mar 23 07:03:27 cool Mar 23 07:03:36 that should show some good result pretty fase Mar 23 07:03:38 *fast Mar 23 07:03:57 I'm mapping all server API calls in the android client for a meeting Mar 23 07:03:59 its a lot easier to make things look decent, than back in those days Mar 23 07:04:08 yeah Mar 23 07:04:22 I remember when things started looking half decent on android Mar 23 07:37:40 hey guys Mar 23 07:37:47 can i get a value of perference Mar 23 07:37:54 if its not a sharedpreference? Mar 23 07:41:34 hi everyone. Mar 23 07:47:18 sup RedEyedGirl Mar 23 07:47:24 and goodnight Mar 23 07:47:34 calling it a night got some more UI logic done g00s Mar 23 07:47:44 hopefully soon, get to make it a service Mar 23 08:32:24 Good morning good people.. I wonder if any one can help my puzzled brain.. I am trying to convert some bb style code to html for my webview, but some of it doesn't get converted. Code snippet here : http://pastebin.com/yejPqdr8 Mar 23 09:06:15 Afternoon folks Mar 23 09:06:22 Suppose I've 3 buttons, & onClickListener for each Mar 23 09:06:29 The statements under onClick for each of them, is it better to code statements directly within it, or call a new method containing the statements? Mar 23 09:22:08 hi, how can i launch app top focus ? my app start at boot completed but there are other app and my app isn't in front Mar 23 09:25:10 hy all Mar 23 09:25:51 Android Studio gives me this error: Failed to refresh Gradle project 'DemoNFCWriterApp' The project is using an unsupported version of the Android Gradle plug-in (0.6.3). Version 0.9.0 introduced incompatible changes in the build language. Please read the migration guide to learn how to update your project. Open migration guide, fix plug-in version and re-import project Mar 23 09:26:08 I don't really understand that migration guide Mar 23 09:26:17 can you help me what to do? Mar 23 09:32:55 somebody? Mar 23 09:35:55 Ankhwatcher: ^ Mar 23 09:39:22 Any takers on this : I wonder if any one can help my puzzled brain.. I am trying to convert some bb style code to html for my webview, but some of it doesn't get converted. Code snippet here : http://pastebin.com/yejPqdr8 Mar 23 09:57:34 Hello. Does anyone know why my GestureListener is not triggering? I am registering with gestureDetector = new GestureDetector(this, new GestureListener()); in the onCreate() method of my view, yet It does not log when i swipe in my device. Mar 23 10:01:36 somebody? Mar 23 10:01:40 my question is above **** BEGIN LOGGING AT Sun Mar 23 10:06:03 2014 Mar 23 10:14:03 im wanting to access the sms on the device. ive read using the content provider for sms is not part of the public api and therefore is not reliable between manufacturers. has anyone who has worked with sms content providers hit any issues with any manufacturers in particular? Mar 23 10:28:33 what are the pros and cons for me needing to set an onclick listener for each instance of my custom class? Why can one not set it at the custom class level? the onClick function is called with a reference to the view clicked so it knows what its dealing with. Mar 23 10:29:16 How would you create this nav drawer? http://i.gyazo.com/5d4bbe81e8dad4df9939bf7f3e16d985.png Mar 23 10:29:28 what can be the problem? Error:Execution failed for task ':DemoNFCWriterApp:preBuild'. Mar 23 10:29:28 > Build Tools Revision 19.0.0+ is required. Mar 23 10:29:41 Build Tools Revision 19.0.0 is already installed Mar 23 10:29:50 What you people do for feedback? Mar 23 10:29:55 gregtom6, 19.0.0 is not 19.0.0+ Mar 23 10:30:07 19.0.0+ is already installed too Mar 23 10:30:19 You can't have two at the same time can you? Mar 23 10:30:21 autrilla: http://developer.android.com/training/implementing-navigation/nav-drawer.html Mar 23 10:30:49 autrilla: 19.0.1, 19.0.2 and 19.0.3 are also installed Mar 23 10:30:55 teasp00n, my question is basicly: do a complicated ListView or just have it be static? Mar 23 10:31:33 gregtom6, do you have local.properties in the project folder? Mar 23 10:32:09 autrilla: oh i see what you mean... Mar 23 10:32:11 Also, check build.gradle and look for buildToolsVersion Mar 23 10:32:31 teasp00n, the only thing "dynamic" there are is the RadioGroup Mar 23 10:36:09 I've got a form with 8 entries - each entry is a radio button and the onclick listener generates a progress bar. What pattern should be used, in order to avoid 2 by 8 switch statements in the onclick listener and progress change listener? Mar 23 10:37:04 hidgw, I'm kind of stuck with a MapFragment always being null issue. details here http://stackoverflow.com/questions/22589375/findfragmentbyid-always-returning-null any hint? Mar 23 10:37:53 hello guys, I have a question that may be trivial, but it is often done by some people :) oke like this "can we modify and imitate other people's scripts to create android applications and then publish to google play...." Mar 23 10:37:54 hidgw, sorry, typed hi and somehow the tab key. Mar 23 10:38:26 thanks for advance... Mar 23 10:38:41 creatorb1, what kind of scripts Mar 23 10:40:31 autrilla: by static do you mean in code rather than xml? Mar 23 10:41:03 creatorb1: depends on the rights granted per script. People do it all the time. Its why there so much duplicated garbage in the play store too. In other words : there is no answer. It' Mar 23 10:41:11 vmusr: maybe like as trivia quiz app, i see some people get the project on github and they are download it, then modifications and publish it.... Mar 23 10:41:11 s a script by script issue. Mar 23 10:41:18 teasp00n, hmmm no. Instead of doing everything in a ListView (which is rather complicated), just hardcode everything into the layout, everything but the radiogroup, which I'll have to fill programaticall Mar 23 10:42:01 creatorb1, you're free to publish whatever you want on google play, however you must comply with the license of EVERYTHING you use Mar 23 10:42:59 so for example if you use a code licensed under GPL, you have to follow the rules of the GPL license and etc... Mar 23 10:43:28 rgr: hmm...i don't know about it license, but the owner have upload on github and some people rebuild it app...maybe it's free cause the owner have uploaded hahah :3 Mar 23 10:43:45 autrilla: i would go with option 2 Mar 23 10:44:34 creatorb1: what is it you want to do? If someone publicly gethub's their code then it's gonna get used and copied. And duplicated. So is life. Mar 23 10:44:44 free and open are 2 different things Mar 23 10:45:20 vmusr: ouuh :) i think thats right, :D Mar 23 10:45:20 okee thanks a lot :) Mar 23 10:45:48 rgr: yeahh sorry, I just realized Mar 23 10:47:57 but what do YOU want to do? Mar 23 10:50:35 rgr: nothing maybe its just asking... Mar 23 10:51:08 sorry i mean only asking... Mar 23 10:53:11 and just because it's on github, free and open it's not like that you can do whatever you want Mar 23 10:53:12 depending on the license, you might be forced to publish the source of your modifications, give credit to someone, etc... Mar 23 10:53:13 also there are restrictions on for example charging for the software and that kind of things Mar 23 10:53:13 No matter where you get a source it's still someone's Intellectual property and unless there is an explicit license to do whatever you want, you'll have to comply with the license. Mar 23 10:54:54 there is an explicit clause saying you can do whatever you want, you'll have to comply with the license Mar 23 10:54:54 otherwise you are punishable by law Mar 23 10:56:48 okkay thanks a lot dev :) owh yeah, i have next question...but maybe after I finished showering, cause this is a question about my project, and I was worried if I would forget to ask now: D hahaha ask about updating the database with json Mar 23 11:01:07 The problem I talked about before got solved. Thanks http://stackoverflow.com/a/22589779/257944 Mar 23 11:13:31 yes, we said all that re license. But if theres not a license its a free for all in the real world - the IP argument would not wash. You releases it : then you did so to share it. If people use it tough luck, with a license too unfortunately as is witnessed time and time again when people steal GPL code and get found out. Mar 23 11:14:47 hy all, again Mar 23 11:15:20 I changed from webchat.freenode.net to simply qwebirc, so now I don't need to always enter captcha...that was painful Mar 23 11:16:43 use a proper irc client. solved. Mar 23 11:17:25 rgr: yap Mar 23 11:25:30 so: AS gives me this error: Error:Execution failed for task ':DemoNFCWriterApp:preBuild'. > Build Tools Revision 19.0.0+ is required. Mar 23 11:25:40 19.0.3 is already installed Mar 23 11:25:42 what is the problem? Mar 23 11:26:29 you're not using a build tools which matches 19.0.0+ .... is the smart arse reply of course. Wheres your build.gradle? Mar 23 11:27:46 In a list of thigns (e.g buttons) theres no reason why I shsouldnt set each buttons onClickListener to a static member function of the enclosing control is there? I can easily enough cast the view pased into the onClick back to the instance of the custom control class. Mar 23 11:28:32 rgr: build.gradle is in the project Mar 23 11:31:45 Why would my on touch listener be called on multiple elements even when the click was clearly only registered on one? Mar 23 11:32:07 gregtom6: I meant show it via a pastebin Mar 23 11:32:27 or gist if you're using AS/Intellij Mar 23 11:32:46 rgr: http://pastebin.com/xptf8qbk Mar 23 11:37:12 rgr: any idea? Mar 23 11:37:25 thats not your android build.gradle thats the top level one. Mar 23 11:37:55 rgr: so where's that? Mar 23 11:38:18 in your project. or should be. I done use AS though - I use intellij which is apparently similar enough. Mar 23 11:38:21 rgr: and next time you write to me ping me pls Mar 23 11:38:26 maybe you dont need to the android plug in. Mar 23 11:38:33 e.g mine: Mar 23 11:38:54 https://gist.github.com/9721962 Mar 23 11:39:01 but its probably not that. Mar 23 11:39:04 rgr: in the root folder there's one build.gradle, the one I showed for you Mar 23 11:39:42 sure theres one in the root folder. in my set up theres also one in the module (or whatever its called) directory. Mar 23 11:40:12 rgr: I have too, I can see now, sry Mar 23 11:40:16 paste it now Mar 23 11:40:36 rgr: http://pastebin.com/g6EdfgZB Mar 23 11:43:14 its blindingly obvious (I think!) .... Mar 23 11:43:59 what is the error telling you? Its telling you the build tools are wrong. Where are the build tools specified? in the build.gradle you finally discovered after realising there is more than one. Check the version in that build.gradle... it's set to 17! Mar 23 11:44:17 Now now promises but it's a start... Mar 23 11:44:21 s/now/no Mar 23 11:48:44 rgr: I have rewritten the build tools version and now it works Mar 23 11:49:16 in that build.gradle Mar 23 11:52:12 can you show me an nfc writer/reader example application? Mar 23 11:52:17 rewritten is rather a grand term for correcting one digit ;) So you're happy now? Mar 23 11:52:30 No I cant. Use google and find examples yourself. Mar 23 11:52:34 :D Mar 23 11:52:39 okay Mar 23 11:53:20 if its any consolation its really hard when you start out to figure out whats controlling what but as soon as you realise build.gradle controls things its generally easy enough to work from there. Mar 23 11:56:47 rgr: ok Mar 23 11:57:09 rgr: next time ping me (write gregtom6: message) if you write to me Mar 23 11:57:44 because irc client doesn't say anything to me if you miss that Mar 23 11:58:07 I wont be writing to ... And its courtesy not to tell the people helping you how to do it. use a proper irc client. Mar 23 11:58:42 (if the channel is busy then name: is normal yes - but in this case it isnt.) Mar 23 12:01:41 rgr: okay Mar 23 12:02:07 rgr: and what to do if I have opened a project without gradle? Mar 23 12:02:29 I read yesterday that I need to create facet, but it's not clear how to do that in right way Mar 23 12:09:56 because of I have Eclipse on my PC, I will just generate gradle files with that Mar 23 12:11:38 what? No wonder you're getting mixed. Dont mess with two IDEs on the same project. That is insane. Understand ONE. Preferably, IMO, AS. Mar 23 12:12:03 need to create facet? Do you know why? For what? Mar 23 12:12:34 you dont generate gradle files. You have them. You might need to add dependencies but this is well covered on google and the gradle user manual. Mar 23 12:13:20 hi, which channel is suppose to for talking on mobile-Java > Mar 23 12:13:50 what's "mobile-java"? Mar 23 12:14:41 Java midp , java has reduced set of classes for mobile to consume less ram i guess. Mar 23 12:15:09 ah Mar 23 12:15:21 no idea if there's a channel for that, it's kinda extinct :- Mar 23 12:15:26 :/ Mar 23 12:15:48 ya, used in older phones. Mar 23 12:20:17 Mobile java is aka J2ME. Mar 23 12:21:14 I'd like to add a custom attribute to contacts. based on what I've managed to find online, I'm now adding a SyncProvider and SyncAdapter to my project, but it feels like a lot of work for what I think is a simple requirement. Mar 23 12:21:17 someone asked about that. certainly not here. or anywhere really ;= You might find a gathering of beards in a forum somewhere . Mar 23 12:23:51 TErik: my previous android phone came with support for J2ME Mar 23 12:24:42 ya, i'm looking for J2ME midlet/midp based SIP VoIP apps. Mar 23 12:25:06 i used one long time, can't find that anymore. Mar 23 12:27:40 does anyone here have any views on using "new OnClickListener({void Onclick(){}}" multiple times as opposed to using a static onClickListener for multiple controls of the same class? It's easy enough to cast the View passed to onClick back to the customclass that represents that view type. Any savings in resources? Mar 23 12:29:01 Is there a way to reverse the order of items in an adapter? Mar 23 12:29:38 Anyone developing for Android with python? Kivy? anyone know's something better?. Mar 23 12:30:34 ClarusCogitatio: There's a kivy channel on freenode. I tried all the crossplatform tools. Came back to native. It's just not there yet. Mar 23 12:30:38 found J2ME based Google-Voice app here : http://code.google.com/p/gv4me Mar 23 12:30:55 any J2ME based SIp VoIP software ? Mar 23 12:31:33 JustSighDudes, What's are the most dire problems facing the platform atm?. Mar 23 12:31:54 ClarusCogitatio: Most of them are really slo. Mar 23 12:32:15 ClarusCogitatio: Just use native for now. Trust me. Mar 23 12:32:36 Appcelerator titanium is very buggy Mar 23 12:32:44 Phonegap is just html and not responsive. Mar 23 12:33:14 I see.. ugh, that's unfortunate, i was really hoping to avoid working in Java again, in 2014 ^_^ Mar 23 12:33:17 atleast there's JDK 8 Mar 23 12:33:34 8 is not a supported jdk for android Mar 23 12:34:18 What about Xamarin? Someone in here uses Xamarin iirc. Mar 23 12:34:25 Never used that. Mar 23 12:34:44 Me neither. Mar 23 12:35:00 ^_^ Mar 23 12:38:23 So no one knows how to reverse the order of an adapter? Mar 23 12:42:52 JustSighDudes: just reverse the array or whatever you are loading it from Mar 23 12:49:14 shmooz: getSupportFragmentManager(), how would I reverse that? Mar 23 12:49:39 Basically I need my application Right-to-Left, not Left-to-Right. It will not be in English. Mar 23 12:50:30 JustSighDudes: which view are you using ? Mar 23 12:51:16 shmooz: Where? Mar 23 12:51:39 who knows Mar 23 12:52:10 to display your right to left what view are you doing it in ? Mar 23 12:52:18 I haven't done anything, yet. Mar 23 12:52:36 Just trying to reverse the order of the actionbar tabs Mar 23 12:52:40 try something first Mar 23 12:52:59 Then maybe try to mirror the actionbar if that's poissible Mar 23 12:53:33 You can enable RTL layouts in the developer options btw. Mar 23 12:53:38 For debugging. Mar 23 12:53:54 http://android-developers.blogspot.co.at/2013/03/native-rtl-support-in-android-42.html Mar 23 12:54:20 oh yeah I remember them talking about that at google i/o Mar 23 12:56:26 JustSighDudes: so yeah they made it easy for you, lucky you Mar 23 12:56:31 Nice. Just what I was looking for. viewpager.setlayoutdirection(1) and I'm done. Mar 23 12:56:55 Now need to work on figuring out how to do the same to the actionbar Mar 23 12:57:07 Please don't use 1 as a hardcoded value Mar 23 12:57:16 Why not? Mar 23 12:57:26 The app will always always always be in Arabic. Mar 23 12:57:28 Alwyas. Mar 23 12:57:34 Use View.LAYOUT_DIRECTION_RTL Mar 23 12:57:38 Oh. Mar 23 12:57:41 Ok. Mar 23 12:58:41 The value probably won't change, but even then it's more readable. Mar 23 12:58:49 And you'll never have to wonder "what does 1 mean?" Mar 23 12:59:13 I guess they don't have a support lib version of rtl Mar 23 12:59:16 There's also "android:layoutDirection" for the XML btw. Mar 23 12:59:26 4.2 and above Mar 23 12:59:28 Yeah, seems native RTL support means API Level 17+ Mar 23 12:59:36 JustSighDudes: You're aware of that, right? Mar 23 12:59:54 lol kakazza just found that out now. Mar 23 13:00:05 Looking up stats right now. Mar 23 13:00:18 If 4.2 and above is >75% then I'm going with that. Mar 23 13:01:16 More like 30% Mar 23 13:01:19 https://developer.android.com/about/dashboards/index.html#Platform Mar 23 13:01:39 Ah crap not even close. Mar 23 13:01:52 19% on gingerbread woah Mar 23 13:03:12 I tried to open project in eclipse and it says import android packages cannot be resolved. Why? Mar 23 13:03:32 Forget GB Mar 23 13:05:51 I have an ontouch handler in my code, now, depending on a condition I want to either fire it or pass it through to the click events. How would I do that? Mar 23 13:06:39 if (condition) { doFoo(); } Mar 23 13:06:51 Yeah, but, no... :D Mar 23 13:06:55 ;p Mar 23 13:07:12 The handlers are registered to elements. Mar 23 13:07:16 This is driving me insane. Mar 23 13:07:31 What is the specific use case? Mar 23 13:07:38 isn't that solved by 'return true' vs 'return false' in the handler ? Mar 23 13:07:48 Hold on. Mar 23 13:07:52 I think I tried that before. Mar 23 13:08:05 (you'd return false if you want it to pass through, IIRC) Mar 23 13:09:09 JustSighDudes: it seems froyo/gingerbread users need to apply this patch to get rtl support http://blog.devasque.com/how-to-apply-patch/ Mar 23 13:09:39 somebody? Mar 23 13:10:06 gregtom6 have you installed the Android SD K? Mar 23 13:10:22 Chainfire: obviously Mar 23 13:10:33 finally found one j2me sip voip client : talkonaut Mar 23 13:10:41 I think that might have solved it... Mar 23 13:10:59 JustSighDudes if this is an app you're wanting to sell to end-users, forgetting about Gingerbread may not be as unwise as it seems due to its marketshare Mar 23 13:11:14 gregtom6 you say that as if nobody ever comes in here asking that question when all they have is Eclipse and not the SDK ;) Mar 23 13:12:01 Chainfire: well, I have installed the sdk Mar 23 13:12:11 and the path to that is correct in eclipse Mar 23 13:12:14 gregtom6 unfortunately I do not know the answer for your problem. I remember in the past there was a preference somewhere with the path to the Android SDK that needed to be correct and was sometimes wrong, but I'm not even sure if that still exists Mar 23 13:12:34 gregtom6: in your project->properties->Android make sure there is at least one of those sdk versions checked Mar 23 13:14:30 Now, next question: I have image views which I am overlaying using a Framelayout. SOme of these frames contain transparent areas. How can I pass the event through to the other frames UNTIL it's eaten by the frame we clicked on (aka the frame that I clicked on that has content there). Hope people understand me here. Mar 23 13:15:30 Tobbi I'm not sure if there is any way to have the framework do that for you, tbh Mar 23 13:15:49 (but I am not an expert on these things, UI is not my strong point) Mar 23 13:17:32 Alright. Mar 23 13:17:36 on the other hand, return false in it's onTouch handler might just work as in your previous problem Mar 23 13:17:41 http://stackoverflow.com/questions/11635934/touch-through-translucent-app Mar 23 13:18:13 I could also see the touch event going to the parent's view instead of the one behind it, though Mar 23 13:18:24 (which would usually be the same view, but not with a framelayout overlay) Mar 23 13:18:36 Does httpClient cache? Is there some magic going on in the background? Mar 23 13:18:59 Chainfire: :D This can't be this hard. How would I make sure if the underlaying view has a transparent area where I clicked? Would you have any idea about that? Mar 23 13:19:16 gregtom6: hwy are you now opening it in eclispe? I told you against that. The AS set up it totally different and uses gradle based build and build hierarchy. Mar 23 13:20:40 you're going to continue to break things and get confused if you dont take a step at a time and understand things. We just went through why you were getting gradle build errors in AS and hpw to fix it. Jumping back to eclipse and expecting it magically rejumble your stuff aint gonan crack it I'm afraid. Mar 23 13:21:00 rgr: yes...and AS is unuseful...sorry, I just simply don't want to spend with hours trying to figure out how to do simple things in that Mar 23 13:21:06 I use eclipse for now Mar 23 13:21:13 JustSighDudes: OkHttp, best http client out there, does an excellent job at caching and the best of it? Same http client on all platforms. Mar 23 13:21:13 Tobbi again, this is not my area of expertise, however, I imagine the transparancy is only something the renderer cares about, and not the touch logic. Mar 23 13:21:22 Hmm... Mar 23 13:21:32 Thanks, anyway. I hope I will find some way. Mar 23 13:22:00 rgr: I just simply don't have time right now to figure out illogical things in Android Studio...I know Eclipse a bit better Mar 23 13:22:08 kakazza: Square are on fire Mar 23 13:22:12 Tobbi that being said, if you know which areas of your view are transparent, you might catch the touch event and dispatch it to the correct view manually Mar 23 13:22:39 Oh wait. I'm trying to disable caching not enable it. Mar 23 13:22:49 haha Mar 23 13:24:47 Tobbi from some Googling, this may actually work as expected, as long as your 'front' view, and all it's parents(!), return false in touch events and click listeners when you tap in the transparent area. Play around with it. Mar 23 13:25:16 Chainfire: The problem is how to find out the "color" of the area that I clicked on... Mar 23 13:32:10 and yet you're hear asking the same import issues as yesterday. My advice is to stick with one. One its running they are as good as similar. Neither will write your code. Now I feel it a total waste of time helping you witht gradle earlier only for you to now dump it at the next trivial error. Mar 23 13:33:09 getting this : java.lang.SecurityException: Requires READ_PHONE_STATE Mar 23 13:33:20 but I have this in AndroidManifest.xml: Mar 23 13:33:53 android.permission.READ_PHONE_STATE Mar 23 13:34:13 k Mar 23 13:37:24 gregtom6: I think rgr overreacted , AS and eclipse don't conflict on the same project dir from my experience Mar 23 13:38:28 now I try to try out an example nfc reader/writer app, but I get nullpointerexception because a variable only exist when you touch the card Mar 23 13:38:32 and lost after that Mar 23 13:49:56 http://www.framentos.com/en/android-tutorial/2012/07/31/write-hello-world-into-a-nfc-tag-with-a/ Mar 23 13:50:26 I tried to use this example, but I get nullpointerexception. I think it is because the connection is lost between the card after touching Mar 23 13:50:34 how can I solve this? Mar 23 14:36:11 Chainfire: My problem might lay somewhere else: When I use the android animation framework to scale the card, is that change applied to the actual element, aka, will the onclick listener work on the new size or the original one? Mar 23 14:40:56 Or anyone else? Mar 23 14:42:26 I need some pointers on app modelling for persistance and restore. Lets say my app has a bunch of custom class buttons which all hold a reference to a unique instance of "myClass". These buttons are dynamically added and even potentially deleted. These buttons, when clicked, each just manipulate the referenced MyClass object (how is unimportant). Under certain circumstances these buttons might be deleted (removed from the activity Mar 23 14:42:26 view). My Q is how do I best store this for restore? Would I maintain an array of the MyClass objects? Would I loop on all the myButton views and construct something to write to the savedInstanceState bundle? Hopefully you get the picture. Mar 23 14:55:49 Tobbi don't know, sorry Mar 23 14:59:59 hy all, again Mar 23 15:00:23 I tried to create an android application project in eclipse, but it simply doesn't allow to select minimum sdk version Mar 23 15:00:36 the controller of the window is buggy Mar 23 15:00:37 why? Mar 23 15:01:10 because eclipse is quite buggy :) Mar 23 15:01:31 i've left it a week or two ago, and have had 0 problems using a new editor Mar 23 15:03:06 ThomQ: android studio has more bugs Mar 23 15:03:12 but now I can't use any of them Mar 23 15:03:19 yeah, but i just use IntelliJ now Mar 23 15:10:01 ThomQ: I simply don't have time now for learn a totally different IDE Mar 23 15:10:34 I know eclipse more than AS, but I don't know anything about IntelliJ idea...only that the AS is based on that Mar 23 15:10:39 and that's all I know Mar 23 15:29:25 Where should I plop the calls for java.net CookieManager setCookieHandler? In the onCreate of my first activity? Mar 23 15:37:35 hello guys Mar 23 15:37:50 I am trying to rotate an image Mar 23 15:38:06 I could do it with Matrix, but I see that that is depracated Mar 23 15:38:28 but doing it with canvas seems to screw up the coordinates Mar 23 15:38:40 I have activity which in onCreate load content into webview or shows form to enter url. When I hit back button the activity is added into task list. Now using task list when I bring back activity it as if does onCreate instead of just show the existing content. Mar 23 15:38:51 is there any way to rotate an image on the screen and maintain the coordinates "correctly" Mar 23 15:39:50 mms_: you have your onPause and onResume methods? Mar 23 15:41:18 samuel: when activity is added to task list I suppose it calls onStop ? Mar 23 15:42:24 first onPause Mar 23 15:42:29 and then onResume Mar 23 15:42:31 http://developer.android.com/training/basics/activity-lifecycle/index.html Mar 23 15:42:31 I think onCreate should never be called again right ? Mar 23 15:42:52 unless the device has no more memory and android was forced to kill the app Mar 23 15:46:43 where do you save your app state? in onSaveInstanceState (which passes a bundle to use) or in onPause which doesnt? Mar 23 15:47:15 mms_: on create will be called again if ondestroy was called. and thats simply by hitting the back button. Mar 23 15:47:50 samuel: I have only onCreate method of lifecycle implemented. Mar 23 15:48:03 rgr: back button will call destroy ? Mar 23 15:48:35 yes. according to my tests earlier. Mar 23 15:48:56 ok then what can I do to prevent it and behave more like i want Mar 23 15:48:59 override onDestroy and stick a break point in it and try. Mar 23 15:49:06 ok Mar 23 15:50:18 or create your onPause method Mar 23 15:50:25 you can override the onbackbutton but thats bad IMO. dunno. Im new to all this. yo ureally need your activity in a task list? why not just a place holder or bookmark which then allows your app to correctly rebuild it using oncreate? Mar 23 15:50:56 no it did not call onDestroy Mar 23 15:51:15 I am gonna ask again: After using the animation framework of android to change the image size, the ImageView still receives touch events even though the image is smaller (the visible part at least), does anyone know what to do? I can't imagine no one had that problem before. Mar 23 15:51:38 http://lpaste.net/101631 <- is that really the factory method pattern or do I need to be able to create different types of buttons for it to be? Mar 23 15:51:42 rgr: tasklist I am not doing any thing special. By default any running app goes into tasks list when we do HOME, back etc. Mar 23 15:52:57 the app itself doesnt run. its stopped. thats why you need to save its state before the ondestroy to enable the rebuild and then reconnect to any services from what I can gather. Mar 23 15:53:06 hey guys Mar 23 15:53:52 any benefit in changing from the 6.4.1 sdk for admob to the new Android (Google Play)? Mar 23 15:55:16 you will probably have to do it eventually Mar 23 15:55:45 I think I read somewhere that they were deprecating admob Mar 23 15:56:45 yeah, I saw there was a 'deadline' 1st of August Mar 23 15:56:51 Do RadioGroups have separators? I'm using android:showDividers="middle" android:divider="@android:drawable/divider_horizontal_dark" and it doesn't show Mar 23 15:57:01 but it was believed it would still work Mar 23 15:57:11 but Im wondering if theres any point in changing at this point Mar 23 15:57:17 or if I can wait till august Mar 23 15:57:43 quacked: if thats the deadline... I guess you can no problems Mar 23 15:58:08 as long as the income isnt less than on the new method Mar 23 15:58:12 not sure how android it rebuilding the state Mar 23 15:58:57 anyone know what replaces Matrix() ? Mar 23 15:59:38 hmm.. is google analytics fun? :P Mar 23 15:59:48 think Im gonna put it into my apps Mar 23 16:02:12 http://it-ebooks-search.info/search?q=android Mar 23 16:02:21 whats best book of these? Mar 23 16:02:35 rgr: yes back button causes ondestroy Mar 23 16:02:59 rgr: that explain why onCreate will be called next Mar 23 16:05:29 quacked: spy on your users Mar 23 16:05:40 it looks like everyone is doing it these days Mar 23 16:06:05 yeah Mar 23 16:06:13 and it mostly goes under the radar Mar 23 16:06:26 since it doesnt say when installing apps Mar 23 16:06:28 bonus points when instead of putting spy code yourself you piggy back on NSA Mar 23 16:06:39 you have to use other apps to find out if installed apps are using analytis Mar 23 16:07:19 Plot twist: We are spying on the NSA Mar 23 16:08:00 What text size should each drawer item have? Mar 23 16:08:11 DarkSlay3r: given the amount of backdoors and malware they are injecting, we should expect every two bit criminal using security holes that NSA put there Mar 23 16:08:30 no no no Mar 23 16:08:50 The NSA inspired accidents Mar 23 16:09:11 they didn't put anything that would harm us. They promised Mar 23 16:11:39 hey is this query incorrect somehow "SELECT * FROM " + TABLE_USERS + " WHERE " + KEY_USER_ID + "='" + userId + "' AND " + KEY_IS_CHANGED + "=" + 1 + " AND " + KEY_DATE_RETRIEVED + ">=" + yesterday + " ORDER BY " + KEY_ID + " DESC LIMIT 160 OFFSET " + offSetCount; Mar 23 16:11:41 http://lpaste.net/101631 <- is that really the factory method pattern or do I need to be able to create different types of buttons for it to be? Mar 23 16:12:04 can I get some help with httpurlconnection and the cookiemanager? It looks like even though I am initializing the cookiemanager and setting the cookie handler (AND SETTING THE COOKIE POLICY TO ACCEPT ALL), Cookies aren't being persisted at all.. ARRGGGHHHH… help? http://pastebin.com/mfWSjLUa Mar 23 16:12:14 LoneSoldier728: FFS, please, do not use string concatenation for SQL queries Mar 23 16:12:28 yeah i am going to change it Mar 23 16:12:34 Hi! In my app I use a ListFragment. I want to call it out from a NavigationDrawer. Therefore I thought to use this: http://pastebin.com/2tL2Pefx But I get the error: java.lang.ClassCastException: com.app1.app.app.TermineListFragment cannot be cast to android.app.Fragment. What will I have to do to call a ListFragment out of a NavigationDrawer? Mar 23 16:12:42 to prepared statements for now I am just trying to get it to work then I am changing them all Mar 23 16:13:12 any recommended mid-range phone with a great battery life? Mar 23 16:19:41 ebook on android dev? Mar 23 16:20:49 am I going to have to just manually schlorp the Set-Cookie headers, stuff them into the cookie store, and then PULL THEM OUT OF THE COOKIE STORE with each request? Mar 23 16:20:53 if so, um… the API is broken. Mar 23 16:23:26 ezekielnoob: moto x Mar 23 16:23:57 hmm interesting... i'll look at it Mar 23 16:24:03 my current phone is Motorola atrix Mar 23 16:24:07 the battery is not that good Mar 23 16:24:19 I have a nexus 5 Mar 23 16:24:25 but my wife has a moto x Mar 23 16:24:36 i'll support motorola all the way then :3 Mar 23 16:24:41 she usually has way more battery by the end of the day than me Mar 23 16:25:02 is this with a casual use of Wifi? Mar 23 16:25:50 I would say my wife is a heavy user Mar 23 16:26:04 and probably 30% data, 70% wifi Mar 23 16:26:09 wooh.. Mar 23 16:26:12 that's pretty good Mar 23 16:26:30 by the end of the day I am at about 20% Mar 23 16:26:37 she is about 40% Mar 23 16:26:48 alright thanks :) Mar 23 16:26:49 but she uses hers a fair bit more than I Mar 23 16:26:51 :) Mar 23 16:27:22 i don't use my phone that much... i just don't want it dead while im not using it in the end of the day Mar 23 16:28:03 nexus 5 has pretty good battery life Mar 23 16:28:18 if you dont use it much it might do you as well Mar 23 16:28:21 I avoid even grabbing my Nexus 5 Mar 23 16:28:30 why? Mar 23 16:28:38 I would kill it if not near a charger Mar 23 16:28:52 do you use it much? Mar 23 16:29:10 Yes Mar 23 16:29:22 I have a battery case for it when I know I will be out and about using it all day Mar 23 16:29:31 Every time I am near a charger Mar 23 16:29:31 works great Mar 23 16:30:03 But gets bulky and costs moniZ Mar 23 16:30:18 yes Mar 23 16:30:23 true Mar 23 16:30:28 but oh well Mar 23 16:31:42 Can't radiogroups have dividers? Mar 23 16:33:00 I'm facing a somewhat peculiar situation: I have a fragment that displays data from the DB (which in turn is from the internet using an async http client) Mar 23 16:34:00 what is best: to create a bitmap for the screen and cache it in memory or to scale to the canvas every time? Mar 23 16:34:11 However, everytime I start the app, I don't get the most recent data, I have to manually press the refresh button. I'm assuming that's because the data is retrieved from the db before the httpclient has had a chance to update the db. Is a synchronous http client what I'm looking for? Mar 23 16:34:20 create a scaled bitmap Mar 23 16:36:00 samuel: as always it depends. scaling and caching may save computational power, where it costs memory Mar 23 16:36:58 depending on the method of scaling or the method of display, neither may be relevant, and the framework/GPU may be doing what you're after anyway Mar 23 16:37:31 Chainfire: what I want to do is just adjust the size of a background to a surfaceview Mar 23 16:37:41 I have been doing it by scaling and caching Mar 23 16:38:03 but I am worried some devices might get an OOM error Mar 23 16:38:11 its only about 4 backgrounds Mar 23 16:39:44 if you're drawing the bitmap to the canvas with a scale operation, it might be the case the GPU does the scaling for you Mar 23 16:40:22 you'd have to figure that out somehow, and if its still fast enough on the slowest device you want to support, you're out of the OOM risk that way Mar 23 16:41:21 Chainfire: is there a way to find that out? Mar 23 16:41:38 I'm sure there is, but I don't know it. gltraceview or so ? Mar 23 16:42:48 string catenation if perfectly fine if the code uses the correct escape code for the components. When its not ok is to blindly cat in user input. Mar 23 16:42:51 Chainfire: haha, thanks. I will look for it Mar 23 16:42:59 is there any way to exclude x86 devices from my app in google play? it only has armeabi-v7a libraries yet for some reason users with intel atom-based devices are able to find it and leave 1-star reviews Mar 23 16:43:30 I suspect sideloading... Mar 23 16:44:10 no, they aren't sideloading Mar 23 16:45:52 those devices are marked as compatible in "Device compatibility" form Mar 23 16:48:50 I'm looking for a pointer to save N amounts of data which directly relate to how the UI will be re-constructed on a restore after a destroy. its not clear to me how to save arbitrary numbers of items representing N instances of the same class. Mar 23 17:01:21 what would stop onRestoreInstanceState being called when an acitivity is selected again after onDestroy was called (e.g back button) Mar 23 17:03:39 Instance state isn't retained if the activity is finished Mar 23 17:04:53 Would you say it is OK to have places in the code where if you get a phonecal at the exact wrong time (extremely unlikely, 1ms window), it could potentially put the application in the wrong state and lead to a crash. I find this hard to avoid if you cannot guarantee that a method will finish (that it could get interrupted half way). In my game if I the player has won the game and you get Mar 23 17:04:53 a phonecall when you are preparing to go to another fragment, I stop 2 threads, if the call comes between stopping the 2 of them there is a problem. And I dont want to use locks in onPause, seems dangerous too. Mar 23 17:05:15 not only dangerous but almost certain to lead to a crash. Mar 23 17:07:11 Can't radiogroups have dividers? Mar 23 17:07:45 whats the current method of adding analytics fragments? Mar 23 17:07:51 to fragments* Mar 23 17:08:07 EasyTracker.getInstance().activityStop(this); obviously wont work Mar 23 17:08:39 Does a service still run in the same process as that of the application that started it even though it defines its own thread to work in? Mar 23 17:09:47 yes I know. Hence I want to restore it based on what it was BEFORE the onDestroy. But Im finding it difficult to find examples that save anything more than "hello" in an edit. In may case I wish to save the N instances of MyClass so I can reconstruct the MyClass bases UI. Hard to find an example for some reason. Mar 23 17:09:53 My god, this RadioGroup divider issue is driving me crazy. Why would it have the option if it doesn't show up? Mar 23 17:10:35 aha. ok . found it. Mar 23 17:10:47 all clear now. Mar 23 17:28:32 Hello, I'm puzzled by why my Service is not appearing in the list of services returned by ApplicationManager.getRunningServices(200) Mar 23 17:28:32 I tried with this, but its not accurate: EasyTracker tracker = EasyTracker.getInstance(getActivity());tracker.set(Fields.SCREEN_NAME, "Frag1 ");tracker.send(MapBuilder.createAppView().build()); Mar 23 17:30:08 Unknown0BC: android:process here maybe? http://developer.android.com/guide/topics/manifest/service-element.html Mar 23 17:31:03 will have a look thanks, just trying something first. quacked Mar 23 17:38:42 hmm Mar 23 17:39:06 I'm using EasyTracker for google analytics and I want to see which of the 3 fragments a user is on Mar 23 17:39:30 So I set up tracker.set(Fields.SCREEN_NAME, "Fragment number"); in onStart() of each of the fragments Mar 23 17:39:42 But I only registers 1 and 3, not the one in the middle Mar 23 17:39:59 it only* Mar 23 17:41:11 I thought it had to do with setOffscreenPageLimit.. but I havent touched that so it should be at default 1 Mar 23 17:42:10 when I stay on fragment one, google analytics reports fragment one, if I then click on fragment 2, google analytics report fragment 3 Mar 23 17:42:11 any ideas? Mar 23 17:45:05 Any help with this: http://stackoverflow.com/questions/22594350/ ? Mar 23 17:48:20 Would you say it is OK to have places in the code where if you get a phonecal at the exact wrong time (extremely unlikely, 1ms window), it could potentially put the application in the wrong state and lead to a crash. I find this hard to avoid if you cannot guarantee that a method will finish (that it could get interrupted half way). In my game if I the player has won the game and you get Mar 23 17:48:20 a phonecall when you are preparing to go to another fragment, I stop 2 threads, if the call comes between stopping the 2 of them there is a problem. And I dont want to use locks in onPause, seems dangerous too. not only dangerous but almost certain to lead to a crash. Mar 23 18:11:44 an orientation change seems , other than a back button or swipe away (obviously task kill too), the only way to force an onDestroy. There is then (after an orientation change) a new onCreate which means the saveInstance bundle isnt null. How long can this savedInstanceState live? Mar 23 18:19:47 rgr: If you override onConfigurationChanged it shouldn't call onDestroy Mar 23 18:29:57 how bad is sending fragment name to Google Analytics like this in the SimpleOnPageListener? http://pastebin.com/Z9WaefNc Mar 23 18:34:50 does nobody do something as common as using an HttpURLConneciton to fetch some JSON, with a PHPSESSID cookie in tow? Mar 23 18:34:53 wtf? Mar 23 18:35:23 this is trivial in every other damned toolkit on this planet, yet it seems to evade Java... Mar 23 18:36:56 did I miss some good rant? :-) addRequestProperty() adds headers [including the cookie header] Mar 23 18:38:22 yes, I know... Mar 23 18:40:08 Can I change the Typeface of ListView items without an adapter? Mar 23 18:42:39 autrilla: there isn't really any notion of 'inheriting' a typeface property; so you'll have to do it in the adapter, or if you have a custom component i guess the xml itself could do it. Mar 23 18:43:13 kbs, I do have a custom component. However, afaik, the XML doesn't allow me to use Roboto Light Mar 23 18:43:23 And writing an adapter just for that... Mar 23 18:43:50 when you say a custom component, do you have some java code that extends View (etc)? Mar 23 18:44:09 A small toolkit of classes that support lock-free thread-safe programming on single variables. " Clearly those variables lock isnide, thus not lockfree right? How could they be lockfree? Mar 23 18:44:12 kbs, ah, no. I guess I could create a RobotoTetView Mar 23 18:44:20 Or use this: https://github.com/johnkil/Android-RobotoTextView Mar 23 18:44:51 autrilla: sure - alternately, you can just have a small util that drills down into the view hierarchy and sets the typeface from a convenient container Mar 23 18:45:09 but the latter approach of course would still need to be something that's called somewhere in code Mar 23 18:45:38 rento> atomics? Mar 23 18:45:49 rento> or they simply mean that *you* don't have to worry about it ;) Mar 23 18:50:51 Chainfire: yes atomics, but how do they make it atomic? there is no architecture independent atomic asm operation. how do you make something atomic without locks? Mar 23 18:51:26 shmooz: I dont want to override anything really. I want it to behave "naturally" and show me the full lifecycle including rebuilding data from instance data .. A lot of conflicting info about instance state out there in google land. I'll keep plugging away. Mar 23 18:55:41 rento: maybe it's semantics. Typically, things like compare-and-swap are considered to not be "a lock"; and java exposes [usually through some internal JNI method] operations like compare-and-swap, etc Mar 23 18:57:06 I'm using appcompac theme in my app... How do I remove the action bar for that theme? windowActionBar to false didn't work Mar 23 19:02:57 awefaw: *appcompat Mar 23 19:08:49 How can I get ?android:attr/listPreferredItemHeightSmall, for example, for lower APIs? Mar 23 19:11:25 so i just saw a page reporting on some bug in the android NDK revision 9e - why cant i see that revision on the google site? Mar 23 19:11:31 latest they have there is 9d Mar 23 19:16:10 grr.. I want to link google analytics with adsense, but there is no option in adsense to select analytics. Any ideas? Mar 23 19:18:37 thepoosh: so? how to do it? Mar 23 19:18:58 sunno, just corrected your statement Mar 23 19:19:18 + Mar 23 19:19:33 *dunno Mar 23 19:19:47 autrilla: I haven't tried this myself, but [assuming you're using appcompat + resources] have you just tried directly referring to attr/; as it tries to "do the right thing" for various android versions? Mar 23 19:19:55 autrilla: there are a few open source libraries for that Mar 23 19:20:18 kbs, thepoosh, nvm, went into the theme and checked out the value Mar 23 19:20:29 oh, ok Mar 23 19:21:10 autrilla: cool. It's often overridden in various ways - just ensure you're using the system defined values when available :-) Mar 23 19:21:36 how bad is sending fragment name to Google Analytics like this in the SimpleOnPageListener? http://pastebin.com/Z9WaefNc Mar 23 19:22:41 Is it me or is the radio button not aligned with the text? http://gyazo.com/92363beb924adfc3e3dd55f5abda8ff4 Mar 23 19:23:47 how can I create layout xml for a new activity? Mar 23 19:23:50 with eclipse Mar 23 19:24:48 I have found that :D Mar 23 19:24:49 thx Mar 23 19:25:39 autrilla: it looks baseline-aligned to me. The weird positioning is possibly because of margin/padding at the top and bottom of that cotainer Mar 23 19:27:19 kbs, of the listview item or the listview? Mar 23 19:27:51 autrilla: seems to me like the listview itself, dunno Mar 23 19:28:20 kbs, ah, maybe because it's forced to 240dp Mar 23 19:28:33 *256dp Mar 23 19:28:44 I sometimes put different backgrounds on various components just to see where their boundaries lie; or you can use hierarchyviewer etc Mar 23 19:31:28 kbs, in this case, the ListView and the items overlap, so only the background color of the items shows Mar 23 19:34:11 autrilla: try the hierarchyviewer to debug I guess. [if you haven't used it before, essentially similar to the layout inspectors in web browsers] Mar 23 19:34:40 kbs, I have used it before, but I wasn't succesful. Also, I have a Nexus 10, and no custom ROM, so I can't use it Mar 23 19:35:56 I never found the real issue Mar 23 19:36:34 hm, I thought one could use hv on a debuggable device [and presumably you are already using debug mode on the nexus 10] -- ah well. Mar 23 19:36:59 kbs, no, unfortunately hv is blocked on stock roms Mar 23 19:38:41 didn't realize that. Guess back to flipping backgrounds then ;-) maybe posting your actual xml files and someone might wake up and help too Mar 23 19:40:22 Here's my nav drawer fragment layout: http://pastebin.com/UT4MrdEK , and here http://pastebin.com/RPRFnER9 is the listview item layout Mar 23 19:40:30 anyone here familiar with ATI's the compressonator? i'm using it to build compressed textures for adreno chipsets and am ending up with pure black textures Mar 23 19:41:24 jabba123: sounds like it compressed a little too well :) Mar 23 19:42:16 jabba123 I haven't used that since porting Sense between WM devices Mar 23 19:42:41 I thought it was being deprecated by them back then Mar 23 19:42:48 apparently so :) it's almost like it's buggy...loading in pngs it shows very weird artifacts in the source image that aren't present elsewhere Mar 23 19:42:57 any arm asm experts in here? Mar 23 19:43:03 autrilla: looks like the 8dp margin on the listview is what's causing the odd positioning. Check by adding a few more items in the listview to be sure, perhaps? Mar 23 19:43:23 kbs, any preferred text for the items? Mar 23 19:43:29 Long, short? Mar 23 19:44:37 Huh. http://gyazo.com/73c1741dc586a7ea477d5ec7e1002d60 Mar 23 19:44:40 autrilla: you already have a fixed height on each item, it seems - so the text probably won't matter. Just "x" should be good enough ;-) Mar 23 19:45:00 I should use wrap content Mar 23 19:45:09 well, I was wrong about the fixed height too :-) Mar 23 19:45:14 interesting Mar 23 19:45:30 I had 48dp fixed size Mar 23 19:46:10 yea. Dunno - with the added items, your items look ok to me [except for the first and last, which is just the margins around your listview.] Mar 23 19:46:12 http://gyazo.com/dedd716b9282958471d8dd77cce9063a With wrap content. Still not centered Mar 23 19:46:38 The actual circle is not centered - or it doesn't look centered to me Mar 23 19:48:31 Would it be possible to use maybe Phaser to develop an android game, and then create touch events? Mar 23 19:48:46 http://lpaste.net/101643 <- Anyone see a problem with that synchronization code? What heppens if onPause is called in the middle of the synchronization block? Should I create a new Object in onResume? Mar 23 19:48:46 If not Phaser, any other html5 game development framework? Mar 23 19:49:00 autrilla: I measure 17 pixels and 16 pixels [from top of circle and bottom of circle] for the item that reads 'Granja Figueruelas'] Mar 23 19:49:21 kbs, so it's centered. I should check my sight then Mar 23 19:49:43 my 0.02 on a few thing... Mar 23 19:50:01 It's the text. 18 on one side and 14 on the other Mar 23 19:50:26 I usually put all my dimensions separately, and as multiples of some basic unit. [eg: dimen/module, dimen/module_by_2,...] - this makes it easy to swap stuff around in one place Mar 23 19:50:45 Measured on the E, 18 and 14 on the G Mar 23 19:51:11 I think it's the text size... Mar 23 19:51:42 Centering text doesn't quite work the way you might imagine -- the "height" of a glyph is not the same as the topmost and bottommost pixel in the glyph Mar 23 19:52:05 also, it probably takes the bounding box of the entire sentence, and centers that Mar 23 19:52:08 anybody? :( Mar 23 19:52:26 hi all Mar 23 19:52:40 autrilla: ie - the tallest glyph height -> lowest glyph height -- and center that Mar 23 19:52:52 is there anyone here that can help me get a hold of a working sms blocker for use under kitkat 4.4.2? Mar 23 19:53:06 autrilla: but it sounds like you also now have wrap_content - so what you're seeing is probably simply the bounding box itself Mar 23 19:53:34 and honestly i dont understand android codig so i cant write one myself Mar 23 19:54:04 i need help with a 32/16 division routine on arm, its working about 40% of the time. the rest of the time its producing bogus results and i have ZERO idea wtf is going on Mar 23 19:54:16 http://pastebin.com/LUmQfHXF Mar 23 19:54:28 kbs, the bounding box is not centered either.. http://i.gyazo.com/0047253f9bf5ba407aadb9b6c5b6006c.png Mar 23 19:54:38 on entry R0 already had the divisor. the number to be divided is popped into r1/r2 Mar 23 19:54:51 and yes this is for android :P~ Mar 23 19:55:30 autrilla: I dunno if this is indeed the bounding box :-) as I said - it's not the same as the topmost and bottommost pixel in the glyph Mar 23 19:55:39 can someone here help me with my question? Mar 23 19:55:47 kbs, maybe it's centered then Mar 23 19:56:09 Mr_X, I strongly advise you learn Java first, then Android, then ask Mar 23 19:56:11 Mr_X: Please use #android for general android questions Mar 23 19:56:19 ok Mar 23 19:56:24 Is there a way to make a List item unpressable? Mar 23 19:56:32 I've set clickable and enabled to false Mar 23 19:56:34 SyntheCypher: in the getView Mar 23 19:56:37 autrilla: if you've now switched to using wrap_content, then the bounding box is in fact the entire black box [ignoring your start/end padding] Mar 23 19:56:39 but still when you press Mar 23 19:56:52 you shows a press image Mar 23 19:57:08 kbs, I'm using wrap content on the ListView item's XML, yes Mar 23 19:57:44 SyntheCypher: If you're talking about the item click listener, return false in your adapter's isEnabled to disable that for a specific item Mar 23 19:57:53 autrilla: right. Therefore, what you see is the bounding box. You can also do another test by temporarily removing the checkbox glyph just to avoid additional confusion because of that - though it seems small enough that it won't affect the height of the bounding box Mar 23 19:58:54 kbs, looks the same without the glyph Mar 23 19:59:00 SimonVT: Cheers I'll try that Mar 23 19:59:09 autrilla: *nod* You could also explicitly set padding on the textview to zero just to be sure - don't recall if there's any default padding on textviews Mar 23 19:59:37 kbs, I have 8dp paddingStart and 8dp paddingEnd.. Maybe that's the issue Mar 23 20:00:40 SimonVT: That worked cheers! Mar 23 20:01:16 autrilla: that should affect the left/right edges - but to verify, set everything to zero I suppose. You can also take a look at the includeFontPadding attribute [set to false, etc.] Mar 23 20:02:51 kbs, all set to 0. Text is totally not centered.. http://gyazo.com/6686ff6c1418f43132a82ab0b7906274 Mar 23 20:04:08 autrilla: what's the includeFontPadding attribute set to? Mar 23 20:04:13 kbs, false Mar 23 20:04:14 hot key to change tabs in the tools views in intellij ie move to logcat tab in the debugger pabe? Mar 23 20:04:22 pane Mar 23 20:05:06 autrilla: ah well :-) then it's what it thinks is the bounding box I guess. Let me quickly check the roboto_light font to see if it has a rather 'high' bounding box Mar 23 20:14:21 autrilla: hm... it almost seems like it's just using the entire glyph height as the bounding box. If you have the patience, I have a couple of thoughts on how to prove this Mar 23 20:14:39 kbs, sure Mar 23 20:14:53 autrilla: try a textview with just "." , and another with "I" Mar 23 20:15:05 if they both show up with the same height, then you're probably screwed ;-) Mar 23 20:15:13 I'm using appcompat theme in my app... How do I remove the action bar for that theme? windowActionBar to false didn't work Mar 23 20:15:26 kbs, with the radiobutton or without it? Mar 23 20:15:50 autrilla: without is best. And keep your current setting, [ie - wrap_content and all padding=0 and includeFontPadding=false] Mar 23 20:16:32 autrilla: you probably know but you know you can turn on all the various padding/margin boxes to be visible in dev options? I know they helped me earlier with alignment and padding/center hell. Mar 23 20:17:07 rgr, oohh.. nice suggestion :) Mar 23 20:18:18 kbs, well, then I'm screwed: Mar 23 20:18:19 http://i.gyazo.com/ddc1bc5ef0c8f5c455f970f38ebf2e5e.png Mar 23 20:18:30 Same settings Mar 23 20:18:35 :-) Mar 23 20:19:10 It's doing something dumb - it's just using the stock font-wide glyph size to calculate the text bounds Mar 23 20:19:52 kbs, maybe it's RobotoTextView's fault? Mar 23 20:20:13 is there an android lifecycle call that calls after onCreateOptionsMenu? I have a method that I would like to call durring onResume, but it requires that the menu be initialized. I could just call the method from within onCreateOptionsMenu, but it is not called every time the app resumes (I belive it is only called initially and then on orientation changes) Mar 23 20:20:19 autrilla: no - it's android's [generally sloppy] font-metrics handling Mar 23 20:20:54 So there's no solution for it... I hope my customers don't have OCD Mar 23 20:21:39 autrilla: unfortunately yes - unless you decide to implement your own view - probably the least worst option is to stick to what you had initially. Ie, fixed height for the listview, and live with this. Let me think for a second thogh Mar 23 20:23:03 autrilla: well, no - I was thinking you might define a font with better characteristics, but the textview is still going to use the system-wide metric so it's not gonna help anyway. ah well Mar 23 20:23:27 kbs, apparently the default "single_choice" listview item uses 48dp size.. Wonder what happens if I put a long string into it Mar 23 20:23:54 you'd need to set ellipsize etc on the textview -- but I'm sure you'll figure all that out ;-) Mar 23 20:23:56 Well, it uses the ?attr stuff Mar 23 20:24:27 * kbs is fairly ocd about text too, so I feel your pain :-) Mar 23 20:24:53 Oh. Yeah, as I expected it limits you to two lines of text. Mar 23 20:27:20 Then two lines it is Mar 23 20:33:55 I'm trying to figure out what changed in 4.4 with webview. My app displays a collection of large images in webp format (comic book bible). With older tablets with less memory, slower processors, etc. It still works very well. With new tablets with more memory, more cores, etc. It shows some images and then it is unable to display any more. Mar 23 20:35:19 I don't have any of the newer devices, but I downloaded Android-x86 and ran it in VirtualBox and it behaves the same. Mar 23 20:35:22 Pinhole: seem to remember 4.4 Webview is based on chrome? https://developers.google.com/chrome/mobile/docs/webview/overview ? Mar 23 20:36:13 The html/css/js works well with Chrome on the desktop. Does chrome need more memory, processor? Mar 23 20:36:22 hy all Mar 23 20:36:43 Pinhole: no idea - just wondering if this is a change that might be related to your symptoms, that's about it... Mar 23 20:36:53 all of the controllers of my application are left-aligned. I can't move them to the center or to the right. Why? Mar 23 20:39:08 Should variables I change in a synchronization block always be declared volatile? Mar 23 20:41:36 rento: only if you access those variables from other places without using a synchronizedblock [presumably, using the same lock object] Mar 23 20:42:41 [the reason being that exiting a synchronized block also has the side-effect of sync'ing variables back to main memory] Mar 23 20:47:19 kbs> which copy of a variable is considered main memory? Mar 23 20:47:19 Guys, is there a site where I can download a bunch of images to use in the app? I'm looking for the standard ones like refresh and share Mar 23 20:48:33 JustSighDudes in Eclipse, File->New->Other...->Android->Android Icon Set, has the option to base on clipart, and that has a button that includes most of the standard icons Mar 23 20:49:04 Chainfire: so in theory, each thread can cache the value of a variable, and there's one shared "main-memory" area that contains [I guess] the 'canonical' value of something. Mar 23 20:49:04 alternatively you can find them in the AOSP sources, somewhere in the SDK folder, and no doubt you can download them somewhere as well Mar 23 20:49:44 Chainfire: the synchronized blocks effectively behave like a transaction in a db - while within a block, values in a thread may differ from the value in main memory. At the end, it's written "back" Mar 23 20:50:00 Hmm. The "Browser" app in 4.4 seems to have the same behavior. The "Browser" app in 4.1 works just fine. Mar 23 20:50:01 kbs> yeah I didn't know leaving a sync block synchronized that. But I was just wondering how exactly that would work with (for example) three threads all reading and writing to non-volatile, which one is considered 'master' at such a sync? Mar 23 20:51:13 Chainfire: none - like any db transaction, they will only be serialized and one of them will arbitrarily "win." (That's why typically such code will also use a shared lock object for the sync, so only one thread is running at any time.) Mar 23 20:52:28 kbs> right, makes sense Mar 23 20:52:51 Hello there, quick question. Mar 23 20:53:03 How would I open up an image in the gallery from adb? Mar 23 20:53:17 any way to open a new activity with animation (like slide up) while keeping the current activity in the background? Mar 23 20:53:25 Chainfire: yea :) some weird semantics of the sync block in java - fairly well defined, but somewhat unexpected to be sure Mar 23 20:53:31 overridePendingTransition just makes the current activity black Mar 23 20:53:55 kbs> I tend to volatile all variables that get accessed by multiple threads, just to be sure. Is that considered bad practise? Mar 23 20:54:49 What's wrong with this command? Mar 23 20:54:52 adb shell am start -t images/sdasdas.jpg file://data//sdasdas.jpg -n com.android.camera.ViewImage Mar 23 20:55:18 When I run it, I get this error: Mar 23 20:55:21 Chainfire: well, at worst it might cause some tiny performance issues [because the runtime will need to ensure the data is sync'ed after each update] but beyand that, dunno :-) Mar 23 20:55:23 "Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW typ=images/sdasdas.jpg flg=0x10000000 }" Mar 23 20:57:42 linq> not sure, but -t I think is mime type, which I guess would be image/jpeg, and -n is componentname, which would probably be something like com.android.camera/.ViewImage Mar 23 20:59:59 Chainfire, are you the SuperSU chainfire? Mar 23 21:00:07 somebody? Mar 23 21:00:10 my question is above Mar 23 21:00:15 Chainfire: now I'm getting an "Unfortunately, Camera has stopped" dialog on the device Mar 23 21:00:29 Chainfire: any idea how to diagnose that issue further? Mar 23 21:01:31 My new command was "adb shell am start -t image/jpeg file://data//sdasdas.jpg -n com.android.camera/.ViewImage" Mar 23 21:01:43 which resulted in a "Starting: Intent { act=android.intent.action.VIEW typ=image/jpeg }" Mar 23 21:01:51 well, at least it started camera this time, so that's something ... maybe you need a -d before file://... ? Mar 23 21:01:59 either way, this really isn't the place for that sort of command ... :) Mar 23 21:02:09 autrilla yes Mar 23 21:02:10 how bad is sending fragment name to Google Analytics like this in the SimpleOnPageListener? http://pastebin.com/Z9WaefNc Mar 23 21:02:19 Nice to know :) Mar 23 21:04:08 Chainfire: no, adding -d beforehand doesn't help (causes an error in adb) Mar 23 21:06:02 Coreographer: Already have a pending vsync event. //// Anyone know what this is about? Something I should worry about? Mar 23 21:10:18 Chainfire: where would you recommend for me to find help with such a command? Mar 23 21:12:01 no idea, but it doesn't seem to be a development matter... #android or #android-root maybe ? Mar 23 21:12:22 I get this error: java.lang.ClassCastException: android.widget.SeekBar cannot be cast to android.widget.Button But I don't try to cast a seekbar to be a button... Mar 23 21:12:25 why do I get this? Mar 23 21:12:47 code? Mar 23 21:15:31 f2prateek: should I paste all of the project's codes? Mar 23 21:16:03 gregtom6: just a couple of lines around where you have the error Mar 23 21:16:22 Or just clean project Mar 23 21:20:49 I want to use FileProvider to share my files in the local files folder to other apps (facebook, mail, gmail,...) Mar 23 21:20:57 this is my code http://pastebin.com/HmHPaxJu Mar 23 21:21:18 it runs well with all the apps (mail, gmail, dropbox) except facebook Mar 23 21:21:31 when selecting facebook, I got this exception http://pastebin.com/gFpZDAjy Mar 23 21:21:35 any ideas ? Mar 23 21:43:30 how can I detect from an activity if I get back into that? Mar 23 21:44:16 I had found that, thx Mar 23 21:48:31 Can a apk file be remade into source? I want to try my app on other peoples devices, but I don't want them to be able to read the source. Mar 23 21:49:55 rento, yes it can Mar 23 21:50:13 You can obfuscate it though, in a manner that the code would be very difficult to understand Mar 23 21:51:57 rento: check out proguard Mar 23 22:04:50 how can I close BT connection after I returned to the previous activity? Mar 23 22:31:42 Hey guys, would really appreciate some help right now. I can't seem to be able to use Google Play Services at all. Added the dependency in gradle, everything syncs fine, but Android Studio doesn't recognize anything. GoogleApiClient isn't found, GooglePlayServices isn't found, nothing starting with Google, really... Mar 23 22:32:27 I'm trying to access my location using whatever provider there is, and as I've understood it Google Play Services is the way to go. Would love some options though... Mar 23 22:37:27 Anyone? Kind of desperate here :/ Mar 23 22:39:07 nonah: quickblox! Mar 23 22:40:33 Isn't that an entire framework for communication? Really only need this for an assignment due tomorrow, and not getting Play Service working is annoying in itself. Been search for hours but it seems there is nothing wrong.. Sigh Mar 23 22:53:11 my activity doesn't run onresume() after I returned into that. Why? Mar 23 22:57:24 gregtom6: because you did something wrong? Mar 23 22:57:52 Human tendency is to always find fault in other and not accept that we made a mistake. Mar 23 23:04:02 ughlol: I accept that... Mar 23 23:04:17 gregtom6: so what is the problem exactly? :) Mar 23 23:07:55 ughlol: I want to restart an activity when I arrived into that (called onresume second times) Mar 23 23:08:19 No I get that.. you need to provide some code if you need help Mar 23 23:08:23 You should use Intents to start an activity Mar 23 23:08:34 You shouldn't call the lifecycle methods manually Mar 23 23:08:52 ^ Mar 23 23:09:07 can you use html5 video with android webview? Mar 23 23:13:05 its pretty grim when google rearrange their samples and cant even package them so they contain all the necessary resources. what a pain. Mar 23 23:13:08 chaitime: yes Mar 23 23:15:00 ughlol: have you tried it? wondering if performance is good Mar 23 23:15:18 nope, havent tried.. Mar 23 23:18:47 codeguru: then how should I disable bt connection when I arrive back into the previous activity? Mar 23 23:19:38 myInputStream.close();myOutputStream.close();socket.close(); doesn't close the BT connection Mar 23 23:20:08 nore unregisterReceiver(br); Mar 23 23:20:14 *nor Mar 23 23:22:19 Why not post your code to a pastebin with comments? "how can I close a connection" is like asking how long a piece of string is . no one casan guess what type or how you opened it or how it might have been corrupted in the meantime or if its alive following an onDestroy for the parent activity etc etc etc. Mar 23 23:24:02 rgr: without comments: http://pastebin.com/sDip6tZn Mar 23 23:24:16 it contains almost only the BT connection Mar 23 23:24:39 but I rewrote and and tried out tons of ideas to close BT Mar 23 23:24:49 *connection Mar 23 23:28:33 gregtom6: try removing super.onResume() and tell me what happens Mar 23 23:29:32 ughlol: the application has closed Mar 23 23:29:54 gregtom6: put it at the end of the onResume() method? Mar 23 23:33:13 ughlol: it works, but it doesn't restart BT connection Mar 23 23:33:23 doesn't close the connection Mar 23 23:33:33 I just want to be able to reconnect again Mar 23 23:45:01 what's the best library for doing oauth on android? Mar 23 23:47:59 now I need to sleep Mar 23 23:48:05 bye until tomorrow Mar 23 23:48:22 0:48 a.m. here Mar 23 23:53:24 Is eclipse no longer the Android IDE of choice? Mar 23 23:54:48 jeaye its a weird time; the google materials mostly still show eclipse, but many experienced android devs use intellij / AS. if you are going with the latter, you'll have to be willing to work through some bugs Mar 23 23:55:24 for a personal project i'd use AS; if you like eclipse you can keep using that Mar 23 23:55:48 but they still don't have gradle integration with eclipse, which boggles my mind but Mar 23 23:55:54 .. Mar 23 23:56:38 Alright, thanks. I'll try AS for now. Mar 23 23:56:43 Fine Linux and Windows support? Mar 23 23:56:43 ;) Mar 23 23:56:49 Developing on both. Mar 23 23:57:05 theoretically it should be ok on all Mar 23 23:57:41 seems like the linux guys have more issues, maybe because they are using openjdk instead, dunno Mar 23 23:57:55 and, what is 'linux' heh Mar 23 23:58:08 one guy using arch, another debian, hard to say whats the problem Mar 23 23:58:20 * jeaye uses Arch. Mar 23 23:58:22 I guess we'll see. Mar 23 23:59:22 good luck. if you run into weird problems you may need to install ia32 libs, but forget about that until you run into weird problems Mar 24 00:00:55 cheerx Mar 24 00:00:58 cheers Mar 24 00:01:27 I do hope the NDK support is good. Mar 24 00:06:34 adt works fine on both win and linux Mar 24 00:06:58 there's ppl in here having gradle problems daily Mar 24 00:07:22 use oracle jdk Mar 24 00:08:26 i haven't, and hope never, to use the NDK :) Mar 24 00:11:59 if you are doing NDK linux is probably better Mar 24 00:18:11 I am using retrofit to send an arraylist and on my server side I get it as just a string (there is only one string in the array) ... shouldn't it send it still as an array regardless? Mar 24 00:18:27 yes Mar 24 00:19:00 gson.toJson(Arrays.asList("foo")) returns ["foo"] Mar 24 00:19:58 I am going to test it one more time and see what retrofit is sending to the server... but I have it in specifying the field as an ArrayList and the server gets the body... Mar 24 00:20:17 what is "the field" Mar 24 00:20:49 you are a challenging person to help since you rarely give enough description as to what you are doing for someone to understand Mar 24 00:20:50 http://pastebin.com/bARdTWTt Mar 24 00:21:03 Yeah, sorry about that Mar 24 00:21:52 @Field is going to use String.valueOf of the object passed in Mar 24 00:22:24 so do I need to use multipart or something else? Mar 24 00:22:54 i have no idea. i don't know what your server expects nor what you are trying to do Mar 24 00:23:04 I want to send an Array to my server Mar 24 00:23:11 specifically of Strings Mar 24 00:23:20 Form URL encoding doesn't standardize on an array format Mar 24 00:23:21 And an unknown length from 0 - 100 Mar 24 00:23:37 so there is no canonical way to do what you want, it's server-specific Mar 24 00:24:12 There is no way to send an array to a server? What if I made it a JSONArray? Mar 24 00:25:04 Form URL encoding doesn't specify a format for arrays. You can send anything you want, but what gets deserialized into an array on the server-side is up to the server Mar 24 00:25:28 some servers do it with multiple keys, some want keys in the format foo[], others want comma-separated lists in a single key Mar 24 00:25:54 The problem is I can parse it on the server-side which has worked but if it is 1 item (1 string) parse errors.. Mar 24 00:26:13 ok I guess I can just use commas Mar 24 00:26:27 did not kow that was the case I thought maybe I can just get an array back... Mar 24 00:26:55 since there is no array standardization, Retrofit doesn't do anything special and relies on you to dictate Mar 24 00:27:14 ok, thanks Mar 24 01:27:40 anyone know anything about rooting an android? :S Mar 24 01:27:58 read the topic Mar 24 01:45:10 silly question, but how do I execute an animation code for a one of the characters in a game whilst freezing everything else on the screen. A while statement does indeed freeze the characters, but does not execute the animation code. Mar 24 01:47:31 I have no idea about Android gamedev, but I reaaally don't think a while loop is the right approach, RetroDude. Mar 24 01:49:23 RetroDude, unless you're explicitly using parallelization (i.e. multiple threads) for your game logic, then this is going to freeze your entire application, not just the characters. Code runs sequentially, and game engines are not exempt from that. Mar 24 01:49:36 (Single-threaded ones, anyway...) Mar 24 01:52:26 You don't wanna use a delay loop like while(!freeze). You should take a filter-like approach: When you want to freeze everything but the character in question, tell the other characters that they shouldn't move anymore. Or react to certain stimuli. Mar 24 02:05:23 ok, thanks. Mar 24 02:24:16 I have an activity that was made in eclipse using the Tabbed view and view pager. It created a static PlaceholderFragment, is there a way I can deal with this to implement an interface in the fragment class and communicate with the Activity that spawns it? Mar 24 02:25:28 finally http://www.androidpolice.com/2014/03/20/google-play-listings-now-supports-distinct-whats-new-text-for-alpha-beta-and-production-channels/ Mar 24 02:28:32 I'm using appcompat theme in my app... How do I remove the action bar for that theme? windowActionBar to false didn't work Mar 24 02:29:01 awefaw, true Mar 24 02:29:21 what does the title has to do with the action bar? Mar 24 02:29:48 the action bar is the title Mar 24 02:30:03 oh... nice Mar 24 02:30:08 thanks guys! Mar 24 02:56:23 anyone played with googleplay-api? Mar 24 02:56:26 unofficial one? Mar 24 02:56:48 unofficial? how's it differ? **** ENDING LOGGING AT Mon Mar 24 02:59:59 2014