**** BEGIN LOGGING AT Thu Dec 26 02:59:59 2013 Dec 26 03:00:02 Can anyone tell me which is better (preferred) assigning an onClick in the UI view or using implements onClickListener? Dec 26 03:00:18 Mobclix is the big non-Google mediator...I don't know how well or not they handle Admob Dec 26 03:00:48 I use Admob, Millenial Media and Inmobi, all are good. Inmobi was a hassle to set up two years ago, don't know if that improved. Dec 26 03:00:53 Catharsis: butterknife is great for onclicks Dec 26 03:01:13 Catharsis: never do onClick in XML Dec 26 03:01:19 desmin88: What on earth is butterknife? Dec 26 03:01:30 JakeWharton: can you explain why? Dec 26 03:02:04 can't be used outside of activities, uses reflection for invocation, creates a tight coupling from layout to context Dec 26 03:02:07 not refactor safe Dec 26 03:02:23 iI'm fairly new to Android dev and just trying to school myself in best practices Dec 26 03:02:26 any tips on defining a custom theme for an android app? (would love links and books) Dec 26 03:02:45 JakeWharton: Ah okay that makes sense Dec 26 03:03:21 Makes me wonder why it's there in the first place then Dec 26 03:03:25 Legacy perhaps? Dec 26 03:03:54 yeah it's been around for a long time Dec 26 03:05:05 JakeWharton:Right not been removed just probably deprecated, athough I have found no documentation (as yet) telling me so Dec 26 03:05:27 I so hate then when learning a language at times Dec 26 03:05:35 unclear deprecation Dec 26 03:06:23 Or maybe I just don't know where to look Dec 26 03:06:27 Thanks JakeWharton Dec 26 03:07:12 Catharsis: when you get a nice foundation of the android api, look into all the great apis by JakeWharton/Square Dec 26 03:07:23 once you know how to do it all the hardway, then use those libraries Dec 26 03:08:16 desmin88: Yeah I tried to start to use Cobold2D is it.. just confused matters so I went back to basics Dec 26 03:08:33 Really want to create a 2d game I have in mind Dec 26 03:08:43 but have to learn to walk before I can run Dec 26 03:10:15 Made $135 so far today on my apps...five more hours to go Dec 26 03:10:48 The next few days should be good too...a lot of people who get tablets/smartphones as gifts don't mess around with them until the next day Dec 26 03:14:16 cool Dec 26 03:14:23 * dragorn wonders if his has gotten any traffic Dec 26 03:14:49 heh. Nope :P Dec 26 03:15:10 one. I guess that counts. :P Dec 26 03:15:15 hello and merry christmas all :) i'm using eclipse debugger and android 2.3.5. is it possible for the debugger to catch a RuntimeException when one is thrown? Dec 26 03:15:43 sorry not "catch," rather, "break on" Dec 26 03:16:32 with other exception types i didn't have a problem, but this one, possibly because it's special, isn't working when i add it as a "caught and uncaught" java breakpoint exception Dec 26 03:18:14 does the stack trace not explain where/when/why it happened? Dec 26 03:23:15 hmm Dec 26 03:24:31 i think i've made a mistake Dec 26 03:24:42 right now i'm looking at a stack trace but Dec 26 03:24:46 it's all JVM (no debugging source for android.opengl.GLSurfaceView i suppose) Dec 26 03:25:59 http://pastebin.mozilla.org/3864319 Dec 26 03:28:32 i thought i wasn't getting a stack trace because it wasn't appearing in the part of the eclipse gui i'd come to expect it in Dec 26 03:29:04 * hdon tries to understand what the actual error is Dec 26 03:29:14 oh, this isn't a stack trace at all Dec 26 03:29:22 this is just a disassembled class Dec 26 03:30:11 oh, i see.. i do have a stack trace, but the stack is very shallow (only one function, GLThread.run()) Dec 26 03:30:20 it's definitely possible to crash things inside native code, too Dec 26 03:31:15 yeah, that's something i'd considered. don't know what i'd do then. i don't know if eclipse will let me debug it. Dec 26 03:31:43 not that i'd really want to, because that's probably a long route for a simple mistake i could find more easily by examining my own code Dec 26 03:51:51 Can anyone help me with this http://puu.sh/5YNkj.png Dec 26 03:52:19 new to development Dec 26 03:52:20 cripto Eclipse or Android Studio? Dec 26 03:52:27 Android Studio Dec 26 03:52:44 and you've referenced the support library in build.gradle? Dec 26 03:53:29 if this is correct http://puu.sh/5YNsE.png Dec 26 03:53:58 yep. and you've installed the support library repository in the sdk manager? Dec 26 03:54:35 this is what I downloaded http://puu.sh/5YNwE.png Dec 26 03:55:15 hmm. not sure then Dec 26 03:55:15 well, I did the entire extras folder. But Im assuming thats the one I needed Dec 26 03:55:45 hey i need to destroy an activity from another one Dec 26 03:55:47 how could i to do this? Dec 26 03:56:06 leslie: then I had to add it to the project using the "project Structure" menu. Right? Dec 26 03:56:28 leslie: all the forms say to add it to the modules. Dec 26 03:56:39 leslie: but I have two of them http://puu.sh/5YNCJ.png 0__o Dec 26 03:56:53 cripto, you didn't install the repo Dec 26 03:57:27 pfn: can you tell me more. Im not sure what you mean Dec 26 04:00:25 look in sdk manager Dec 26 04:00:31 install support repo Dec 26 04:02:20 pfn: oh, I have that too. http://puu.sh/5YNSI.png I have the entire extras folder Dec 26 04:03:03 cripto try a clean build Dec 26 04:03:10 then just add the library to your build.gradle as documented, and you're done Dec 26 04:04:28 leslie: How do I clean and build. Im using the play button in android studio Dec 26 04:04:52 I forget what the command is in AS Dec 26 04:05:03 but from the commandline it'd be ./gradlew clean Dec 26 04:05:09 build > rebuild project Dec 26 04:06:15 if you've only just added the dependency, you need to sync the IDE model with the gradle model Dec 26 04:06:27 there's a button on the toolbar and also one in the gradle window Dec 26 04:08:20 JakeWharton leslie the rebuild didnt work Dec 26 04:08:32 http://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio Dec 26 04:08:50 this says I have to add it to my project using the menus. is this correct. Dec 26 04:09:31 dunno. never used the UI Dec 26 04:09:41 always just messed with the build.gradle manually Dec 26 04:10:26 hmm, what about this http://puu.sh/5YOgg.png Dec 26 04:10:28 is that ok Dec 26 04:11:56 cripto, try Tools > Android > Sync Project Dec 26 04:13:21 Actually guys, I just fixed it. File > Project Structure > Libaries > Add Android-support-v4 Dec 26 04:13:27 thanks you leslie for trying Dec 26 04:13:31 thank you JakeWharton Dec 26 04:20:00 how to prevent another app from uninstall our app? Dec 26 04:20:10 is the only possible way is to change the package name? Dec 26 04:21:07 another app can't uninstall your app, it can only prompt the user to uninstall it. I don't believe you can prevent that Dec 26 04:22:01 yeah. they can prompt the user to uninstall it. right now it's happening from our competitor. the new software update requires them to uninstall our apps before they can use their app Dec 26 04:22:48 it's kinda unethical I think Dec 26 04:24:32 well, it's against the Play Store guidelines, from what I can tell Dec 26 04:24:44 "Apps must not encourage, incentivize, or mislead users into removing or disabling third-party apps except as part of a security service provided by the app." Dec 26 04:28:05 Would it be okay to start using Android Studio in production? I realise it's officially still an early preview, but it'd be worth it if the productivity improvement is good enough. Dec 26 04:30:42 Overv: sure why not? Dec 26 04:31:06 desmin88: perhaps there are still essential features missing/annoying bugs Dec 26 04:31:19 i have no bugs Dec 26 04:31:27 although ymmv Dec 26 04:31:35 it seems fine enough for production Dec 26 04:31:37 desmin88: is it easy to get into gradle if you've only worked with ant? Dec 26 04:32:22 gradle has simpler defaults Dec 26 04:32:53 gradle is real easy. Dec 26 04:33:22 and not much trouble getting stuff like ABS to work? Dec 26 04:33:36 nope Dec 26 04:33:56 I'd say it's easier Dec 26 04:34:11 though you might want to use AppCompat instead Dec 26 04:35:41 having dependency management is a nice improvement over the old ant stuff Dec 26 04:42:13 i have a very basic app that prints some information into a textview, i'm using runonuithread to run some other logic and hoping to update the textview before sleeping for a couple seconds, and running in a loop for x times. it works in the sense that i can see my logging and when it hits x number of runs it shows the correct information in the emulator, but while it's actually running in the emulator the title bar disappears and i never see any of the up Dec 26 04:45:18 you're not sleeping in the UI thread, are you? Dec 26 04:46:56 of course i am. :) i guess i should have gathered that i shouldn't have been doing that. Dec 26 04:48:24 should i instead be creating a new thread and using runonuithread and sleeping there? Dec 26 04:48:56 do as little as possible in the UI thread, otherwise your app will be unresponsive Dec 26 04:49:27 so yeah, what you described would work Dec 26 04:54:05 yeoj http://developer.android.com/training/articles/perf-anr.html Dec 26 04:54:50 use an asynctask, that's what it's there for Dec 26 05:05:45 thank you both Dec 26 05:11:34 What is the choice of IDE/setup here in #android-dev? Android Studio is using 1.16GB in addition to the emulator in RAM.... Dec 26 05:14:42 jmfurlott: what do you expect? Dec 26 05:17:45 desmin88: vim + all the stuff intellij automates :)) Dec 26 05:18:27 1.16gb seems a little high but with the emulator and project open that sounds about right Dec 26 05:19:13 emulator is taking another 600 Dec 26 05:19:30 sounds about right Dec 26 05:20:01 wow really? I haven't done Android since Eclipse and I thought this would be a lot better Dec 26 05:27:04 I've had an app on the Android Market for over 2 years, and its active installs are at <9%. Dec 26 05:27:18 I bet that gets me penalized pretty heavily in the search results. Dec 26 05:29:18 Tons of spam apps and unrelated apps appearing in the search results for the main keyword long before my app. Oh well, they probably have higher active installs because the only people installing them have no clue how to uninstall an app. Dec 26 05:31:08 For the exact same keyword, "Google Applications Search" ranks my app first place while Google Play ranks it at about 50th place. Dec 26 05:37:04 kbwt: I am sure that the Play Store is weighting it down unfortunately Dec 26 05:42:38 hi all, and merry xmas! i'm looking at glVertexAttribPointer(). how do i specify my Buffer and an offset into the Buffer? Dec 26 05:43:04 it seems there are two overloads of this method, but one accepts a Buffer, and the other accepts an offset, not both! Dec 26 05:48:34 hdon: http://www.opengl.org/wiki/Vertex_Buffer_Object#Vertex_Buffer_Object Dec 26 05:48:43 * hdon clicks Dec 26 05:50:46 oh, so i cannot use glVertexAttribPointer() to give a handle to my Buffer if i want to have multiple vertex attributes interleaved in the same Buffer? i must create a VBO? Dec 26 05:51:35 Yeah, you have to use a VBO. Dec 26 05:51:43 ah, thank you kbwt and zinx Dec 26 05:51:45 well, i'm not sure where it starts when you pass it a Buffer in java Dec 26 05:52:07 Buffer has some state, some of which is the start point.. but a VBO is going to be more performant in many cases anyway Dec 26 05:52:15 oh Dec 26 05:52:17 good point zinx Dec 26 05:52:26 i'll give that a try quickly and plan for VBO in either case Dec 26 05:52:45 zinx, i think you're right Dec 26 05:52:59 in C (which OpenGL/GLES/etc were designed for), it's just a void*, so in C you just do pointer math :/ Dec 26 05:53:05 obviously not an option in Java :) Dec 26 05:53:35 but yeah, try setting the position/limit/whatever on the Buffer Dec 26 05:53:47 Android has been known to occasionally ignore that for some functions, though. Dec 26 05:53:58 yeah Dec 26 05:54:17 i'm much more comfortable in the systems programming world Dec 26 05:54:38 but java is simple in some specific ways that make it attractive for certain uses Dec 26 05:54:45 thanks for the help zinx and kbwt Dec 26 05:54:53 np, hope you figure it out :) Dec 26 06:01:52 zinx, it worked! Dec 26 06:02:12 zinx, i will "upgrade" to VBOs when i get a chance, but this is not a serious project, just a toy for girlfriend Dec 26 06:02:20 thanks again and merry xmas Dec 26 06:06:35 hmm, interesting: https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/ Dec 26 06:06:56 they deprecated the old .spec files and replaced them with xml Dec 26 06:07:34 doesn't seem like it adds that much information though Dec 26 06:08:18 the typedefs seem to still be mostly plaintext typedefs with some (useless) tags in between Dec 26 06:09:32 still no way to validate extensions thoroughly, like GLX_EXT_swap_control_tear allowing negative parameters to glXSwapIntervalEXT Dec 26 06:24:42 Hello everyone. Merry christmas ! I'm stuck with a problem I described on stackoverflow : http://stackoverflow.com/questions/20764214/android-speak-failed-tts-engine-connection-not-fully-set-up if someone can help me, it will be very very nice :) Dec 26 06:59:00 Has anyone here used mopub? Dec 26 07:33:17 what is mopub desmin88 Dec 26 07:33:21 /j #c++ Dec 26 07:34:11 Looney: http://www.mopub.com/ Dec 26 07:35:26 lately, tried admobs though Dec 26 07:40:18 hey guys Dec 26 07:40:30 how do I want to use holo theme progress bar Dec 26 07:40:46 how do you want to? Dec 26 07:40:47 don't I'm ok if it defaults to native progress bay < 3.0 Dec 26 07:40:53 wat? Dec 26 07:41:01 I get an error Failed to find style 'progressBarStyle' in current theme Dec 26 07:41:08 for 2.3 Dec 26 07:41:39 so My question is how do I define this theme for < 3.0 Dec 26 07:41:50 my answer is Dec 26 07:41:54 support sdk 14 and up Dec 26 07:43:01 I have to support sdk 8 Dec 26 07:43:09 says who Dec 26 07:44:09 says 30% of my existing customers Dec 26 07:49:20 define customers Dec 26 08:05:10 That cuts out GB Dec 26 08:06:25 Froyo, meh :) Dec 26 08:18:07 I decided I hate Android Studio Dec 26 08:18:15 it's just not nice to Eclipse users Dec 26 08:18:23 and there's no real documentation Dec 26 08:28:43 question. Do i have an alternative/substitution for logcat? any OSS project out there? Dec 26 08:30:57 i use pidcat http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/ Dec 26 08:33:17 zipc thanks man! looks v. promising Dec 26 08:37:18 thepoosh: what do you expect using an alpha product Dec 26 08:37:58 finding it at least easy to setup Dec 26 08:38:06 it's freaking impossible Dec 26 08:38:20 desmin88: Dec 26 08:38:22 its pretty easy i think Dec 26 08:38:28 i dunno Dec 26 08:38:36 imported my project from Git Dec 26 08:38:49 and pointed to my gradle library Dec 26 08:38:54 and still got a freaking error Dec 26 08:39:01 which is Dec 26 08:43:59 hi guys, whats the best way to communicate from a Service to an Activity. Dec 26 08:45:42 jack10: google "android communicate from a service to an activity" Dec 26 08:45:49 eventbus/binding/broadcasts Dec 26 08:45:52 depends on your use case Dec 26 08:47:19 T have a gps tracking service and want to draw the route to a map. Dec 26 08:50:04 desmin88: unable to load class 'org.gradle.artifacts.result.ResolveModuleVersionResult' Dec 26 08:50:25 at first it told me Gradle 1.8 is lower than 1.8 Dec 26 08:50:30 and then I got this Dec 26 08:52:38 well that sucks Dec 26 09:00:27 hmmm Dec 26 09:00:31 that was helpfull Dec 26 09:50:38 good day, everyone Dec 26 10:15:06 Hello, is there someone who have experience with the TTS Engine please ? Dec 26 10:23:38 in a loop i found the item that contains the search text but how to set that item as current selected item in listview? Dec 26 10:24:01 can someone help Dec 26 10:25:12 i could not find any example to set any litstview ite, as current item displayed as selected Dec 26 10:25:45 item** Dec 26 10:29:34 i want to scroll list to the item i searched in a loop, how to do it plz tell Dec 26 10:47:15 hi, i'm having an issue with my apk, which crashes when i run it with: `Caused by: java.lang.SecurityException: META-INF/MANIFEST.MF has invalid digest for com/badlogic/gdx/utils/arial-15.png' -- but when i run `jarsigner -verify android/target/aligned.apk -keystore ~/.android/debug.keystore -verbose' i get the following on that line: `smk 21814 Thu Dec 26 01:33:52 GMT 2013 com/badlogic/gdx/utils/arial-15.png' -- am i missing something? Dec 26 10:47:59 ahri: try clean build Dec 26 10:48:44 the problem is likely in my build chain -- i've constructed it myself to try to get a better understanding of android/apks by rolling my own Dec 26 10:49:04 i have done a clean build with no improvement Dec 26 10:49:17 perhaps it's the way i'm using jarsigner? Dec 26 10:51:38 thepoosh: https://gist.github.com/ahri/8132214 -- this is what i'm executing to sign my apk Dec 26 10:53:03 any idea how to fix this: gradle Task 'wrapper' not found in project Dec 26 10:54:40 thepoosh: unsure how relevant, but here's the content of the MANIFEST.MF - https://gist.github.com/ahri/8132244 Dec 26 10:57:03 thepoosh: for completeness; the jarsigner verify output: https://gist.github.com/ahri/8132266 Dec 26 10:59:53 so i guess what i come back to is: what does "invalid digest" mean? is it invalid because it's the wrong format, or is it invalid because the file contents don't match up to the sign/digest? Dec 26 11:06:24 what is a good tool to automate ui tasks in a third-party app? Clicking buttons, filling in text fields etc Dec 26 11:06:42 oh yeah; another bit of information: this is not happening at install-time -- the apk installs fine -- it's at runtime that it crashes Dec 26 11:06:52 not like espresso or robotium which are for ui testing your own app Dec 26 11:06:57 hi. what lines need to be changed so i am able to compile/build android for the armv5 cpu ? Dec 26 11:10:00 Hello, is there someone who have experience with the TTS Engine please ? Dec 26 11:11:47 oh, i guess all I needed was uiautomatorviewer Dec 26 11:35:36 it possible replace front camera in android to /dev/video0?? Dec 26 11:39:49 guys, how does OnSharedPreferenceChangeListener work? If I change prefs in one activity/fragment but set that listener in another one, will I get a callback? Dec 26 11:48:23 hi! I'd like to open a config activity once a widget is placed on the home screen. google tells me that with appWidgetProvider, I just have to place the relevant lines in onEnabled, which seems to be untrue for the stock aosp launcher. works a-ok with adw, but the stock launcher seems to call onEnabled once the widget is picked up, not once it's dropped, so my activity cancels the widget placement. is there a better way to do this? Dec 26 11:49:01 one of those days i guess, none of the bloody emulators are starting. sigh. Dec 26 11:49:05 (at least I think it's the stock aosp launcher, the one that comes with the 4.1.2 emulator) Dec 26 11:59:35 storkme: I use my Wildfire and I can bet that it is faster than your emulator instances :-P Dec 26 12:06:20 hi Dec 26 12:06:55 anybody there Dec 26 12:07:24 i am newbie to android and i am exploring the developers.android.com.. Dec 26 12:07:52 in that camera face recognization.. its not recognizing the face.. Dec 26 12:08:02 but the function is getting called Dec 26 12:10:26 Looney: naw it isn't Dec 26 12:11:30 think what you want to think and let me think what I want to think Dec 26 12:13:12 if it helps you sleep at night i guess Dec 26 12:15:16 This: http://gyazo.com/fd70a1cd4d0fde5764698c668987e009.png or this: http://gyazo.com/1b1e3169fbb7149643c2b71715c4e102.png Dec 26 12:16:57 tough call. depends how popular each is, imo. The larger example looks nicer, but obviously you can only fit four on a screen at a time. If however 90% of your users are using those four, it's probably a pretty safe bet. Dec 26 12:19:46 anybody know facedetection i am facing small problem Dec 26 12:21:26 storkme, I like the looks of the larger one best too, but I could add a search bar on the actionbar to make it easier... It's inspired on Google Play Music Dec 26 12:26:47 reinstalled haxm and that was that... Dec 26 12:31:59 @autrilla or you could simply resize the large photos to fit 3 results per line effectively utilizing the available whitespace Dec 26 12:32:30 Looney: Then you're not using the hardware accelerated x86 emulator. Dec 26 12:32:55 are there some best practices for an Android Studio workflow where some of the library projects are independent of the main project? Dec 26 12:33:28 ie, I have a library project in Eclipse currently which is in a different git repository than the applications using it Dec 26 12:33:39 hmm, will try it out kakazza Dec 26 12:34:08 Be sure to read the instructions carefully. Downloading HAXM using the SDK Manager is not enough, you have to manually install it. Dec 26 12:34:19 as far as I understand it Android Studio forces you to have a directory structure in which the application project and library projects are part of a hierarchical directory structure Dec 26 12:34:27 so should I use git submodules? Dec 26 12:34:45 MDijkstra: I guess you could have it as a local dependency in gradle? Dec 26 12:35:08 Like back in the days when we had to use ABS (a library project) it was defined as a dependency. Dec 26 12:35:30 I'm not sure how'd that would work for local projects, I guess you'd have to deploy to the local maven/gradle repo, never done that before, tho. Dec 26 12:36:41 kakazza: that's an option, yes, if I can specify an aar as a local dependency Dec 26 12:36:47 which I'm guessing is possible Dec 26 12:43:04 Qt Creator is quite neater than Eclipse, and yes I am not speaking from Android perspective :-) Dec 26 12:43:13 anybody know camera facedetection Dec 26 12:43:25 No, sorry. Dec 26 12:44:06 can anyone help me to understand why a digest check on a resource file might fail at runtime? my apk installs fine Dec 26 12:45:09 the exception is `java.lang.SecurityException: META-INF/MANIFEST.MF has invalid digest for com/badlogic/gdx/utils/arial-15.png' Dec 26 12:45:36 but jarsigner -verify says it all matches up Dec 26 12:45:50 (and like i said; it installs!) Dec 26 12:47:56 try renaming it to arial_15.png ahri Dec 26 12:49:08 Looney: oh, is there a restriction on filenames? this is from a 3rd-party lib :\ Dec 26 12:49:57 I think that there is no harm in retrying/modifying to see if you can achieve what you want to Dec 26 12:59:49 finally got the amazon free 5$ credit Dec 26 12:59:59 but SwiftKey is 3.99 now :-( Dec 26 13:00:09 is SwypeKey any good Dec 26 13:03:31 I use the Google Keyboard to swipe. Dec 26 13:03:45 I used to use Swype. Dec 26 13:04:09 swiftkey is good, but yeah i tend to use the google keyboard now Dec 26 13:05:33 Looney: i tried changing the filenames to use underscores, now it can't find them (it's a 3rd-party lib) -- it first opens a .fnt of the same name, so it's now failing there. notably when the filenames are expected it must be opening up that .fnt file and then later failing on the .png -- so i'm pretty confused Dec 26 13:05:59 I still use swiftkey mainly because it's the only keyboard which supports multiple languages without switching Dec 26 13:06:02 (afaik) Dec 26 13:06:03 *when the filenames are _as_ expected Dec 26 13:06:43 MDijkstra: That's a major plus. Pretty much the only feature I am missing from the Google Keyboard. Dec 26 13:07:17 yeah, same Dec 26 13:08:11 Looney: to clarify it's a file not found error when i renamed them, whereas it's a digest error on the 2nd file it opens when the filenames are unchanged Dec 26 13:08:14 Google doesn't seem to realize that most users write english and their native language in the same sentence Dec 26 13:08:38 totes Dec 26 13:09:13 a simpleadapter has the row i need to bring up front and selected in the listview, how you do that? Dec 26 13:09:44 i got row number Dec 26 13:10:02 or you can say index/position whatever Dec 26 13:10:41 look like nobody gona answer any of my question here in this channel Dec 26 13:11:02 Hello, is there someone who have experience with the TTS Engine please ? Dec 26 13:11:12 same question i asked few hours ago and got no response Dec 26 13:11:59 Seraf, i guess the experts are on long week ends Dec 26 13:12:44 this chanel is the most nasty one i ever used Dec 26 13:13:06 jaami-win, yes, it's what I think ... I asked on g+ community, stack overflow (someone downvoted my question without any comment) and asking since 2 days here :( Dec 26 13:14:06 yeh right, i guess i have to wait for next month to,have my questions answered Dec 26 13:14:21 jaami-win: What exactly are you trying to do? Dec 26 13:14:42 Hello, anyone know how to launch an intent to open a specific sms in the --drafts-- folder? Dec 26 13:15:15 in a loop on adapter i found row that got the search string, now need to bring up the actual item in the listview Dec 26 13:15:24 jaami-win: nobody answered my question either; that doesn't mean everyone hates me ;) Dec 26 13:16:19 hope so, did not mean to offend anyone Dec 26 13:16:41 I doubt many people use the TTS engine. Sometimes you just have to do your own debugging. Read framework source, step through it with a debugger, etc. See if you can figure out why you're getting the result you're getting Dec 26 13:16:45 Do you want to show it or highlight it? Dec 26 13:16:55 Or possibly both. Dec 26 13:17:30 i want to show it and highlight it, if the item is deep down somewhere in the list. just neet to bring that up make it current row Dec 26 13:18:08 let me paste my code and really thanks for asking what i needed Dec 26 13:19:43 https://developer.android.com/reference/android/widget/ListView.html#smoothScrollToPosition(int) Dec 26 13:19:53 Could be what you're looking for. Dec 26 13:20:12 thanks SimonVT to answer me. I already tried to do this, reading many and many tutorials everywhere. The only result in google with my error is the source code of android on github :s I tried to understood why it fails but didn't understood, and I'm little lost as I began Java with this project Dec 26 13:20:35 There's also https://developer.android.com/reference/android/widget/ListView.html#setSelection(int) Dec 26 13:22:09 kakazza, i will check links , meanwhile you can check my code? plz see the afterTextChanged Dec 26 13:22:17 http://pastebin.com/DL2ugYJi Dec 26 13:23:15 Seraf: There's a tts sample in the sdk, have you tried that? Dec 26 13:25:22 Top of the morning to y'all. :) Dec 26 13:25:27 (Hi SimonVT!) Dec 26 13:25:49 :) Dec 26 13:26:09 SimonVT, didn't tried this sample Dec 26 13:27:06 Get it running then you at least have a starting point that works.. Use that to get more comfortable with the api Dec 26 13:27:52 thanks SimonVT I will try with it Dec 26 13:31:26 SimonVT, may i ask something if you are not too busy? Dec 26 13:34:55 If you have questions about android dev, just ask the channel Dec 26 13:36:01 ok, thanks SimonVT Dec 26 13:58:15 This: http://gyazo.com/fd70a1cd4d0fde5764698c668987e009.png or this: http://gyazo.com/1b1e3169fbb7149643c2b71715c4e102.png ? First is a ListView, second is GridView on autoFit Dec 26 14:11:13 autrilla: i like the GridView better Dec 26 14:11:49 gridview looks more modern Dec 26 14:14:03 Alright, my thoughts were right :) Dec 26 14:15:03 while listview ofc in this example offers a better overview. but like ahri, i prefer gridview. Dec 26 14:19:14 ahri, autrilla, DeadSix27 have you seen this? Dec 26 14:19:14 https://github.com/etsy/AndroidStaggeredGrid Dec 26 14:20:48 looks nice Dec 26 14:20:52 yep Dec 26 14:20:56 got it on Android Weekly Dec 26 14:22:25 thepoosh, I fell in love Dec 26 14:24:18 What size should I use for the images? They are on autofit, so idk how much they occupy Dec 26 14:26:01 In pixels Dec 26 14:26:22 I dunno, never used it Dec 26 14:26:29 but Android weekly is awesome Dec 26 14:26:45 you should definitely sign up for the email Dec 26 14:29:06 is it possible to make an android service handle an ACTION_VIEW? (this is for a twitter callback) Dec 26 14:29:59 Hmmm.. apparently BitmapFactory deconding takes a lot of time Dec 26 14:30:03 Should be done in background Dec 26 14:30:39 I'd like to use what tumblr does as a placeholder, get the main color of the image Dec 26 14:31:09 storkme: if you declare an IntentFilter for ACTION_VIEW you'll receive it Dec 26 14:33:52 I must be doing something wrong, then. Dec 26 14:38:46 storkme: well, there is an inherit issue with catching ACTION_VIEW with a service Dec 26 14:42:23 is there? Dec 26 14:42:59 yep, service doesn't work, activity does. That's a shame. Dec 26 14:46:48 guess I could just make an activity without a UI. Dec 26 14:47:05 and somehow fix the back stack, heh. Dec 26 14:47:08 storkme: you cannot "view" anything in a service, by definition it doesn't have a View Dec 26 14:47:20 it's a definition error Dec 26 14:47:29 what are you trying to do? Dec 26 14:48:55 when you do oauth with twitter, you need to get the request token which gives you a URL that you send the user to, then they log into twitter in the browser, and then it redirects to a callback that you specify, so I tell it to redirect to my-app://whatever and then capture the data encapsulated with that intent. Dec 26 14:49:18 perhaps it'd be easier to just embed a WebView, rather than relying on the browser. Then I'd be able to manage the back stack better. Dec 26 14:53:37 storkme: what happens if you use startActivityForResult? Dec 26 14:53:45 wont you get it as an answer? Dec 26 14:55:24 storkme: look here https://code.google.com/p/twimight/source/browse/trunk/src/ch/ethz/twimight/activities/LoginActivity.java Dec 26 14:55:57 storkme: or even better, look at this Dec 26 14:55:58 https://code.google.com/p/twimight/source/browse/trunk/src/ch/ethz/twimight/activities/LoginActivity.java#300 Dec 26 14:56:14 I stumbled upon the documentation of a string-array and it says that the item element doesn't have an attribute. I once read somewhere that it was needed for preferences somewhere, I can delete the following name attributes then (for the items): http://hastebin.com/luboloyilo.xml Dec 26 15:20:08 Im running ADT on a Debian derived Linux. R.java is not auto-generating. Can somebody help me out? Dec 26 15:25:57 anybody? Dec 26 15:38:08 Project clean and retry? Dec 26 15:48:27 I've got 2 arrays in strings.xml, one with entries (Strings) and one with values (integers). Is there a way of checking what value belongs to what entry without looping through the int[]? Dec 26 15:51:05 prefix the names Dec 26 15:52:07 Loop through once and initialize a map on application startup. Dec 26 16:02:19 lasserix and kjeldahl, thanks. Any idea on how to get put a MutliSelectListPreference inside a normal layout or how to make it yourself? Dec 26 16:04:31 I don't even know what to search for to look for an answer on that question.. Dec 26 16:12:45 ugh, I can't get android.net.rtp to work ok on my moto x Dec 26 16:12:51 stream.join(null) keeps hanging Dec 26 16:13:03 is reading data out of assets slower than reading it out of /data ? Dec 26 16:13:06 then any subsequent group.add hangs because add/remove are synchronized Dec 26 16:18:19 I'm inflating a view (that contains a