**** BEGIN LOGGING AT Mon Apr 07 02:59:59 2014 Apr 07 03:04:42 holy shit, google play services is 14K methods Apr 07 03:05:37 thats like 20% of your method budget limit Apr 07 03:05:43 21%-ish Apr 07 03:06:33 proguard Apr 07 03:06:34 I keep wondering if Google plans to kill off the 16-bit limit. Apr 07 03:06:34 Especially since it's actually become a problem Apr 07 03:07:04 Even stripping stuff out eventually won't be enough Apr 07 03:07:19 api 35 Apr 07 03:07:27 just give it a decade Apr 07 03:07:44 Wouldn't really be a bad idea to address it by just saying you'll have to provide new binaries and limit your app to new API levels to ensure the binary's compatible. Apr 07 03:08:10 in the case of play services, they should unbundle stuff Apr 07 03:08:11 The guy who was going to fix it left Google Apr 07 03:08:28 make location apis a separate thing; why the hell can't that just be in the support library anyhow Apr 07 03:08:39 Dan Bornstein Apr 07 03:09:27 If it's not an issue, continue using lower API levels, otherwise just get ready to wait for updates. Apr 07 03:09:27 I suppose they could also add a bit of code to the existing binaries to just check for additional stuff and load it in at runtime Apr 07 03:09:57 Then dex could split stuff up as it sees fit Apr 07 03:10:02 There's also custom class loading, so you can have multiple dex files, but it looks like a pain Apr 07 03:10:15 There was a Google Developers blog post about that some time back Apr 07 03:10:27 It's pretty painful Apr 07 03:10:27 It's doable, just unpleasant Apr 07 03:11:04 it's very painful Apr 07 03:12:05 * pfn had pheasant for dinner, so yum Apr 07 03:15:40 more stuff in play services == greater value over ASOP == less traction for kindle Apr 07 03:16:37 I don't mind google services being tied to google stuff, but a better location API being limited like that irks me Apr 07 03:17:01 yeah, seems so basic … should just be in a spinoff library or something Apr 07 03:21:34 location, push, saved state & provider agnostic maps are features from play i'd like to see merged to android Apr 07 03:22:02 they all need a certain amount of infrastructure though, which is i suppose why they're not Apr 07 03:22:25 *provider agnostic maps don't exist, but i'd like that Apr 07 03:23:04 then android forks would be viable INO Apr 07 03:23:06 *M Apr 07 03:30:15 maps are property of some entity Apr 07 03:30:32 Open Street maps is closest you'll get, I suppose Apr 07 03:35:06 So Imported the Facebook module. Apr 07 03:35:12 which is the best language translation service that we can use for an android app for free? Apr 07 03:35:24 And I'm getting the gradle error: "andorid-library not found" Apr 07 03:40:33 Hi everyone, I am working on a simple extension framework for Android. Very simple. Basically, an activity invokes a plugin and passes a callback. Now the problem is that if the plugin starts new activities and if i put my phone in "destroy activities" mode then the plugin callback is never invoked. Is there a way to inform the activity, other than the standard onActivityResult method Apr 07 03:45:26 pfn, i mean an API that any pne can implement with their own maps provider Apr 07 03:45:53 not a free implememtation Apr 07 03:45:55 I could perhaps queue the results in a pipe and let the client deque them or be notified of when they are available Apr 07 03:46:50 when my app's are running it's rare that i care where the maps comming from Apr 07 03:47:03 and it'd be nice to be anle to write once run anywhere Apr 07 03:47:13 *anle = nice Apr 07 03:48:56 i was looking to buy a moto G, but the lumia 625 has complete offline turn by turn nav Apr 07 03:49:59 oh i guess the 635 just came out, hm Apr 07 03:52:47 There is another way using an EventBus to decouple the communication: http://blog.gaku.net/how-to-return-process-result-with-android-job-queue/ Apr 07 03:52:52 thoughts? Apr 07 03:58:58 so many projects to keep tacking the same old hassles in android Apr 07 03:59:15 Android Priority Job Queue, Goro Apr 07 04:06:12 How do I track how many bitmaps are created by my app at a certain point of time, both in a new android, and in a 2.1 one... Also, how to track how much memory they use of the heap, and how much is still available? and is there any way to map those bitmaps to a filename or something that was used to create the bitmap? Apr 07 04:19:35 awefaw: have a look at picaso Apr 07 04:24:38 awefaw, i have to question why you're bothering with 2.1 Apr 07 04:24:39 or 2.2 Apr 07 04:24:42 or even 2.3 :P Apr 07 04:24:54 because of user base ? Apr 07 04:27:51 ^^ Apr 07 04:30:33 there's a 2.1 user base that spends money? Apr 07 04:30:55 my theory is that someone who's cheap enough to have not upgraded their phone from 2.x is probably not spending any money :) Apr 07 04:33:52 if this slate article is right, nobody spends money Apr 07 04:35:37 lol Apr 07 04:35:50 theres this game i play that has an in game currency Apr 07 04:35:56 on the order of $40 for 50k units Apr 07 04:36:04 but every weekend for the past three weeks it's gone on sale for $5 Apr 07 04:36:10 (max one per user) Apr 07 04:36:14 and every weekend, i've spent $5 :P Apr 07 04:37:10 whatsapp has a huge low end phone userbase and look they got 19 billion bucks Apr 07 04:37:32 ok, if you think you can be whatsapp, go for it Apr 07 04:38:51 when I'm done , they'll change their name to WhatsWhatsapp Apr 07 04:39:15 I just registered fadapp.com Apr 07 04:39:40 I assume fapapp.com is gone Apr 07 04:40:00 yes Apr 07 04:40:12 fapapp.com went in 2009 Apr 07 04:40:45 why are you lot talking about fapping ? Apr 07 04:42:57 i'm with bankai_au on this :) Apr 07 04:43:19 isn't it about GoT time? Apr 07 04:43:24 a platonic dating app called fapper! Apr 07 04:43:36 lol Apr 07 04:43:45 sounds like instagram to me Apr 07 04:43:48 shmooz i thought you were crazy, now its confirmed ;) Apr 07 04:44:29 oh i misread all of that Apr 07 04:44:37 ologn registers fadapp Apr 07 04:44:45 leeds mispells to fapapp Apr 07 04:44:50 I think he's right Apr 07 04:51:40 anyone using robolectric here ? Apr 07 04:51:59 how can I test launching activit from fragment ? Apr 07 05:03:36 i keep forgeting robolectric exists, i might use it with my next project. it's pretty nifty Apr 07 05:04:03 lacks of documentation.. Apr 07 05:04:07 more people should use i Apr 07 05:04:08 yeah there is that ... Apr 07 05:04:09 *it Apr 07 05:04:28 when i last used it i had issues with something that got me a bit pissy .... preferencesfragment maybe? i dunno, but 'grrr' lol Apr 07 05:04:55 AppCompat is not supported either Apr 07 05:05:14 need to mock somehow all action bar things Apr 07 05:05:24 still it's good taht it's working Apr 07 05:07:01 does anyone know offhand, if PreferenceActivity can show arbitrary fragments (not just preferenceFragements?) it seems to Apr 07 05:07:20 WTF ? http://developer.android.com/reference/android/preference/PreferenceActivity.html#isValidFragment(java.lang.String) Apr 07 05:08:22 ah yes, i think that is in response to http://securityintelligence.com/new-vulnerability-android-framework-fragment-injection/ Apr 07 05:08:37 so i guess i should be OK Apr 07 05:14:22 hm, but it does add them to the backstack, so i can't use an arbitrary fragment that with setRetainInstance(true) Apr 07 05:14:30 the awesome docs told me that, not Apr 07 05:25:52 bankai_au: I'm using picasso already Apr 07 05:29:16 gordon_: unit tests aren't for launching activities and stuff. Apr 07 05:33:31 what is the best way to center something 2/3 of the way, instead of in the very middle? Apr 07 05:34:14 sounds like a job for linearlayout weights Apr 07 05:34:46 g00s: but I only have one member inside the layout Apr 07 05:34:55 anyone in here using android studio having issues with tab-completion? for instance I type onCre and the box comes up to auto fill in an onCreate function, but when I press tab it all just dissapears, and nothing is inserted Apr 07 05:35:01 then add a spacer Apr 07 05:35:08 with the right weight Apr 07 05:35:39 totic: android:layout_weight="0.66" Apr 07 05:35:54 zzxx: enter isn't it, not tab ? Apr 07 05:36:07 either will work Apr 07 05:36:09 zzxx hm, no … the only problem i've had with that , is that the suggestion box obscures the freaking cursor Apr 07 05:36:16 the issues is with either key Apr 07 05:36:25 hmm.... Apr 07 05:36:28 totic: use weight and weightsum Apr 07 05:37:44 it seems to work for some things, but not for others. odd Apr 07 05:38:02 you can indeed override onCreate(bundle) for a fragment yes? Apr 07 05:38:17 or am i brain farting? Apr 07 06:22:46 :JakeWharton I am a bit confused, when to use Butter Knife and when to use Dagger? Apr 07 06:23:13 i prefer a Tanto Apr 07 06:23:15 use ButterKnife when you don't want to write findViewById or setOnClickListener Apr 07 06:23:37 Dagger is for dependency management and injection Apr 07 06:24:58 :JakeWharton ic, btw, thank you for libraries Apr 07 06:25:48 :g00s Tanto? Apr 07 06:29:39 kamol i like sharp things too :) Apr 07 06:33:32 :g00s :D Apr 07 06:34:10 is there any reason why something like DatabaseQueryer.connectToAndUpdateDatabase("INSERT INTO `users`(`username`, `email`, `password`) VALUES(..."); would work in a regular java application but not an android application, where DatabaseQueryer is just a class handling all the connections,etc? Apr 07 06:34:15 kamol typical tanto shape http://www.coldsteel.com/Product/13RTK/RECON_TANTO.aspx Apr 07 06:34:37 I get an android.jar source not found error when it tries to access the class Apr 07 06:34:52 klaw is that using jdbc or something O.o Apr 07 06:34:59 yes Apr 07 06:35:06 yeah, forget about that ;) Apr 07 06:35:51 ok, it's not even possible? Apr 07 06:36:18 klaw to a remote db ? Apr 07 06:36:44 yes Apr 07 06:37:01 no, generally not possible Apr 07 06:37:09 weird Apr 07 06:37:13 okay, thanks Apr 07 06:38:04 you will want to use a web service or something Apr 07 06:38:15 :g00s kind of scary, I prefer ButterKnife :D Apr 07 06:38:56 :D Apr 07 06:40:57 JakeWharton: Is there any way to show all the bitmaps that are currently in memory? Apr 07 06:41:19 show where? Apr 07 06:41:50 JakeWharton: Basically, I have an Out of memory problem in the app... All the images are loaded either with picasso or with setContentView... Apr 07 06:42:11 JakeWharton: I'm trying to figure out whethere there is a memory leak, or if I just need to increase the heap size Apr 07 06:51:22 you could use allocation tracker which is part of DDMS or just a tool that inspects a heap dump Apr 07 06:54:06 JakeWharton: Can I map the Bitmap to the url where they came from? or something like that? Apr 07 06:55:44 awefaw: if you keep a mapper that does that you can Apr 07 06:55:50 a mapper? Apr 07 06:56:02 key value storage Apr 07 06:56:05 cache Apr 07 06:56:56 thepoosh: is it easy to check that from the heap dump thing? Apr 07 06:57:10 MAT? Apr 07 06:57:17 BTW: Should I just check for instance of Bitmap or anything else? Apr 07 06:57:25 no, there is no way to know from there where the bitmap came from Apr 07 06:57:34 but you should probably scale down after fetching images Apr 07 06:59:07 thepoosh: That too... But still, I want to make sure that I don't have a memory leak Apr 07 06:59:38 Is there any way to change the bitmaps that Picasso creates, to actually create MyCustomBitmapSubclassWithAdditionalInfo ? Apr 07 06:59:51 Bitmap is final Apr 07 07:00:13 awefaw: memory leaks are usually when you have cyclic referenes and crap like that Apr 07 07:00:33 do you hold a member context in adapters and stuff? Apr 07 07:00:44 JakeWharton: Damn :(... Way to cut a guys hopes.... Apr 07 07:00:56 bitmap is a final object Apr 07 07:01:03 there is no way of manipulating it Apr 07 07:01:12 but it can be a member of a different class Apr 07 07:01:14 mmm actually, now that I think about it... Apr 07 07:01:15 JakeWharton: hola! Apr 07 07:01:23 I can fake it with a WeakDictionary Apr 07 07:01:57 so how to modify picasso, to add an entry there, each time a bitmap is loaded? Apr 07 07:03:32 awefaw: picaso already has a cache for images Apr 07 07:03:42 you can pass in your own custom cache implementation Apr 07 07:04:54 thepoosh: It's not a cache... I'll save the url, and some info for debugging memory leaks Apr 07 07:04:59 it's only a debug tool thing Apr 07 07:06:10 you can see an overview with Picasso.stats Apr 07 07:07:01 f2prateek: I want to figure out exactly which urls are still on memory Apr 07 07:07:45 pass in your own cache, when you want to examine, just look all up the keys (which are the urls of the images) Apr 07 07:16:19 I'm having trouble setting up a simple Spinner in my app. The items are populated correctly, but the style comes out wrong for some reason. Can anybody help? Apr 07 07:16:40 I'm using both simple_spinner_item and simple_spinner_dropdown_item layouts. Apr 07 07:19:49 Cyph0n spinner in the actionBar, or just a layout ? Apr 07 07:20:03 just in a layout Apr 07 07:20:10 It's in a simple fragment Apr 07 07:20:16 dunno, sorry :( Apr 07 07:20:33 g00s ah, np Apr 07 07:21:16 Cyph0n, need moar info Apr 07 07:23:34 Zharf, Shall I paste the code> Apr 07 07:24:25 that might help Apr 07 07:25:26 Zharf, http://bpaste.net/show/2melJEoie9qP7oATVXBo/ Apr 07 07:25:40 That code is in onCreateView of a fragment Apr 07 07:26:31 Zharf: As far as I checked from the interwebs, it should be OK. For soem reason though, the layout is messed up. I'll add a screenshot. Apr 07 07:28:08 Zharf: http://imgur.com/3HF2xyF. The spinner is missing the arrow and border, as seen here http://developer.android.com/images/ui/spinner.png Apr 07 07:29:15 don't you want android.R.layout.simple_spinner_item Apr 07 07:29:30 and android.R.layout.simple_spinner_dropdown_item Apr 07 07:30:26 or maybe you aren't using the holo theme Apr 07 07:30:33 (not sure about that one though) Apr 07 07:31:02 g00s, I copied them to my layout dir, as per the advice of some guy on SO Apr 07 07:31:10 g00s, How can I check if I'm using Holo? Apr 07 07:31:32 Cyph0n i didn't think you needed to copy them; try without copying Apr 07 07:32:12 if you copied them, maybe missing the drawables ;) Apr 07 07:32:53 g00s, OK, that adds a slight background to it, but still no arrow and border Apr 07 07:33:11 g00s, But it's much better now Apr 07 07:33:16 Thanks Apr 07 07:37:12 Cyph0n yw Apr 07 07:37:31 you can chop off the arrow if using negavtive margins or something Apr 07 07:37:35 *negative Apr 07 07:37:50 but i doubt you're doing that Apr 07 07:43:07 g00s, Turns out device needed reboot - your solution worked :) Thanks again. Lesson: don't always trust SO answers ;) Apr 07 07:49:57 :) Apr 07 07:53:22 `On a single core device, my app is getting onResume called twice, the first time the launcher activity is started, after onCreate. On a multicore/faster processor, it is only called once (as expected). On the single core, if I quit return, onResume is called only once as exepcted. Anyone have a similar issue at some point? Apr 07 07:56:51 lasserix, sounds strange can you provide some code ? Apr 07 07:57:28 lasserix wth, no. onResume from activity or fragment. and compat lib vs framework ? Apr 07 08:05:23 This is activity callback Apr 07 08:05:59 Uhh it's fairly complicated, there's no specific code that might point to the error.. Apr 07 08:06:16 Other than the fact it is a result of single core - multicore Apr 07 08:06:56 *activity from standard framework Apr 07 08:06:59 when i was in uni, i was always taught to assume … if something didn't act the way i expected, it was probably my fault Apr 07 08:07:17 yeah I know just wondering if anyone else had Apr 07 08:07:18 once i used android, i learned, its almost always google's fault Apr 07 08:07:27 any idea if google provides an API for getting the app statistics from the developer console ? Apr 07 08:07:31 'principle of most astonishment' Apr 07 08:11:05 no official api :/ that's sad Apr 07 08:11:17 hm Apr 07 08:19:56 g00s: that might be true ;) Apr 07 08:20:18 gordon_ what was that ? Apr 07 08:20:48 about google's fault Apr 07 08:20:53 XD Apr 07 08:21:14 that should go to bash Apr 07 08:22:00 or I should make t-shirt from it Apr 07 08:24:41 Anyone ever have a vertical line appear in the middle of eclipse code editor window? It looks like a margin from word, can't figure out how to disable it Apr 07 08:27:00 g00s: i guess even with rxjava it's hard to write neat code Apr 07 08:27:14 yes, especially w/o lambdas Apr 07 08:27:19 i'm looking at the spaghetti crap i'm writing for RC and trying to figure out how to make it 'pretty' Apr 07 08:27:29 RC? Apr 07 08:27:34 ReactiveCocoa ? Apr 07 08:27:40 ya, i was too lazy to type the whole thing :P Apr 07 08:29:03 dont know ReactiveCoCoa, let me google it Apr 07 08:29:31 ugh Apr 07 08:29:33 iOS ? Apr 07 08:29:42 even with blocks, you still have to declare it somewhere Apr 07 08:35:25 Hey, how can i anchor a Popup menu at a menu item? Apr 07 08:37:29 danijoo PopupWindow .setAnchorView (your action view) Apr 07 08:38:17 @g00s i tried that but get an java.lang.IllegalStateException: MenuPopupHelper cannot be used without an anchor Apr 07 08:38:24 maybe because i dont have an action view :/ Apr 07 08:39:00 i am trying to add a new menu item to an existing menu, with a popup view under it Apr 07 08:39:27 menu.add(0, 666, 0, "Filter"); // adds the item Apr 07 08:39:29 hm, i would add a submenu, right ? Apr 07 08:39:50 well. why didnt i thought about that :p Apr 07 09:18:45 Hi there, my company is releasing a software soon which comes with virus detection. Anyone have a source of Android Virus' to test the effictiveness ? Apr 07 09:18:51 And yes, I'm aware how shady this sounds :( Apr 07 09:20:56 :D Apr 07 09:21:03 at least u are aware XD Apr 07 09:23:41 releasing anti virus software without any virus to test Apr 07 09:24:15 sound like 100% secure Apr 07 09:24:17 Well it isnt anti virus software per se, its a proxy app Apr 07 09:24:22 so it can only filter what it knows Apr 07 09:24:41 so at the moment ur software cant filter anything? Apr 07 09:24:46 :) Apr 07 09:24:51 it filters windows virus' just fine Apr 07 09:24:56 just cant find any android ones to test it with Apr 07 09:25:09 SrRaven-work: find a pirate apk sire Apr 07 09:25:12 er, site Apr 07 09:25:31 torrent search for popular .apk apps Apr 07 09:25:50 malware and scams do find their way into the play store - like the one I linked to in #android - but rarely *viruses* as such Apr 07 09:25:52 hmm...i wonder if my IT wont dropkick me after 2 mins if I attempt that :s Apr 07 09:27:43 fire up a VM, run in a sandbox Apr 07 09:28:13 think nuclear gloves... and if you're doing security stuff you should probably know how to do security stuff :P Apr 07 09:28:15 the problem isnt that, I have local admin rights. Problem will be the webtraffic Apr 07 09:32:17 Is it possible to set something like tileMode="clamp" on an imageview? I want the image to centerCrop, but with the remaining space filled clampy Apr 07 10:05:04 SrRaven-work, use a VPN Mr. Security Expert. Apr 07 10:06:08 sigh, I don't know why I'm helping you with this, it's obviously going to be another shoddy product. Apr 07 10:07:11 Leeds, the fact that your auto-correct says "Sire" means your phone must be British. Apr 07 10:07:42 I do not IRC on phone... Apr 07 10:08:20 Leeds, I guess your subconcious mind is British then, which is more likely than a British smartphone. Apr 07 10:08:42 my conscious and subconscious minds are both eminently British Apr 07 10:09:27 Cherrio old chap. Apr 07 10:10:42 pip pip! Apr 07 10:11:35 what do we know about the brits Apr 07 10:11:40 they love to swim Apr 07 10:11:50 they seem to have something about bad teeth Apr 07 10:12:03 squ, you'd love to swim too, it's the only way to escape from the British Isles. Apr 07 10:12:11 swim, really? I haven't been swimming for, oh... 24 hours! Apr 07 10:12:12 ;) Apr 07 10:12:25 EdLin: we have a tunnel now Apr 07 10:12:44 rumors are that monocles are extremely popular on their islands Apr 07 10:12:46 Leeds, we have tunnels too, Holland and Lincoln. Apr 07 10:13:29 this is what stops me to travel there, I don't want to wear monocle Apr 07 10:13:44 squ, I think you're confusing it with WWI Germany or something. Apr 07 10:13:46 EdLin you around NJ ? Apr 07 10:13:47 You have a tunnel to Holland? Apr 07 10:13:50 EdLin: company IT network blocks everything,even VPN's Apr 07 10:14:01 g00s, no, but those are the closest tunnels. Apr 07 10:14:02 we can only access web pages,cant even access FTP's Apr 07 10:14:03 SrRaven-work tunnel over DNS ! Apr 07 10:14:13 no, I don't think there's a tunnel between the Netherlands and Lincolnshire... although there are ferries from Hull - or Kingston-upon-Hull, to give it the correct name Apr 07 10:14:38 SrRaven-work, if you can't figure your way around the network enough to get a VPN working, why should I trust your AV? The fact that ftp is blocked means nothing. Apr 07 10:15:15 like I said, its not an AV, its a proxy that blocks malicios websites and virus' Apr 07 10:15:36 but yes, I agree with you Apr 07 10:15:37 proxy then, that makes your credentials even more suspect since it's a network utility. Apr 07 10:15:41 SrRaven-work: replace as appropriate Apr 07 10:16:34 Leeds: what ? Apr 07 10:17:04 SrRaven-work: stop saying you're not an AV, you're just a tool that blocks viruses... EdLin's comments still apply just as much Apr 07 10:17:13 hmm,fair enough. Apr 07 10:18:50 Leeds, "you're just a tool". Fixed that for you. Apr 07 10:19:09 nice, thanks... Apr 07 10:19:19 not meaning you of course, the earstwhile proxy maker. Apr 07 10:19:26 and on that note, I must get dressed and go to Mong Kok - yes, that is the name of the neighbourhood Apr 07 10:19:31 lol Apr 07 10:20:27 OK, enjoy your trip to Mong Kok. I'll avoid the obvious jokes. Apr 07 10:26:51 hm, what is this IFTTT stuff Apr 07 10:30:51 hey, has anybody else experienced a total freeze of android studio on opening a project. gradle builds the project just fine.. Apr 07 10:32:11 Yes ansgarm but it usually responds within a few seconds Apr 07 10:34:47 ansgarm yeah … new project or existing? Apr 07 10:35:18 either takes quite a while; for existing + full caches, about 1 min; new project about 10 minutes Apr 07 10:35:21 mine seems to be stuck totally. tried waiting a few minutes and nothing happens. the progress dialog is stuck at "Building 'myapp' Gradle project info" with the message "Gradle: " and the bottom Whats-running-in-background-Indicator of AS says "Updating indices…" Apr 07 10:35:29 new project Apr 07 10:35:41 i think it downloads gradle each time Apr 07 10:35:48 (say without .idea stuff) Apr 07 10:35:55 especially if you have slow internet, wait maybe 10-15 minutes Apr 07 10:35:58 ok, i will give him more time then Apr 07 10:36:28 internet is pretty fast and there's no network load Apr 07 10:36:30 sometimes my progress indicator is blank too, so it really looks like it hung Apr 07 10:36:35 hm Apr 07 10:36:49 see if you have etwork traffic on that interface Apr 07 10:37:01 if no, then i guess i would look at the event log Apr 07 10:37:05 (AS event log) Apr 07 10:37:27 well, the project is huge (7 submodules and plenty of libraries) Apr 07 10:38:37 my project is tiny, still takes forever :) Apr 07 10:38:39 indexing ? Apr 07 10:38:43 the progressbar animation is stuck aswell, which looks quite bad :D Apr 07 10:38:48 it should say if its indexing though Apr 07 10:38:58 ansgarm yeah i see that too, don't panic Apr 07 10:39:00 :) Apr 07 10:39:19 yes, it says indexing but the little progresswheel is frozen aswell :D Apr 07 10:39:19 if you see CPU + network traffic, you're probably OK :) Apr 07 10:39:41 Maybe just delete all ide files in the project and re-import Apr 07 10:39:49 not a good idea :) Apr 07 10:39:49 the project builds and installs fine, so I'm quite relaxed :) Apr 07 10:40:13 well, there's no cpu and network traffic.. Apr 07 10:40:51 I already tried deleting them.. Apr 07 10:41:06 if guess that's why it's stuck now :P Apr 07 10:42:50 i guess i'd shut down AS, and build from the command line Apr 07 10:43:03 yeah, delete .gradle and .idea files in the subdirs ;) Apr 07 10:43:20 do .gradle files have dependencies to AS? Apr 07 10:43:21 maybe *.iml too Apr 07 10:43:33 oh, .gradle *directories* Apr 07 10:43:39 not build.gradle files :) Apr 07 10:43:53 they should not Apr 07 10:44:27 Just checking out DDMS view: why does a simple hello world activity / app process persist after i back out of the activity, shouldn't that cause its unprocess to finish as well? Apr 07 10:44:58 oh yeah, I meant that. I won't delete my build files :D hell no Apr 07 10:45:19 lasserix no, process cached Apr 07 10:45:46 Oh okay. Kind of thought so, just wanted to double check thanks! Apr 07 10:45:51 the thread dump of AS has only waiting threads. so I guess there's some deadlock :( Apr 07 10:46:06 its not quite there yet Apr 07 10:49:01 maybe I/o 2015 Apr 07 10:50:12 :D Apr 07 10:50:19 0.5.4 seems ok for me. all the 0.5.x before were *terrible* Apr 07 10:50:41 still getting internal errors though Apr 07 10:50:44 that's because it didn't f**k your build process Apr 07 10:51:14 got to agree that it gets better Apr 07 10:51:17 with each version Apr 07 10:51:28 whenever they base it on EAP it goes to shit Apr 07 10:51:30 I remember developing 2 years ago .... Apr 07 10:59:41 well I filed a bug report: https://code.google.com/p/android/issues/detail?id=68252 Apr 07 11:00:20 voted, I hope it gets noticed Apr 07 11:02:26 thanks Apr 07 11:03:32 I am a bit confused of public vs protected, when would I want to use protected over public... because if it stays within the package and the subclasses have access to them wouldnt I just want to make them all protected Apr 07 11:04:32 um Apr 07 11:04:39 protected == private Apr 07 11:04:44 just that derived classes have access Apr 07 11:04:48 did you mix it up with package private_ Apr 07 11:04:49 ? Apr 07 11:04:56 LoneSoldier728 http://stackoverflow.com/questions/215497/in-java-whats-the-difference-between-public-default-protected-and-private Apr 07 11:05:06 note Edd's comment with 180 votes Apr 07 11:05:46 seems to be missing from the oracle tut Apr 07 11:07:40 g00s I see what he is saying but the question is if everything is in com.example Apr 07 11:07:51 then protected should allow access to everything still within the app Apr 07 11:08:11 from what I understand public is used if you want someone else to be able to call the method outside no? Apr 07 11:09:18 if the framework needs to instantiate something, i think it needs to be public Apr 07 11:09:21 so Fragments, etc Apr 07 11:09:51 hm ok, so let me ask it this way, when would you need to call protected is it common to call protected for anything Apr 07 11:24:25 Hi Apr 07 11:25:04 How can I make a java object via JNI? Apr 07 11:28:01 Serus: http://stackoverflow.com/questions/7260376/how-to-create-an-object-with-jni Apr 07 11:28:14 first google result for the exact words you used here Apr 07 11:29:41 I saw that Apr 07 11:29:47 שמג? Apr 07 11:29:49 and? Apr 07 11:30:05 But it's not what I want to do Apr 07 11:30:10 Or I must have misread it Apr 07 11:31:08 I was barely awake when I read that Apr 07 11:31:15 * Serus looks over it once again Apr 07 11:33:19 yep, you need to get class reference, then resolve constructor (init) method and call that Apr 07 11:34:09 Hmm, can I use another method as constructor Apr 07 11:34:45 what. Apr 07 11:35:15 http://s.scruffyfox.me/AVQw.gif Apr 07 11:35:43 ^^ Apr 07 11:35:49 Well, let me rephrase that Apr 07 11:36:00 Can I call a private overloaded constructor? Apr 07 11:36:29 I'm not sure about private constructor Apr 07 11:36:38 but when resolving it you do have to specify which overload Apr 07 11:37:29 Should work I guess Apr 07 11:38:28 I found a way to fix my AS problem :) import it into intellij and afterwards it works with AS. Well I used the 30days trial Apr 07 11:39:27 just keep using IJ, it'll solve a lot of your problems ;) Apr 07 11:39:38 Anyone here did some low-level (PCM) audio? I expierence hard clicking while outputting rapidly alternating frequencies. Please tell me even the most stupid ideas/hints. Apr 07 11:41:22 define clicking Apr 07 11:42:01 Hello everyone, i have a question. Apr 07 11:42:03 bankai_au: haha, yeah, I think so. Are there any (essential or cool) features in AS which aren't in IJ? Apr 07 11:42:23 StormAlexander: Don't ask to ask, just ask. Apr 07 11:42:30 bugs? ;) Apr 07 11:43:18 Serus: I can't. I don't mean the usual click sounds of buttons, but just some hard noise that I can't explain. It is quite loud, but doesn't appear when using lower base frequencies. Apr 07 11:43:43 crackling sound? Apr 07 11:43:52 like "kgggg" Apr 07 11:43:53 i am searching for a android structure picture , that contains the components as view, activity, display driver, power management, etc. and theire interaktion Apr 07 11:44:50 bankai_au honest question, but wouldn't the most stable release between AS & intelliJ depend on which is at the latest intellij .1 release and also has the latest gradle support ? Apr 07 11:45:11 so for example, if AS is based on EAP, its gonna suck Apr 07 11:45:25 I only find the android architecture, but this doesn't help, i need a little bit more detail. Apr 07 11:45:28 which build are you using do yu know ? Apr 07 11:45:29 g00s: Not always, newer releases also mean more bugs ;) Apr 07 11:45:34 but if its based on 13.1.1, AND it has the latest .1 gradle support, i think thats better than plain intellij Apr 07 11:45:51 Serus shouldn't be for x.y.1 releases Apr 07 11:46:07 unless they added features in a .1 release Apr 07 11:46:15 usually they are just bugfixes Apr 07 11:47:00 bugfixes bring bugs with them too Apr 07 11:47:13 yeaahhh Apr 07 11:47:24 dude, this is android :) Apr 07 11:47:35 Even more so Apr 07 11:47:56 Serus: Yeah, this sort of describes it. I unfortunately don't have a microphone at hand right now... Apr 07 11:48:15 doesn't matter Apr 07 11:48:34 try muting when changing frequencies and unmute 3ms later? Apr 07 11:48:47 or 1ms if that works too Apr 07 11:49:05 Wouldn't that induce much worse noise? Let me try... Apr 07 11:49:19 or not mute completely Apr 07 11:49:29 but lower volume by 25% or something Apr 07 11:51:26 Okay, skipping 1ms or 10ms certainly doesn't help... Apr 07 11:51:43 ok Apr 07 11:51:54 tried lowering volume? Apr 07 11:51:57 but not muting Apr 07 11:54:41 No, reducing the volume to 25% or 50% didn't help... Apr 07 11:56:05 I'm playing around with different volumes now... Apr 07 11:56:51 Hmm Apr 07 11:57:12 tried interpolating to the desired frequency? Apr 07 11:57:56 If it was that easy... I'm unsure how to do that, because the wavelengths are changing. Apr 07 11:59:00 But we are talking about frequencies of above 19000 Hz. Divide the my sampling rate of 44100 Hz by that and it all gets pretty dense. Apr 07 11:59:08 well, are you "generating" audio? or are you playing a song? Apr 07 11:59:15 I'm generating it... Apr 07 11:59:58 well, I assume you call a function that takes the new frequency value Apr 07 12:01:09 The relevant snippet (hacked up) is at http://ix.io/bxs Apr 07 12:01:27 in that case make something like currentfrequency and wantedfrequency. Then calculate the wanted frequency and in/decrease the current frequency a little every tick/frame. Apr 07 12:04:04 I only have three frequencies right now. I don't want to emit more than these except if absolutely necessary. Currently I am writing 'blocks' of sine waves with the specified frequency. Apr 07 12:04:55 what are you trying to achieve? Apr 07 12:06:29 I'm trying to transmit data via sound waves. I know it has an abysmal transfer speed when compared to bluetooth or other means, but this doesn't matter here. Apr 07 12:07:22 awesome Apr 07 12:07:23 ) Apr 07 12:07:29 it is called dialup Apr 07 12:08:26 Yeah, I'm too young to ever have used an actual dialup/modem, but that is a better description of what I want to do. :) Apr 07 12:09:05 well, they make noise Apr 07 12:09:53 But this not noise... (I think) Apr 07 12:10:10 Alright, let send me you my sandbox... Apr 07 12:10:21 It is, if you change the noise, you change the data Apr 07 12:10:50 And that's not needed, I have my own problems atm :| Apr 07 12:11:34 Hi all, somebody used mapbox before? Apr 07 12:13:44 Or maybe does somebody know what I should use to use offline maps + directions (offline too) Apr 07 12:15:03 Serus: Well, it would just be a tiny .apk to show you what I mean. But I can't/won't force of course... Apr 07 12:18:20 any idea why a ServerSocket would not receive incoming connections in a local network (even tried tethering via usb) ? Apr 07 12:18:25 flan3002: Well, I have a crapload of stuff to do, so I can only verbally help you. Apr 07 12:18:59 but basically, getting around the "noise" means changing the data and that's not what you want Apr 07 12:20:07 No, the three frequencies are inaudible to many persons (not me), because they are above 19KHz. But there is some very clearly hearable noise far below 19KHz that's bugging me. Apr 07 12:20:42 Oh, that's even worse Apr 07 12:20:55 no that makes me go crazy and have a headache Apr 07 12:20:56 no thanks Apr 07 12:23:24 Well, I don't like hearing them as well, but they speakers can't go any higher than that. Apr 07 12:23:37 Neither can the microphone... Apr 07 12:24:33 "Can't" Apr 07 12:25:48 What do you mean? Apr 07 12:26:04 "there is no try, only do" Apr 07 12:30:26 anybody set up android studio to deploy release / debug versions of your app to the device? Apr 07 12:54:21 when I'm using library projects with eclipse, it puts a relative path to the library project in my project.properties which seems sort of site-specific; is it normal to check project.properties into VCS with a relative path like that or should I be doing something else? Apr 07 12:54:46 anyone have an S4 and feel like testing a game on the play store for me ? Apr 07 12:54:54 getting reports of strange audio, and would like to verify a fix Apr 07 13:13:24 OEP: you could make variables Apr 07 13:14:27 Morning Apr 07 13:15:32 jonc-1: it's 16:15 Apr 07 13:15:43 what's this morning are you talking about? Apr 07 13:15:58 haha, its 9:14 here Apr 07 13:16:04 please Apr 07 13:16:10 the REAL time is 15:15 Apr 07 13:16:15 lol Apr 07 13:16:22 my work day has just begun Apr 07 13:16:31 Serus: so you think doing it relative to ${sdk.dir} might be an OK idea? Apr 07 13:16:58 OEP: Or something like $(SOME_EXTERNA Apr 07 13:17:00 derp Apr 07 13:17:04 I hate my keyboard Apr 07 13:17:17 is anyone else having troubles pushing to bitbucket today? Apr 07 13:17:27 OEP: Or something like "$(SOME_EXTERNAL_LIBNAME_HERE)/src" Apr 07 13:17:27 it worked a couple of times earlier today but now its refusing to cooperate Apr 07 13:17:42 http://www.logitech.com/en-us/product/wireless-keyboard-k350 I have 3 of these keyboards, I love them Apr 07 13:17:50 I think I tried sdk.dir but it seems like nothing picked up on it; now it's set in local.properties so I'm not sure of resolution order there... Apr 07 13:18:06 nvm, it worked now after trying to push for like 15 minutes Apr 07 13:18:09 sdk.dir is the SDK directory Apr 07 13:18:31 you can find the combo with a mouse for like $50 on amazon Apr 07 13:18:46 Serus: yeah, but the library project is located at extras/android/support/v7/appcompat/ Apr 07 13:19:00 within the sdk Apr 07 13:20:19 who says that's for everybody? Apr 07 13:20:54 well, I mean that's where the sdk manager downloaded it; it wasn't my choice Apr 07 13:23:44 in any case, I don't think Eclipse is handling my variable set in local.properties Apr 07 13:26:22 the only thing I can get to work is if I have a literal path set as an android.library.reference in project.properties Apr 07 13:26:24 what library can i use to login to a website? for desktop there is apache commons-io httpclient libs - what similar libs exists for android? Apr 07 13:30:22 ovrflw0x: http://developer.android.com/training/basics/network-ops/connecting.html Apr 07 13:32:04 OEP: where to input userid and password for website login? Apr 07 13:33:17 was someone able to establish a stable connection to an usb accessory? I only get it running if I don't reconnect the accessory and let the app in foreground. But this feels realy buggy. Apr 07 13:34:59 ovrflw0x: it depends on what class you're using; click on the link for HttpURLConnection and see if that will work for you, and look at the "HTTP Authentication" section Apr 07 13:37:36 hi Apr 07 13:37:48 can i basically (except gui stuff) take any java app and compile it for android? e.g. can i use any lib that is avilable as jar (with classes)? Apr 07 13:38:51 micw, you can take any JAR that uses APIs available on Android yes :) Apr 07 13:39:02 if JAR will try to call a non-existing API you app will crash Apr 07 13:39:21 is the api compatible to such like jdk 1.x? Apr 07 13:39:28 not completely Apr 07 13:39:30 e.g. 1.6 or 1.7 Apr 07 13:39:33 ok Apr 07 13:39:38 you need Java 1.6 compatible code Apr 07 13:39:46 (Java7 bytecode features are not supporteD) Apr 07 13:39:49 micw: android docs are at d.android.com, including full class reference Apr 07 13:39:58 micw, but not all Java6 APIs are available. Apr 07 13:39:59 can i use the android libs with a windows (or linux) jvm to run my testcases on desktop? Apr 07 13:40:44 depends what do you mean by android libs Apr 07 13:40:53 you can use robolectric to stub out Android calls and then run JUnit Apr 07 13:41:37 i meant the core java libs (instead of rt.jar) Apr 07 13:41:46 to see if my code is compatible Apr 07 13:41:50 no. Apr 07 13:42:17 i plan to run a webapp offline (so start jetty embedded in-app) Apr 07 13:42:35 the app uses only standard api (and some apache-commons libs and such) Apr 07 13:42:43 lot of reflection (spring) Apr 07 13:42:57 and i wonder if this would run on android (almost unmodified) Apr 07 13:43:43 that sounds like a no Apr 07 13:43:49 also, using reflection on Android is a terrible idea Apr 07 13:43:57 it's really slow Apr 07 13:44:51 micw, there's no Java EE features available (which includes servlet containers and other APIs) Apr 07 13:47:24 thats no problem, i can provide those by my app (add jetty.jar + servlet-api.jar) Apr 07 13:51:28 is there some kind compatibility-code that let me run/test an "Activity" on normal (Desktop) java vms? Apr 07 13:51:47 like applet runner? Apr 07 13:52:31 um... you know Android doesn't run Java bytecode, right? Apr 07 13:52:51 yes but it compiles from .java/.class Apr 07 13:52:55 is it possible to load a region of google maps for offline use? Apr 07 13:53:02 so if i have all source/classfiles it should be possible Apr 07 13:53:29 micw, again, no. Apr 07 13:53:32 FrancescoV: as a user in the maps app, yes Apr 07 13:53:34 use instrumentation testing on Android devices. Apr 07 13:53:36 or emulator. Apr 07 13:53:45 ok Apr 07 13:54:31 FrancescoV, not currently possible I think, you can use an alternative -> mapbox or something Apr 07 13:54:37 Leeds, but without using default Maps app, I need to have a region cached for offline use in my own app. But I need to know if it's possible with google maps, else I'm going to use openstreetmaps Apr 07 13:55:05 just to let you know osm lib really sucks Apr 07 13:55:23 the peeps from mapbox are currently rewriting it https://github.com/mapbox/mapbox-android-sdk Apr 07 13:55:28 but it is till in alpha Apr 07 13:55:47 tagrudev: but you have limits with mapbox (3000 map request a month), need more (and free if possible) Apr 07 13:56:43 tagrudev: or do you know what they mean with map request? see https://www.mapbox.com/plans/?period=month Apr 07 13:56:49 FrancescoV, you can probably change the endpoint so that you can get unlimited Apr 07 13:56:57 MapQuest has a free openstreetmaps server you can hit Apr 07 13:57:36 FrancescoV, I am using https://www.mapbox.com/developers/mbtiles/ Apr 07 13:57:40 jonc-1: does mapquest have offline routing too? Apr 07 13:58:03 and a private server Apr 07 13:58:05 :) Apr 07 13:58:13 so I don't know about their quota Apr 07 13:58:42 Only thing I need is offline maps with predefined routes Apr 07 13:59:22 Automatically generated pre app install? Apr 07 13:59:34 or download the map for later? Apr 07 13:59:48 I am not sure if the osm lib has a build in support for routing Apr 07 14:04:00 the osm maps certainly do have the necessary meta data for routing though. Apr 07 14:07:01 I am patiently waiting for gmaps to provide offline caches and I will happily get rid of osm Apr 07 14:07:43 tagrudev are you sure they are working on it ? Apr 07 14:08:14 rumors .. Apr 07 14:08:45 see, competition is a good thing. the nokia WP devices have all that Apr 07 14:09:15 oh don't go there Apr 07 14:09:22 not sure if other WP oems get acess to it or not Apr 07 14:10:58 https://support.google.com/gmm/answer/2650347?hl=en&ref_topic=2649131 Apr 07 14:11:09 I am working on a project that contains two android apps. now i want to bind a service which is inside the second app, but it doesn't work. the manifest of the second's app service look currently like this: http://pastebin.com/yvS4PnUX - what is missing there? Apr 07 14:11:29 g00s, I think they will provide an api for using the files that gmaps caches Apr 07 15:01:08 anyone help me to create sample project like this http://sampleprogramz.com/android/sqlitewebservice.php i try the code but is failed, i can't change my id on mysql to data text type only integrer and on the tutorial id is text not int Apr 07 15:01:39 maybe you have a goog tutorial or sample project works...... Apr 07 15:02:13 amiloxa, what is "doesn't work" Apr 07 15:04:41 anyone using maven and intellij? How do I regenerate my R? Apr 07 15:05:05 pfn: the bind command returns false all the time Apr 07 15:05:18 amiloxa, read your logs Apr 07 15:05:37 pfn: Logcat does not show anything useful :/ Apr 07 15:05:43 yes, it does Apr 07 15:12:08 exist a structural design picture of an application? where i can see all the components and who interacts with who? Apr 07 15:14:39 StormAlexander no, you're expected to comprehend all of that by looking at your tree of xml files :) Apr 07 15:15:09 ok thanks Apr 07 15:15:56 Does anyone here have experience with multi-platfom sdks, like Xamarin, Corona, and Phonegap? Which of these, or any, would you recommend for simple business apps? Apr 07 15:16:03 who used mapbox before? Apr 07 15:17:07 Jonathan_Eyre: I've used Corona and Phonegap... where Phonegap seems to be the most mature. If you want anything more than the most primitive of apps, though, you'll have to go native. Apr 07 15:17:47 I've used both also, Corona is pretty decent and much much faster than phonegap, but it also isn't geared towards apps, just games Apr 07 15:18:12 you can't highlight text, and unless you pay for enterprise you can't create native plugins Apr 07 15:18:34 seems like picking up xamarin now that MS is looking at it, might be risky - or not - but who knows what their vision for it is Apr 07 15:18:34 Yeah. Phonegap is probably best-suited for a business app. Apr 07 15:18:47 jonc-1: Corona seems to baost that it is great for simple apps as well, but I guess they would say that if they want developers to head their way. Apr 07 15:18:51 Phonegap is slow, if you plan to do any sort of animations, it will die Apr 07 15:19:12 if you plan to have any sort of lengthy list, it will die Apr 07 15:20:06 Jonathan_Eyre, yeah, we used it for an app, and it wasn't terrible, but it also does have a few bugs that sort of just happen (issues with things not drawing correctly if you don't draw in a very specific order) Apr 07 15:20:35 Phonegap had this problem? Apr 07 15:20:40 Corona Apr 07 15:20:47 Oh, yikes. Apr 07 15:21:18 we started with Phonegap, and our app was fairly simple, 1 big list of events that were matched to you. It was rather slow and any animation would kill the frame rate Apr 07 15:21:27 obvious visual stutter when scrolling the list Apr 07 15:22:38 so we swapped to Corona, which was faster, but still a decent amount slower than native. Though issues with some of the bugs it had and the limitations it set when we tried to expand the app more made us move in the direction of native Apr 07 15:23:11 did you try titanium? Apr 07 15:23:56 I believe so, I think we tried it as a demo type deal then decided on phonegap Apr 07 15:23:59 Well, I'm not terribly surprised, but the iOS folks suggest we do everything natively. Apr 07 15:24:17 thats my opinion too Apr 07 15:24:18 anything that runs in a webview with javascript will blow for performance Apr 07 15:24:21 native of gtfo. Apr 07 15:24:24 same Apr 07 15:24:41 I tried Titanium, couldn't get a test project to export to native Android, chucked the whole thing in a metaphorical dumpster and lit it ablaze. Apr 07 15:24:42 unless it's a game, native is the way to go Apr 07 15:24:45 not enough coffee, typing is broken Apr 07 15:24:58 unless it's a game? Apr 07 15:25:00 Why is a game so different? Apr 07 15:25:05 if you are doing a game a prebuilt engine is fine Apr 07 15:25:20 because the ui design and everything will be based on the game itselt Apr 07 15:25:22 itself* Apr 07 15:25:23 I use libgdx Apr 07 15:25:47 using a game engine is fine, because you'll end up with a native build - it's not the same as running something like phonegap where your app is mostly running in a webview Apr 07 15:26:00 I made a wallpaper in pure opengl, was good learning... but yah, for the game i went with libgdx. Apr 07 15:26:03 not the OS you are building the app on, also a lot of game engines run native with a scripting language overtop Apr 07 15:26:30 That just tells me that there is a user mental block to business apps, while they are willing to do anything (even learn a UI) if it is for a game. Apr 07 15:26:41 Unity and Corona both are written in C, with java or objective-c integration based on the actual OS it is used on Apr 07 15:26:55 Our business aps just need to be fun. Apr 07 15:27:27 Jonathan_Eyre, game UI is different than app UI, app UI you constantly have some form of "menu" visible, games you do not, you have a few buttons on a menu, and maybe a couple specific type buttons / ui on the actual game page Apr 07 15:27:47 jonc-1: True. Apr 07 15:28:31 while each platform has it's design standards that you should reach for when doing a business oriented app Apr 07 15:29:58 anyone watch silicon valley premier last night? Apr 07 15:30:21 nope, I was working on a tree distance algorithm Apr 07 15:30:46 i didn't either Apr 07 15:30:49 hoping its good Apr 07 15:30:50 http://i.imgur.com/ZX98acA.png ignore the x axis that is just the ith element in the column from excel Apr 07 15:31:13 y is the distance between 2 trees that are sentence part of speech trees created from books Apr 07 15:31:25 the red dots are all harry potter books to all harry potter books Apr 07 15:31:40 blue is all harry potter books compared to Fellowship of the Ring Apr 07 15:32:32 trying author identification using a homegrown solution basically Apr 07 15:32:58 and I didn't think tree edit distance would work right, so created my own normalized distance metric Apr 07 15:35:14 i don’t see the /assets dir.. where should it be found? Apr 07 15:37:21 is this assets for a libgdx project? Apr 07 15:44:28 what is the current status of android apps that tell you if your mic is *really* off? Apr 07 15:44:43 or wifi Apr 07 15:47:12 guys, how I can dismiss/cancel dialog? But not in DialogInterface Apr 07 15:47:20 rcw2: what? really off? Apr 07 15:47:36 I thought android phones were pretty simple in that way Apr 07 15:47:44 at some time I just want make sure that no Dialog is appear on screen Apr 07 15:47:44 most of them anyway Apr 07 15:48:39 can in restore adb backup on other device? Apr 07 15:48:55 rcw2: I don't think their volume output is linear with wave "block" value Apr 07 15:55:44 hey. I am developing a webview app which makes use of the Facebook sdk for Android. When the user is tapping a certain link, I intercept that link in webviewclient and then call some Facebook API methods to let the user login. the problem is that calling the Facebook API methods thorugh the webviewclient doesn't work well. the app crashes. when I call the same Faceook API code from a native button, the app behaves as expected. Does anyone know what's g Apr 07 15:55:45 oing on? Apr 07 16:00:09 mephju, considering the fact that YOU have the error logs by you Apr 07 16:00:20 it's hard for US to tell you why your app crashes don't you think? Apr 07 16:01:29 Mavrik, depends. in most cases yes. app crashes with sigsegv and huge core dump Apr 07 16:02:13 so there is no real error message. anyways. let me upload the logs. wait a sec :) Apr 07 16:07:50 is it possible to create static final variables via reflection? Apr 07 16:08:06 Mango_Man, not as far as I know Apr 07 16:08:27 Mavrik: darn. thanks though! Apr 07 16:08:52 Mango_Man, thing about static stuff is that it tends to get optimized into the code Apr 07 16:09:48 Mavrik, here we go: http://pastebin.com/2RaU5FgW Apr 07 16:10:05 too me the logs in http://pastebin.com/2RaU5FgW are really not conclusive Apr 07 16:10:18 that looks like the okhttp SSL issue :) Apr 07 16:11:47 is it a common thing? Apr 07 16:12:05 so the facebook sdk uses okhttp? Apr 07 16:12:11 mephju: no, I use Volley Apr 07 16:12:36 and by I you mean it? Apr 07 16:13:00 YES! Apr 07 16:13:52 thepoosh: hey Apr 07 16:14:10 Mavrik, what do you mean by okhttp issue? Apr 07 16:14:14 you know if it's possible to restore one device adb backup into another device? Apr 07 16:16:15 I was gonna add some more stuff but decided it was not good enough Apr 07 16:16:18 elichai2: sup? Apr 07 16:20:26 do I have to set dialogFragment.onDismiss() on the UI thread? Apr 07 16:22:03 nevermind, onDismiss is not a function to set a listener Apr 07 16:22:39 thepoosh: good wbu? Apr 07 16:23:15 I like the runOnUiThread feature Apr 07 16:23:20 in android Apr 07 16:24:00 I'm using it for the function that posts output to the screen Apr 07 16:24:12 from a weather app Apr 07 16:25:38 so a DialogFragment has no way to set a listener for Dismiss and cancel? Time to make my own Apr 07 16:27:00 Mavrik, seems like you were right with the ssl bug in okhttp Apr 07 16:27:13 jonc-1: http://developer.android.com/reference/android/app/DialogFragment.html#onDismiss(android.content.DialogInterface) Apr 07 16:27:31 thepoosh, that's an internal thing it seems, I tried it, and it doesn't work Apr 07 16:27:49 jonc-1: it's a public method Apr 07 16:27:50 reading the docs for it, it says it is called when it is dismissed Apr 07 16:27:52 it is Apr 07 16:27:56 but it doesn't set a listener Apr 07 16:28:26 the system calls that function when the dialog is being dismissed, not to set a listener Apr 07 16:28:26 mephju: it's not really a bug in OkHttp. It's a bug in behavior of how SSL works. Apr 07 16:28:27 jonc-1: you can also use onPause and onStop Apr 07 16:28:31 pfn: 04-07 18:21:01.526: W/ActivityManager(473): Unable to start service Intent { cmp=de.tudd.dud.interactivenfcdemo/.DemoService } U=0: not found Apr 07 16:28:42 pfn: but i don't understand why it's not found Apr 07 16:28:59 pfn: it's the right package and class name Apr 07 16:28:59 JakeWharton, ok, noted. Okhttp is of course still great :) Apr 07 16:29:20 thepoosh, yes, I was hoping to be able to add a listener from outside, so I am just creating my own DialogFragment that extends and in onDismiss and onCancel will call a custom listener Apr 07 16:29:28 mephju: OkHttp just tends to expose the bug easily! Apr 07 16:31:02 How can I determine area (in km) currently being shown on a GoogleMap? Apr 07 16:31:24 or the height or width of that area? Apr 07 16:32:05 argh, just tried implementing a @Tagged annotation for automatic private static final TAG variables, but then i realized it wasn't possible Apr 07 16:32:23 or at least, it's not as convenient to implement as i thought Apr 07 16:33:23 jonc-1: you can, all you need to do is define the member and run it just before calling super.onPause Apr 07 16:33:40 JakeWharton: it's not a bug, it's a feature! Apr 07 16:38:11 thepoosh, that is what I am going to do, just was hoping that there was a built in way Apr 07 16:38:22 not a huge deal, just figured I'd look for the "proper" way to do things first Apr 07 16:38:32 that is supposed to work, and if it doesn't you should report an issue Apr 07 16:38:49 are you sure it's not being called? Apr 07 16:39:36 this won't just be on a single dialog fragment, so I made a class that extends DialogFragment that does this for me, and then all of my dialogs now extend my class Apr 07 16:40:09 it's for a dialog management system so only 1 will show at a time, and only if certain conditions are met (not at specific points in the app) Apr 07 16:51:38 mephju, JakeWharton, yeah, doh, it's a bug in SSL behaviour, not OkHttp per-se Apr 07 16:51:48 most people meet it with okhttp tho :) Apr 07 16:51:53 yep Apr 07 17:00:26 amiloxa, it's not found because it's not found Apr 07 17:00:27 clearly Apr 07 17:00:39 amiloxa, because youy don't have the right package and class name Apr 07 17:01:03 pfn: i checked the package and class name 100 times now. :| Apr 07 17:01:21 pfn: do i have to add the external service to manifest file? Apr 07 17:01:25 no Apr 07 17:01:31 you have the wrong package name Apr 07 17:01:33 you have the wrong class Apr 07 17:01:36 that's all there is to it Apr 07 17:01:38 or you don't have it installed Apr 07 17:04:25 this is from the manifest of the app which includes the services that should be started: android:name="de.tudd.dud.interactivenfcdemo.DemoService". Apr 07 17:04:36 on the other side i use this to bind it: Apr 07 17:04:43 new ComponentName("de.tudd.dud.interactivenfcdemo", "DemoService")); Apr 07 17:04:55 the app is installed Apr 07 17:04:58 (both apps) Apr 07 17:05:15 i have an third party app here which lists all services for all installed apps Apr 07 17:05:19 amiloxa, you realize package is /application/ package Apr 07 17:05:20 the service is listed there Apr 07 17:05:22 not class package Apr 07 17:05:29 read how component names work again Apr 07 17:06:06 so this is wrong? new ComponentName("de.tudd.dud.interactivenfcdemo", "DemoService")); Apr 07 17:06:21 damned if I know Apr 07 17:06:23 found it like this in a tutorial Apr 07 17:06:24 I have no idea wtf you're doing Apr 07 17:07:52 and tutorials are, in the vast majority of cases, worthless Apr 07 17:08:27 i also tried it this way (with full path): new ComponentName("de.tudd.dud.interactivenfcdemo", "de.tudd.dud.interactivenfcdemo.DemoService")); Apr 07 17:09:16 this will be passed to the connect method Apr 07 17:09:29 Intent intent = new Intent(); Apr 07 17:09:29 intent.setComponent(componentName); Apr 07 17:09:29 return connected = context.bindService(intent, connection, Context.BIND_AUTO_CREATE); Apr 07 17:09:49 that's the whole (not working) magic Apr 07 17:10:27 how do I adjust IntelliJ 13 to automatically generate my R file in an android/maven project? Apr 07 17:11:55 Denommus: Enable the "Android" project facet. Apr 07 17:12:00 pfn: now you got an idea wtf i am doing? ;) Apr 07 17:12:20 freeone3000: where is that? Apr 07 17:12:31 Denommus: Project Structure. Apr 07 17:14:24 freeone3000: there is an android project facet there already Apr 07 17:14:58 Denommus: Then it's working. Yay! Apr 07 17:15:06 freeone3000: uh, it's not Apr 07 17:17:35 freeone3000: which option should be marked? 'Run "process-resources" Maven task before Make', or 'Generate by IDE'? Apr 07 17:18:12 Denommus: First one does it from maven, second one does it how IDEA feels like. If you have maven set up properly, the first. Apr 07 17:21:11 freeone3000: it suddenly worked, I don't know what I have done. Thanks anyway Apr 07 17:25:22 2343offchance any of you know the color setting name/location in intellij/AS for the cross links in javadoc popup? Cant find it and they're unreadable with zenburn. Apr 07 17:27:45 If I have a drawable named "image.png", how can I load that drawable from the string "image.png" ? Apr 07 17:29:39 how many of you use Intellij for development? Apr 07 17:29:54 pfn: seems like it was a android bug, it just worked after rebooting the phone -.- Apr 07 17:30:52 scelis: getResources().getIdentifier("imange.png", "drawable", "my.package") Apr 07 17:31:12 birbeck: Wonderful. I'll try that. Thank you. Apr 07 17:31:20 then you can do getDrawable() with the returned id Apr 07 17:31:38 I use intellij Apr 07 17:32:00 i use intellij for java dev, android studio for android dev Apr 07 17:32:09 which is intellij Apr 07 17:32:50 Might anyone know how I can keep FragmentActivitys cached when cycling through them in a tabHost? Apr 07 17:33:06 i have eclipse project with junit tests but i can't import it into intellij, it's asking me for eclipse workspace which i don't have wtf to do ? Apr 07 17:33:16 mentos, set the cache size on the adapter Apr 07 17:33:33 the tabHost being the adapter? Apr 07 17:33:35 err, nevermind, thats when using a pageradapter Apr 07 17:33:47 i havent used tabhost in ages Apr 07 17:34:42 only one activity can be active at a time, so your activities are being killed each time you switch tabs Apr 07 17:35:51 you could try saving the state and see if the bundle gets passed to it when re-activated, but i dont know if those bundles get saved between instances of tab activities Apr 07 17:41:03 ovrflw0x: simply put your test casses in src/jest/java ... assuming you're adopting the AS/Ij gradle project hierarchy. Apr 07 17:41:20 the java plugin in knows where they are. Apr 07 17:44:50 I want to use listview to achieve bubblechat effect: one row align left alternating row align right, etc. I use custom simpleAdapter to getView() based on position. it works except one thing. when I scroll the list, the list items messed up alternating effect. any reason? Apr 07 17:45:50 is it always aliging the first visible bubble left? Apr 07 17:46:25 goodwin, if you have different layouts, tell list view layouttype from your adapter so it can recycle them efficiently Apr 07 17:46:40 also, it's messed up because you don't properly update it :) Apr 07 17:49:22 myke: yes the algorithm works that way. but when scrolling, any order can happen. Apr 07 17:49:34 Hello, I can start the camera via adb and also take a picture by sending KEYCODE_CAMERA. But it does not simply take a picture, but rather asks for another confirmation. How could I confirm my image? Apr 07 17:49:50 Mavrik: how to properly update it? Apr 07 17:50:15 well that's something you have to know when you wrote the layouts and views Apr 07 17:50:26 goodwin: check out the holder pattern for list adapters Apr 07 17:50:26 in getView() you need to make sure that view you return looks like you want. Apr 07 17:50:38 birbeck, he's probably being bitten by the holder pattern ;) Apr 07 17:50:49 how so? Apr 07 17:51:09 its a problem with view recycling, this will help fix it and draw faster Apr 07 17:51:29 birbeck, he's getting wrong views / layouts due to them not being updated properly ;) Apr 07 17:52:53 Any idea or maybe some docs I could read? Apr 07 17:53:39 Mavrik: i just extends SImpleAdapter, get two layouts into constructor, then in getView set layout based on position % 2, then everything else same as the original. Apr 07 17:53:55 goodwin, what do you mean "set layout"?? Apr 07 17:54:40 goodwin, those built in adapters aren't meant for complex use-cases Apr 07 17:54:46 set the layout for list item which is a private variable in SimpleAdapter. Apr 07 17:54:50 I am calling a service from BroadcastReceiver, via .startService(), when would the Service.onDestroy() method be implictly called? Apr 07 17:54:53 goodwin, yeah, that won't work. Apr 07 17:55:09 goodwin, make your own adapter (extend BaseAdapter) so you get control and set views properly in each getView() Apr 07 17:55:25 and by set I mean "modify existing view" not "create a new one" or you'll kill any scrolling performance Apr 07 17:56:21 rsz, implicitly? Probably when OS runs out of resources. Apr 07 17:56:31 in the adapter, set view count to 2, then implement getViewType() to return left or right Apr 07 17:56:38 then cache the views in the holder Apr 07 17:56:59 Mavrik, I want the service to release all its resources once its task is done and not linger on. Apr 07 17:57:13 rsz: you have to track that and call stopSelf() Apr 07 17:57:32 the os doesnt know when the work is finished, so it will run forever until android decides to kill it Apr 07 17:57:51 that will only happen when resources are needed, you have no idea when that will be Apr 07 17:58:48 hey guys i need some help my pc not recognize my device (samsung s3) even that i installed all drives .. today in morning it did work but now isnt i did not change anything Apr 07 18:00:11 amiloxa, you probably needed to reinstall the app then Apr 07 18:02:09 when you made a new version of an app, do people who had the old version get the latest version automatically or get a notification? Apr 07 18:02:51 birbeck, would a bindService() approach also results in such uncertainity? Apr 07 18:03:10 you dont bind services from broadcast receivers Apr 07 18:03:36 i dont know your exact case or what you are trying to acheive, but you probably want to look into using IntentService Apr 07 18:03:58 IntentService handles creating a thread and stopping the service when its finished Apr 07 18:04:04 RetroDude: Play store application updates are pushed to phones according to user preferences - if the user has opted in, and your new version doesn't require new permissions, most users will receive the updated version automatically. Apr 07 18:04:26 RetroDude: Adding new permissions, or deploying somewhere other than the play store, that probably won't happen. Apr 07 18:06:24 updates are automatic on play store unless otherwise limited in play store settings Apr 07 18:06:31 and yes, permissions changes prevent auto updates as well Apr 07 18:06:33 cool, thanks guys Apr 07 18:06:47 thanks for the suggestion, birbeck! I guess that is what I was looking for! :-) Apr 07 18:07:21 well might anyone know how to have an ActionBar cache its tab's Apr 07 18:07:30 so that switching tabs will not reset the UI Apr 07 18:08:17 Mentos, try setRetainInstance()? Apr 07 18:08:47 Does anyone know where these images would be stored? It is not in /sdcard/DCIM/Camera Apr 07 18:08:56 birbeck: don't see that method but i'll search thanks Apr 07 18:09:29 Mentos: its on Fragment class. setRetainInstance(true). The fragments will not be destroyed. Apr 07 18:09:44 kpj: it should be there, but you can get MediaStore to find them for you Apr 07 18:10:08 birbeck: ah yea cool let me see if that works Apr 07 18:10:13 Could MediaStore also automate making the photo? Apr 07 18:10:23 yes Apr 07 18:10:50 You're talking about android.media.action.IMAGE_CAPTURE ? Apr 07 18:11:05 sure why not Apr 07 18:11:10 heh Apr 07 18:11:18 Anyone know how I can analyze native memory allocation? Will it show up in MAT? Apr 07 18:11:51 shmooz: Sending 'KEYCODE_CAMERA' as a keyevent still requires me to confirm my photo Apr 07 18:12:06 And then I still don't know where the image was saved to Apr 07 18:12:48 well now you got a bunch more problems Apr 07 18:13:13 what do you mean? Apr 07 18:13:16 kpj: your first problem of finding the files can be solved with MediaStore Apr 07 18:13:31 or just popping up some gallery app Apr 07 18:13:54 I tried looking for it in the gallery but couldn't find it Apr 07 18:14:03 and in the end everything should be done purely via adb Apr 07 18:14:16 I want to take a photo and copy it to my laptop Apr 07 18:14:22 birbeck: hmm solely setting retainInstace(true) in my map fragment is not keeping it around between tab clicks Apr 07 18:15:57 birbeck: http://stackoverflow.com/questions/9804730/saving-fragment-state-actionbar-tab Apr 07 18:16:28 Mentos: a few things need to happen for that to work Apr 07 18:17:00 first give the fragment and id and tag, second put it on the backstack and third, setRetainInstance(true) Apr 07 18:17:17 gotta go scrum, bbl Apr 07 18:17:49 k thanks for your help! Apr 07 18:39:08 Hi all. I am currently creating a custom list view with switches in each row. I have set a listener in my ListAdapter to listen for OnCheckedChange. This works fine but it seems that I should have this in my activity like onListItemClick. Is this correct and if so, how should I go about doing it? Thanks Apr 07 18:45:49 guys, is it posible to close Dialog/Alert out of DialogInterface ? Apr 07 18:46:30 dont all dialoginterface callbacks include the dialog? Apr 07 18:46:31 hey guys Apr 07 18:46:37 urgent help needed. Apr 07 18:46:53 app is crashing when on 4.3 on checkdevice(this) for GCM Apr 07 18:46:58 works fine on versions before it. Apr 07 18:47:17 birbeck don't know, so I ask :) Apr 07 18:48:28 yes, all dialoginterface callbacks include the dialog as the first parameter Apr 07 18:48:47 tonySoprano9099: stacktrace? Apr 07 18:49:44 ok wait. Apr 07 18:50:00 java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf Apr 07 18:50:03 hate people that say stuff crashes without a stacktrace Apr 07 18:50:06 there you go Apr 07 18:50:18 problem solved Apr 07 18:50:19 carry on Apr 07 18:50:29 pfn missed u mate. Apr 07 18:50:33 000000000000*9 Apr 07 18:50:46 +666l Apr 07 18:51:24 [1~YHGB~=]\ Apr 07 18:52:22 anybody encountered that ? Apr 07 18:52:42 birbeck ok, but if I wan't have sure that at some time all possibles Dialogs will gone, so I have method theEnd() but I can't use there method cancel or dialogBuilder.dismiss()? On iOS I could just use Dialog as variable but here I can't. Apr 07 18:53:24 Dudi: you need to keep track of the dialog ids as you create them Apr 07 18:53:41 there is no DialogInterface.closeAllDialogs() Apr 07 18:54:01 birbeck so no way to dismiss them outside DialogInterface? Apr 07 18:54:32 you can retrieve a dialog by id Apr 07 18:55:08 and if you are using dialog fragments (which you should), you can dismiss them with fragment manager Apr 07 18:57:46 ?? Apr 07 18:59:37 tonySoprano9099: your exception tells you exactly what happened Apr 07 18:59:58 your app is running on a non-google device and GSF package is not available Apr 07 19:00:25 you need to catch the exception and alert the user that the device is not compatible Apr 07 19:01:02 birbeck: I checked the holder pattern. yes the problem is with the convertView. you said return getCount to 2, why? Apr 07 19:01:42 your adapter has two views, a left view and a right view Apr 07 19:01:49 birbeck, its a samsung galaxy s3 with 4.3 Apr 07 19:02:05 tonySoprano9099: stock or with a rom? Apr 07 19:02:32 company. untouched. Apr 07 19:02:53 birbeck: getCount() should return the number of item rows in listview. I think you meant getViewTypeCount()? Apr 07 19:02:56 goodwin: so you set the view count to 2, then when getViewType() is called, you return which view should be inflated for that index. Apr 07 19:03:06 I cought the exception... but its not an ideal solution... still i need to reg with gcm. Apr 07 19:03:13 goodwin: not getCount(), getViewCount() Apr 07 19:03:35 tonySoprano9099: if gcm isnt available then there is no way you can force it to register Apr 07 19:03:52 birbeck: it is getViewTypeCount() Apr 07 19:03:59 birbeck i know... Apr 07 19:04:00 sorry, just going off memory Apr 07 19:04:09 can it be that the google play apk needs update on the device ? Apr 07 19:04:11 birbeck: and getItemViewType() Apr 07 19:04:17 tonySoprano9099: Looks like certain samsung devices (Note 7, Galaxy S3, Note 2) doesn't do Google Cloud Messaging. Apr 07 19:04:31 freeone3000, lol Apr 07 19:04:50 tonySoprano9099: There's no fix with the stock rom to make them do so. Apr 07 19:04:50 freeone3000 no way Apr 07 19:05:03 goodwin: yes, use those methods to know which view to inflate in getView. then use the holder pattern to cache them Apr 07 19:05:57 freeone3000 Apr 07 19:06:11 birbeck: exactly. I can still customize based on SimpleAdapter Apr 07 19:06:12 freeone3000 so if some1 bought an s3, he cant use push notifications ? Apr 07 19:06:26 tonySoprano9099: I believe C2DM still works on those devices. Apr 07 19:07:15 freeone3000, i am still using the c2dm method i guess Apr 07 19:07:19 tonySoprano9099: Nope, same issue there, S3 simply doesn't with 4.0.4 or 3.2.3. Apr 07 19:07:24 Err. 4.2.3. Apr 07 19:07:32 hence the // GCMRegistrar.checkDevice(SplashActivity.this); Apr 07 19:07:32 // GCMRegistrar.checkManifest(SplashActivity.this); Apr 07 19:08:00 There should be a , but there's not. Apr 07 19:08:35 Apr 07 19:08:43 freeone3000 i have this in my manifest Apr 07 19:08:50 so i am still using the c2dm Apr 07 19:09:06 tonySoprano9099: your app defines that permission, so of course you can use it Apr 07 19:09:45 guys, what can I do now, for my app not to crash and register for gcm ? Apr 07 19:10:02 tonySoprano9099: You can make it not crash. You can't register for GCM if you don't have the classes. Apr 07 19:10:10 gcm uses the same permissions and intents in your manifest as c2dm. but gcmregistrar seems like the old school way. should be using google play services now Apr 07 19:10:37 freeone3000, how can I have the classes ? Apr 07 19:10:44 you cant Apr 07 19:10:48 tonySoprano9099: Get a phone that isn't Samsung. Apr 07 19:11:23 which part of, not available, is difficult to understand? Apr 07 19:11:44 how does whatsapp manage ? Apr 07 19:12:25 tonySoprano9099: Long polling, or polling on a schedule, is the usual alternative. Apr 07 19:12:58 what do you mean by polling ? Apr 07 19:13:11 tonySoprano9099: You ask the server for its data. Apr 07 19:13:12 would someone mind answering this forum question either here or on the forum? http://tinyurl.com/pj6828o Apr 07 19:13:51 freeone3000, using a service ? Apr 07 19:13:55 What's wrong with "Spannable spannable = new SpannableString("foo"); spannable.setSpan(new ForegroundColorSpan(Color.RED), 0, 4, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);"? I'm getting a "java.lang.IndexOutOfBoundsException: setSpan (0 ... 1) ends beyond length 0" Apr 07 19:13:57 tonySoprano9099: Yes. Apr 07 19:14:03 Err. setSpan(0 ... 4). Apr 07 19:14:18 I *know* it extends past the length of the string, that's why it's exclusive! Apr 07 19:14:30 any time they will fix this soon ? Apr 07 19:14:37 tonySoprano9099: Nope. Apr 07 19:14:59 tonySoprano9099: They've already released the S5, so the S3 will probably no longer recieve updates. Apr 07 19:15:14 is storing a user's phone # in a db on your server OK? Apr 07 19:15:40 freeone3000: are you spanning a length of 4 on a 3 length'd string? Apr 07 19:16:15 canvs2321-: Ah. Yes, yes, I am. Apr 07 19:16:45 so this is , as you , only happens on certain devices with 4.3 ? Apr 07 19:17:21 tonySoprano9099: It theoretically happens on all devices without the google play framework for cloud messaging, which happens to be samsung devices with a non-native 4.3 who were originally 4.0.4, yes. Apr 07 19:18:05 oh... now I see Apr 07 19:18:19 so, not much i can do from my end i guess.. Apr 07 19:18:32 except writing something to poll the server and create an internal notification.. Apr 07 19:19:07 Right. Apr 07 19:19:29 is there a list somewhere of which eclipse files (.classpath, .project, etc..) that should be put into version control? Apr 07 19:19:40 ashooby: None of them. Apr 07 19:19:58 ashooby: You want your gradle files or your maven files or your ant files, *never* your eclipse files or your idea files or your netbeans files. Apr 07 19:20:23 alright, I was pretty sure that was the case Apr 07 19:22:12 How would I go about adding emoji or "stickers" to my app. Are there any free "open source" sets of these that anyone has encountered before? Apr 07 19:22:33 freeone3000 thanks a lot mate... I highly doubt i wouldve gotten so much exact info from any forum ! Apr 07 19:22:38 eghdk: Well, there's http://en.wikipedia.org/wiki/Emoji#In_the_Unicode_standard Apr 07 19:24:07 freeone3000: All of those are coming up as squares [ ] shapes. any idea why? Apr 07 19:24:27 eghdk: Your font doesn't have the glyphs. Check the reference rendering in the PDF. Apr 07 19:27:19 Interesting. I can see emojis fine on other sites. Apr 07 19:27:46 eghdk: See how they're encoding them - CJK-plane, lookalike glyphs, es... Apr 07 19:29:58 Alright. Thanks. Appreciate it. Apr 07 19:32:43 freeone3000, is it possible that he app works from eclipse, but does not work once its downloaded from play store ? Apr 07 19:32:50 (same gcm problem) Apr 07 20:00:40 freeone3000 it is very weird, for another app also I have done,,,, it is working.. Apr 07 20:00:56 but for this particular app,, i am getting the exception whenever I run the checkdevice(this) line Apr 07 20:01:58 hey, i wanted to develop a mobile app that acts as a remote for my roku, but I have no idea how to start or where to find resources. Can anyone give me some insight or some direction? Apr 07 20:03:18 profligacy: https://play.google.com/store/apps/details?id=com.roku.remote ?? Apr 07 20:04:18 I wanted to develop my own doogan Apr 07 20:05:17 I'd start here then, the developer docs for Roku External Control Apr 07 20:05:18 http://sdkdocs.roku.com/display/sdkdoc/External+Control+Guide Apr 07 20:05:44 (that's assuming you know Java & Android of course) Apr 07 20:05:57 otherwise you'd be getting well ahead of yourself Apr 07 20:12:25 doogan: Dude, thanks! Apr 07 20:20:57 Hello, does anyone know how to take a photo and transfer it to a laptop via adb? Apr 07 20:21:10 I can access my phone via adb and I can open the camera Apr 07 20:21:22 I can also take a photo, but I am unable to save it Apr 07 20:23:00 what's adb? Apr 07 20:23:01 adb pull /device/path/file /local/path/file Apr 07 20:23:17 kpj: You take the photo, save it to phone storage, then use adb pull to transfer it from phone storage to computer storage. Then, optionally, delete the file. Apr 07 20:23:32 Brnocrist: I know, but I cannot save the image Apr 07 20:23:57 freeone3000: I know, I just can't manage to save the photo :-( Apr 07 20:24:09 I am starting the camera using 'am start -a android.media.action.IMAGE_CAPTURE' Apr 07 20:24:23 I then take a photo using 'input keyevent KEYCODE_CAMERA' Apr 07 20:24:46 But then I get to a screen where I have to confirm my photo and I have no idea how to do that via adb Apr 07 20:25:00 And even if I confirm manually, I cannot find the photo anywhere on my device Apr 07 20:25:12 what's adb? Apr 07 20:25:31 profligacy: Android Debug Bridge Apr 07 20:26:16 I was looking for ways to access the camera via the command-line and adb seems like the easiest solution Apr 07 20:26:47 kpj: You really can't do what you're looking to do. It'll be easier to upload an app and it. Apr 07 20:27:21 So I would have to write a complete app, which provides access to the camera over some websocket? Apr 07 20:32:53 Or a regular socket. Apr 07 20:36:33 Hi guys, I'm having a little trouble designing a decent list view item. Any body have any pointers? Apr 07 20:36:44 I like the Google Cards look, but not entirely sure it'd suit my application. Apr 07 20:36:50 And writing a java application will give me more access to the camera? Apr 07 20:43:41 I'm having an issue where I want to load a bitmap I created, but it is showing up as a black box. Apr 07 20:43:58 I've searched online, but I cannot seem to find a solution to this. Apr 07 20:44:34 Hey how can i let the user choose a contact. Then get there address or even parts of it if all of it isnt filled out Apr 07 20:46:12 What I have done is allowed the user to draw a black line with their finger. The line is made by using a series of circular dots on the bitmap. I want to know how I can save the resulting image as a jpg Apr 07 20:48:41 What I mean by address is like 933, fakeaddres, PA, US Apr 07 20:48:58 hi Apr 07 20:50:59 if I send stuff using SmsManager, it won't show up in their SMS app if the device is <4.4? Apr 07 20:51:24 so should I check API version, and write to the sms provider if it's 4.3 or lower? Apr 07 21:04:03 hey how would I get the display of android screen in dp? it seems likse getWidth in display is depcricated Apr 07 21:09:09 gwz: windowmanager getDisplay() Apr 07 21:09:49 bankai_au: i have that but the getWidth is deprecated Apr 07 21:09:52 on Display Apr 07 21:10:35 gwz: sec, i used it a few months ago... Apr 07 21:13:47 getWindowManager().getDefaultDislay.getSize() (which is a Point) Apr 07 21:14:43 or getWindowManager().getDefaultDisplay().getMetrics(metrics); then you can use metrics.heightPixels and metrics.widthPixels -- i haven't used this, not sure how reliable it is Apr 07 21:15:48 thanks Apr 07 21:15:55 the second method is what I just used Apr 07 21:15:55 it works Apr 07 21:18:28 i'd take the result with a grain of salt, some devices lie about their screen size Apr 07 21:27:14 Some guys do too. Apr 07 21:27:39 all guys do Apr 07 21:36:02 how long do i need to wait before my alpha release is available on the store? i released it about 3pm yesterday and it's still not there. should i keep waiting or is it likely something is wrong with the permissions? Apr 07 21:59:07 my screen is 50" Apr 07 22:01:43 How difficult is it to port an android game to iOS? Would I have to re-write most of my Java over to C? Apr 07 22:01:56 yes Apr 07 22:04:06 in the future i guess ill just write all my games in C Apr 07 22:14:39 what does "this" equal? Apr 07 22:14:46 for oncreate() Apr 07 22:17:25 http://docs.oracle.com/javase/tutorial/java/javaOO/thiskey.html Apr 07 22:23:06 Can I, from outside a process, snap a *Java* stack trace of an app process? Apr 07 22:23:14 Of a thread in such a process, rather Apr 07 22:38:24 ddms Apr 07 22:38:27 debug mode Apr 07 22:38:30 otherwise, no Apr 07 22:54:01 Henry_Gale: or C++ Apr 07 22:54:10 then you can use JNI Apr 07 23:11:06 for a nested static class that needs a Context - do you *really* need to make that Context a WeakReference? it seems like an instance of the nested static class would get GC'd anyway Apr 07 23:11:46 oh, i guess if the instance of the nested static class is retained, then that would be a problem Apr 07 23:12:14 hi guys i have a problem with fragment. error: http://paste.ubuntu.com/7219286/ Apr 07 23:12:43 roxdragon: look at line 91 Apr 07 23:13:00 of your MainActivity Apr 07 23:13:58 Mango_Man: http://paste.ubuntu.com/7219292/ this is mainactivity Apr 07 23:14:28 line 91 is list=(ListView)findViewById(R.id.listView1); Apr 07 23:14:34 roxdragon: your list is null dude Apr 07 23:14:39 check your ID Apr 07 23:14:43 it's probably invalid Apr 07 23:15:10 my app is with swipe tabs. |INFO |ARRIVAL |DEPARTURES | Apr 07 23:15:37 ifo is ok but in arrivals there is a listview Apr 07 23:16:00 roxdragon: check your id!!! Apr 07 23:16:10 look the my code here http://www.anddev.it/index.php/topic,13769.msg70575.html#msg70575 Apr 07 23:16:29 Mango_Man: id for listview is listview1 Apr 07 23:18:18 roxdragon: make sure that the view with id listView1 is in your MainActivity's view Apr 07 23:18:37 roxdragon: at the moment, i see you're setting the view to R.layout.activity_main Apr 07 23:18:46 which doesn't contain R.id.listView1 Apr 07 23:19:00 try it, see if it works Apr 07 23:20:22 i need to add this?? on line 90? setContentView(R.layout.arrivi); ??? Apr 07 23:20:59 roxdragon: you can only choose one view for your activity Apr 07 23:23:10 Mango_Man: ok but i have arrivals.xml and depearture.xml...how to solve? can i include fragment arrivals and depeartures in layout_main? Apr 07 23:23:40 and choose acitivity_main? Apr 07 23:23:43 roxdragon: if you're using fragments then you should have container views within your activity_main Apr 07 23:24:03 roxdragon: and you should use FragmentManager to swap in those fragments Apr 07 23:24:09 roxdragon: into the container views Apr 07 23:26:36 Mango_Man: this is mine activity_main http://pastebin.com/qFDByDGX Apr 07 23:26:57 can you wirte an example for implements in layout_main arrivals and depeartures fragment? Apr 07 23:28:10 how to edit this? Apr 07 23:28:27 roxdragon: add something like this to your layout_main: http://hastebin.com/nokuwunili.xml Apr 07 23:29:42 roxdragon: then in your activity, write this to swap in a fragment: http://hastebin.com/qahejirala.java Apr 07 23:29:52 roxdragon: good luck Apr 07 23:31:09 mmm.... Apr 07 23:34:08 Mango_Man: http://hastebin.com/cujuparara.xml Apr 07 23:34:22 i have edited my activity_main.xml Apr 07 23:34:30 but i recive an error Apr 07 23:34:38 when i save this file Apr 07 23:35:53 pretty interesting about Virus Shield. #1 Paid app in the whole play store (only 10k downloads?) was a total scam Apr 07 23:36:06 4.7 stars , lol Apr 07 23:36:10 'i feel safer now' Apr 07 23:37:46 g00s: i'm not well versed in computer security, but i have a feeling most antivirus programs are just placebos Apr 07 23:38:36 at least on desktop, some get tested & benchmarked. i don't think sophos, etc are scamms. but on mobile, not sure what the OS even allows these kinds of apps to do realistically Apr 07 23:45:47 hehe, my list items have checkboxes now :D Apr 07 23:47:16 android design is a refreshing break from writing code Apr 07 23:47:28 is it better to compare view items directly or by id? Apr 07 23:47:38 like, in an onclicklistener Apr 07 23:48:49 I read that comparing id (view.getId() == R.id.blah) is better performance-wise than (view == previouslyFoundView) Apr 07 23:49:03 makes no sense to me, since wouldn't the second just be comparing the pointer? Apr 07 23:49:50 frankdrey: why do you want to compare views? it should be easier to use the info passed into onclicklistener Apr 07 23:50:18 looking for someone with an S4 to test a game for me on the play store ? we've had reports of audio problems and would like to verify a fix , so be really helpful Apr 07 23:50:48 Mango_Man, one listener for all views Apr 07 23:50:59 the clicked view is passed into onclicklistener Apr 07 23:57:17 what's the best way to send large amounts of data to opengl on android? Apr 07 23:59:04 eg. beyond simple shapes Apr 07 23:59:18 is it even possible? Apr 08 00:02:40 I actually need to create a grid, then fill in the little things on the grid Apr 08 00:02:45 like a polar coordinate grid Apr 08 00:02:54 how would I do that? Apr 08 00:03:01 (that's for 2d) Apr 08 00:24:02 g00s: http://www.jetbrains.com/youtrack/features/issue_tracking.html hehehe i'm such a jetbrains nerd Apr 08 00:25:45 bankai_au nice; cloud or private standalone. free for 10 users. Apr 08 00:25:58 i use taskwarrior, works well for me. has projects, tags, due dates, etc Apr 08 00:26:01 * g00s likes command line Apr 08 00:28:13 use vim then, precious Apr 08 00:28:19 Is there a web url i can point eclipse to for the javadocs? http://developer.android.com/reference/ seems to be invalid (it was set to this by default) Apr 08 00:28:34 vim is best editor Apr 08 00:28:44 nano > Apr 08 00:28:48 ^_^ Apr 08 00:28:50 bankai_au oh may as well ask, is there an easy way i can get javadoc in intellij for android apis? Apr 08 00:28:53 haha editor war Apr 08 00:29:15 sublime 4 lyfe! Apr 08 00:29:17 like in a popup, over the cursor Apr 08 00:29:21 :p Apr 08 00:29:31 g00s, was that directed at me? Apr 08 00:29:44 bluezone no bankai_au Apr 08 00:29:57 O.o 2 javadoc questions hehe Apr 08 00:30:26 g00s: are you asking how to set the javadocs up, or just how to actually see them? Apr 08 00:30:29 JesusFreke watching how the project is run … not really so inspired. costsly, infrequent updates, 1 or 2 devs ? Apr 08 00:30:37 I think it's ctrl+q to see the javadoc for the method at the cursor Apr 08 00:30:47 JesusFreke oh, do i have to set it up ? Apr 08 00:31:07 I think it should be set up by default. not positive though Apr 08 00:31:27 it's set in the sdk list in the project settings, in the "documentation paths" tab Apr 08 00:32:08 JesusFreke ah, ok. that crashes AS (File -> Project Structure) Apr 08 00:32:13 i'll try some other time Apr 08 00:32:36 I... yeah. that shouldn't crash. Apr 08 00:32:50 oh yeah, i forgot. i have the maven plugin disabled. there is a hidden dependency on it Apr 08 00:33:01 without that enabled, it errors out' Apr 08 00:33:13 i'll try a little later Apr 08 00:37:03 JesusFreke what do you think of that github editor Apr 08 00:37:10 atom or whatever Apr 08 00:37:14 haven't really looked at it yet Apr 08 00:37:42 I just briefly looked at it, but I don't recall any details or my impressions from when I did briefly look at it. Apr 08 00:38:24 and then, its in JS ;) Apr 08 00:38:53 like no matter what it is, when i find out some stand-up service you want to play with is PHP, i'm like "never mind" Apr 08 00:39:18 not entirely rational ;) Apr 08 00:41:09 haha :) Apr 08 00:43:09 48 dp's man Apr 08 00:58:53 anyone know how to show a notification as "collaped" initially? Apr 08 01:08:17 alexfu i thought it was collapsed initially Apr 08 01:10:22 unless it's the top one I think, g00s Apr 08 01:21:40 g00s, did you have any luck with the frame? Apr 08 01:21:52 aretecode not yet Apr 08 01:22:05 damn, have you got anything done on it yet? Apr 08 01:22:08 working on something else Apr 08 01:22:18 sweet, what are you working on? Apr 08 01:22:33 hm, connection retry / exponential backoff Apr 08 02:05:10 I am having an issue with my app, and was wondering if anyone had experienced the same in any situation. I am trying to output a serially appended list (every time you hit a button) to a textview. When I use a textview with a scrollbar, it works without issue, but enclosing that textview in a scrollview causes only one iteration to work. Apr 08 02:06:07 I really want the scrollview since the textview's with a scrollbar are cumbersome Apr 08 02:08:00 show us some code Apr 08 02:10:09 I'll upload to a repo. I'm trying one more time Apr 08 02:10:18 there's too many files and too much code Apr 08 02:12:41 https://github.com/DoYouKnow/WeatherDataViewer/blob/master/src/com/DoYouKnow/weatherdataviewer/MainActivity.java Apr 08 02:16:11 oops, I left one of the scrolling movement methods uncommented Apr 08 02:16:16 but i doubt it makes a different Apr 08 02:16:20 -t+ce Apr 08 02:17:42 this is besides the point that I want to eventually replace the textview with an imageview, but I need to learn this anyway since I'm a beginner Apr 08 02:18:59 either that or google maps api Apr 08 02:19:22 bankai_au: can you also tell me of a good way to draw a radar image on a map? will google maps api do it? Apr 08 02:19:33 can I do it pixel-by-pixel? Apr 08 02:19:38 or point by point? Apr 08 02:23:32 tell me about it Apr 08 02:23:39 I am interested Apr 08 02:24:56 DoYouKnow: radar ? Apr 08 02:25:32 gordon_: yeah Apr 08 02:25:36 weather radar Apr 08 02:25:44 https://developers.google.com/maps/documentation/android/shapes Apr 08 02:25:50 you probably need this Apr 08 02:26:01 looks like what you need Apr 08 02:26:13 wow, that's exactly what I need Apr 08 02:26:15 thanks Apr 08 02:26:53 first link in google ;) Apr 08 02:39:22 hm, still no way to use ListPreference with int values and not use ParseInt Apr 08 02:39:57 and without any kind of NumberPickerPreference … I can come to only one possible conclusion : Apr 08 02:40:04 g00s: serialize object :P Apr 08 02:40:09 google doesn't want you to have int preferences ! Apr 08 02:40:24 "strings for all the things!" Apr 08 02:42:02 i'm building an app. I would like to authenticate my users via google (such as a request sent from the android client using google play) but then I would like to send requests to my server and to validate somehow that the user sending the request is authenticated to google and my application. any hint or link? Apr 08 02:42:23 the other thing i hate about prefs is there is still no good way to centrally (DRY) specify keys and default values, although some put them in resources Apr 08 02:46:02 whats the easiest way to determine "depends on" using gradle/groovy with an android project ? As a simple example, Lets say I want to query if top level task "build" dependsOn "test"? Apr 08 02:49:18 hey guys, I have a public class A that requires ActivityContext from a Fragment B. This class A is executed from Fragment B. So, in order to pass the ActivityContext of Fragment B to class A, I basically pass it via parameter. Is this a bad practice? Cuz I've read some articles that says passing Context can cause memory leaks. Apr 08 02:49:50 However, I'm not quite sure how to obtain the Context from Class A Apr 08 02:50:05 I mean the ActivityContext Apr 08 02:50:54 piracyd3: I do that quite often. Just be careful that all instances of class A don't survive beyond the lifetime of the activity. Apr 08 02:53:41 who's using genymotion ? Apr 08 02:54:10 codeguru: so is it safe for a short term usage? Apr 08 02:54:22 afaik, yes Apr 08 02:54:27 I'm using system.gc just in case **** ENDING LOGGING AT Tue Apr 08 02:59:58 2014