**** BEGIN LOGGING AT Wed Mar 26 02:59:59 2014 Mar 26 03:00:37 you can do that in one query Mar 26 03:00:44 like nested query Mar 26 03:00:47 and select 1 ;) Mar 26 03:02:42 gordon_: sorry, I mean first six group users… tyo Mar 26 03:02:43 typo Mar 26 03:07:10 How can I show a DialogFragment from a DialogFragment and return a result to the first DialogFragment? Mar 26 03:07:44 TacticalJoke thats like putting a ghetto in your ghetto Mar 26 03:08:08 lol Mar 26 03:13:05 select 6 Mar 26 03:13:07 ;P Mar 26 03:13:32 TacticalJoke: you need to go deeper Mar 26 03:15:35 gordon_: er…how can I do such query in one query?? Mar 26 03:25:09 Question: Im trying to implement this code that allows me to use nested fragments: http://developer.android.com/about/versions/android-4.2.html#NestedFragments Mar 26 03:25:40 Unfortunately, my IDE can't resolve getChildFragmentManager, it won't give me an option to import the class either Mar 26 03:26:01 isn't it part of android.app.FragmentManager ? Mar 26 03:27:27 ThomQ you may need the support library, if you are using to low targetSdk Mar 26 03:27:44 I thought i had.. v7.. Mar 26 03:27:46 nested fragments is pretty new Mar 26 03:28:09 oh, you were using the support lib already? maybe getChildSupportFragmentManager Mar 26 03:28:12 heh Mar 26 03:28:13 but my min sdk is android 18 (4.3) Mar 26 03:28:17 *support* all the things Mar 26 03:28:47 i always get messed up with all the support library versions :) Mar 26 03:30:38 yeah it has something to do with the support library Mar 26 03:30:54 probalby havent imported / set dependencies correctly Mar 26 03:33:59 edwinkcw: it's possible, I can look later Mar 26 03:38:08 if i have a set of data driving a view should i create a set of fragments (1:1 with the underlying data) or should i just change what is shown in a single fragment? if the latter, what are some of the navigation things I should consider? im sure this will effect the back button Mar 26 03:39:56 that's a very difficult question to answer - you can do either and yes, you'll have to take the back button into consideration Mar 26 03:41:07 are fragment objects memory intensive? Mar 26 03:41:24 depends what you do with them Mar 26 03:41:29 that will basically drive my decision. gotta keep lower end devices in mind... Mar 26 03:41:56 true, so they aren't inherently memory intensive? Mar 26 03:42:34 Hey guys, some of my sound effects (actually all of them but one) is failing to load and crashes my app upon launch. I'm using SoundPool and have about 8 sound effects (very small files). Mar 26 03:42:40 any ideas?? Mar 26 03:43:35 any ideas what ? Mar 26 03:44:01 why the files are failing to load... Mar 26 03:45:34 what do the logs say Mar 26 03:48:25 E/AndroidRuntime(17168): FATAL EXCEPTION: Thread-23434 Mar 26 03:48:25 E/AndroidRuntime(17168): java.lang.RuntimeException: Couldn't load sound 'sound3.wav' Mar 26 03:48:25 at ... framework.implementation.AndroidAudio.createSound(AndroidAudio.java:42) Mar 26 03:48:43 when I try to add ne uri to uri matecher. matcher.addURI androdi studio show me error. cannot resolve symbol addURI Mar 26 03:54:46 can someone please tell me how to use UriMatcher Mar 26 04:00:19 hi Mar 26 04:00:38 I restart studio and it's working Mar 26 04:01:17 i have problem on compile http://dpaste.com/1756695/pwd Mar 26 04:01:35 sorry, i have problem on compile rtmpdump Mar 26 04:02:03 use this shell script http://dpaste.com/1756695/ Mar 26 04:02:11 but return error Mar 26 04:02:51 http://dpaste.com/1756696/ Mar 26 04:03:00 wow, vzw is offering a bogo on the new htc1? nuts Mar 26 04:03:03 that make me crazy about 2 days Mar 26 04:06:37 any idea? Mar 26 04:07:06 Anyone have an issue where their PATH changes on windows? my JAVA_HOME changes from my jdk folder after any update. Frustrating as things keep breaking Mar 26 04:09:39 so any ideas why my sounds arent loading? Mar 26 04:17:42 what does the rest of the ST look like ? Mar 26 04:18:32 Hello, Mar 26 04:21:12 Total newbie question. Trying to get hello world to run with intellij . getting this bunch of errors, and they seem completly meaningless to me :/ http://bpaste.net/show/t4Lx09cDTs7aDDZHDhfn/ Mar 26 04:26:16 haha that took me to an internal proxy error page... i thought "wtf are you doing on this network" ... Mar 26 04:26:59 javac 1.8? humm not sure how well that's going to work Mar 26 04:27:46 I am trying to trace a sample "Hello World!" application and see that about 11 threads are created during startup. 3 threads finally remain and the rest are short-lived. The remaining threads are application and binder threads. Any idea what the other threads are doing? Mar 26 04:28:25 I am using android studio, and trying to use Google App Engine. follwing this tut... https://developers.google.com/appengine/docs/java/endpoints/consume_android Mar 26 04:28:52 is this tut OLD? it seems like a lot of work I thought the whole process was automated somehow. Mar 26 04:31:43 yes, you must run '$gradle ./makeMyApp' Mar 26 04:33:07 g00s: was that to me? Mar 26 04:33:16 :P Mar 26 04:34:06 is anyone doing Android Studio and Google app engine? with some luck? Mar 26 04:37:26 IrishGringo: I dont think it's old Mar 26 04:37:49 do you have google servies installed with android ? Mar 26 04:40:20 gordon_: google services installed with Android Studio... Mar 26 04:40:23 ? Mar 26 04:40:44 I presume so, but where would I double check? Mar 26 04:41:07 hey, do listeners persist when initiated inside a service, when the activity is closed? and is it possible to do so? Mar 26 04:46:58 anyone? Mar 26 04:48:17 gordon_: can you explain what you mean by android services... I am running android studio, with all of the ADK downloaded. Mar 26 04:51:30 IrishGringo: there is google play services package to download Mar 26 04:51:36 but if you can build apk Mar 26 04:51:40 it seems that you have it Mar 26 04:51:56 and my listview scrolls to the top still Mar 26 04:54:02 I have google play ver 15, but upgading to ver 16 Mar 26 04:56:48 it should work Mar 26 04:56:50 then Mar 26 05:02:25 hm. in my fragment onAttach() I put activity.requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS) … but still get that damn AndroidRuntimeException: requestFeature() must be called before adding content Mar 26 05:02:57 so i guess i have to shove it into the activity, that sucks. now the activity has to know one of the fragments needs that Mar 26 05:03:03 Is it important to put tags in every FragmentTransaction we have made? Mar 26 05:03:20 also in addToBackStack parameter Mar 26 05:03:45 if you wanna access by tag, then yes Mar 26 05:05:19 so, it is better to put it even though we never use it Mar 26 05:05:31 no, why bother ? Mar 26 05:06:12 just in case i wanna use it, ha Mar 26 05:06:57 maybe it doesnt maintain my position Mar 26 05:07:23 because I'm adding items to the top, and fetch new items, when my listview hits the top Mar 26 05:07:42 but that would be stupid Mar 26 05:17:16 heys guys, is it possible to run listeners when initiated in a service to run in listen in background even after activity is closed? Mar 26 05:18:01 my listeners work when the service is running, when i close my app, service still runs and i see the command "onStartCommand" get executed, however it doesnt start the listeners Mar 26 05:18:24 what kinda listener Mar 26 05:19:00 bankai_: sms listener and phone listener Mar 26 05:19:31 so you mean broadcast receiver Mar 26 05:19:41 well sms is broadcast Mar 26 05:19:56 and i think phone is phoneStateListener Mar 26 05:20:00 oh, gotcha Mar 26 05:20:52 Are you using an IntentService? Mar 26 05:21:36 my service? or listener? my listener is smsFilter = new IntentFilter("android.provider.Telephony.SMS_RECEIVED"); Mar 26 05:21:36 hmm, probably not, if you're doing something in onStartCommand. Mar 26 05:21:56 and i register with this.registerReceiver(smsListener, smsFilter); Mar 26 05:22:26 so it works, when i start the service from app, and leave the app running, which is of type preferenceFragment Mar 26 05:23:08 even when the app is minimized, it works, but when i close the GUI for preferenceFragment, it relaunches the service(i see logcat) but doesnt execute all the code inside the onStartComand Mar 26 05:23:30 if it's "not executing code", then there has to be a reason Mar 26 05:23:39 either it's throwing an exception, or a call is blocking Mar 26 05:24:08 let me get some code up, one sec JesusFreke Mar 26 05:24:44 https://gist.github.com/jareddlc/9777326 JesusFreke Mar 26 05:25:01 so things run fine, when launched inside my app, and when app is minimized Mar 26 05:25:14 sounds like smsEnabled and phoneEnabled are false Mar 26 05:25:25 ahh!!! Mar 26 05:25:32 +1 Mar 26 05:25:48 this isn't rocket science :) Mar 26 05:26:15 well i forget that i manually set the sms option Mar 26 05:26:30 but if it "re-runs" it probable has erased all the settings Mar 26 05:30:18 hhah thx JesusFreke Mar 26 05:30:27 cant believe i missed that Mar 26 05:30:30 i didnt know Mar 26 05:30:51 that the service restarts, so i need to figure out how to do persistence settings inside my service Mar 26 05:30:56 thx though im calling it a night Mar 26 05:40:56 in ANDROID STUDIO, I am looking for menu> TOOLS > Google Cloud Endpoints, but it is not there. I have seen it in older versions of Android studio, but not here. Was it changed? I see that this may be a temp bug... comments. Can someone else check to see if they have this menu itme please Mar 26 05:41:42 http://android-developers.blogspot.com/2013/06/adding-backend-to-your-app-in-android.html I am looking at section 1, where we do a Google App ENGINE Project Mar 26 05:41:51 1. Generate an App Engine project Mar 26 05:43:46 Hello Mar 26 05:43:51 anybody here? Mar 26 05:44:10 ask your question, don't ask to ask. Mar 26 05:45:17 in this code loads a list with all the values​​, I need only the last value added loads. Mar 26 05:45:24 http://pastebin.com/1e54pjg4 Mar 26 05:47:56 hi folks, a question regarding application distribution on Google Play Store. Given I have a DemoApp.apk (v1.0.0) listed under BETA TESTING. Then a user downloads and installs successfully v1.0.0 . If a upload a new version v1.0.1 to BETA TESTING on Google Play Developer Console, will the user receive the update automatically? Mar 26 05:48:49 rup3rt: I believe so, but I haven't actually played with the beta channel stuff. Mar 26 05:51:36 JesusFreke: i believ so as well.. however it seems odd as it is not updating for me :/ maybe the app needs to be "public" to get auto updates working? I do have "Allow automatic updating" checked on the device. Mar 26 06:01:26 .c Mar 26 06:01:27 zzzz Mar 26 06:01:29 http://pastebin.com/1e54pjg4 Mar 26 06:01:31 in this code loads a list with all the values​​, I need only the last value added loads. Mar 26 06:06:42 b0t learn to Java; try #java Mar 26 06:07:08 im banned Mar 26 06:10:03 does anybody know how to serve content to a WebView (from an InputStream), before HoneyComb? Mar 26 06:10:53 I have been using WebResourceResponse, which works on Honeycomb, but I cannot find a replacement for previous api levels Mar 26 06:41:30 hi Mar 26 06:41:39 can someone help me about this problem Mar 26 06:41:40 http://stackoverflow.com/questions/22653241/comple-librtmp-for-android-error-cannot-find-ldl-collect2-error-ld-returned Mar 26 06:47:49 molavy: not sure what lib dl is, the dynamic linker lib? Mar 26 06:47:56 change your flags to get a static object file? Mar 26 06:49:03 or maybe just take it out Mar 26 06:49:30 myke: where is it ? in makefile? Mar 26 06:50:33 probably Mar 26 06:50:54 ln -s ${SYSROOT}usr/lib/crtbegin_so.o Mar 26 06:50:55 ln -s ${SYSROOT}usr/lib/crtend_so.o Mar 26 06:50:58 that's a pretty nasty hack Mar 26 06:51:05 expect to spend some time tweaking around on this thing to get it to work Mar 26 06:53:46 myke: i added Makefile to Question Mar 26 06:55:56 what does build_one do? Mar 26 06:57:34 teksal: https://github.com/OnlyInAmerica/FFmpeg-Android/blob/master/build_librtmp_for_android.sh Mar 26 06:58:28 sorry, missed that Mar 26 07:03:00 bankai_ what are the dogs up to ? Mar 26 07:05:31 hello Mar 26 07:05:53 no idea? Mar 26 07:06:04 so quite Mar 26 07:06:09 no body talking Mar 26 07:06:40 lets make great apps Mar 26 07:06:41 blurblurblur this is #android-dog Mar 26 07:07:37 g00s what channel is that? Mar 26 07:07:43 there is no one Mar 26 07:08:01 the dogs are silent atm Mar 26 07:10:51 woof woof Mar 26 07:11:03 oh, dear, who let the dogs in? Mar 26 07:11:08 haha Mar 26 07:11:09 ;) Mar 26 07:11:47 Using Android-stupid, where/how do I even get basic outputs working? I have a fresh project infront of me with the auto generated code. So far I've tried to copy what other 'hello world' tutorials do yet nothing seems to work. Auto made code in the project -> http://bpaste.net/show/jg0kPc21xzGU4t8i7Wn2/ Mar 26 07:12:16 " I have a fresh project infront of me with the auto generated code" Mar 26 07:12:37 sounds like your first problem Mar 26 07:12:37 Android-stupid, really? Mar 26 07:12:53 ahh auto correct >_< Mar 26 07:13:21 Ando-Studio :/ my bad Mar 26 07:13:48 hehe Mar 26 07:14:21 right first time Mar 26 07:15:06 hi guys, want to build real time chat with Go! on server side and on android side... I don't know. :( Which library and technology do you recommend? Mar 26 07:15:33 kamol lemonxah might be able to help if he is around Mar 26 07:15:48 I've tried IntelliJ, I get this error using that one http://bpaste.net/show/tY1SMF9Rwx5M9ul83cJF/ Mar 26 07:15:49 i'm pretty sure there is a Go mqtt client ;) Mar 26 07:17:06 :lemonxah need your advice Mar 26 07:17:12 :g00s http://mqtt-client.fusesource.org/ ? Mar 26 07:17:41 hmm Mar 26 07:17:49 well, thats java, you can use Paho java one also Mar 26 07:17:55 for Go … i'm not as sure Mar 26 07:18:12 fusesource / paho will work fine on android Mar 26 07:18:30 until somebody decides to use lambdas or something :) Mar 26 07:19:12 Anyone able to help ^ ? I've never had this much trouble with just getting to hello world :/ Mar 26 07:20:35 Eppiox yeah, its complicated. no matter how they try to package / bundle, you realize right away to do anything requires ridiculous boilerplate Mar 26 07:20:37 Eppiox i always use eclipse to develop android and also have auto correct mode Mar 26 07:21:15 we take it for granted, until you try to explain to somebody what all this does :) Mar 26 07:25:29 I have 4.0.3 (api-15) installed only, yet the latest tools. new ando. app. project wizard in eclipse shows this: http://i.imgur.com/hfapBok.png Mar 26 07:25:53 q is: can I really target 19 yet compile with 15? Mar 26 07:26:49 teksal: why not install the newest apis? Mar 26 07:28:05 thepoosh: I was required to work on 15 only. something specific. (and avoid all those compat libraries, etc) Mar 26 07:28:17 hmmm Mar 26 07:28:19 ok Mar 26 07:28:25 so here you have your answer Mar 26 07:28:34 I'll actually change min to 15 inthat dialog Mar 26 07:28:36 minSdk: 15, targetSdk: 15 Mar 26 07:28:56 i would put min 15, target 19, compile 19 Mar 26 07:28:57 there is really no idea? Mar 26 07:29:37 its possible to have target != compile, but i can never remember why Mar 26 07:29:58 @molavy what idea do u mean? Mar 26 07:30:15 backward compatibility is possible, but that dialog offers the reverse, which confused me Mar 26 07:30:50 Hi, anyone here with experience with webview, ssl and basic auth that might be able to give me some input on this problem? http://stackoverflow.com/q/22654157 Mar 26 07:31:49 molavy: did you visit fedora/C++ channels? you really have a linux build problem Mar 26 07:33:35 Building a tool for "broken screen phones" -- trying to allow bypass RSA key for adb access ... 4.3 android.. insecure kernel... any ideas? Mar 26 07:39:49 tormodt, it depends on the ceritifcation Mar 26 07:40:05 there are certificates which works on some devices (and browsers) and there are more expensive one which works on all Mar 26 07:40:51 Yes, I know this. But isn't there any way to get around it when it doesn't work? Mar 26 07:40:52 and make sure that there is android 2.3+ running for geotrust certifications Mar 26 07:42:06 https://support.servertastic.com/rapidssl-and-geotrust-certificate-not-trusted-on-mobile-device/ Mar 26 07:42:43 It fails on several Android 4.x versions Mar 26 07:46:16 no idea, sorry. I just know that the cheap certificates may cause problems on some devices Mar 26 07:46:28 and wildcard certificates causes some problems too Mar 26 07:46:55 Yep. I might try to manually install it to see if that helps. Thanks anyway! Mar 26 07:55:57 alex_PP there ? Mar 26 07:56:11 yo Mar 26 07:56:50 alex_PP in an app using ant+ or BT to talk to a device; would you have a connection inactivity timeout - that is, if nothing is sent (even if the app is up) disconnect to save battery by powering down the radios ? Mar 26 07:57:40 dunno about ANT+, probably for ANT+ and BLE it doesn't matter so much. i'm using old BT rfcomm atm Mar 26 08:00:05 not sure it's worth the effort Mar 26 08:00:23 yeah , me neither Mar 26 08:00:25 I have problems implementing dragging of a component, I have to hold down a while before being able to drag Mar 26 08:00:31 Its a web application Mar 26 08:00:39 (cordova) Mar 26 08:00:44 if someone's fiddling with the app enough to keep the screen on, chances are they'd like the connection to stay up Mar 26 08:01:25 alex_PP what would you do when the app goes in the BG, but doesn't have any work? right now, i keep the connection alive for about 10 seconds in case they come back Mar 26 08:02:03 not even sure if thats worth it Mar 26 08:02:41 you could benchmark it and see Mar 26 08:03:01 i'm having some problem with BT on my N7 Mar 26 08:03:02 but having the radio on but not transmitting shouldn't be hard work really Mar 26 08:03:30 how long does it take to bring everything back up? Mar 26 08:03:30 for some reason, its taking a few connection attempts to have a good connection often Mar 26 08:03:51 yeah, its annoying as hell. can be 2-3 attempts. about 30 seconds Mar 26 08:04:16 the same code, the same device, flawless on Froyo Mar 26 08:04:29 but now, if you look at BluetoothSocket.connect() ... Mar 26 08:04:45 its connecting OK, but reads the first byte for the channel, i guess this is SDP Mar 26 08:04:46 BT has always been a bit dodgy Mar 26 08:04:50 and that is blowing up Mar 26 08:05:08 yeah, ugh. but i know i have known good code and device. and it worked great on my droid-1 Mar 26 08:05:15 N7 is … iffy Mar 26 08:05:28 you'll have to deal with it Mar 26 08:05:37 having a broken device is better than having a good one Mar 26 08:05:41 (for testing) Mar 26 08:05:46 yeah. hope people don't get to upset Mar 26 08:06:32 my old code didn't even have reconnect / disconnect retry logic Mar 26 08:07:03 well it did reconnect Mar 26 08:07:09 quick question (no search yet) if ro.adb.secure=0 ... does it not require a rsa key for adb? Mar 26 08:08:04 hi Mar 26 08:08:15 hi Mar 26 08:09:26 i've just downloaded the current adt-package with eclipse and the sdk again, then fired up the 'android' installer thingy, installed all the components i need and updated the two development tools packages that had updates available Mar 26 08:10:05 started up eclipse, which moans that it needs to updates its android plugin because the ADT base has been updated ... i search for updates, no updates available. ist that normal? Mar 26 08:10:38 no Mar 26 08:10:46 where did you download everything from? Mar 26 08:11:01 did you check for updates from the "help" menu Mar 26 08:11:02 ? Mar 26 08:11:30 Nebukadneza: ? Mar 26 08:11:36 i downloaded the bundle package from here: http://developer.android.com/sdk/index.html Mar 26 08:11:43 and yes, i also manually checked updates from help menu Mar 26 08:12:08 interestingly when comparing the versions of the ADT plugin in "what is installed" vs. help->install new software, the install new software version *is* newer Mar 26 08:12:13 if you are already having problems, i'd just start from scratch Mar 26 08:12:29 Nebukadneza: out of interest what system are you running? ive been seeing this too but it doesn't seem to effect me... Mar 26 08:12:41 debian gnu/linux amd64 Mar 26 08:12:48 yep Mar 26 08:12:52 me too Mar 26 08:13:04 just go to d.android.com/sdk and download from fresh Mar 26 08:13:13 Nebukadneza: true, are you able to apt-get everything? (is that the package manager on debian?? i forget) Mar 26 08:13:37 just unpacking the package again and starting over doesn't solve anything, i fear Mar 26 08:14:13 Nebukadneza: yeah but are you able to use the package manager to get everything rather than downloading them from the site Mar 26 08:14:29 funny thing is: if i manually install new software -> ADT plugin -- since the version is newer i *can* install it, but then it explodes horribly with: http://nopaste.ghostdub.de/?964 Mar 26 08:15:10 i found that the eclipse-3.8 that is in debian testing is a little old for ADT Mar 26 08:15:21 some things just don't work properly -- so i preferred the official packages Mar 26 08:15:47 *packages->bundle Mar 26 08:16:51 also , with eclipse, you can have a crufty workspace Mar 26 08:17:07 i think plugins get installed there, right ? Mar 26 08:17:28 hm, or do they get installed in ~/eclipse Mar 26 08:18:11 ahh! Mar 26 08:18:12 http://stackoverflow.com/questions/9499563/no-repository-found-error-in-installing-adt-in-eclipse-indigo Mar 26 08:18:16 i think this is it... Mar 26 08:18:50 mh, i think the plugins are in the eclipse binaries directory in this case Mar 26 08:18:55 Nebukadneza: nice! good find, would you mind posting back if it works? Mar 26 08:19:12 but good call, i'll just remove my workspace (i have my projects elsewhere anyways) Mar 26 08:19:46 teasp00n: will do in a sec, going to try this with a fresh unpack/workspace Mar 26 08:20:00 Nebukadneza: thanks Mar 26 08:22:34 i have same problem of this problem Mar 26 08:22:35 https://groups.google.com/forum/#!topic/android-ndk/hsFRUbrdXJI Mar 26 08:22:43 but i can't understand them Mar 26 08:22:48 what should i do Mar 26 08:24:39 why does the android update site only download with ~300kb/s? :( Mar 26 08:25:25 ~300kb/s is the fastest internet speed consumers get in my country so i didn't notice :) Mar 26 08:27:40 lemonxah i have 137kb/s :| Mar 26 08:28:38 ouch Mar 26 08:29:00 yeah, can't really watch youtube or anything like that Mar 26 08:29:26 ANNOUNCEMENT: hi. anyone in need of genuine translation to Arabic language, there is ##arabic Mar 26 08:29:46 :/ Mar 26 08:30:11 thanks for that not-annoying-at-all spam! Mar 26 08:30:14 can someone help me , i think find answer but can't implement it Mar 26 08:30:30 i have same problem on this link Mar 26 08:30:31 https://groups.google.com/forum/#!topic/android-ndk/hsFRUbrdXJI Mar 26 08:31:07 my real problem is here Mar 26 08:31:08 http://stackoverflow.com/questions/22653241/comple-librtmp-for-android-error-cannot-find-ldl-collect2-error-ld-returned Mar 26 08:31:28 i don't know how to fix my problem using above link Mar 26 08:32:10 http://developer.android.com/tools/sdk/ndk/index.html#Docs Mar 26 08:44:54 alex_PP hmm, yuck. seems a hack ahead maybe http://stackoverflow.com/questions/21249603/making-successful-bluetooth-connections-in-android Mar 26 08:48:50 java.lang.StackOverflowError <-- aww i haven't seen one of those in a while, go me! Mar 26 08:51:01 call chain to deep Mar 26 08:51:20 GSON circular dep it seems.. woops Mar 26 08:53:48 :g00s thank you. Btw, what do you think to about http://developer.android.com/google/gcm/index.html ? Mar 26 08:55:49 kamol i cant say - haven't used GCM sorry Mar 26 08:56:29 :g00s thank you Mar 26 08:58:10 eh Mar 26 08:58:25 I love people who release the library Mar 26 08:58:27 with maven Mar 26 08:58:48 and version inside sources is 0.25.10-SNAPSHOT Mar 26 08:59:02 and in release log it's 0.26.8.2 Mar 26 08:59:38 i love people who needlessly hit enter Mar 26 09:02:45 bankai_: that's good I guess ;) Mar 26 09:03:52 I hit enter when I end thinking so if I want to add something I write more Mar 26 09:07:29 g00s: ah ... indeed, unchecking 'contact all software sites' and modifying to the adt repo to https *did* work Mar 26 09:15:50 Has anyone seen this error on RHEL (or other *nix'es) : http://pastebin.com/9DkA4KRU I can't find a system in why it crashes... Sometimes right after it starts.. sometimes after an hour or more development.. Mar 26 09:19:11 codetroll how old is your libnotify ;) Mar 26 09:19:20 RHEL is usually very far behind Mar 26 09:19:44 yeah I know.. and not really sure - but I would say it might be old.. ;) Mar 26 09:19:55 anyway to tell? Mar 26 09:20:03 i guess rpm would say Mar 26 09:20:23 i'm thinking, your best bet is to update your system :D Mar 26 09:22:03 yeah - well - I can't company policy.. :) have to wait until they have prepared updates.. Mar 26 09:23:44 * g00s always had a few frankenstein linux boxes under his desk to put whatever he wanted on them :) Mar 26 09:24:53 hehe yeah.. would be nice Mar 26 09:26:05 g00s: libnotify-0.5.0-1.el6.x86_64 and libnotify-0.5.0-1.el6.i686 Mar 26 09:26:25 yeah, 0.7.6 is latest i think Mar 26 09:26:40 I will see if I can force an upgrade.. no hopes though Mar 26 09:28:12 be ready for carnage Mar 26 09:28:17 its a large jump Mar 26 09:28:46 ;) we are currently running RHEL 6.4... waiting for an upgrade to 6.5.. RHEL7 is way of Mar 26 09:28:50 off* Mar 26 09:29:40 why use RHEL for desktop development environment Mar 26 09:29:44 http://pkgs.org/centos-6/centos-x86_64/libnotify-0.5.0-1.el6.x86_64.rpm.html Mar 26 09:29:48 too many dependencies Mar 26 09:30:00 not my choice.. Mar 26 09:30:36 I could just start a VM with windoze or another linux.. but this is sparetime development.. my normal development stuff runs just fine ;) Mar 26 09:30:42 hey, as long as your manager doesn't mind not getting work done Mar 26 09:30:50 ah, ok Mar 26 09:31:08 but it is more fun doing android development ;) Mar 26 09:32:45 thanks for looking though Mar 26 09:41:07 g00s: and apparently RHEL6.5 makes a wooping jump to....... libnotify-0.5.3.. what will it not end with ;) Mar 26 09:41:19 still have the same issue. ive a background service which creates a thread in onStartCommand. the Thread is public. When i do return_sticky or alarmmanager to init the service again i need to validate if the thread is still runnning and working- i do that by using if (t != null & t.alive && !t.interrupted()) and it always return its still alive even if the thread is not aive anymore Mar 26 09:41:41 codetroll yeah, thats why i'd only use rhel for servers ;) Mar 26 09:42:31 for dev i'd go with arch or xubuntu Mar 26 09:42:42 ;) trust me... people aren't very happy about this choice of platform ;) Mar 26 09:46:54 misterli what you are trying to do is crazy :) Mar 26 09:47:29 there has to be a better way around that STICKY bug Mar 26 09:58:59 Hi, I have a question: 'httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));', will this put the values in the header or the body of the post? Mar 26 10:12:32 my app is accessing some cursor after it's been closed, but I never actually close a single cursor myself -- they're all managed by loaders. Can somebody point me to a tutorial on how to run a trace to figure out who is closing this cursor, and where? Mar 26 10:21:53 close emulator, spotify stops playing... Mar 26 10:43:25 can the context of the application be accessed from non-Activity classes? like POJOs? Mar 26 10:44:06 yaw: no, unless you pass it into it Mar 26 10:44:31 ok. thanks :) Mar 26 10:44:42 normally with a Context parameter :) Mar 26 10:53:18 Charl1e, I’m trying to save data in the application’s global SharedPreferences for future use. The guide I’m following says Context.getSharedPreferences should get me that. But it seems that method does not exist on Context Mar 26 10:54:49 Are you trying to access it via Context.getSharedPreferences or via the actual object? Mar 26 10:55:25 via Context.getSharedPreferences Mar 26 10:55:50 I'm trying to implement overscroll, while it works, it keeps snapping back instantly while my finger is still down. Does anyone have an idea what might cause this? Mar 26 10:56:07 yaw: I think you need to access it from the actual object, doing it via Context.getSharedPreferences implies that it's a static method and after checking, I'm pretty sure it isn't Mar 26 10:58:14 so `getSharedPreferences(name, mode)` in the activity class is all that’s required? Mar 26 10:58:40 yaw: hold on, I think that will work, let me check :P Mar 26 10:58:53 ok Mar 26 10:59:17 yaw: yes you can Mar 26 10:59:38 yaw: http://developer.android.com/reference/android/app/Activity.html#SavingPersistentState Mar 26 10:59:52 some nice example code there demonstrating it Mar 26 11:01:15 thanks for helping out a newbie :) Mar 26 11:01:42 yaw: np :) Mar 26 11:28:00 hi guys, i'm using android 4.3 on samsung galaxy note II and my phone is sudden death Mar 26 11:28:04 can i fix it ? Mar 26 11:34:53 you have to kill it before it kills you Mar 26 11:35:31 hi all, can anyone help with this little code http://pastebin.com/d3Ttxc5F Mar 26 11:36:50 I only try to implement an app with a service that start on boot, without activity Mar 26 11:37:53 bambuka, it needs to be started manually before it works, iirc since some android version I can't remember Mar 26 11:38:25 brandy_m: is it "sudden death" when you run the app you're developing? Mar 26 11:39:18 how i can start a service without activity, "manually" Zharf? Mar 26 11:39:33 thx for you reply Zharf Mar 26 11:40:25 bambuka, you could use adb, but for your users it's not really feasible Mar 26 11:40:41 ok, i see Mar 26 11:40:55 so, i need to implements an activity Mar 26 11:47:09 Leeds, yes Mar 26 11:47:20 emmc brickbug Mar 26 11:50:08 brandy_m: you're asking in the wrong fucking channel again, aren't you? Mar 26 11:51:02 which is the right channel ? Mar 26 11:51:35 #don'tknowdon'tcare Mar 26 11:57:08 hey guys Mar 26 11:57:24 my regex pattern is not working consistently across android versions Mar 26 11:58:35 I'm using [^\s]+(\.(?i)(pdf+))$ for comparing if file type is pdf Mar 26 11:59:56 brickhead: can't you just use str.endsWith('.pdf') ? Mar 26 12:00:17 well the pdf is just an example, it checks for large bunch of office file formats Mar 26 12:00:44 you can loop through them using endsWith Mar 26 12:00:55 and a string array Mar 26 12:00:57 that's expensive Mar 26 12:02:29 I've done a lot of regex in php, not in android yet :P Mar 26 12:02:32 that's such an odd regex anyway Mar 26 12:03:01 yuizy, that's the source http://www.mkyong.com/regular-expressions/how-to-validate-image-file-extension-with-regular-expression/ Mar 26 12:03:06 explain the regex Mar 26 12:03:20 why the + Mar 26 12:03:45 why is looping an array more expensive than something you do with the regex Mar 26 12:03:47 yeah that's look suspicious to me too, I'm trying out without it now Mar 26 12:03:56 and what exactly is it that you're doing with the regex Mar 26 12:04:13 the pattern is compiled ones and regex match is very efficient Mar 26 12:04:20 *once Mar 26 12:04:40 it doesn't do any 'magic' Mar 26 12:04:45 like I said I'm doing to for very large number of files Mar 26 12:04:47 endswith is very efficient as well Mar 26 12:06:19 how did you come into the conclusion that regex would be faster Mar 26 12:07:47 yuizy, hmm.. don't really have numbers to back here Mar 26 12:08:04 what do you think the regex does differently Mar 26 12:08:15 but adding 50+ file formats in list and looping to compare doesn't sound like a sound practice here Mar 26 12:08:22 what's the difference? Mar 26 12:08:28 what do you do with the regex Mar 26 12:08:45 well not really looping just parsing each one once Mar 26 12:09:14 oh, good point Mar 26 12:09:20 if you have 50+ formats it might be better Mar 26 12:09:23 :) Mar 26 12:09:44 [^\s]+(\.(?i)(pub|vst|mpt|xsn|one|potm|potx|pot|xltx|xlt|dotm|dotx|dot|ppl|mdb|mda|mdf|mde|mat|docx|accdb|adn|mdw|mdt|docm|doc|odp|ods|odt|adp|odc|odb|odg|odf|odi|odm|mam|accde|xlsx|xts|txt|xls|xlsm|accdt|accdr|ppt|otc|otg|otf|oti|maq|mar|xltm|pptx|otp|ots|ott|pptm|oth|maf|pdf))$ Mar 26 12:09:47 it wont be. regex is the solution because it optimises itself based on common prefixes. Mar 26 12:09:58 yes Mar 26 12:10:08 regex is the poor man's aho corasick Mar 26 12:10:10 here's just for office files, there are at least 10 differet file groups Mar 26 12:10:11 there are oodles of regexp online testers too which will show you the coputer generated optimal match. Mar 26 12:10:16 computer Mar 26 12:10:39 rgr can you point me to one Mar 26 12:10:54 looping and testing is your "own" regexp - and be sure you cant beat the regexp compiler Mar 26 12:11:16 brickhead: did you remember to escape the \ Mar 26 12:13:10 yuizy, yes I'm using the one converted by http://www.regexplanet.com/advanced/java/index.html for me Mar 26 12:13:24 String pattern = "([^\\s]+(\\.(?i)(" + exFilter.toString() + "))$)"; Mar 26 12:13:50 yeah I don't get the + at the end Mar 26 12:14:01 what's it for ? Mar 26 12:14:13 typo I guess Mar 26 12:14:14 k so back to the original problem Mar 26 12:14:17 what is it exactly Mar 26 12:14:19 I can't remember placing it there Mar 26 12:14:28 I'm testing without it Mar 26 12:14:43 I'm not sure how does this works on few devices and some android version Mar 26 12:14:54 anyway would post a result without it Mar 26 12:15:54 in php regex I used to use (.*?) to mean 'anything' Mar 26 12:16:13 instead of just .? or ? Mar 26 12:17:02 why not just .* Mar 26 12:17:17 and there's no .? or ? in his regex Mar 26 12:17:33 there is Mar 26 12:17:45 (?i) Mar 26 12:18:00 that's for disabling case sensitivity Mar 26 12:18:00 (\.(?i) Mar 26 12:18:10 he is saying 'anything' there Mar 26 12:18:17 no Mar 26 12:18:21 yeah I know i is for case insensitive Mar 26 12:18:36 but he is saying .? Mar 26 12:18:37 before the i Mar 26 12:18:43 the . is escaped Mar 26 12:18:46 so it's just a period Mar 26 12:19:05 right Mar 26 12:19:15 ok so he should try .* or .*? Mar 26 12:19:17 and (?i) means case insensitivity Mar 26 12:19:31 yeah but ? is single character Mar 26 12:19:41 you need .*? Mar 26 12:19:44 no Mar 26 12:19:52 he needs exactly what he wrote Mar 26 12:20:06 1) dot 2) case insensitivity 3) file extension Mar 26 12:20:17 I've implemented overscrolling in my app, but for some reason the overscrolled area keeps resetting for unknown reasons while my finger is down. (except for that it works fine) Mar 26 12:20:33 where is specifying any character any length ? Mar 26 12:20:39 the whole regex is [anything without a whitespace][dot][case insensitive: any file extension] Mar 26 12:20:42 the wildcard Mar 26 12:21:07 Can anyone help me figure out why it keeps resetting? Mar 26 12:21:19 anything without a whitespace: [^\s]+ Mar 26 12:21:24 dot: \. Mar 26 12:21:37 case insensitive file extension: (?i)(pub|vst|mpt|xsn|one|potm|potx|pot|xltx|xlt|dotm|dotx|dot|ppl|mdb|mda|mdf|mde|mat|docx|accdb|adn|mdw|mdt|docm|doc|odp|ods|odt|adp|odc|odb|odg|odf|odi|odm|mam|accde|xlsx|xts|txt|xls|xlsm|accdt|accdr|ppt|otc|otg|otf|oti|maq|mar|xltm|pptx|otp|ots|ott|pptm|oth|maf|pdf) Mar 26 12:21:57 hmmm Mar 26 12:22:26 I guess I forgot, been awhile Mar 26 12:23:01 so it should work , minus the plus at the end Mar 26 12:23:13 yeah Mar 26 12:23:40 though he didn't really tell us what the issue is Mar 26 12:30:33 and you should be collapsing things that begin me the same letter etc. thats horrible. Mar 26 12:30:47 hi Mar 26 12:31:13 I want to invoke methods on webservice Mar 26 12:31:23 and the client is android Mar 26 12:31:35 how could I write the code Mar 26 12:31:47 how should I write the code Mar 26 12:32:15 service code is xfire(java) Mar 26 12:32:35 and I writing in java on client end Mar 26 12:32:46 who knows? Mar 26 12:33:25 Hey, i'm trying to call a java method from JNI, i'm getting an error when trying to get the method id, here's how i do it : Hey, i'm trying to call a java method from JNI, i'm getting an error when trying to get the method id, here's how i do it : Hey, i'm trying to call a java method from JNI, i'm getting an error when trying to get the method id, here's how i do it : http://codepad.org/rhFdghaW Mar 26 12:33:31 welp Mar 26 12:34:23 so, uh, if anyone could help me figure out this JNI bug, that'd be great :D, details here : http://codepad.org/rhFdghaW Mar 26 12:34:26 xlinkz0 Mar 26 12:34:32 sorry for that Mar 26 12:34:53 I want to invoke methods on webservice (xfire) Mar 26 12:35:07 and client end code I writting Mar 26 12:35:14 how should I do Mar 26 12:35:32 i'm sorry i don't have any experience with that :( Mar 26 12:35:39 Mosalut: better not to keep writing the same Q. Mar 26 12:35:42 :( Mar 26 12:35:47 ok Mar 26 12:35:49 rar Mar 26 12:35:54 rgr Mar 26 12:36:01 Is Google Play available in China for free apps ? Mar 26 12:36:03 Also your question is very very vague. its like how long is a piece of string. Mar 26 12:36:29 what's vague means? Mar 26 12:36:47 too large. Its not specific. Mar 26 12:36:53 ok Mar 26 12:36:59 and by the way Mar 26 12:37:04 what have you done so far? Mar 26 12:37:19 why a piece of string not a block of string in English Mar 26 12:37:32 ball of string... ;) Mar 26 12:37:44 I check it on web Mar 26 12:37:58 and do they method Mar 26 12:38:18 but always got a lot of Exception Mar 26 12:38:23 Exceptions Mar 26 12:38:37 I'm using ksoap.jar Mar 26 12:38:45 ksoap2 Mar 26 12:39:16 Here is shows that for paid apps it's not https://support.google.com/googleplay/answer/143779 what about apps which have in app purchases? is an app with in app purchases considered paid? Mar 26 12:40:01 but I want to apk not app Mar 26 12:48:44 Today I've moved from storing my little library in a "libs" directory to the local Maven repo. Can this be simplified? particularly the hard coded aar name. https://gist.github.com/anonymous/9782338 Mar 26 12:49:35 can anyone help me with the signature convention for getting the java method id in the ndk? Mar 26 12:50:37 Hi all, does somebody have experience with open street maps? Mar 26 12:56:13 in my projects main java class i had a call to runOnUiThread(zzzzz) where zzzzz is a runnable. i moved this call out of this and into a different clas. everything resolves after some tweaking except the runOnUiThread Mar 26 12:56:27 why can intellij idea not resolve runOnUiThread? Mar 26 12:57:34 what does intellij say? Mar 26 12:58:25 cannot resolve method runOnUiThread(java Lang runnable) Mar 26 12:59:01 because you don't be in activity ? Mar 26 12:59:13 probably wrong scope for that function then Mar 26 12:59:27 crap so i cant factor it out dammit grr Mar 26 12:59:29 thx lol Mar 26 12:59:48 yes. you can pass arefernce to the activity or whatever and all it on that. Mar 26 13:00:00 oops. reference "and call". Mar 26 13:00:55 hey guys Mar 26 13:01:14 bonjour a tous Mar 26 13:01:24 salut a toi Mar 26 13:01:56 erm yea that just makes it more of a gordian knot, simple answer is to just move THAT part back into the main java class lol. Mar 26 13:02:36 ca va bien? connais-tu le java optimisation? Mar 26 13:04:46 yeah I know what you mean re knot. Mar 26 13:06:44 Is Google Play available in China for free apps ? Mar 26 13:07:12 hi guys, I've created my first android project using android studio, however I get 'build tools revision 19.0.0+ is required' my according to android cmdline tool I've 19.0.3 installed Mar 26 13:07:47 I've tried to set ANDROID_HOME var to settings -> paths but still the same error Mar 26 13:16:03 what does "to settings->paths" mean? Mar 26 13:17:09 there are two android envs you might set. but check your intellij settings too. Im not sure about AS but I assumed you can set the SDK home there too. Mine are, for example Mar 26 13:17:11 export ANDROIDSDK="${HOME}"/development/android/sdk Mar 26 13:17:11 export ANDROID_HOME="${HOME}"/development/android/sdk Mar 26 13:17:11 Mar 26 13:22:23 Was wondering, has anyone ever been successful with rotating a layout manually by 90 degrees, and having it display the content correctly? Mar 26 13:22:52 I'm trying to rotate a RelativeLayout which contains a webview, but the content keeps going blank as soon as I perform the rotation Mar 26 13:23:42 maybe a silly Q, you do know the activity is destroyed and must be rebuilt in the new orientation? Mar 26 13:25:19 rgr: i'm not sure if i'm re-orienting technically, i'm performing a setRotation on the RelativeLayout Mar 26 13:25:21 one sec Mar 26 13:25:57 http://pastebin.com/dEg6Gb6y Mar 26 13:26:50 you're probably wondering why I don't just re-orient the entire layout, I don't have that capability when dealing with an external HDMI output with an android streaming device that outputs through HDMI Mar 26 13:28:50 any Google analytics users here? Mar 26 13:28:50 note, my test case is at 90 degrees, so numDegrees is 90.0f Mar 26 13:29:17 I feel like there's a method call I need to perform to tell the view to redraw, but i'm not sure what Mar 26 13:29:24 Is there a GeoIP database lookup service on Android? Mar 26 13:29:32 or maybe this is an issue with how WebView handles rotations? Mar 26 13:29:40 i.e. find country based on user's IP address Mar 26 13:30:02 i find that if I rotate small amounts, like 20, 30 degrees, I see portions of webview being rendered correctly at the desired angles Mar 26 13:30:20 but a full rotation causes the entire layout to blank Mar 26 13:30:44 oh sorry, youre not rotating the device. sorry silly of me. ignore. Mar 26 13:33:19 cff: maxmind Mar 26 13:35:38 nick9998: thanks Mar 26 13:36:44 How can I determine if Google Play billing is supported? i.e. I may have Google Play installed in a country where payment with Google Wallet are not supported on Google Play and I want to detect this inside the application because I want to show the user a different payment method if not Mar 26 13:43:08 cff: no problemo Mar 26 13:44:21 how can I regenrate class R? Mar 26 13:46:58 superlinux-hp: delete it and will be auto generated on Eclipse Mar 26 13:47:16 thepoosh, I did. still I have no R Mar 26 13:47:29 this means one of your xml files has a parsing error Mar 26 13:47:40 look through res and find the bad file Mar 26 13:47:45 fix it and re-build Mar 26 13:49:35 alright, so I did a test, and it turns out that the webview is the culprit. It doesn't seem to like rotations whatsoever Mar 26 13:50:29 it just freaks out Mar 26 13:51:30 i see this line in the logs : 03-26 15:50:38.663: D/dalvikvm(10031): threadid=18: thread exiting, not yet detached (count=0) Mar 26 13:51:39 does it mean i'm doing something wrong in the JNI? Mar 26 13:56:38 thepoosh, copy paste thing it was! heh! I forgot also to copy the @string's Mar 26 14:01:41 It's next to impossible to fix this issue, anyone have any ideas on why the webview might freak out and turn black when I rotate it? Mar 26 14:02:01 bacon1989: the webview is simply a container for a webkit plugin I take it? would that itself no then need to support rotate or does android do it by transforming the resultant rendered bitmap? Mar 26 14:02:32 It could also be of course a redraw not being propagated down the the web renderer. Mar 26 14:04:10 i'm not sure, I was under the impression that rotating a layout would cause the underlying child views to be updated on the new transforming matrix, or whatever Mar 26 14:04:32 which is what I saw when I rotated a different view successfully Mar 26 14:04:41 so I'm working on porting a game I wrote last year to android and had a few questions: 1) For a given Activity, does the Renderer (well whatever implements it) generally also handle the main game look, framerate limiting, etc? 2) where do people usually put their shaders? /src? /res? /shaders? Mar 26 14:04:53 the view that worked has like two linear layouts, and listitems with a bunch of custom layouts in it Mar 26 14:04:58 and they all work at 90 degrees Mar 26 14:05:21 why in the design editor of a layout if I change the theme for that layout doesn't change anything in the app? Mar 26 14:05:40 definitely something up with the webview Mar 26 14:05:56 or the WebViewClient Mar 26 14:06:13 webviews are annoying Mar 26 14:06:29 had a client who wanted to provide some dynamic content via json which had html inside it .... Mar 26 14:13:15 mmhhh seems I've to hide from the activity code, so what are the themes about? Mar 26 14:13:53 you should use soemthing like HTML.fromHTML for that if its simple enough which I guess it might be if its json packaged. Mar 26 14:14:29 rgr: i would have thought so too, but no, they want it styled ;) Mar 26 14:14:37 custom fonts Mar 26 14:14:38 etc Mar 26 14:14:47 was a bitch to set up, but it works... somewhat Mar 26 14:21:16 Hi all. Question: I'm trying to install some libraries, and can only find information on how to using Eclipse or Android Studio. My IDE is intellij idea, which is what Android Studio is based off, so i'm trying to follow those instructions. However, it tells me to "Open the build.gradle file", which I can't find. Where is it located? Mar 26 14:24:40 It isnt unless you have made it a gradle based project. Instructions for converting to gradle are easily found. Mar 26 14:24:55 (or just use AS) Mar 26 14:25:36 Charl1e: yeah, i see its fairly rudimentary. Mar 26 14:28:59 alex88, changing theme in preview is only for previrwt Mar 26 14:29:28 pfn: oh ok, just seen that I had to use setTheme(R.style.MyTheme) for that, thanks! Mar 26 14:29:37 I've installed the wear sdk but when I try to create the AVD, there's no skin available. can anyone help? thanks Mar 26 14:33:01 rgr: Ahh so i have to build a android gradle project, then import the excisting one, no? Mar 26 14:33:22 clear Mar 26 14:33:28 Is that worth it though. Is gradle a good system for adding libs? Will all the libs i've already added still work in it's regular fahion? Mar 26 14:33:56 how do I create a notification while another application is running? like a little scroll down bar? Mar 26 14:34:21 that scrolls down a bit from the top, stas for a second, then goes away, kind of thing Mar 26 14:37:33 is there a way to show the keyboard during layout preview? Mar 26 14:38:02 is there a way to call super.super.function() except calling super.function() which calls it's own super.function()? Mar 26 14:41:04 if java is anything like C++, you could try calling the method through the class and provide the instance there. So like, Foo -> Bar -> MyClass; MyClass myInstance = new MyClass(); Foo.someMethod(myInstance, arg1, arg2); Mar 26 14:41:07 i'm just guessing though Mar 26 14:43:59 I don't think that would work Mar 26 14:44:15 Syzygy what Mar 26 14:44:37 basically I want to call a method of the base-base class without calling a method of the base class Mar 26 14:44:44 ( i can't modify either of the base classes) Mar 26 14:45:41 you cant do that unless the subclass invokes the method of the superclass Mar 26 14:46:08 also why would you ever want to do that Mar 26 14:46:11 Syzygy, that's not possible and violates pretty much all of OOP design rules Mar 26 14:46:19 Syzygy, Java has that disabled intentionally Mar 26 14:46:24 I suggest heavy refactoring. Mar 26 14:46:42 Mavrik, can't refactor android classes Mar 26 14:46:53 at least, not as far as I know Mar 26 14:47:08 otherwise I would happily rewrite scrollview the way I need it Mar 26 14:47:10 Syzygy what are you trying to do Mar 26 14:47:44 Does anyone have a good example of using a custom account preference with the AccountManager? I just need to understand the boilerplate. Mar 26 14:48:23 I'm trying to implement overscroll on a scrollview, but the overscrolled amount keeps resetting because onLayout of ScrollView resets the scrolled amount to something not overscrolled Mar 26 14:49:13 yeah Mar 26 14:49:23 trying to force iOS stuff on Android does that Mar 26 14:49:29 did you consider just making your own scrollview_ Mar 26 14:49:30 ? Mar 26 14:49:51 just now actually Mar 26 14:50:07 I guess I can just copy the source and change the parts I need. good idea, thanks. Mar 26 14:51:47 Anyone with webview, ssl and basic auth experience that could give me some input on this problem? http://stackoverflow.com/q/22654157 Mar 26 14:51:56 hey Mar 26 14:52:05 i currently use 3 linearlayouts for this: https://www.dropbox.com/s/pdbofi9z9rqd5qe/Screenshot%202014-03-26%2015.51.42.png Mar 26 14:52:18 how can i get all "=" signs to align properly vertically as well? Mar 26 14:52:40 do i need a "tablelayout" or so to achieve that? Mar 26 14:53:23 question,=,answer are separate views here Mar 26 14:53:25 smart_ptr: think you just need to pad the values Mar 26 14:53:39 make sure they're all the same length Mar 26 14:54:16 assuming the font is fixed width Mar 26 14:54:28 i see what you mean Mar 26 14:55:22 smart_ptr, for simple solution, make sure the width of views before = is always the same Mar 26 14:56:17 even then though, there's some right aligning going on too Mar 26 14:56:32 assuming thats what is wanted Mar 26 14:57:47 This is a Java question, please bear with me. Mar 26 14:58:11 wait, let me try a solution that came to mind first before I go ahead. Mar 26 14:59:33 Mavrik: i like the idea as well Mar 26 15:00:12 I'm trying to use nested fragments, so a fragment on top of another one. For this i need getchildfragmentmanage: http://developer.android.com/reference/android/app/Fragment.html#getChildFragmentManager(). However, my IDE can't resolve the method. Mar 26 15:00:39 ThomQ: Android Studio? Mar 26 15:00:48 Nope intellij idea Mar 26 15:00:53 okay, similar Mar 26 15:01:00 i had that issue before, yet it built fine Mar 26 15:01:07 does it build? Mar 26 15:01:21 Nope Mar 26 15:01:24 didn’t work. Mar 26 15:01:41 ThomQ, is your target actually API 11? Mar 26 15:01:44 or newer? Mar 26 15:01:51 also you really SHOULD use a support library for those Mar 26 15:01:52 Okay, so I want to import constant under a class into another class Mar 26 15:02:04 I can't figure out what is wrong with this WebViewClient Mar 26 15:02:05 I did some digging, seems that i need the android support libraries v4 and v7, so i installed those. I have no idea of how to test if they really are installed, so I tried opening the example java classes. Those all open fine. Still, it can't be resolved though Mar 26 15:02:14 it's driving nuts Mar 26 15:02:19 minsdk version is 18 Mar 26 15:02:33 say I have a Constants class but I want to type x instead Constants.x Mar 26 15:02:57 without inheriting Constants, is it possible? Mar 26 15:03:04 yaw, no Mar 26 15:03:09 this is not python :) Mar 26 15:03:23 hey my friends, i want to make the user of my app able to pick one of all installed apps on the phone and run it. This works partially. I can run apps like Browser, Calculator, Email and so on with ACTION_VIEW intent. this is not working for phone, which i need ACTION_DIAL for (i guess). I do it like this now: Check if classname="Phone" and then start intent with ACTION_DIAL Mar 26 15:03:23 ThomQ, em, "test it"? Mar 26 15:03:35 yaw: java is very much about being explicit in most cases Mar 26 15:03:37 ThomQ, if you want to use v4 you have to use Fragment classes from "v4" package not the Android main ones Mar 26 15:03:45 yeah, use methods and classes that are in the supportlibs, to see if they can be resolved Mar 26 15:03:52 plus it's probably a good idea that you know where those variables are coming from anyways Mar 26 15:03:59 Mavrik, bacon1989: thanks :) Mar 26 15:04:02 but the Phone app can be named different on different android phone-languages......so i guess this is not the way. Any suggestions? Mar 26 15:04:24 Mavrik: that makes me miss python sometimes. one day there’d be an Android SDK in python Mar 26 15:04:39 if there’s isn’t one already Mar 26 15:04:46 adkins, a phone app will of course be able to receive an ACTION_DIAL intent you know :P Mar 26 15:04:51 adkins, so check that. Mar 26 15:04:58 Mavrik: so, delete import android.app.Fragment; and such, and reimport the v4 ones? Mar 26 15:04:59 instead of doing something so silly as to check for name. Mar 26 15:05:02 ThomQ, mhm. Mar 26 15:05:12 yaw, not... likely. Mar 26 15:05:16 I am trying to trace a sample "Hello World!" application and see that about 11 threads are created during startup. 3 threads finally remain and the rest are short-lived. The remaining threads are application and binder threads. Any idea what the other threads are doing? Mar 26 15:05:23 yaw, Jython maybe. But even that probably not. Mar 26 15:05:34 Mavrik: not getting you....... Mar 26 15:05:44 there's android clojure, which does dynamic typing Mar 26 15:06:00 https://github.com/clojure-android/lein-droid Mar 26 15:06:06 adkins, if you want to send ACTION_DIAL then CHECK which apps can receive ACTION_DIAL Mar 26 15:06:11 adkins, don't go around checking names Mar 26 15:06:14 it's pretty new though Mar 26 15:06:19 that'll break even if people change phone language Mar 26 15:06:20 O.o Mar 26 15:07:10 Mavrik: only android.support.v4.app.Fragment; and support.v4.app.FragmentTransaction; are v4, FragmentManager only imports android.app.FragmentManager. Still can't resolve getChildFragmentManager though Mar 26 15:09:03 Is nonce necessary for preventing reply attacks when using HTTPS / SSL ? Mar 26 15:09:26 Mavrik: ok so u are saying i need an implicit intent right? but my question is: the selected app is a "normal" app i start an intent with ACTION_VIEW, if it is a phone-app i need to start with ACTION_DIAL. so i need to differenciate between these kind of apps and dont want to check if classname="phone" (english) or "telefon" (german),.....and so on Mar 26 15:09:40 how do i differenciate? Mar 26 15:10:39 I've a scrollview with some elements, http://pastie.org/private/uzdx7fxrjrgncmmgu1s1mw I've set windowSoftInputMode to adjustResize|stateVisible but when the keyboard is shown, even if I don't see all the elements the view doesn't scroll Mar 26 15:11:06 adkins: tell us what you want to achieve in simple terms first Mar 26 15:11:47 Charl1e: i want to make the user of my app able to pick one of all installed apps on the phone and run it. Mar 26 15:12:02 Charl1e: and this can be any-app Mar 26 15:12:08 basically, it's about these 4 lines: http://pastebin.com/cBH7dkeC They use FragmentManager, Fragment, FragmentTransaction and getChildFragmentManager. Upon importing the classes, it'll import android.support.v4.app.Fragment, android.support.v4.app.FragmentTransaction and android.app.FragmentManager. getChildFragmentManager won't import anything. Mar 26 15:12:41 but phone-app i need to start with ACTION_DIAL and not with ACTION_View like the other apps Mar 26 15:13:04 Mavrik, I tried copying the code over but now it can't find a ton of stuff (for example StrictMode.Span), do you have any recommendations on how to fix this? Mar 26 15:15:25 Syzygy, by not using package private stuff_ Mar 26 15:15:26 ? Mar 26 15:15:31 or by moving your view in same package? Mar 26 15:15:47 adkins, I told you like 5 times Mar 26 15:15:55 adkins, check WHICH apps can accept ACTION_DIAL Mar 26 15:16:02 then when you get one of them Mar 26 15:16:10 use ACTION_DIAL instead of ACTION_VIEW Mar 26 15:16:19 well, the class is now in my own packet, but Span is a public class in StrictMode Mar 26 15:16:30 there's a whole intent resolution API that can tell you which apps (via their PACKAGE NAMES not visible names!) can handle which intents Mar 26 15:17:20 Charl1e: since i cannot start phone app with classname and need to use ACTION_DIAL i now check if classname="Phone" and then start an Intent with ACTION_DIAL but the phone app has a different name for instance on a german phone, so i need to check the class-name for any language Mar 26 15:17:31 thats probably not the way Mar 26 15:17:56 Mavrik: brb. maybe i`m not getting what you are saying or the opposite Mar 26 15:18:13 for anyone who was curious about the problem I was having with WebView and setRotation, I found this issue which outlines all of the same problems i'm having https://code.google.com/p/android/issues/detail?id=57440&q=setRotation%20webview&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Mar 26 15:18:20 i'm going to try turning off hardware acceleration Mar 26 15:18:30 it also can't access mScrollY which is protected in View. Last time I checked protected allows access from inheriting classes. Mar 26 15:19:01 adkins, I realy don't know how to explain any simpler Mar 26 15:19:24 1.) Find all package anmes of apps that can handle ACTION_DIAL Mar 26 15:19:41 2.) WHEN trying to do intent, check if package name of target app is on the list you got on 1.) and do ACTION_DIAL Mar 26 15:19:54 if not do ACTION_VIEW Mar 26 15:20:17 adkins, the package name should not change depending on language Mar 26 15:22:00 Mavrik, myScrolView inherits from View, so I should have access to it's protected members, right? So why can't I access mScrollY? Mar 26 15:23:14 I don't know by heart, check. Mar 26 15:23:21 it could be package private. Mar 26 15:25:16 mmhhh is normal that having a full screen scrollview when opening keyboard doesn't show the full scrollview but everything expect the last 50dp? Mar 26 15:26:11 it's protected Mar 26 15:27:28 Syzygy: afaik it does. Endlish: com.android.phone german: com.android.telefon ;) Mar 26 15:31:25 Confirmed, the WebView dispalys correctly 90 degrees rotated ONLY when hardware acceleration is turned off Mar 26 15:31:43 lol bacon1989 , sounds like a ballache Mar 26 15:32:20 it is a real pain Mar 26 15:32:31 are you able to turn off hardware acceleration when you want to? Mar 26 15:32:33 we plan on having HTML5 video in the futgure Mar 26 15:32:50 Charl1e: hmm Mar 26 15:32:52 i'm not sure Mar 26 15:33:16 but if it really becomes an issue, I might get crazy Mar 26 15:33:30 and try and embed java views over the areas where video is supposed to play Mar 26 15:33:45 using some sort of javascript injection scheme on each page that's loaded Mar 26 15:33:56 but that would be rediculous Mar 26 15:34:16 my only other option is to rotate the webpage using CSS3 transitions Mar 26 15:34:28 but I think HTML5 video won't play under those cirumstances either Mar 26 15:34:50 which is why i've also been looking into different WebViews, like the Gecko WebView based on firefox Mar 26 15:35:03 which I think does work when you use CSS3 transitions Mar 26 15:35:13 ugh Mar 26 15:35:51 Mavrik: sorry for the case that i`m not getting what your saying. lets asume the user picked the app "phone" in the list of all apps. i then have the package name. how do i know from that which kind of intent i need? Mar 26 15:36:10 adkins, before you even get to that point in app Mar 26 15:36:23 adkins, you check for all apps (that is package names) on the phone that can accept ACTION_DIAL Mar 26 15:36:30 and you remember that list of packages. Mar 26 15:37:56 Mavrik: and then checking if the class name of the selected app equals one of the ACTION_DIAL apps? Mar 26 15:38:06 if the package name equals yes. Mar 26 15:38:13 that will make sure you will always grab all dialers Mar 26 15:38:18 Mavrik: thank you man Mar 26 15:38:21 Hi folks! Is there any trick to implement text alignment by width in textview, so it fills with spaces between letters? I’ve tried out few custom classes but none of them work as expected. Mar 26 15:38:24 got you now Mar 26 15:38:28 sorry Mar 26 15:38:50 adkins, see accepted answer on how to get the list: http://stackoverflow.com/questions/2695746/how-to-get-a-list-of-installed-android-applications-and-pick-one-to-run Mar 26 15:39:08 adkins, that will make sure you grab all dialers even when e.g. Samsung, HTC, etc. change package names and names of phone app :) Mar 26 15:39:15 and you'll grab apps like Google Voice etc. Mar 26 15:40:10 Mavrik: thank you, getting back to work ;) Mar 26 15:50:10 Currently, I have 2 different scannerFramgent, the UI and code is different (other api calls), but a lot of the code is the same in both fragments, is it easy to create a BaseScannerFragment and create sub fragments of it (extends BaseFragment) ? Mar 26 15:54:39 trying to build a releasebuild using gradle, i use picasso library. Now when i run ./gradlew assembleRelease i get 10 warnings like this: Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient Mar 26 15:55:01 the build fails, internet tells me to -dontwarn on these classes but it does not work.. what do? Mar 26 15:55:22 well, i've tried about everything I could think off, shy from adding SherlockActionBar, which is the only thing i found on google (people having problems getting getChildFragmentManager to be resolved, while using SAB). Mar 26 15:55:34 Its just a warning, okhttp is not required osxorgate Mar 26 15:55:53 yeah, ok, but my gradle build aborts because of it Mar 26 15:55:58 add -dontwarn Mar 26 15:56:02 that easy Mar 26 15:56:10 I confirmed the v4 lib is a dependencie of the project, but to be honest, I don't even understand why i need the support lib's. Isnt nested Fragments and getChildFragmentManager a feature of sdk 17 and up? Mar 26 15:56:22 im compiling with 18, min and target sdk both set to 18 Mar 26 15:56:26 proguard help says 'only use -dontwarn if ytou know what youre doing' (which im not) Mar 26 15:56:31 ThomQ, check apidoc and see Mar 26 15:56:35 so it should be resolving even without the support libs right? Mar 26 15:56:38 osxorgate, but "internet knows what they're doing" Mar 26 15:56:41 pfn: apidoc? Mar 26 15:56:42 ThomQ, check apidoc and see Mar 26 15:58:50 i don't know what you mean by apidoc Mar 26 15:59:25 How do I read account preferences in the AccountManager? They aren’t stored with normal shared preferences. Mar 26 15:59:35 ThomQ, google apidoc Mar 26 16:00:36 more specifically, android apidoc Mar 26 16:00:37 first hit Mar 26 16:02:10 I'm such a dumbass Mar 26 16:02:12 Djeezus Mar 26 16:02:55 ok, so i can only call getChildFragmentManager from within a fragment class. I was trying to do it from an activity class Mar 26 16:04:08 indeed, all api questions should refer to apidoc first Mar 26 16:04:47 ow, i didn't get it from the APIdoc, but from the 4.2 features page.. Mar 26 16:05:06 im sure it's in the doc's, but those are still a bit overwhelming for me Mar 26 16:05:23 this is the first time using fragments, so I frankly have 0 to no idea what i'm doing Mar 26 16:05:32 morning folks... what am I missing here - have added to jackson json jars to the lib folder and they seem to be included in build.gradle (*.jar)?? Error log and build.gradle here : http://pastebin.com/uZ3eVnJP Mar 26 16:05:54 ThomQ, learn to read apidoc properly, one of the best way to improve your development abilities Mar 26 16:08:01 Anyone know of a good library project/maven repo/etc that handles toggling on/off system ui across all OS versions? Mar 26 16:08:32 It sounds easy, but I've been working on trying to support all OS versions recently and it's actually a bit crazy Mar 26 16:09:56 ThomQ: go through the android developer tutorials on google's site and, once again, use intellij to guide you. Bring up the javadoc for the class/method at point using C-q for example. Mar 26 16:15:34 when i make up a package my.prefix.uic, and the main activity is in my.prefix.thisactivity, i need to import my.prefix.uic from thisactivity... figured that... what if my.prefix.uic package is supposed to contain a class after which it is named, i. e. a class uic... that is impossible? Mar 26 16:17:53 well, no, that's not all... also it complains about a correct subdirectory... any link to any document of correct java class packaging? Mar 26 16:29:24 how do I show/hide the keyboard programmatically? Mar 26 16:32:01 okay, I found multiple answers on StackOverflow. I’d consider them Mar 26 16:32:08 InputMethodManager imm2 = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm2.hideSoftInputFromWindow(itemName.getWindowToken(), 0); Mar 26 16:32:25 That was how I did it. Mar 26 16:35:59 there are oodles of examples. http://bit.ly/1j45TWD Mar 26 16:36:20 how to show a button atop some other application without sdk? eg, some kind of notification? don’t neceesarily want android to treat it as proper notification - where it’s later viewable in notifications drag-down box Mar 26 16:39:31 Hello Mar 26 16:40:22 Does Google Now on Android have a package name? I'm looking to listen for the notifications, but I don't know the app or service that's pushing reminders, score updates, etc. Mar 26 16:45:16 all apps have a package name Mar 26 16:46:52 hi! do you know of a guide to rewrite android sockets to unix sockets? :) Mar 26 16:49:14 hi guys, i'm extending the zxing barcode reader in my application.. in my main layout of my application, i have a frame setup to show @layout/capture.. the text of the capture layout shows, but the camera itself does not work, where should i start looking? Mar 26 16:57:13 Was wondering, how do I query the *absolute* screen width and height dimensions of my device? It keeps subtracting the navigation bar from the final height metric Mar 26 16:59:39 bacon1989: I simply added the height of the navigation bar and status bar back depending on the orientation Mar 26 17:00:46 You'll also have to factor in the the type of the device, since tablets may still leave it at the bottom in landscape, and also detect whether the device actually has a navigation bar or not Mar 26 17:01:37 ah, I just found the getRealMetrics function Mar 26 17:01:44 which returns... the real metrics Mar 26 17:01:46 that's not confusing Mar 26 17:02:26 haha that would have been helpful when I needed this Mar 26 17:03:33 out of idle curiosity how is knowing the size outside of your allowed view useful? If its full screen you'll get the right dimensions anyway, if not then its not really your own apps business. Mar 26 17:10:23 Where would you store farm information and devices in each farm? SharedPreferences? Mar 26 17:16:00 hi Mar 26 17:16:02 does an app need root access in order to change the proxy settings? Mar 26 17:19:27 kate_r: without user permission, I can assume yes Mar 26 17:19:59 bacon1989 right. do you know how to bring up the dialog where proxy settings are set programmatically for the user to key in the details? Mar 26 17:20:16 kate_r: i'm not sure, sorry Mar 26 17:20:24 ok thanks Mar 26 17:20:42 i'm guessing you'd need to direct them to the settings page Mar 26 17:20:55 try and see if there's any sort of Intents that solve your problem Mar 26 17:23:08 do you recommend using greenDA? Mar 26 17:23:10 greenDAO* Mar 26 17:23:57 bacon1989 ok i'll look more into it Mar 26 17:28:49 hello Mar 26 17:30:57 Hi, how do you put your android project on open source? the code. Mar 26 17:31:51 androidnewb: tuesday, but only in February Mar 26 17:31:59 androidnewb: www.github.com or www.bitbucket.com Mar 26 17:32:09 bitbucket.org Mar 26 17:32:15 www.bitbucket.org Mar 26 17:32:17 any good web search api in wild Mar 26 17:32:32 or it curl/scrapy etc :-( Mar 26 17:33:16 putting code into a repo doesnt make it "open source" necessarily. Mar 26 17:34:06 thanks all, but they still can't run my app though, if I put it in repo Mar 26 17:34:13 who is 'they'? Mar 26 17:34:48 the people that will view my source code Mar 26 17:34:57 why not? Mar 26 17:35:17 i use a lot of library, there will be errors Mar 26 17:35:23 not out of the box "run" Mar 26 17:35:29 then use dependency management like gradle Mar 26 17:35:34 or a readme Mar 26 17:35:48 then put the jar files for the libraries there too. Its not "only" source. Mar 26 17:35:50 or, but I personally can't recommend that, add the library folder of your project Mar 26 17:35:57 androidnewb: You probably have all kinds of build files specific to your computer that you are sending them, and they are trying to build it with Mar 26 17:36:19 hi there Mar 26 17:36:20 to all, basically I just need help developing my app Mar 26 17:36:22 no he doesnt since he hasnt put it up there yes. Mar 26 17:36:40 if github support its natively with android Mar 26 17:36:43 androidnewb: "need help developing" is kind of broad Mar 26 17:36:46 gradle I love you. Mar 26 17:37:01 anyway thanks to all. Mar 26 17:37:03 does someone has experienced that when hiding a EditText view that it's invisible but still selectable when you tap on the space where it was? Mar 26 17:37:08 ill just develop this on my own Mar 26 17:37:18 androidnewb: good plan Mar 26 17:37:30 androidnewb: github supports files, supporting android native on github doesn't mean anything. We can help if you can be more specific with your problems Mar 26 17:38:23 any of you use analytics in your apps? how long have you set your sessions? Mar 26 17:38:25 philip___: Set the visibility to gone if you don't want it to be selectable or to take up space Mar 26 17:38:27 My problem is, i'm building kinda of social network app, Mar 26 17:38:44 ill already have all the basics, like login, Mar 26 17:38:48 picture upload. Mar 26 17:39:02 Friendship class is complicated Mar 26 17:39:05 philip___: Or to not* take up space Mar 26 17:39:16 it's true, friendship *is* complicated Mar 26 17:39:40 atm I have analytics set to 5 minutes for a session Mar 26 17:39:42 sounds like a wordlbeater. We need more social apps to connect to our friends with ;)) Mar 26 17:40:03 @yiati thats what I'm going. Actually i'm setting the view group that contains the EditText view to View.GONE, I can't see it. but I can still select it Mar 26 17:40:14 underneath another view that it drawn on top Mar 26 17:40:18 I wish there was a diagram for friendship class, Mar 26 17:41:07 androidnewb: https://www.google.com.hk/search?q=diagram+for+friendship+class&tbm=isch Mar 26 17:41:47 I'm having a fragment that loads a view. and then based on some user actions I hide a certain view and display another one. but the hidden one is still selectable and brings up the soft keyboard Mar 26 17:41:59 Leeds: thanks, Ill look on that Mar 26 17:42:04 welcome to the world androidnewb where nothing you think of hasnt already been done to death. Google : killing dreams daily... ;) Mar 26 17:42:09 philip___: possibly relevant http://stackoverflow.com/questions/4728908/android-view-with-view-gone-still-receives-ontouch-and-onclick Mar 26 17:42:14 er... that was meant to be a joke, but okay Mar 26 17:42:19 lol Mar 26 17:43:03 good bye to all, I will continue working now Mar 26 17:44:51 thanks for your great help... next question: how do i organize my source files when i want to make up a "library" that i can also use in other apks? like my.prefix.thisapp and my.prefix.thatapp want to use my.prefix.libs.thislib ... i'm developing my.prefix.libs.thislib along with my.prefix.apps.thisapp... but where do i put the individual sourcefiles, so that the compiler finds them instead of giving me "cannot find symbol" ? Mar 26 17:45:25 yiati: thanks. that pretty much describes my probelm that I have. didn't see it after google for a while Mar 26 17:45:35 btw, i'm not using eclipse... Mar 26 17:47:00 0xFEEDBACC: You should be able to put them wherever as long as you import them correctly and put the correct package names at the top Mar 26 17:48:30 yiati, that's where the compiler gives the mentioned error... it just can't find the file... and i also think ant didn't even try to have that package compiled first... Mar 26 17:48:32 hey guys, I'm trying to force landscape on certain screen sizes (without making multiple activities). I'm calling setRequestedOrientation() but that seems to force a config change and a recreate when the user has their device locked in portrait orientation. Is there a way to start an activity in the orientation I want? Maybe an intent flag? Mar 26 17:49:03 i'm looking at build.xml, but don't find a searchpath or anything though... Mar 26 17:49:53 how does HEYZAP put notification atop any application? Looks like they’re using some low level android screen access.. how? Mar 26 17:50:10 Is there any way to move characters less than 1 pixel at a time withouting changing the overall dimensions of the screen? Mar 26 17:50:58 em: How can you move anything on a computer screen less than 1 pixel? Mar 26 17:51:12 em, well you could just do it in the onDraw(). Just add your translation to the canvas then super.ondraw(). Mar 26 17:51:32 there are defined structures for things like gradle. You can override them. if you're not using it I suggest you do. But dont reinvent the wheel. Look at the gradle sourceSet setup. Mar 26 17:52:36 em: you store your corrdinates as floats and cast to correct dimensions. Obviously theres no need to redraw unless its actually moved a pixel or more. (Unless animating of course). Mar 26 17:52:43 hey jayd16, what would that translation look like? Also it's not just to move characters less than 1 pixel, but all to move them at non-integer values like 1.5 pixels Mar 26 17:53:20 so many android/java dev experts here and all are putting there stuff into one single source file???????? Mar 26 17:53:34 em: http://developer.android.com/reference/android/graphics/Canvas.html#translate(float, float) Mar 26 17:53:37 i asked this question yesturday on here, but just for kicks: does anyone know of a way to turn off multitouch accross an entire app? (I want my app to only respond to single finger touches, not clicking multiple things at the same time) Mar 26 17:54:11 0xFEEDBACC what are you talking about? Who puts all their stuff in a single source file? Mar 26 17:54:24 JeremieDeNoob: android:splitMotionEvents="false" Mar 26 17:54:33 inside the view that contains buttons Mar 26 17:54:53 probably have to do it everywhere rather than be able to do it for the whole app Mar 26 17:54:54 em: Sounds like you want to modify the animation duration, I still don't understand how you could move non-integer values of pixels? Mar 26 17:55:25 at what interval have you set your apps to send data to google analytics? Mar 26 17:55:40 those of you who use google analytics Mar 26 17:55:42 rgr, to see the the corrdinates as floats do you mean the stride itself (character1 = character1 + 1) would be like + 1.5? Mar 26 17:55:47 he cant. The modelled coordinates can e.g it takes 10 "real world moves" of 0.1 pixel before the thing actually moves. hence modelled as floats. Mar 26 17:56:32 right Mar 26 17:56:55 No. I mean you MODEL the position as floats. so e.g x+=0.1. Or whatever. then transform that to the pixel location. Mar 26 17:57:34 Quacked: I usually just use the default Mar 26 17:57:40 Quacked: Which is 30 minutes Mar 26 17:57:48 even then you could model as ints where x is 0-9999999 or something and transform this to a small pixel representation on screen. The x+=100 or something still wont result in a full pixel change. Mar 26 17:58:17 (thats the way soemthing like fixed point works in the days before HW float ops. Mar 26 17:58:57 yiati, whats your reasoning behind that? Mar 26 18:00:19 rgr, any recommended documentation or examples of that? It definitely sounds like a good solution, but beyond my current knowledge. Mar 26 18:01:09 Quacked: Well I don't have much reasoning for it lol. Unless extremely live session data is important to you it doesn't need to update too often. Plus it's a network call and you probably don't want to be making too many. One every thirty minutes is negligable, but is still pretty darn up to date. Google decided it was a good default and I don't have any argument against it. Mar 26 18:01:26 I agree Mar 26 18:01:45 yiati, what have you set for "active session" in the analytics settings? Mar 26 18:03:11 Quacked: Default again which is 5 minutes. Do you have any reason to consider changing them from the default? Do it if you feel you need to, otherwise there probably isn't a good reason to consider it Mar 26 18:03:18 em: its just standard common sense. How computer programs work. Mapping "real world coordinates" (or game world) to the pixel representation. Keep everything in your worlds coordinates and then transform them for the output device. There are trillions of examples of this. Its rare you would really use pixels in your program for a game or something - espeically since so many devices have so many pixel sizes and dimensions etc. Mar 26 18:05:38 to do things in background like doing the request for the user login and so on what you should use? a service? Mar 26 18:05:46 Well I configured my orientation as such: boolean isPortrait = getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT; Mar 26 18:05:46 int frameBufferWidth = isPortrait ? 480: 800; Mar 26 18:05:46 int frameBufferHeight = isPortrait ? 800: 480; Mar 26 18:05:51 yiati, just thinking my users wont just idle for 3-4 minutes and then do something else in the app Mar 26 18:05:54 just to separate the classes and don't put the tasks in the activity file Mar 26 18:06:38 alex88, you can do pretty much anything, a separate class, use a message, use an Executor and something that extends runnable, futures, RxJava, Retrofit... Mar 26 18:06:44 it's a very wide question you know Mar 26 18:06:52 it depends on HOW you're doing your concurrency Mar 26 18:06:57 Quacked: probably not, but that won't effect the analytics, the analytics will still catch it Mar 26 18:07:07 Mavrik: I'm pretty new to android, so let me search what should be the correct way Mar 26 18:07:58 yiati, if a user just opens the app and click it, he will be shown as active for the next 5 minutes Mar 26 18:08:16 if a user opens the app and exits I mean Mar 26 18:08:58 well, Mavrik, just reading that services are sequential and can't be stopped makes me search another way, do you advice any? Mar 26 18:12:46 Quacked: this is just for real time analysis and won't affect the actual session time. You can't be sure if they opened closed and reopened because say they had to navigate away to check a text. Now you are 1) making the user do tons more network calls when you really could call it one session, 2) This is more work on you, and 3) This is just for live data and unless you want to sit in front of the panel staring at data that 100% reflects up Mar 26 18:12:47 to date events you'll be doing this all for nothing Mar 26 18:12:58 Quacked: I would personally say just don't worry about Mar 26 18:13:50 yiati, oh, so the session time is monitored by for instance EasyTracker.getInstance(this).activityStop(this); ? Mar 26 18:13:59 yep Mar 26 18:14:30 so as long as I have that in the mainactivity's onstop I should be good Mar 26 18:14:31 thanks Mar 26 18:14:48 I need to put in a bunch of event trackers as well Mar 26 18:17:06 I cant decide whether to have listeners on ads shown and clicked Mar 26 18:17:32 I mean, that statistic is already in admob Mar 26 18:23:14 Is there any plan to support websockets with OkHTTP? Mar 26 18:24:22 vanrysss: this is an ok solution but the problem is that I have multiple views which each contain multiple views which are all touchable Mar 26 18:24:30 Should I use an SQLiteOpenHelper for each of my tables or one per db? Mar 26 18:24:38 but I came up with a stackoverflow worthy answer: http://stackoverflow.com/a/22669692/783198 Mar 26 18:25:15 JeremieDeNoob: fair enough Mar 26 18:25:22 thank you for your help Mar 26 18:25:41 i had seen this solution before but was not successful again because I wasnt applying it to the right windows Mar 26 18:25:44 why do you want that behavior if you don't mind me asking? Mar 26 18:25:48 so this is the umbrella solution Mar 26 18:26:01 because I only want one button to be touched at any given time Mar 26 18:26:37 (each time a button is pressed, it minimizes this view and a new view appears with a new list of options (each option leads to different groups of sub options) Mar 26 18:26:59 thats why. because then if someone pressed two at the same time, the two resulting lists would open up Mar 26 18:28:17 how can I listen for when a user successfully shares data from my app with another app? I'm talking about Intent.ACTION_SEND. Mar 26 18:31:29 http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle) Mar 26 18:34:35 Ah, I'm going to use ormlite or greenDAO. SQL sucks Mar 26 18:35:51 autrilla: SQL isn’t that bad. If you really don’t like it, you could try using a ContentProvider instead. Mar 26 18:36:01 yiati, hmm.. thanks Mar 26 18:36:45 colintheshots, don't I still need SQL with content providers? Mar 26 18:37:19 autrilla: not necessarily. you could back a content provider with memory or disk directly. Mar 26 18:46:34 HI guys, is there a way to draw a circle using AndEngine? Mar 26 18:48:31 sDurgam: probably not Mar 26 18:49:32 yiati any alternatives possible? Mar 26 18:50:11 sDurgam: I was joking, http://bit.ly/1m6zX43 Mar 26 18:50:52 http://www.andengine.org/forums/development/how-do-i-draw-a-circle-t868.html Mar 26 18:51:26 anyone know if the paylicensing.jar from LVL is in any way open or usable without LVL? i only wanted signedData and sig so i can verify on my own server, I have no need for the rest of the LVL library but I wouldn't know where to begin stripping it all Mar 26 18:51:52 thanks rgr Mar 26 18:53:14 any question that begins with "can I x y or z" is invariably better off being translated into (1) google it. Then ask specifics here ;? I think thats what the lmgtfy from yiati was suggesting ;) Mar 26 18:53:52 or (2) try it Mar 26 18:54:33 i googled it , i tried ellipse URL u suggested already Mar 26 18:54:42 I had some issues with few imports Mar 26 18:54:49 There we go Mar 26 18:54:54 That's what we need to know Mar 26 18:55:07 i thought someone would suggest me better one so pinged here Mar 26 18:55:12 What you have tried, what you expect, and what you straight up don't understand even though you've tried Mar 26 18:57:48 error import org.andengine.entity.shape.GLShape; Mar 26 19:04:54 I am really confused right now. I have an app that launches into dashboard. From the dashboard the user can access several other screens, and each of those (considered my top level screens) also have the nav drawer. If I enter one of the activities, let's call it Foo, from the nav drawer, then open the nav drawer there, the back button will close the nav drawer. HOWEVER, if I go to Foo using the original UI button, back doe Mar 26 19:04:58 an activity Mar 26 19:05:01 yiati, would it be dumb to have tracker.set(Fields.SCREEN_NAME, "APP NOT IN FOCUS") in onStop? Mar 26 19:05:27 Quacked probably, yeah Mar 26 19:05:43 Quacked: Redundant maybe Mar 26 19:05:57 Looks good now that I update every one second, hehe Mar 26 19:06:08 but Im only working with realtime Mar 26 19:07:00 what kinda events do you tend to listen for? Mar 26 19:07:36 Im thinking Im gonna have it for the "next" button that brings up a new joke for the user Mar 26 19:07:58 to see how many jokes the average user reads Mar 26 19:08:25 Seems like events would be app dependant Mar 26 19:08:40 yeah Mar 26 19:08:50 just wondering what kind you use Mar 26 19:09:06 there could be so many if you have a big app Mar 26 19:13:29 theblang: stick a break point on the action for the menu. see if it goes there. clearly not it seems. Mar 26 19:19:02 are there ways to make the android virtual machine simulatior performance not suck as much? Mar 26 19:19:14 rgr I have checked the click listener for the drawer's listView, and also the click listener for the old UI button. They both launch the Foo activity using an Intent. That is what has me so confused. Both ways launch a new Foo activity, but if I go there from the nav drawer then Foo's back button closes the drawer, not so when I go there from the old UI button. Not seeing what could be different. Mar 26 19:19:35 I can't seem to get usable configurations out of x86 targets, and ARM targets run like shit on my MacBook Pro (quad core 2.2ghz) Mar 26 19:21:08 TSCHAKMac: http://www.genymotion.com/ Mar 26 19:21:16 Hi guys, how do you add a setOnClickListener for ArrayAdapter? ArrayList is simple but ArrayAdapter isn't Mar 26 19:21:17 Genymotion is the best Mar 26 19:22:29 colintheshots: maybe. websockets are weird Mar 26 19:23:06 JakeWharton: I understand. OkHttp was designed for HTTP. It looks like some folks are headed in that direction though. Mar 26 19:23:30 but most will be headed to HTTP/2 and/or SPDY/4 Mar 26 19:23:35 nvm Mar 26 19:25:19 JakeWharton: It was brought up in our shop. If OkHttp supports it, then it may be a drop-in replacement. Otherwise, I get to rewrite a lot. No rush. Mar 26 19:25:32 the nav drawer button probably registers soething based on the foo activity manifest. Mar 26 19:25:44 colintheshots: drop-in replacement for what? Mar 26 19:26:06 JakeWharton: OkHttp with HTTP REST Mar 26 19:26:18 with Retrofit Mar 26 19:26:31 over websockets? Mar 26 19:26:56 JakeWharton: It’s a possiblity, but I don’t think it’s decided. Mar 26 19:27:15 JakeWharton: Our iOS guy was pushing for it. Mar 26 19:27:54 I suppose another library under Retrofit would be close enough. Mar 26 19:28:06 i don't think that makes sense. websocket is full duplex whereas HTTP is half duplex. you'd be losing the benefits of websockets by doing that (other than the persisted connection which you can do with normal connection-reuse) Mar 26 19:28:45 Ah, so one would have to rewrite to take advantage of full duplex. Doesn’t really save anything. Mar 26 19:29:07 rgr I was wondering that too. But all I have is a name, label, screenorientation, and a windowSoftInputMode declared in the manifest for Foo. I had originally accidentally left a PARENT_ACTIVITY definition and was wondering if that might be doing something weird, but I took it out and still the same behavior. Mar 26 19:29:37 right. you'd need a custom protocol to take advantage of full duplex Mar 26 19:30:15 and if an always-on socket is what you want, OkHttp does that automatically by re-using connections to the same remote host Mar 26 19:30:30 rgr I could probably use onBackButton to fix it, but that seems kind of hacky. I'd rather know what is causing the difference Mar 26 19:31:03 JakeWharton: Okay, I’ll keep that in mind when we discuss the options. Thanks for the answers. I’ve only started looking into websockets. Mar 26 19:31:17 you'd be better off moving to HTTP/2 or SPDY which gives you HTTP semantics over full duplex (assuming multiple requests and responses are happening) Mar 26 19:32:08 Right and OkHttp handles SPDY out of the box Mar 26 19:32:15 and HTTP/2 Mar 26 19:33:17 Cool, it’s good to be armed with facts. So if the server end changes to those protocols, our Android app will be ready right away. Mar 26 19:33:58 yep! Mar 26 19:55:26 armed with facts :-D Mar 26 20:03:44 has anyone ever run into issues with the back button when using a navigation drawer, with it not closing the drawer but going back an activity? (so question here http://stackoverflow.com/questions/22671690/back-button-behavior-differs-depending-on-whether-i-entered-activity-from-the-na) Mar 26 20:19:42 any way to get gradle 1.11 working with IJ 13.1.1 do you know? Mar 26 20:23:07 hm, i thought somebody said it did. Mar 26 20:26:54 hi g00s Mar 26 20:27:02 hello rgr Mar 26 20:28:16 oh, looks like gradle-plugin 0.9.2 is out Mar 26 20:28:36 btw I got it working yesterday the way I wanted (flatfile repo) and then followed what you were trying to say and got maven local working with my library. very nice. BUT took some googling. I used uploadArchives and the maven plugin but think I should be using maven-publish now. opinion? Mar 26 20:28:50 man, i hate when there are no release notes Mar 26 20:28:56 heh. Mar 26 20:29:13 maven-publish is still incubating Mar 26 20:29:29 the gradle-plugins go with uploadArchives; i would stick with that Mar 26 20:29:37 plugin examples, that is of course Mar 26 20:30:12 i tried maven-publish in 1.9 i think, couldn't get it to work Mar 26 20:30:36 i think the problem is, the pom misses transitive dependencies Mar 26 20:31:22 can you cast your eye over this. can I get rid of the coreAarFile? theres only one library being built. https://gist.github.com/anonymous/9792635 Mar 26 20:32:15 and yeah its kind of sexy to do it the gradle way and then add/edit run configgurations in intellij to launch them, Mar 26 20:32:37 hmm … all i have, is uploadArchives { repositories { mavenLocal } } Mar 26 20:32:47 I should try builder 0.9.2 Mar 26 20:32:49 mavenLocal() Mar 26 20:33:04 I don't want to make build-tools 19.0.3 a requirement though Mar 26 20:33:10 heh. INterstingly there is no maveLocal publish example in the manual from what I saw. would have thought it a must. Mar 26 20:33:16 I'll try your way. Mar 26 20:33:37 rgr do you have the latest gradle-plugin examples, 0.9 ? Mar 26 20:34:02 but how do you create the maven ID that way? (ie the way I do with mavenDeployer there) Mar 26 20:34:15 its in the 'mavenLocal' folder Mar 26 20:34:18 you'll see :) Mar 26 20:34:28 ok. I'll go see. Mar 26 20:34:31 mavenDeployer() is for remote Mar 26 20:34:40 or local as my example shows ;) Mar 26 20:34:47 but I'll take a peek Mar 26 20:34:55 mavenInstaller() is for local Mar 26 20:35:22 you got that from the examples not the manual I take it? Mar 26 20:35:38 yeah. its as easy as it gets Mar 26 20:35:44 k. Mar 26 20:36:02 not the gradle manual, the android plugin samples zip Mar 26 20:36:11 which is good to have and study ;) Mar 26 20:37:03 so your file you posted, should get a little simpler, which is good ;) Mar 26 20:37:20 artifacts { } i think is for maven-publish Mar 26 20:37:47 sometimes the magic can be overwhelming ;) Mar 26 20:38:11 where did you get these samples? Jayway? Mar 26 20:38:39 bottom of this page Mar 26 20:38:39 gadzooks... bloody intellij is stuck in a "make" again and needs killing. ffs. Mar 26 20:38:40 http://tools.android.com/tech-docs/new-build-system Mar 26 20:39:13 ta. great name. Mar 26 20:39:17 gradle-samples-0.9.zip Mar 26 20:39:32 click on the right thing, or you go to google docs or someplace :| Mar 26 20:40:11 yeah, got em. Mar 26 20:40:38 now, while you're here : is there any "console" or way to dynamically query gradle records/vars etc? Mar 26 20:40:44 autrilla: you asked about GreenDao a few hours earlier Mar 26 20:40:50 eg "what is sourceSets" Mar 26 20:40:50 still interested? Mar 26 20:41:50 rgr hm, from the build script sure you can query sourceSets or modify it; but you'll have to read about gradle itself, kinda a big topic Mar 26 20:43:02 once again...every day ppl on here have probs with gradle but barely ever do you see eclipse/ant issues...so why all the hate on eclipse when the intellij setup clearly has problems still? Mar 26 20:43:38 because gradle is newish ... Mar 26 20:43:43 at this point i hvae to claim that steering newbs to intellij/gradle is a misservice Mar 26 20:43:53 and the tools for android integration are developing day by day. Mar 26 20:44:13 exactly so why are newbs told to use intellij/gradle? Mar 26 20:44:22 Im a noob and while there is a learning curve I love it. I used eclipse for a while and simply hated it. But all to their own. Mar 26 20:44:33 that's fine Mar 26 20:44:33 and also AS hides the gradle stull for the most common usage. Mar 26 20:45:25 the biggest issue genrally ispeople expecting gradle to be used in intellij but it isnt ... its still ant based from what I can gather (I started using gradle with it from day one as a learning exercises) Mar 26 20:45:35 but from now on i'm pointing this out when someone asks the classic ADT or AS question Mar 26 20:46:14 i haven't used android studio, which one does it bundle? Mar 26 20:46:24 a few teething problems for people who choose to move too gradle doesnt seem sever enough to recommend eclipse over intellij IMO. Mar 26 20:46:50 dunno, ask g00s. I opted for intellij since it meant more not less learning and understanding ;) Mar 26 20:47:07 except it's not a few...like i said, i see gradle issues come up nearly every day, while nary a problem with eclipse/ant Mar 26 20:48:21 not sure what you're learning dealing with a dodgy unstable pipeline Mar 26 20:48:22 g00s: sup? Mar 26 20:48:32 i see a lot of people having problems with eclipse, but honestly don't know why because it worked OK for me. as for ANT/android build scripts, its pretty limited, so there isn't much that can go wrong :) Mar 26 20:48:44 hi thepoosh Mar 26 20:49:01 g00s: most of the issues with eclipse are memory related i think Mar 26 20:49:05 ^^ Mar 26 20:49:09 myke the gradle stuff is solid these days. i think 1.0 is almost around the corner Mar 26 20:49:16 and 1.0 will be good Mar 26 20:49:23 0.9 is good for that matter Mar 26 20:49:29 one time eclipse crashed on me...since then i've stopped using eclipse editors and no more probs Mar 26 20:49:29 AS is a little more iffy Mar 26 20:49:34 and yes, gradle is superior to ant Mar 26 20:49:39 I suppose it depends where you look. I see people with eclipse woes all the time but then again it's far more stable and been out there for longer. But eclipse is moving the gradle way too I think. Mar 26 20:49:49 myke: that is knda strong Mar 26 20:49:53 *kinda Mar 26 20:50:14 lets discuss vi vs emacs ... much more productive ;) Mar 26 20:50:57 rgr: i use vim mostly because it opened once and I never managed to close it Mar 26 20:51:04 haha Mar 26 20:51:39 and now would be the time for this: http://xkcd.com/378/ Mar 26 20:51:43 emacs was actually the editor officially used by my cs classes at cmu Mar 26 20:51:49 no idea what they use now Mar 26 20:52:24 lol Mar 26 20:53:52 I have the samples but that little snippet you posted earlier actually puts your library in ~/.m2 / the local maven repo? Because it does nothing here. uploadArchives runs and nothing gets "uploaded". I'll look through the samples but if you could shed some light on how its supposed to know the maven artifact I would be grateful. Mar 26 21:00:25 so I'm looking at this: http://stackoverflow.com/questions/14900738/nested-fragments-disappear-during-transition-animation That can't be right, can it? Child fragments can't be used because fragment animations because they just pop away immediately? Mar 26 21:00:29 thepoosh, yes! Mar 26 21:00:38 well, i use it Mar 26 21:00:40 thepoosh, was having dinner, sorry for not answering Mar 26 21:00:47 np Mar 26 21:01:03 been using greendao for almost 2 years now Mar 26 21:01:41 thepoosh, I'm more experienced with the JPA and using something similar will probably help... SQL is a nightmare for me Mar 26 21:01:51 yes Mar 26 21:02:06 thepoosh, is it good in terms of performance? Mar 26 21:02:09 yes Mar 26 21:02:21 Great then, I guess I'll use it :) Mar 26 21:02:30 it has some issues with supporting m:n relations Mar 26 21:02:37 m:n? Mar 26 21:02:39 and some complex queries Mar 26 21:02:42 many to many Mar 26 21:02:58 I'll be using OneToMany, mostly Mar 26 21:03:00 and some issues with working with services Mar 26 21:03:03 And ManyToOne, of course Mar 26 21:03:26 you mean bi-directional 1:m? Mar 26 21:03:27 thepoosh, oh, the services might be useful for me. The user should be able to set up temperature alarms Mar 26 21:03:32 thepoosh, yes Mar 26 21:03:41 that works just fine Mar 26 21:04:09 i like it better than ormLite Mar 26 21:04:22 the query syntax is easier for me Mar 26 21:04:39 plus, the guy who wrote it is knda nice Mar 26 21:04:39 thepoosh, is it like the JPA? Mar 26 21:04:49 hmmm Mar 26 21:04:50 never used JPA Mar 26 21:05:08 yes Mar 26 21:05:15 http://stackoverflow.com/a/12479141/1056359 Mar 26 21:05:26 it's an annotation based ORM Mar 26 21:05:34 (ORMLite) Mar 26 21:06:00 thepoosh, according to the author greendao is faster Mar 26 21:06:09 it is Mar 26 21:06:24 if youre going to provide a samples you would have thought he would have added an index to actually say what the samples do. Mar 26 21:06:26 and I use greendao and prefer it to ormlite Mar 26 21:06:53 rgr: huh? Mar 26 21:08:42 ignore Mar 26 21:19:43 ughm don't use gradle-plugin 0.9.2 Mar 26 21:19:46 FAILURE: Build failed with an exception. Mar 26 21:20:00 *glares* Mar 26 21:20:27 i'm going to write an email to google suggesting you be their official beta tester Mar 26 21:20:30 oops, PEBKAK Mar 26 21:20:39 my fault, nm Mar 26 21:20:41 then a follow up one saying you're too stupid and not to bother Mar 26 21:20:53 :/ Mar 26 21:21:08 well, hm, build from command line works, but not AS weird Mar 26 21:21:18 yeah AS is weird, you're right Mar 26 21:21:19 kill caches Mar 26 21:25:30 ok, much better Mar 26 21:26:57 g00s: I found the maveninstaller demo. BUT.... I still need to define the artifact as in the paste I showed you. If I dont have the artifacts { archives coreAarFile } bit nothing is uploaded to mavenLocal. Any ideas? Mar 26 21:27:31 no; i just followed the example and it worked Mar 26 21:27:45 so you have your baseLibraryNames = xxx stuff ? Mar 26 21:28:39 you need group, archivesBaseName, and version Mar 26 21:31:36 group, archivesBaseName and version set yes. Mar 26 21:31:44 baseLibraryName` Mar 26 21:31:46 ? Mar 26 21:35:22 i corrected myself Mar 26 21:36:19 ah ok. just grepping now for other examples. nowt. so this logically suggests my lib isnt marked or is being recignised as a valid artifact/archive/aar for uploadArchive. Mar 26 21:56:35 g00s: success. Does work. phew. Cool. Mar 26 22:16:48 "WARNING: We've seen reports of the new processor generating PNGs that make the app crash on GB" oh my Mar 26 22:19:32 im trying to implement google leaderboards in my game and have been getting 'Sign In Error - There was an issue with sign-in'. have scoured the net and tried everything that I could find, but still getting the error. anyone know what I can do? Mar 26 22:50:38 Is there a way to return an intent from an async task? Mar 26 22:51:27 Sure, make doInBackground return the intent, then you get it as a parameter in onPostExecute() Mar 26 22:59:35 hello Mar 26 23:00:00 that works great Mar 26 23:00:03 im trying to work with some tabs but im getting an error The method setup(Context, FragmentManager, int) in the type FragmentTabHost is not applicable for the arguments (Activity, FragmentManager, int) Mar 26 23:00:28 mTabHost.setup(getActivity(), getFragmentManager(), R.id.realtabcontent) Mar 26 23:03:21 tabhost sucks Mar 26 23:03:34 what should i do? Mar 26 23:03:37 and why would tabhost.setup take fragmentmanager as an argument Mar 26 23:03:39 not use tabhost... Mar 26 23:03:52 whats the correct way? Mar 26 23:03:55 maybe you mean to use fragmenttabhost Mar 26 23:03:57 add them to navigation bar? Mar 26 23:04:00 but still, terrible Mar 26 23:04:15 actionbar Mar 26 23:05:08 hi all, i need someone to make an app for me, im willing to pay, we can discuss about details in pm .t.y Mar 26 23:05:29 read teh topic Mar 26 23:05:53 oops Mar 26 23:05:54 sorry Mar 26 23:06:46 How can I choose a calendar appointment for get content? Mar 26 23:07:03 shoudl i use the support library? Mar 26 23:08:06 createChooser does not allow me to select appointments even for */* Mar 26 23:10:13 g00s: in my previous mavenLocal upload using mavendeployer the aar included all the compile dependencies used to make the library. With the new method using mavenInstaller the aar does not. Any pointers on this? Mar 26 23:12:50 rgr uh oh, well i thought 0.9.0 had a bug if you 'added' to the pom, but if not it should work Mar 26 23:12:59 not sure Mar 26 23:16:03 Hi guys ! Mar 26 23:17:12 I've a little question: In the Google Translate app, do the "Spinners" that google uses to choose the language, are really spinners, or what does they uses there? Mar 26 23:19:59 marcoloco i havent seen it, but in calendar they give a button 'spinnerStyle' and pop something else up Mar 26 23:20:53 style="?android:attr/spinnerItemStyle" Mar 26 23:21:59 g00s: I see Mar 26 23:22:04 not sure tho Mar 26 23:22:22 does Calender.getTimeInMillis() give unix time? Mar 26 23:22:29 UTC? Mar 26 23:22:57 ah, found it Mar 26 23:23:01 java docs > android docs :P Mar 26 23:23:08 g00s: thanks! and do u know if there is a way to make the spinners more cool? because the default style is shit... or I'll need to use always another thing? Mar 26 23:23:17 * > android docs Mar 26 23:23:20 lol Mar 26 23:23:39 marcoloco i dunno, i suck at that stuff Mar 26 23:23:47 java docs aren't always aligned with android behaviour, so be careful Mar 26 23:24:05 g00s: jjaja thx anyway ! Mar 26 23:24:30 well I guess I'll find out if my times are years off :P Mar 26 23:24:36 going to try it in a few min Mar 26 23:32:34 it works :) Mar 26 23:35:18 Hello Mar 26 23:36:03 When I switch activities, my app changes from fullscreen to normal, and then back Mar 26 23:36:11 is there any way to prevent this? Mar 26 23:37:01 wild guess, but is your main app theme a fullscreen one? Mar 26 23:37:26 anyone here knows more about how android is rendering views after View.setVisibility is called? Mar 26 23:37:33 The theme declared in the manifest is android:theme="@style/FullscreenTheme" Mar 26 23:38:12 I'll bet that's your problem :P Mar 26 23:38:40 What's the problem? Mar 26 23:42:38 How do you rewind a music track to start from the beginning with the MediaPlayer? Mar 26 23:48:37 I'm trying to follow http://stackoverflow.com/questions/12575068/how-to-get-the-result-of-onpostexecute-to-main-activity-because-asynctask-is-a with the goal of returning an intent from a library function which I can then use in my client code to launch a library activity from whatever UI I want (button, etc.) but I'm running into some problems with the delegate/returning the intent. Any... Mar 26 23:48:39 ...idea where I'm going wrong? https://gist.github.com/guitarlover52/786d20c83ddd5e492cc4 Mar 26 23:57:03 i dunno, asynctask sucks. but your logic is busted anyhow Mar 26 23:57:14 you have Survey survey = new Survey(); Mar 26 23:57:31 but in onPostExecute if (survey == null) Mar 26 23:57:36 how can that happen ? Mar 26 23:57:57 i cant see how Survey would ever be null Mar 26 23:58:43 bankai_au i think we have another rxjava student Mar 26 23:59:04 w00t Mar 26 23:59:41 fair point, that is pretty stupid. It seems to be working though :) Mar 26 23:59:51 bankai_au question: are your labradors hot or cold observables :P Mar 27 00:00:12 oh I see Mar 27 00:00:16 how do you reset a music track with the Media Player?? Mar 27 00:00:20 the try/catch was messing it up Mar 27 00:00:27 yeeeah Mar 27 00:00:34 so you always thought you had a valid Survey Mar 27 00:04:01 ok, i'm thinking about doing something *crazy*. in my Service.onDestroy(), i was going to block the main thread by waiting() for a background thread to clean up and finish, then notify(). anyone see production code do this? i don't ever expect the BG thread to take long at all to close its sockets, etc Mar 27 00:05:17 ugh all you guys are collectively groaning at the craziness of this, indeed Mar 27 00:05:23 Hey anyone know if SmartImageView is safe for using in list views where you reuse SmartImageView objects? Mar 27 00:06:17 g00s, run it on a G1 and I guarantee you'll notice a freeze Mar 27 00:06:44 This should be on optimization test, "can it run on a G1?" Mar 27 00:06:46 oh wait, maybe a stream close() would block if it flushed, hmmm Mar 27 00:09:33 Say that I have a ListView where every row is a LinearLayout with two TextView children. Upon pressing the row, I want the background of the row to change color, and the text color to become white. Mar 27 00:09:41 Hi guys. Basic Android 'flow' question: I switched to using fragments, so I'm converting my UI thread to a FragmentActivity. All the 'UI' work I did in that activity, I should move to the Fragment class which uses the behaviour, correct? Do I still start my services and such from the UI thread? Or should I start those in the fragments class as well? Mar 27 00:09:58 I can get it to change color, but only on one of the two TextViews Mar 27 00:10:03 Would it be possible to create an application that intercepts TTS and changes the spellings of certain words before passing it on to the default TTS engine? Mar 27 00:10:20 ThomQ you are confusing the UI thread with … stuff Mar 27 00:10:34 with what stuff? Mar 27 00:10:35 yeah, your fragments can bind to services, etc Mar 27 00:10:56 the UI thread, is the main thread, right? The activiy you start the app with, correct? Mar 27 00:11:06 aka Base Thread, Main Thread, etc? Mar 27 00:11:19 the main thread handles events for all components, activities, fragments, services, etc Mar 27 00:11:39 so moving logic into a fragment … is still the main threaf Mar 27 00:11:41 *thread Mar 27 00:11:44 I thought I read the main thread is also the UI thread? Mar 27 00:11:49 that is true Mar 27 00:12:17 So, the main thread is stil lthere to communicate through, manage the fragments and stuff, but fragment related stuff should be done in the fragment class Mar 27 00:12:21 Cool cool Mar 27 00:12:41 i have fragments that bind to services in onStart and onStop Mar 27 00:13:17 yeah, I thought that would / should be possible Mar 27 00:13:20 basically the only thing that should be in the activity, is logic to route events from frag to frag, and decide what to show, etc Mar 27 00:13:31 yeah exactly, got ya Mar 27 00:13:32 at least thats my take Mar 27 00:13:55 This android stuff seems so overwhelmingly convovluted when you start out. But once you get it, it's quite simple Mar 27 00:14:13 well, through in some threads and it gets convoluted again Mar 27 00:14:16 :) Mar 27 00:15:18 I come from coding (mobile) games in Unity. Started with Javascript, then moved on the the Glorious C#. Combined with Unity's simple script reference, it was smooth sailing.. Then I decided to code a native android app:/ Been at it for 3 weeks now :D Mar 27 00:15:33 g00s: You usually have an answer or two - do you know if the pressed state of a ListView row gets delegated to *all* children, or just the first that accepts it? Mar 27 00:15:48 n20 i'm not good at UI Mar 27 00:16:48 g00s: Hypothetically speaking, if you had a non-UI ListView... :-)) Mar 27 00:17:06 * n20 bypasses the security. Mar 27 00:20:07 On Android tablets, are you able to have your app be full screen, where it doesnt show the nav bar at the bottom? Mar 27 00:23:42 how do you restart music with Media Player? Mar 27 00:24:05 another fragment n00b question: Upon pressing a button, I want to create a new fragment that covers the old fragment (for half the screen). Do I go for Nested fragments? Or can I achieve that by having 2 fragments in a FrameLayout? Mar 27 00:25:00 the 'old' fragment is covering the whole screen btw Mar 27 00:27:27 Any idea on my TTS question? Is there a better place to ask or look? Mar 27 00:31:52 Also fwiw, an existing app that already does this would be even better. Mar 27 00:36:40 hi all Mar 27 00:40:07 i have a problem with the sdk version. when i open adt, it requires an update to 22.6.2. however when sdk window opened, it shows that there is no update. my projects have errors. how can i fix it? Mar 27 00:42:03 is it bad to only have the highest density image in my res folder (lets say drawable-xxhdpi) and let android downscale the image vs having multiple copies of that image in all of the density folders? Mar 27 00:42:09 in order to save space Mar 27 00:42:32 halil, try maunally deleting what you want to update Mar 27 00:45:09 hello Mar 27 00:45:19 i updated my android sdk tools to 22.6 Mar 27 00:45:26 and now my eclipse cant find the sdk Mar 27 00:46:32 dunkel; in Eclipse you can set your SDK path, right? Check if that's still the correct one. Mar 27 00:46:42 You could also reinstall android plugin Mar 27 00:46:45 it has the correct path but says this This Android SDK requires Android Developer Toolkit version 22.6.2 or above. Current version is 22.3.0.v201310242005-887826. Please update ADT to the latest version. Mar 27 00:47:25 yeah, it wants you to update the android plugin Mar 27 00:49:13 but in all honesty; Eclipse sucks and is too buggy for my taste. Try out IntelliJ Idea and be amazed with stability and functionality Mar 27 00:49:43 * halil ThomQ dunkel2 it's the same problem with mine. i have downloaded the latest version from developer.android.com and put its path. it still has the same problem Mar 27 00:51:41 How do you restart a song using Media Player? Mar 27 00:55:59 halil dunkel2 in eclipse -> help -> check software update -> makes update Mar 27 00:56:33 your sdk is on the right version but your adt plugin that works in eclipse not Mar 27 00:56:34 no updates were found it says Mar 27 00:56:44 * halil Schoumi i have already done it. message returns that there is no update Mar 27 00:56:52 hum Mar 27 00:57:10 i've done this yesterday Mar 27 00:57:14 * halil Schoumi also in sdk window, version is 22.6.2 which is the latest Mar 27 00:57:14 im reinstaling the plugin Mar 27 00:57:34 i think im going to download it again :/ Mar 27 00:58:29 what should be the best way to use tabs inside a fragment? Mar 27 00:59:06 * halil dunkel2 viewpager? Mar 27 00:59:16 let me check Mar 27 00:59:32 im new on this im working on some tests to learn :) Mar 27 00:59:57 * halil dunkel2 you can find many simple examples about it ;) Mar 27 01:00:09 thank you gonna do some search Mar 27 01:01:54 dunkel2: halil in eclipse: help -> about eclispe -> click on android robot face -> you have the version of your plugins Mar 27 01:02:33 if it's not the latest maybe you need to check your update source Mar 27 01:03:34 * halil Schoumi hmm.. yes, it's not up to date 22.3.0 Mar 27 01:03:54 * halil Schoumi how can i upgrade it? Mar 27 01:04:23 help -> check for updates Mar 27 01:05:05 * halil Schoumi No updates were found. Mar 27 01:05:31 hum ok, go to Install new software Mar 27 01:05:50 My app uses a webview to load a url when the user clicks on a button I run javascript webview.loadUrl("javascript: // my job code here); my problem is that javascript prompt() doesn't seem to work in a webview is there another way that I can pop up a prompt or something where the user can copy something to the clipboard? Mar 27 01:05:58 and select Available software sites Mar 27 01:06:50 have you in some part http//dl-ssl.google.com/android/eclipse/ ? http or https Mar 27 01:08:33 oh try https Mar 27 01:08:45 i thought something was messed up Mar 27 01:09:01 * halil Schoumi yes? Mar 27 01:10:03 if you have http//dl -> try to edit and replace by https//dl like g00s says Mar 27 01:10:52 * halil Schoumi okay Mar 27 01:11:06 and try another check for updates Mar 27 01:11:13 after Mar 27 01:11:51 * halil Schoumi No updates were found. again :( Mar 27 01:11:54 Does anyone know what I can do? Mar 27 01:12:03 what's the best way to download JSON from a backend *only* upon first starting your app? Mar 27 01:12:08 hum Mar 27 01:12:33 this is strange Mar 27 01:13:05 i suppose you could store some persistent data like sharedpreferences once you download... Mar 27 01:13:57 Mango_Man: yeah i use a boolean in the share prefs for stuff like that Mar 27 01:13:57 which sounds pretty good. nvm :D Mar 27 01:14:27 sharedpreference or your db if the json is use to store data in a db Mar 27 01:18:20 Anyway, thanks for your attention Mar 27 01:18:24 all Mar 27 01:18:34 Good night Mar 27 01:18:46 good night Mar 27 01:18:49 (for Turkey :) Mar 27 01:28:12 I have a library from which I'm subclassing an Activity. That activity is creating a view with an opengl context, and is currently full-screen Mar 27 01:28:33 my goal is to, in an application that uses the library and subclasses the library activity, use that opengl view in just a portion of the application Mar 27 01:29:31 every time I try to replace the content view with a new one, and add the gl view to that, I get crashes at runtime related to opengl context, etc Mar 27 01:29:42 Does anyone have a recommended source/tutorial to follow for achieving my goals? Mar 27 01:36:11 My app uses a webview to load a url when the user clicks on a button I run javascript webview.loadUrl("javascript: // my code here followed by prompt () ); my problem is that javascript prompt() doesn't seem to work in a webview is there another way that I can pop up a prompt or something where the user can copy something to the clipboard? Mar 27 01:51:18 Should I write unit tests to check whether my list class's getList method returns a copy of the list, not the actual list? Mar 27 01:51:37 Or should that kinda go without saying. Mar 27 01:51:46 I feel safer having unit tests, but I don't want clutter. Mar 27 01:52:04 By "list class", I meant "class that uses a list". Mar 27 01:53:37 I'm trying to follow http://stackoverflow.com/questions/12575068/how-to-get-the-result-of-onpostexecute-to-main-activity-because-asynctask-is-a with the goal of returning an intent from a library function which I can then use in my client code to launch a library activity from whatever UI I want (button, etc.) but I'm running into some problems with the delegate/returning the intent. Any... Mar 27 01:53:38 ...idea where I'm going wrong? https://gist.github.com/guitarlover52/786d20c83ddd5e492cc4 Mar 27 02:01:09 TacticalJoke: I would test it if it were me. Mar 27 02:01:39 so why does the Matrix class's functions modify existing float' Mar 27 02:01:47 []s instead of allocating and return a new one? Mar 27 02:02:18 it makes dealing with a matrix stack more tedious Mar 27 02:03:41 codeguru: K. It does feel nice to test it. Mar 27 02:17:30 what's the best way to convert an array of JSON objects to an array of ContentValues for insertion into a SQLite db? Mar 27 02:18:46 meh, i guess i'm trying to optimize prematurely. might as well do it the straightforward way first Mar 27 02:29:03 freezway, to avoid allocations Mar 27 02:29:52 but I mean im gunna have to allocate them anyway for the matrix stack Mar 27 02:32:17 the it's up to you to do in a way that doesn't slow things down Mar 27 02:32:23 there's not way for the matrix to know Mar 27 02:32:34 i assume this is a GL matrix? Mar 27 02:32:37 yes Mar 27 02:34:06 im working on porting a game I wrote back in high school Mar 27 02:35:41 I'm just getting started in Android development and wondering what your opinions are on Android Studio vs. Eclipse. Mar 27 02:37:51 I also just started. Studio is nice, its based on IntelliJ which I prefer to eclipse anyway Mar 27 02:38:23 it is a little buggy though, nothing major, but occasionally certain parts (layout designer esp.) will crash Mar 27 02:39:56 "nothing major...crash"...hum Mar 27 02:40:19 its not like the whole ide dies Mar 27 02:40:21 just that part Mar 27 02:40:32 you can just close it and reopen and its fine Mar 27 02:41:33 I know eclipse is sort of the gold standard, but Android Studio sounds like it makes the process a bit easier so I was curious just how limited/buggy it might be. Mar 27 02:41:35 If you are wary about canary builds, another alternative is IntelliJ which can build Android apps out of the box Mar 27 02:41:58 unlike Eclipse where you have to download an addon or the ADT bundle. Mar 27 02:42:13 Hi everybody Mar 27 02:42:33 hello Mar 27 02:42:44 My feeling is that a lot of developers are moving towards IntelliJ and Android Studio. Mar 27 02:42:54 I've heard that as well, which makes me wonder what the diff is between Android Studio and IntelliJ. Mar 27 02:43:17 helloooo Mar 27 02:43:36 hello Mar 27 02:43:37 i think he hope an hello in return Mar 27 02:43:41 Not much from the little I've seen. Android Studio is based off of IntelliJ. Mar 27 02:43:45 some developer here? Mar 27 02:43:45 thanks gordon_ Mar 27 02:43:57 hey guys, I have a question. I have a project that targets androind-17 but the adt I downloaded has androind 22. How can I configure eclipse to use the sdk 17? Mar 27 02:44:15 Thanks for the input, folks. :) Mar 27 02:44:29 anyone got experience with maven android library project ? Mar 27 02:44:40 afahim_: You choose the target when you create the project in Eclipse. The version number 22 is unrelated to the API version. Mar 27 02:44:47 StriderZ: just man up and use vim and the command line like me :D Mar 27 02:44:51 StriderZ: also, hello! Mar 27 02:45:13 pabs: :) Mar 27 02:45:31 RicoSantanna: on a developer channel, i hope so Mar 27 02:45:38 that is actually what i use, but it's my personal preference and i wouldn't recommend it to anyone Mar 27 02:45:46 codeguru: when I import the project it says could not find androind 17 Mar 27 02:45:58 afahim_: The 22 you see is most likely the version number of the SDK tools Mar 27 02:46:08 i'm not creating a new project I have an old project that was made in android api level 17 Mar 27 02:46:24 afahim_: That means you have not downloaded API 17. You need to start the SDK Manager and download the API level that you wish to target. Mar 27 02:46:45 codeguru: yes precisely. how can I do that? Mar 27 02:47:01 afahim_: Find the SDK Manager on the Eclipse toolbar and click it. Mar 27 02:47:17 looks like I can only update API level, not download and install an older API version Mar 27 02:47:27 yes I do have the SDK manager open Mar 27 02:47:48 afahim_: Hrmm...can you share a screenshot? Mar 27 02:48:01 codeguru: for sure, just a second Mar 27 02:48:41 hi guys, any suggestion for http client with web socket support? Mar 27 02:49:23 codeguru: https://www.dropbox.com/s/6lp1tyl9thq36ru/Screenshot%202014-03-26%2022.48.43.png Mar 27 02:49:55 pabs: Hah! Sounds like a plan. Can at least use the syntax highlighting, though? :) Mar 27 02:50:37 afahim_: What happens when you click Packages -> Reload? Mar 27 02:51:08 codeguru: trying it out Mar 27 02:51:09 afahim_: check show update/new packages in Packages menu Mar 27 02:51:36 Schoumi: yes I have that option checked Mar 27 02:54:15 afahim_: and if you add obsolete? Mar 27 02:54:34 Schoumi: I wouldn't suggest that Mar 27 02:54:57 afahim_: Do you get a list of more available APIs or do you get an error? Mar 27 02:55:18 codeguru: I'm getting this error when I try to reload Mar 27 02:55:18 codeguru: in obsolete there's only old plateform that's not real release on phone market Mar 27 02:55:25 https://www.irccloud.com/pastebin/DzoX9z2F Mar 27 02:55:59 afahim_: ah taht my next question because 22.3 is a bit old Mar 27 02:56:08 Schoumi: checking obsolete doesn't show anything either Mar 27 02:57:25 your problem is that you're can connect (why?) to google server and download the list of available packages Mar 27 02:57:29 afahim_: Go to Tools -> Options and check "Force https..." Mar 27 02:58:03 afahim_: It should do an automatic reload after you click OK. Mar 27 02:58:19 It looks like you have a firewall blocking the SDK manager from querying updates. Mar 27 02:58:48 codeguru: yes the force option has already been checked. Still not loading packages Mar 27 02:59:21 anyone created android library project for maven ? Mar 27 02:59:29 in a browser you have something when you go to this adress :http://dl-ssl.google.com/android/repository/repository-8.xml ? Mar 27 02:59:33 afahim_: Mar 27 02:59:33 afahim_: Then I suggest googling the error message and seeing if you can find other solutions. Mar 27 02:59:49 unfortunately, I have to go now. Good luck **** ENDING LOGGING AT Thu Mar 27 02:59:58 2014