**** BEGIN LOGGING AT Mon Apr 14 03:00:00 2014 Apr 14 03:00:04 Is the application freezing? Apr 14 03:00:29 no Apr 14 03:00:48 I can actually change which button has the blue highlight by pressing another button Apr 14 03:00:54 the last pressed button gets the highlight Apr 14 03:01:49 are you using a class to change the color Apr 14 03:02:21 no.. I have a selector for each button Apr 14 03:02:42 and that select does seem to work (i.e. the images change between pressed/not pressed) Apr 14 03:04:31 hmm.. it appears the button is only registering an onClick if it is the currently highlighted button Apr 14 03:09:41 I had to set android:focusableInTouchMode="false" Apr 14 03:09:44 that seems to fix it Apr 14 03:42:17 Hey everyone, I had a quick question. Is it possible to perform a partial name search using content resolvers? For example, to find contact "John Smith" when searching for "John". Here is my current code: http://pastebin.com/2sdAC0aQ Apr 14 03:56:26 jjb123, can't you make a raw SQL query? Apr 14 03:57:30 something similar to : select from TABLENAME where NAME like '%$KEYWORD%' ?? Apr 14 03:57:55 jjb123, I really don't know how content resolver works Apr 14 03:58:03 but I am guessing Apr 14 03:58:30 I hope this can be a hint Apr 14 04:05:44 I want to create a custom Drawable class that can fetch the content from the web. How can I go about it? Apr 14 04:07:36 hello any expert for sqlite here. I need help. pleas Apr 14 04:08:05 slani: Just shoot your question. Apr 14 04:08:41 sombody will be able to help you Apr 14 04:12:47 I'm trying to save data into sqlite database from sensors. If I do this only from one sensors my APP works OK. But if I'm trying to do this from mores sensors into different tabels my APP becomes very slowly, because I do to much wokr in UI thread. How is the best way to solve this problem? Apr 14 04:13:34 slani: Do the job in a different thread I suppose :) Apr 14 04:13:42 yes Apr 14 04:14:05 is there any exampel in andorid develo page Apr 14 04:15:17 slani: Take a look : http://developer.android.com/reference/android/os/AsyncTask.html Apr 14 04:15:50 thanks Apr 14 04:16:05 yw Apr 14 04:22:31 I’m trying to create a bitmapdrawable/drawable that takes a URL in the constructor and draws the content from the url. How can I go about it? Apr 14 04:23:47 * napster wonders if it is actually doable! Apr 14 04:24:38 hm Apr 14 04:26:05 hi when i select prepare for store listing and choose the title for my app. Is that title reserved now only for my app or can other people use that title? Apr 14 04:51:08 App title is not reserved I think : https://play.google.com/store/search?q=sudoku&c=apps Apr 14 04:51:22 but package namespace are, I suppose Apr 14 05:00:19 give your app a title that ends with "saga" and see what happens Apr 14 05:00:33 what happens Apr 14 05:00:48 i've almost finished flappy saga Apr 14 05:11:36 hello! Apr 14 05:12:05 anyone know some library with gridview which can apply wrap_content to it's property? Apr 14 05:29:57 bankai_au there ? Apr 14 05:45:07 this is sick http://digg.com/video/snowboarding-with-jet-engines Apr 14 05:45:11 i want one :) Apr 14 06:24:26 Java is the only language that can be used to develop android application? Apr 14 06:25:17 wiky, no Apr 14 06:25:30 you can use Tcl/Tk scripting. Apr 14 06:25:44 and also Qt Apr 14 06:25:45 wiky, You can use C/C++ via the JNI Apr 14 06:26:16 Ologn, he still needs java though in JNI Apr 14 06:26:25 and C# can be used too Apr 14 06:27:42 can use Qt without JNI ?, but Qt is C++. Apr 14 06:27:48 wiky, if you want Tcl/Tk , see this project http://www.ch-werner.de/sdltk/AndroWish/ Apr 14 06:28:00 native-activity in samples is all C/C++ code Apr 14 06:28:11 wiky, I think it's more python inclined in Qt. Apr 14 06:29:03 wiky, what do you want from your question? what do want to do exactly? Apr 14 06:29:34 I want to use C\C++ exactly Apr 14 06:29:37 And above of all, HTML/JS can also be used. Apr 14 06:29:57 maybe it's not a good idea Apr 14 06:30:06 wiky, then i advise you to go with JNI Apr 14 06:30:27 it'll be the interfaces only in java. Apr 14 06:30:39 wiky: If C/C++, take a look at the NDK Apr 14 06:30:56 I'll have a try Apr 14 06:31:06 the rest will be functions that you'll write in C/C++. you'll need also to learn how to use android NDK + CMAKE Apr 14 06:31:46 I know what to do next, thanks all Apr 14 06:31:50 wiky, C/C++ in Android is just a layer to speed up slow parts in the application. Apr 14 06:32:32 superlinux-hp, because I'm not familiar with Java Apr 14 06:32:36 wiky, there is a russian fellow in youtube has a series about NDK Apr 14 06:32:57 wiky, think C++.. this is java in short Apr 14 06:32:59 ☺ Apr 14 06:33:30 don't think I really know java like a pro. Apr 14 06:33:33 I know C++ Apr 14 06:34:17 I consider Java Apr 14 06:35:41 wiky, understood. you're welcome. Apr 14 06:36:43 :) Apr 14 06:43:01 you can use scala Apr 14 06:53:09 hi all, there is some way for gen a project from gradle without make skeleton/manifest "manually"? Apr 14 06:59:21 How can I view the com.android.internal package and the source of its classes. Apr 14 07:00:09 How on earth can I add a header View to a list fragment? Apr 14 07:01:05 can you get a reference to the ListView? if so, try listView.addHeader() (I've not use a ListFragment before) Apr 14 07:01:22 if it's like ListActivity, I think there's a getListView() method or something Apr 14 07:01:59 barbs: I’m trying to do the same. the fragment lifecycle is a bit confusing though. Apr 14 07:06:32 How can I get a phone object through reflection? Apr 14 07:10:29 barbs: Made it work from onActivityCreated() where everything is ready. Apr 14 07:10:55 oh nice one Apr 14 07:11:45 hi all, there is some way for gen a project from gradle without make skeleton/manifest "manually"? Apr 14 07:25:02 bambuka: Like a maven archetype? Apr 14 07:32:34 f2prateek, i dont know maven. I just want something like ruby -g for generate skeleton or some way to bootstrap a project without "mkdir -p /src/main/java/com/myproject/..." Apr 14 07:33:57 I suposse that another way is to create a project in eclipse and them "gradle init" into it Apr 14 07:34:13 is it the "right way"? Apr 14 07:51:43 bambuka: as far as I know you have to do it manually or via an IDE Apr 14 07:54:03 how to make android like avatar (circle) ? Anyone have sample code? Apr 14 07:56:53 ok f2prateek thx you Apr 14 08:10:14 Hello guys. I had a discussion (see here http://pastebin.com/cbriPyLS) with birbeck a few days ago. Regarding generic AsyncTask to communicate with a database. Apr 14 08:10:15 In his example, he recommended me to pass a callback interface to the generic AsyncTask and implement it in the Activities where I'll use the AsyncTask. Apr 14 08:10:15 In my AsyncTask in the doInBackground() method, I'm gonna pass a parameter (a string) to execute() which will determinate the right algorithm to invoke from the Activity. Apr 14 08:10:15 In my activity I'll have onSuccess(String s) { if (s == ADD_USER) { //do something; } else if (s == CHECK_USER) { // do anything else; } } Apr 14 08:10:15 Where the constant are just TAGs defined in my Activity method. Is this a good solution? Apr 14 08:11:22 Has anyone tried using the internal phone class through reflection? Apr 14 08:43:13 Still no one for my question ^? Apr 14 08:44:20 wget: have you considered Loaders instead? Apr 14 08:46:56 cezium: I tried, but I found them less flexible to use, because AFAIK, you cannot update the GUI while the treatment is being processed, with a method like onProgressUpdate() Apr 14 08:48:28 Is it just database operations that take so much time that you need a determinete progress indicator? Apr 14 09:01:43 I'm having a really wierd problem with the android-sdk's x86-emulators. They die on a sigfpe. No debugging symbols so no way to try to trace down whats actually happening.' Apr 14 09:03:18 capella http://blogs.law.harvard.edu/doc/2014/04/12/earth-to-mozilla-come-back-to-us/ Apr 14 09:03:30 glance you could try genymotion Apr 14 09:05:00 yah - its been three weeks of hell - I've a friend on the governance board and all he does is address media inquiries Apr 14 09:05:26 Hello. I need to filter a ListView by a charsequence AND a boolean. I wasn't able to find anything remotely useful for my beginner's level on SO. I have charsequence filter implemented, but I have trouble understanding the rest. I use BaseAdapter with Filterable Apr 14 09:08:29 is there a way to play custom sounds with notifications? Apr 14 09:08:40 cezium: Sorry for the disconnection. If you answered to me I haven't received anything just after I replied. Apr 14 09:08:57 All i managed to do was to play the phones default notification sound. Apr 14 09:20:00 g00s: genymotion doesn't fit our ci chain... would need quite a bit of rebuilding... Apr 14 09:36:22 Hello, has anyone tried to use libcurl on Android NDK with C++ and do client side certificate verification? I'm using: curl_easy_setopt(curl_session, CURLOPT_SSL_VERIFYPEER, 1) and curl_easy_setopt(curl_session, CURLOPT_SSL_VERIFYHOST, 2) hower I get error "Problem with the SSL CA cert (path? access rights?)". Any suggestions as to what else I need to do? Set CURLOPT_CAINFO ? Apr 14 09:48:31 I can't create AVD in AVD manager without any warning or error found. The OK button is insensitive. Apr 14 09:52:02 Is it possible to get another result code than 0 from google play store? I want to check for installed google play services. On Error, it redirects to google play to install it Apr 14 09:52:35 But no matter if it become installed, google play answers with RESULT_CANCELLED (0) Apr 14 09:57:34 https://gist.github.com/anonymous/089b31628078872bb2b8 Apr 14 09:57:39 Does anyone know in which which version of Android /system/etc/security/cacerts.bks was deprecated? Apr 14 10:00:24 http://wiki.cacert.org/FAQ/ImportRootCert#Android_Phones_.26_Tablets claims with Android 4.0 Apr 14 10:02:25 hi guys there is asolution for print the listview in inverde order? Apr 14 10:02:32 inverse* Apr 14 10:03:08 CodePulsar, those probably moved to HW backed store in 4.0 yea Apr 14 10:03:28 roxdragon: you have to sort the values in your adapter Apr 14 10:04:10 CodePulsar makes sense, that when they came out with the new KeyChain api Apr 14 10:04:20 which i think is managed by openssl Apr 14 10:05:19 danijoo: read here: http://stackoverflow.com/questions/23049956/listview-order/23057102#23057102 Apr 14 10:05:32 there is my problem Apr 14 10:05:34 CodePulsar http://android-developers.blogspot.com/2012/03/unifying-key-store-access-in-ics.html Apr 14 10:06:07 that api was so fucked in 4.0 Apr 14 10:06:33 well, there was a nasty GC bug Apr 14 10:08:09 roxdragon: in the activity is no code to sort a list Apr 14 10:08:50 wow Apr 14 10:08:58 StackOverflow really became a total cesspool Apr 14 10:09:04 ^^' Apr 14 10:09:19 i wish there were formatting requirements for responses/questions on so Apr 14 10:09:26 some of the code makes me want to vomit Apr 14 10:09:43 well Apr 14 10:09:51 just deleting 3/4 of first page would do Apr 14 10:09:57 lol Apr 14 10:10:08 it's just full of "here, I pasted 1500 lines of random code, fix it for me plz!" type questions Apr 14 10:10:17 and some really dumb questions unrelated to programming or common sense Apr 14 10:10:34 its almost like they didnt use google first to find an answer to their problem Apr 14 10:10:39 also always "fun" to help with code commented in other languages than english Apr 14 10:11:17 hey, trying to make my own custom progress animation with a couple bitmap layers rotating. Any idea how I can get them all rotating at a different left offset without skewing? Apr 14 10:11:31 danijoo: i know...it'spossible inverted ONLY roiws? Apr 14 10:11:34 rows Apr 14 10:11:46 danijoo, I just don't bother Apr 14 10:11:55 Mavrik it would be interesting if those sites like SO just automatically deleted posts that were stale 0 votes (maybe it does?) Apr 14 10:11:57 there's a minimum requirement of courtesy for me to waste my time Apr 14 10:12:06 I dont know what you want to do roxdragon. If you want to sort your list in revert order, show us the code for that Apr 14 10:28:34 g00s: thanks Apr 14 10:31:14 Mavrik by any chance, do you know how to get (if possible) Roboto condensed light ? i see condensed, light, but not both. Apr 14 10:31:35 but http://developer.android.com/design/style/typography.html lists CondensedLight Apr 14 10:31:39 is that only a webfont ? Apr 14 10:38:20 g00s, hmhm, honestly I haven't used them yet so I don't know Apr 14 10:38:34 for some reason our designer prefers bolded text alot Apr 14 10:38:50 looking through system_fonts.xml doesn't look good Apr 14 10:38:55 thanks Apr 14 10:44:59 Waaw. Didn't know that putting my AsyncTasks in their own java file (to improve modularity and reusability) will be such difficult... (return value unreachable, configuration changes in Activity doesn't kill the AsyncTask -onSavedConfiguration intance is deprecated-,...). #Hapiness Apr 14 10:47:16 wget the ephemeral nature of activity / fragment components makes life difficult in a way that permeates much of the app Apr 14 10:47:30 especially when it comes to threads :) Apr 14 10:48:20 i think they should redesign things so that its just one activity, oncreate, ondestroy, and the same for fragments :) Apr 14 10:51:21 a lot of these things made sense in 2007, not sure now Apr 14 10:52:59 Just started developing using Fragments, adds another extra layer of thought to the whole process Apr 14 10:53:09 what I would like to know is that given an Activity and Fragment, where is the better place to implement my OnClickListener? Apr 14 10:54:03 topriddy your UI listeners should go in the fragment Apr 14 11:01:34 guys i have a thread with asynctask but when i tap on display , thread stopped Apr 14 11:01:40 why? Apr 14 11:02:15 don't do that ! Apr 14 11:02:15 when you tap on your phone? Apr 14 11:02:42 g00s: http://youtu.be/BYLMTvxOaeE Apr 14 11:07:26 Hi folks, i'm trying to create a app which only duplicate an external db and then only read it, do I need te create a DAO or is there another way ? Apr 14 11:13:02 hi all Apr 14 11:14:45 hi Apr 14 11:14:57 roxdragon: still waiting for an answer Apr 14 11:15:04 Who can explain for what reasons I'm unable to change button's style programmatically? What was the problem with implementing this in architecture? Apr 14 11:15:53 I want to enable a user select an account from contact list when he clicks a "select " button with in an alertDialog. But this gives me the error window is leaking so I have to dismiss the alertDialog. is there any other mechanism that could enable me do what I want with out dismissing the alertDialog? Apr 14 11:16:33 thepoosh: http://paste.ubuntu.com/7249181/ i have this code... when funcion return false i want close the app... Apr 14 11:16:41 creitve: style like what? Apr 14 11:16:50 roxdragon: still trying to figure out the issue Apr 14 11:16:50 how to make this? Apr 14 11:18:35 thepoosh: i have a app ... i want check internet connection... i have used this code: http://paste.ubuntu.com/7249181 for check internet connection... but when the function return false, my app crash... how make close app without crash my app? Apr 14 11:18:54 yola: I have two styles, defined in styles.xml, for active and passive button. I need something like myBtn.setStyle(R.style.active), but I only have setTextAppearance, setBackgroundResource and few others. Apr 14 11:18:55 roxdragon: logcat Apr 14 11:19:34 roxdragon: do you knwo for sure that ConnectivityManager cm is not null? Apr 14 11:21:03 creitve: http://stackoverflow.com/questions/2016249/how-to-programmatically-setting-style-attribute-in-a-view Apr 14 11:22:56 yola: Yes, I saw this, that is why I'm asking. It allows me to assign drawables in runtime, but not the entire combined style Apr 14 11:32:13 creitve i bet SimonVT or JakeWharton would know Apr 14 11:32:41 i thought romain said it wasn't possible … but maybe things have changed Apr 14 11:33:20 g00s: Btw, I didn't say I succeeded to put my AsyncTask in its dedicated file. It's on the go. Apr 14 11:33:20 I've several actions which return different values in my doInBackground() method and I don't know how I could get these results passed as argument to onPostExecute(). Maybe put all the parameters to Object and get their class name and return accordingly? What do you think g00s? Apr 14 11:33:44 i never use asyntask, dunno Apr 14 11:34:01 g00s: What are you using then? Apr 14 11:34:12 g00s: I see now that it isn't possible and thinking of implementing my togglable button in another way. However the "why" is not clear for me still. Apr 14 11:34:40 I'm just curious what in architecture prevents implementing that Apr 14 11:36:08 creitve i wonder if you could change the look by setting a different theme (activity.setTheme) Apr 14 11:36:20 wget i use plain handlers, handlerthreads, and rxjava Apr 14 11:36:29 CursorLoader, thats it Apr 14 11:37:24 the whole theme just for one toggleButton? I have discovered selectors seconds ago, will use them instead. But thanks. Apr 14 11:37:45 creitve whats a selector ? Apr 14 11:37:53 g00s: http://stackoverflow.com/questions/18335239/android-toggle-button-custom-look Apr 14 11:38:02 ещз фтыцукы Apr 14 11:38:05 top answers Apr 14 11:38:23 oh. ok Apr 14 11:39:54 guys i have a problem... this is my code... http://paste.ubuntu.com/7249181 it's work fine... but when there isn't internet connection my appp crash... how exit from my app without crash? Apr 14 11:41:42 creitve: No, you can't change style after a View has been instantiated. All attributes are parsed in the constructor. Apr 14 11:43:25 SimonVT: I see. so, the correct way to implement a toggleable button is to operate with these xml selectors and View states, right? Apr 14 11:44:02 Yes Apr 14 11:44:12 There's ToggleButton Apr 14 11:45:10 Or if you can't use that, state_activated in your selector and setActivated Apr 14 11:45:19 That's what I usually do Apr 14 11:48:38 SimonVT: Oh, I see. setActivated is some general implementation of "active" semantic for all View children? Nice, thanks, but if I can, will ToogleButton be preferable? Apr 14 11:50:07 Yeah Apr 14 11:50:25 They figured out having to make your views checkable was a hassle, so they added setActivated Apr 14 11:50:59 If doesn't change any behavior of the View like setEnabled would Apr 14 11:52:15 Is it possible to add a preference header to a preference list along with other normal preferences? Apr 14 11:56:24 does anyone know what and if the design guidelines say anything about what should happen to questions dialogs after rotation? Should the same question be asked or should it just be considered dismissed? Apr 14 12:02:05 mihalybak, honestly UX says that the dialog should stay Apr 14 12:04:41 * g00s remembers back to the day pre dialogfragment, activity managed dialogs Apr 14 12:04:44 * g00s shudders Apr 14 12:05:42 I'm confused by what should go in onCreate and onCreateView in a fragment. EG, I want to check if the user is logged in, and then launch a new intent. onCreate or onCreateView? Apr 14 12:06:32 nebby: if its direktly related to the UI (initialisation of views, put content in views.. ), put it in onCreateView Apr 14 12:06:37 and the rest in onCreate Apr 14 12:07:15 so my example would be in onCreate? Apr 14 12:07:17 so your logincheck should go in onCreate Apr 14 12:07:23 cool Apr 14 12:07:39 because you want it available when you fill your views Apr 14 12:13:41 anyone an early bird ? Apr 14 12:14:05 ? Apr 14 12:14:36 Web4U: ? Apr 14 12:16:38 is there an existing way to change the curve of an animation with ObjectAnimator? Apr 14 12:16:52 by default, it starts slow and speeds up… i need the opposite Apr 14 12:19:39 danijoo: what if I want to show a splash screen while the login check is happening? Apr 14 12:19:49 thepoosh kinda have an idea id like to share just to see if it maybe can turn into something would you mind giving me an opinion in a PM Apr 14 12:20:06 no pm Apr 14 12:20:09 just ask Apr 14 12:20:27 nebby: In this case I would do the login in another activity, and start the main activity after login Apr 14 12:20:50 but you could also show some kind of dialog and make the login asynchron or something like this Apr 14 12:20:58 there are multiple ways of doing this Apr 14 12:21:14 Anyone familiar with push notifications and how I may go abotu this ? Apr 14 12:21:57 Here is a situation. I have a navigation drawer. each item in the drawer replace() a new fragment on the Home screen. I have network fetches on each fragment. If the user switches among items in the drawer too fast, all the network requests gets tangled. How can one safely stop asynctasks (plus close all connections) when a fragment goes out of view? Apr 14 12:22:29 basically, my thought was - my start activity/fragment, it checks local database if they are logged in. If not, go straight to login activity, if yes, check the token with the server (this would be an async task and hence show splash screen) Apr 14 12:22:33 How do you guys go about in such situations? Apr 14 12:23:29 nebby: why not show splash screen and go to login if nothing in database, else stay in splash until token is checked Apr 14 12:24:07 yes, well my start activity has the splash as it's layout. So my question is just where to do the check Apr 14 12:25:09 still onCreate? Apr 14 12:25:15 napster, I usually have a isCanceled boolean in my asyncs, that can be set from public scope. in replace() you can then set isCanceled=true which is then checked in onPostExecute Apr 14 12:25:53 protected void onPostExecute(Long result) { Apr 14 12:25:53 if(isCanceled) return; Apr 14 12:25:53 // do your stuff Apr 14 12:25:55 } Apr 14 12:26:48 danijoo: The problem is that, the connection will be held up till the network fetch completes. I was thinking if I can close all connections and release everything right away when the fragment goes out of view. Apr 14 12:27:55 thing is not all http libraries are able to close running fetches. If you can do this: set the isCanceled-flag and close connection Apr 14 12:28:20 the connection-closing makes your async immediatly proceed to onPostExecute which then returns Apr 14 12:28:49 danijoo: is that the best practice? Apr 14 12:29:12 I mean, best practice given native http libs are used. Apr 14 12:29:56 you always have to go through the whole AsyncTask lifecycle so all you can do is make if faster with cancel-flags Apr 14 12:30:32 danijoo: cool, thank you. Apr 14 12:30:34 so i think that would be "best practice", yeah (at least I dont know another way Apr 14 12:31:24 nebby: still onCreate. onCreateView is only to set what is visible to the screen Apr 14 12:31:59 things like myTextView.setText("please wait until you are logged in..") would go into onCreateView Apr 14 12:32:36 startMyAsyncLoggingInTask() should go in onCreate though Apr 14 12:32:41 at least thats the way I would do it Apr 14 12:39:34 okay Apr 14 12:39:36 sounds good Apr 14 12:39:44 thanks a lot danijoo Apr 14 13:04:25 Hi, i do have some weird (as in worked earlier, no clue what i did wrong/by-accident-right beforehand). i am having various layouts in some sort of tree-arrangement (layout being parent of layout being parent of layout,...) the second-last widget (expandable listview) still takes up the whole space (thats what i want), but when adding childs (=rows) with a linear-layout (with match_parent) i DONT Apr 14 13:04:25 get a full-sized row. any hint where i should look? Apr 14 13:04:32 Hi all, currently I'm using ACRA for crash reports. Now I need to do the same but without user interaction for sending the crash log, is this possible with ACRA? In another app, I can send an email with body text to a specific email address, so maybe I can use this but don't know how to get the logging. How can I do this? Apr 14 13:07:46 FrancescoV, i dont know about acra but this looks promising https://github.com/ACRA/acra/wiki/AdvancedUsage#sending-reports-by-email Apr 14 13:10:30 Hi. What is the default build engine for Android using Eclipse and ADT ? Apr 14 13:11:37 Ant, Maven, etc... Apr 14 13:12:16 I'm trying to understand how to write and where to put my libraries so can be used by others Apr 14 13:13:17 Hi. I', drawing a filled circle, red or gray, depending on whether or not audio is beeing recorded. Currently I'm creating the pain, bitmap and canvas everytime I switch states and this doesn't seem like the correct way to do it.. how would i properly switch between colors of a drawn object? Apr 14 13:13:39 s/pain/paint/ Apr 14 13:13:56 shineworld, eclipse uses internal builder. Apr 14 13:14:25 ah so I can't use maven to remote dependancies like in Android Studio.... Apr 14 13:14:41 thanks to simplified my search on net :) Apr 14 13:15:44 Can ordinary applications access for reading purposes /system/etc/security/cacerts.bks in Android < 4.0 to be able to do SSL certificate verification? Apr 14 13:15:46 A this point I've an .aar for AndroidStudio in maven and I was searching something also for Eclipse (at this moment I send a jar to customer) Apr 14 13:17:07 http://android-developers.blogspot.ro/2012/03/unifying-key-store-access-in-ics.html says "Back in Android 1.6 (Donut), a system key store was added for use by VPN. Although this was later expanded to support WiFi authentication, <<<<<<>>>>>" Apr 14 13:17:07 freiform, saving the canvas variable and settings its color? Apr 14 13:17:18 that means no read access ? Apr 14 13:17:34 adb shell ls -l /system/etc/security/cacerts.bks gives -rw-r--r-- 1 root root Apr 14 13:17:48 but maybe there are other security policies in place Apr 14 13:17:51 PatrickBic: I used this, but with this, the use must select an Email app + send the email by himself, I want to do this without user interaction (always send crash report) Apr 14 13:18:08 shineworld, if you build with maven, you can use it's dependency management of course Apr 14 13:18:16 but you have to opt for maven builder not Eclipse. Apr 14 13:20:11 FrancescoV, http://stackoverflow.com/questions/22478187/send-email-on-application-crash-in-silent-mode-using-acra Apr 14 13:20:22 according to that: you cant do it silently Apr 14 13:21:31 PatrickBic: thanks for the help Apr 14 13:21:39 you're welcome :) Apr 14 13:28:26 PatrickBic: But I do have to redraw the whole thing every time? Apr 14 13:29:21 well, it won't happen that often, won't it? (the redrawing) Apr 14 13:29:35 no, that is not an issue Apr 14 13:30:14 i imagine you could use some kind of card-layout (dont know if android has some layout that you could use for it) but.. well.. seems like an overkill to me Apr 14 13:30:48 i just create a small class so i'm, able to keep track of the various objects needed. Apr 14 13:39:20 interesting benchmarks http://www.learnopengles.com/a-performance-comparison-between-java-and-c-on-the-nexus-5/ Apr 14 13:42:23 well I have same problem as this SO question, http://stackoverflow.com/questions/13786564/no-resource-identifier-found-for-attribute-parentactivityname-in-package-andr Apr 14 13:42:50 I am using min 7 and target 15 Apr 14 13:43:01 But, I have metadata added, for the support Apr 14 13:43:22 yet IntelliJ IDEA tells me No resource identifier found for attribute 'parentActivityName' in package 'android' Apr 14 13:51:18 using adb, can I forward 'localhost' from PC to Android phone? so that I can test the site from the phone? Apr 14 13:52:13 If you are using the emulator, 10.0.2.2 is the host ip of the emulator (i.e. "localhost") Apr 14 13:52:58 liefer, not using the emulator, I could do but I find testing on my phone easier Apr 14 13:54:40 liefer, hmm looks like I would have to share my page over the wifi ? Apr 14 13:55:07 you can't forward localhost anywhere Apr 14 13:55:12 How can I verify the server's SSL certificate on Android < 4.0? Apr 14 13:55:16 because, it's by definition, local. Apr 14 13:55:37 Mavrik, aye but I thought I could 'push' it via usb to the phone? Apr 14 13:55:55 like how Chrome can manager the phones' Chrome pages? Apr 14 13:55:58 CodePulsar, set SocketFactory on your connection that accepts only cert from your CA Apr 14 13:56:10 dan2k3k4, pushing localhost is... ill advised Apr 14 13:56:12 and probably won't work Apr 14 13:56:16 you can use other hosts and IPs Apr 14 13:56:26 but messing with localhost will break stuff badly if it's even possible Apr 14 13:56:36 CodePulsar, it's supported since API 1 or somethin Apr 14 13:57:06 well I'm on Windows 8... what more could go wrong? :p running localhost from php command line: php -S Apr 14 13:57:28 is there a reason why don't you just use your machines IP on Android? Apr 14 13:57:45 ? Apr 14 13:59:07 Mavrik, ah you mean 192.168.1.155 ? it doesn't show anything, I guess since this pc isn't set up yet in that way... Apr 14 14:30:23 Does anyone know if Otto allows for enums to be used as messages? Apr 14 14:30:48 jonc: passing an enum should work Apr 14 14:31:01 thank you Apr 14 14:31:15 not sure if that's what I want to do yet, but might be Apr 14 14:31:20 I am trying to scrol a scrolview to the bottom end after adding a view progrmmatically but I cant get it working,any help? Apr 14 14:32:20 I tried to use even refreshDrawableState() to refresh the view after adding a new element but that doest no help either. Apr 14 14:38:27 Can I read /system/etc/security/cacerts/ from Android NDK ? Apr 14 14:39:05 libcurl from C++ with Android NDK yells "Problem with the SSL CA cert (path? access rights?)" Apr 14 14:39:55 the directory is readable by others and the files it in as well, maybe SELinux prevents access this is the policy 'u:object_r:system_file:s0' Apr 14 14:40:39 CodePulsar, what would that give you Apr 14 14:40:45 Certs are stored in HW cert store Apr 14 14:41:01 Mavrik: certs are inside the /system/etc/security/cacerts/ directory Apr 14 14:41:02 reading empty directory won't help you on Android 4.x+ Apr 14 14:41:15 Mavrik: that directory its not empty, it contains PEM formatted certs Apr 14 14:41:18 (on devices with HW cert store of course) Apr 14 14:41:35 right. Apr 14 14:41:41 Mavrik: can I detect if the device has HW cert store ? Apr 14 14:41:49 HW = hardware? Apr 14 14:41:58 CodePulsar, is there a reason why you're trying to force a solution that will break eventually instead of using Android API? Apr 14 14:42:21 because my code is 90% C++ and UI only Java, all the logic is in Android NDK Apr 14 14:42:28 and? Apr 14 14:42:38 expose "getCertificate" Java method to NDK. Apr 14 14:42:47 I need access to the systems CA files to verify the servers SSL certificate with LibCurl Apr 14 14:42:49 instead of hacking stuff that'll break on next Android update Apr 14 14:43:46 Can anyone decipher this SELinux wizardry? 'u:object_r:system_file:s0' taken from ls -Z system/etc/security/cacerts/ Apr 14 14:44:35 Something is preventing my app from accessing those certs Apr 14 14:44:47 That would be the kernel security policy. Apr 14 14:45:16 I've run my app with android.permission.ACCESS_SUPERUSER the same outcome "Problem with the SSL CA cert (path? access rights?)" Apr 14 14:46:14 hmm, I have another idea Apr 14 14:49:13 Mavrik: 'getCertificate' does what? Apr 14 14:49:13 selinux supercedes superuser permissions Apr 14 14:49:19 and ACCESS_SUPERUSER is a real permission? Apr 14 14:49:23 pfn: yes Apr 14 14:49:38 well, it won't do what you expect Apr 14 14:49:44 and since when Apr 14 14:50:42 Mavrik: gets all the certificates in the Android system and makes them accessible to the NDK ? Apr 14 14:52:56 but that assumes I need to do the verification myself instead of delagating the task to libcurl Apr 14 14:53:12 which in turns calls libcypto / libopenssl Apr 14 14:58:25 hi Apr 14 14:58:39 is there a builtin way to validate EditText inputs? Apr 14 14:59:19 I have a custom DialogFragment with a WebView as child. Webview works but Keyboard isn't showing up when clicking a editable textfield in the webpage (like google), but The textfield has focus (cursor visible), what's the problem / solution? Apr 14 15:01:49 pulling 21GB over adb pull is tedious ;_; Apr 14 15:02:06 yeah, that Apr 14 15:02:10 'd suck a bit Apr 14 15:02:22 jonc: I'll have to put it back in later -_- Apr 14 15:02:24 got my site from PC working onto Android - via php -s PC-IP:80 instead of php -s localhost:80 Apr 14 15:02:29 re Mavrik ^ Apr 14 15:02:33 :) Apr 14 15:02:48 dan2k3k4: well, duh, localhost is not routable :) Apr 14 15:02:53 0.0.0.0 is the catch-all Apr 14 15:03:00 p_l, ah Apr 14 15:03:35 yeah I didn't really think php -s localhost would only work for 'localhost' :s whereas Wamp or similar sort of set all that up for you Apr 14 15:03:40 So what's the best way to include the android support library into a gradle or maven project? The only one on central is woefully out-of-date. Apr 14 15:03:42 127.0.0.0/8 networks is, at least in theory, never routed (and even if you advertise it, others might not give a fuck about the route) Apr 14 15:03:58 so if I use 0.0.0.0 instead, I should be able to access localhost/127.0.0.1 or my-ip ? Apr 14 15:04:16 dan2k3k4: listening on 0.0.0.0 is equivalent to "listen on all" Apr 14 15:04:29 freeone3000 the gradle plugin automatically grabs it from the sdk manager's downloaded repo Apr 14 15:04:31 any other option listens on specific address only Apr 14 15:05:37 g00s: With what repositories { } ? Mine incldues mavenCentral(), but it's failing to find com.android.support.v4.app.Fragment without specifying the library in dependencies { } . Apr 14 15:05:57 ah ok thanks p_l Apr 14 15:06:07 freeone3000 you have to gram it from the sdk manager, not mavenCentral Apr 14 15:06:23 g00s: It's installed from the SDK manager. How do I tell gradle to use that one? Apr 14 15:06:34 oh weird, it should Apr 14 15:07:01 freeone3000, it should use it automatically Apr 14 15:07:18 freeone3000 for example, mine is sitting in android-sdk-macosx/extras/android/m2repository: Apr 14 15:07:29 every version Apr 14 15:07:51 g00s: https://gist.github.com/freeone3000/c1064ac93c7342de76f8 is my build.gradle. No dice. Apr 14 15:08:38 g00s: SDK Manager says I have Android Support Repository 5 installed along with Android Support Library 19.1. Apr 14 15:08:48 well , you didn't add its entry :) Apr 14 15:09:18 g00s: Okay, *now* we're getting somewhere. What's its entry? Apr 14 15:09:35 com.android.support:support-v4:18.0.+ Apr 14 15:09:40 19.1.+ Apr 14 15:09:43 where's your android-support dependency entry Apr 14 15:10:21 they are all listed http://developer.android.com/tools/support-library/features.html Apr 14 15:10:25 Alright, that was it. Thanks. Apr 14 15:10:28 ;) Apr 14 15:11:05 bankai_au there ? Apr 14 15:29:06 hi Apr 14 15:32:01 I have some chinese tablet, with stock android 4.2.2. I'd like to turn the screen of by setting LayoutParams.scrBrightness = 0.0f; Apr 14 15:33:15 and it all worked perfectly, until I've either made some not-obvious changes or updated my sdk Apr 14 15:33:42 now it just dims the screen, without turning it off (like completely black, no backlight at all) Apr 14 15:34:52 fast question - does anybody have some experience to share? I've tried with and without KEEP_SCREEN_ON flags, experimented with wake-locks Apr 14 15:35:16 I cannot use hidden apis, cause my app won't be used on rooted devices Apr 14 15:37:47 bottomline: screenBrightness = 0; used to turn off the screen and now it doesn't, without making any apparent changes in code, on a very same device. Is there any thing I'm missing? Are there other/better options for achieving desired behavior? Apr 14 15:44:55 www.textualapp.com] Apr 14 15:44:55 www.textualapp.com] Apr 14 15:49:41 Im making an app that let you buy fetchers inside the app, can any body advice me a tutorial for that? Apr 14 15:50:08 DevotedPanda: http://developer.android.com/google/play/billing/billing_overview.html Apr 14 15:51:10 Thanks :) Apr 14 15:51:14 what is a fetcher Apr 14 15:51:33 iz like felcher? Apr 14 15:52:49 *feature Apr 14 16:00:27 What is Dalvik Cache? Apr 14 16:02:03 ReGiStRaS: it's a cache of verified & optimized files for virtual machine to load Apr 14 16:02:39 ReGiStRaS: they are generated by dexopt (or dex2oat in case of ART), and give you faster application loading Apr 14 16:02:53 so is ok to wipe that cache? Apr 14 16:04:40 mhm, it'll be rebuilt on next boot Apr 14 16:04:53 that's why the next boot will take 5-20 mins Apr 14 16:08:18 i see... Apr 14 16:17:18 Hello guys! Apr 14 16:21:04 hi guys i have an error: No enclosing instance of type arrivi is accessible. Must qualify the allocation with an enclosing instance of type arrivi (e.g. x.new A() where x is an instance of arrivi). Apr 14 16:21:19 MyTask a = new arrivi.MyTask(); Apr 14 16:21:34 i have a asynctask into file arrive.java Apr 14 16:22:04 and i want call asynctask thread in other file Apr 14 16:29:24 I hate the android download manager, pos keeps failing without explanation Apr 14 16:35:39 I have a background service that updates the databases in my app with new data. How do I tell my user interface that the data has been updated? Apr 14 16:35:44 so I can display the new data Apr 14 16:36:24 GEEGEEGEE: broadcast an event that the ui can listen to with intent filters Apr 14 16:36:33 GEEGEEGEE: ContentResolver# Apr 14 16:36:35 GEEGEEGEE: ContentResolver#notifyChange Apr 14 16:36:50 ok thanks Apr 14 16:46:40 what file do I use when trying to sign my app Apr 14 16:47:11 debug-unaligned.apk or unsigned.apk? Apr 14 16:50:03 Hey, I'm trying to display a word in a text view and color the third letter of the word red. I have this idea, that I might display 3 Text views instead, split the String beforehand("he","l","lo world") and set the paint to red in the second text view. Apr 14 16:50:38 arphen> you're looking for "Spannable" Apr 14 16:51:02 can I replace gralloc.so with openPVR? Apr 14 16:51:21 Thanks chainfire, I'll have a look Apr 14 17:06:22 hi guys!!! Apr 14 17:06:35 how call myTask in MainActivity? Apr 14 17:06:46 My Task is in another class Apr 14 17:06:59 arrivi a = new arrivi(); new a.MyTask.execute(""); Apr 14 17:07:06 but dosen't work for me Apr 14 17:07:54 the task is into public class arrivi extends Fragment { Apr 14 17:12:24 Does anyone know how to get a phone object through reflection?I want to change the network type Apr 14 17:21:03 Hi, if our service is generating data continuously after a little gap by using another thread inside it, and we want to dump those values simultaneously into the server database, what should we use? My service once started dumps the values only single time. Apr 14 17:22:25 I want whenever the next values are calculated, they should be sent to the database Apr 14 17:24:37 onStart has been replaced by onStartCommand ? Apr 14 17:25:53 Can I put a linear layout containing three text views inside a custom view that extends text view? does that make sense? Apr 14 17:26:39 yes Apr 14 17:26:49 you can Apr 14 17:26:52 dunno if it makes sense Apr 14 17:27:40 I need to display text in a specific manner, split into three text views. For convenience I'd like to capsulate it as a custom view which I can then use in my project. Apr 14 17:28:05 Understand? Will it work? Apr 14 17:28:31 what would prevent it from working Apr 14 17:28:36 I'm a newbie? Apr 14 17:28:40 ^^ Apr 14 17:29:26 can u help me? Apr 14 17:31:12 depends on your question Apr 14 17:32:17 arphen, extending textview makes no sense Apr 14 17:32:32 arphen, make a custom view that extends viewgroup and put linearlayout in that Apr 14 17:32:36 or just use xml includes. Apr 14 17:32:40 arphen: check out http://android-developers.blogspot.com/2009/03/android-layout-tricks-3-optimize-by.html Apr 14 17:33:10 yuizy , does this seem good? it prompts me for context when I'm trying to instantiate a view, i don't really know what to put there.http://pastebin.com/Ngd3EkrQ Apr 14 17:33:24 arphen: about halfway down it shows an example of a custom view that's a couple textviews in a linearlayout Apr 14 17:34:52 extending textview makes sense if you want the outside world to see it as a textview with all the textview methods Apr 14 17:35:10 yeah that's what i want Apr 14 17:35:29 arphen: for custom views like that, consider what your layout would look like if the xml were in your layout directly. if your "view" would be a linearlayout with three textviews in it, then your custom view would extend linearlayout, and put three textviews in itself Apr 14 17:35:30 I want to abstract away from the magic that's happening inside and just use it in another activity as a widget Apr 14 17:35:53 how call myTask in MainActivity? Apr 14 17:35:57 My Task is in another class Apr 14 17:36:02 arrivi a = new arrivi(); new a.MyTask.execute(""); Apr 14 17:36:06 but dosen't work for me Apr 14 17:36:15 the task is into public class arrivi extends Fragment { Apr 14 17:36:44 frankdoyle, I was thinking the same. However I'd like to be able to do "customtextview.setText()" Apr 14 17:36:56 so i'd have to extend textview, correct? Apr 14 17:37:03 no? Apr 14 17:37:14 you can have your own setText-method Apr 14 17:37:23 arphen: what exactly do you see customtextview.settext doing? Apr 14 17:37:35 to three textviews, that is Apr 14 17:37:49 roxdragon: that question doesn't make any sense Apr 14 17:38:17 it seems more like a java problem than and android problem Apr 14 17:38:39 though i'm not quite sure because the sentences do not make sense :[ Apr 14 17:39:02 frankdoyle http://i2.cdn.turner.com/money/dam/assets/140228110044-spritz-speed-reading--620xa.jpg Apr 14 17:39:20 yuizy: i have an asynctask thread... http://paste.ubuntu.com/7250804/ and i want call my task in another class Apr 14 17:39:51 new MyTask().execute(""); i want execute this in mainActivity Apr 14 17:39:57 arphen: https://github.com/andrewgiang/SpritzerTextView Apr 14 17:40:02 yuizy ah, so I'd rather extend linearlayout and give it three children in its constructor? Apr 14 17:40:49 arphen: no, views require a strict set of constructors. it would create the views on its own, either through inflation or creating them directly, then add those to itself Apr 14 17:41:16 roxdragon: again, seems more like a java issue than an android issue Apr 14 17:41:42 ok,ok Apr 14 17:41:48 not sure what this channel's policy regarding that is Apr 14 17:42:17 do you know java basics? Apr 14 17:42:26 frankdoyle Thanks! I've seen it, however I'd like to take a different approach. The SpritzTextView is doing too much work which i've got already done somewhere else. Apr 14 17:43:15 frankdoyle How would I go about creating them directly and adding them to itself? Where to put it? Apr 14 17:43:29 fair enough. check out http://android-developers.blogspot.com/2009/03/android-layout-tricks-3-optimize-by.html for a good example of that. about halfway down Apr 14 17:45:02 Thanks again! The article didn't open before for me now i'm good. Apr 14 17:45:04 anyone there to help! Apr 14 17:45:10 Does anyone know how to get a phone object through reflection?I want to change the network type Apr 14 17:46:24 I want my service to send data to server database until it is stopped. Apr 14 17:49:03 So basically I create a new layout resource xml file, describe the contents there as text views(Do i need the linearlayout root here?) and inflate it like in the example? Apr 14 17:53:19 any idea why Matrix.multiplyMM can give wrong results? Apr 14 17:54:10 most likely it doesn't Apr 14 17:54:31 im doing something like this Apr 14 17:54:31 Matrix.multiplyMM( WorldFactory.ModelViewProjection, 0, WorldFactory.Projection, 0, WorldFactory.ModelView, 0 ); Apr 14 17:54:55 and I'm getting wrong values in some columns/rows... Apr 14 17:58:31 stefkos: Could you give an example? Apr 14 17:58:44 well just checked it online Apr 14 17:58:51 seems to be ok... Apr 14 17:58:59 (Note that it's the cross product, and cross products of matrices is not the same as scalars.) Apr 14 17:59:06 did I forgot to transpose them somewhere Apr 14 17:59:57 stefkos: Most common issue is putting rhs where lhs should go. Apr 14 18:00:12 hmm lets see Apr 14 18:01:22 hi freeone3000 :) Apr 14 18:02:34 thx, I will play with this Apr 14 18:02:39 can you help me? i have a problem.. i have MyTask in class arrivi ..but i want call this in mainactivity... this is my code: http://paste.ubuntu.com/7250804/ Apr 14 18:11:05 roxdragon, learn some java Apr 14 18:24:59 what exactly are localized resources? Apr 14 18:25:39 nvm Apr 14 18:25:40 got it. Apr 14 18:29:32 frankdoyle so I've been playing around and come to this: http://pastebin.com/S77im6nD Apr 14 18:29:45 however now my app just crashes i can't even see the trace Apr 14 18:30:46 arphen: what does your R.layout.spritzview look like? Apr 14 18:31:51 frankdoyle first the main layout: http://pastebin.com/i30fDsdq Apr 14 18:32:38 frankdoyle and here rlayoutspritzview Apr 14 18:32:38 http://pastebin.com/2e76WWeH Apr 14 18:32:57 arphen: in any case, i think figuring out where that stacktrace went is your biggest problem. we're not doing anything crazy with this, so it shouldn't just disappear Apr 14 18:34:54 arphen: you need to override each of the constructors for the View class Apr 14 18:34:57 Updated Java to 1.7 and now the debugger wont launch in eclipse anybody have a fix for this? Apr 14 18:35:42 arphen: so the example has a constructor that takes a context and an attributesset Apr 14 18:35:47 frankdoyle eliminating all references to SpritzView makes the app run. Apr 14 18:35:57 but you've only implemented the one that takes the context Apr 14 18:36:01 ah Apr 14 18:36:19 does it have to be anything fancy? or can i just do the same as for the contextone Apr 14 18:36:40 yeah. i usually have an init() method that does all your stuff, then just put that in all three constructors Apr 14 18:38:23 ah nice Apr 14 18:38:42 you're a real help. Thanks I'll let you know how it works out Apr 14 18:42:58 Does anyone know how to get a phone object through reflection?I want to change the network type Apr 14 18:48:40 Phone.purchaseNewPhone(Money.get()); Apr 14 18:49:09 because of course money is a singleton Apr 14 18:49:11 only one Apr 14 18:49:15 ever Apr 14 18:49:18 Who needs more than one monies? Apr 14 18:51:56 jjnye: How are things? Apr 14 18:56:03 Mind_Hacker: You mean Wireless Data versus Wifi? Apr 14 18:56:49 No-2g/3g/4g freeone3000 Apr 14 18:57:07 Mind_Hacker: That's dumb. There's no reason to do that, ever. Apr 14 18:59:00 freeone3000:Not really..lots for me Apr 14 18:59:22 Mind_Hacker: Why? Apr 14 19:01:51 freeone3000:When the data plan is limited and you dont have wifi access,and just for the fun of learning how to do it. Apr 14 19:03:49 frankdoyle just getting a nullpointerexcept when i try to invoke my settext method :( trying to debug it Apr 14 19:05:00 arphen: make sure you're calling settext after the view is inflated Apr 14 19:05:53 Mind_Hacker: Changing your radio ID doesn't change your data plan usage tracking. Apr 14 19:06:20 Mind_Hacker: If you want to rate-limit over metered networks, there's other ways to do that. Apr 14 19:07:37 I am trying to create a LinearLayout with rows of 2 TextViews programatically and the text just isn't showing up, https://gist.github.com/anonymous/10674959 Apr 14 19:11:16 tv= (SpritzView) findViewById(R.id.fullscreen_content); Apr 14 19:11:37 frankdoyle for some reason the effect of this line is tv=null Apr 14 19:11:53 freeone3000:Its not much about limiting the rate.Its just to toggle between the states even if there is a low range for the network,and prevent the phone from switching to a different network according to the range. Apr 14 19:12:03 Mind_Hacker: You mean.. doing what the phone should do? Apr 14 19:13:33 freeone3000:not exactly.The phone switches to a higher range.I want to prevent that and keep it in the lower range network Apr 14 19:14:11 Mind_Hacker: But WHY? There's nothing to gain from doing that. Apr 14 19:17:05 freeone3000:Well there is for me,since I live in a place with very low ranges for 3g and 4g and the phone just keeps switching to a 2g range.I just want to keep my speeds to stay the same and not drop to unreasonable rates when home. Apr 14 19:17:17 Mind_Hacker: You get how wireless signals work, right? Apr 14 19:17:43 Mind_Hacker: Low gain means a high signal-to-noise, which means high error rate, which means high error correction rate, which means low data speeds. Apr 14 19:18:51 freeone3000 not sure here but isnt high signal to noise good? Apr 14 19:18:54 never had of it being bad Apr 14 19:19:17 do you know how could I take a screenshot of a dialog within its corresponding activity using Robotium and solo.takeScreenshot()? Apr 14 19:19:29 arphen: Err, high noise-to-signal. Apr 14 19:20:05 Mind_Hacker: So, basically, your phone is switching to 2G because it feels that the 2G signal is faster than trying to get a 3G signal it's out of effective range for. It's also almost certainly correct. Apr 14 19:20:46 Mind_Hacker: The proper solution is to get your cell provider to install a small-usage cell (like a femtocell) where you live. Or get a wireless router and hook it up to your home net. Apr 14 19:22:52 femtocell? Apr 14 19:23:01 is that a way to turn my wife into a cell tower? Apr 14 19:23:35 Found out why my text wouldn't show up, "creatorTitleTV.setTextSize(R.dimen.font_size_small);" Apr 14 19:23:47 freeone3000:Hmm.Might try that sooner or later. Apr 14 19:23:47 Which made the font so huge that I couldn't see it Apr 14 19:23:56 I was probably seeing the inside of an O Apr 14 19:24:01 :D Apr 14 19:42:17 Hi guys. Regarding what I talked a few hours ago about async tasks and the callback interface birbeck recommended me to use. When using a generic AsyncTask, is there any convention to differentiate the task we want to execute in the doInBackground() method? http://pastebin.com/G7CW99Y3 Even if it is more modular (the asyntask is not a nested class), I don't like very much that kind of code, it's like introspection. Any optimization idea? Apr 14 19:44:25 Is there a way for me to use a XML file to specify a dumb layout, then add that layout to an existing layout at run time? Apr 14 19:44:51 I don't want to use a fragment. I don't want a frament lifecycle. I just need to add items to my page. Apr 14 19:45:01 yeah, "include" so Apr 14 19:45:16 no, i need to do this dynamically. Apr 14 19:45:33 at runtime. since the number of these varies Apr 14 19:45:34 right. why not just add it? Apr 14 19:45:55 because there is a lot of customization to the items in the layout. Apr 14 19:46:21 inflater.inflate(R.layout.whatever, viewToAddTo, true) Apr 14 19:46:39 ok. that's what I tried, but it doesn't know what inflater is Apr 14 19:46:46 I'm in an activity. Apr 14 19:47:08 getLayoutInflater() Apr 14 19:47:13 ah thanks! Apr 14 19:47:37 I couldn't find any examples. they just all assumed "inflater" Apr 14 19:47:53 what file do I use when trying to sign my app? debug-unaligned.apk or unsigned.apk? Apr 14 19:48:48 neither Apr 14 19:49:09 there should be a plain signed apk, no debug, no unsigned. Apr 14 19:50:18 Scorp1us: Any idea for my question? Seems like I have been muted for some time. Nobody wants to answer to me xD Apr 14 19:50:49 (today, just not right now) Apr 14 19:50:52 wget: what? I just joined the channel Apr 14 19:51:17 Scorp1us: Sorry indeed. frankdoyle I meant ;-) Apr 14 19:51:52 Scorp1us: You asked a question after me and you got an answer immediately... :-) Apr 14 19:52:37 what is your question? Apr 14 19:52:39 sorry wget, saw your followup question, but didn't see the start Apr 14 19:54:25 frankdoyle: Yep. Actually the conversation with birbeck started on last Thursday ;-) No need to backlog until that date ;-) Maybe my question was too long. I'm gonna split it below. Apr 14 19:54:40 frankdoyle: When using a generic AsyncTask, is there any convention to differentiate the task we want to execute in the doInBackground() method? http://pastebin.com/G7CW99Y3 Even if it is more modular (the asyntask is not a nested class), I don't like very much that kind of code, it's like introspection. Any optimization idea? Apr 14 19:54:52 wget: yeah, that'd be great. ill try to help you out, but generally speaking i avoid asynctasks as much as i can Apr 14 19:55:11 frankdoyle what do you use instead? Apr 14 19:55:31 mattblang: Plain thread or loader maybe Apr 14 19:55:43 mattblang: depends on the context. IntentServices with a localabroadcast at the end is often a good choice for generic background tasks Apr 14 19:56:01 for http, I generally go with a library like volley or retrofit Apr 14 19:56:18 ive heard good things about ion as well, thouhg ive never used it Apr 14 19:56:52 frankdoyle: I actually wanted to use AsyncTask because it offers me the availability to send progress events to the View; Apr 14 19:57:28 frankdoyle: Before, I was using plain Threads like in J2SE, but it was really heavy to use Apr 14 19:59:22 wget: I think an intentservice/localbroadcast combo would suit your needs fairly well. just do a broadcast whenever you want to update the activity Apr 14 19:59:53 something that does pop out at me is that you're casting mCallback as an activity. if you're going to assume that it's always going to be an activity, there's no point using an interface Apr 14 20:01:21 frankdoyle: Actually if you read my comment, just below, "  // This actually needs to be replaced. Need to call the a mCallback method        // in order to avoid coupling objects too much." Apr 14 20:01:45 frankdoyle: I was just asking for the ugly code in the doInBackground() method. Apr 14 20:02:19 additionally (and this is the important part of this whole thing) sending a hard reference of an activity to an asynctask can cause problems on its own. Apr 14 20:02:57 frankdoyle: Yep if the configuration changes and the activity got destroyed. It's a problem I still need to think to. Apr 14 20:03:06 Maybe using a weakReference then. Apr 14 20:03:08 wget: what exactly aren't you happy with about it? Apr 14 20:03:31 frankdoyle: params[0] == Utils.CHECK_USER_EXISTS &&                params[1].getClass().getName() == ApplicationUser.class.getName())  Apr 14 20:03:32 wget: that's the easy solution, but the intentservice/localbroadcast lets it continue running in the background even across rotations Apr 14 20:03:46 frankdoyle: I need to pass static String to select the right action to choose Apr 14 20:04:14 my static Utils class countains some String tag Apr 14 20:04:17 +s Apr 14 20:06:34 frankdoyle: Do you have a working implementation with intentservice and localbroadcast? Apr 14 20:08:02 frankdoyle: applied to my use case if possible. Apr 14 20:08:23 wget: so you just don't like that your asynctask might be doing two different things based on a var you pass in? (without knowing your requirements, I'm just kinda guessing) seems like you could just have two different asynctasks Apr 14 20:08:48 wget: i don't have an example on hand, but it's a pretty standard implementation of the two Apr 14 20:09:41 frankdoyle: Actually I'm not satisfied because I don't know if it the right way to do. I'm an intern and I'm just doing experimentation. Apr 14 20:10:06 you start your intentservice in the usual way, and while it's doing things, it broadcasts "hey I'm doing things, here are some results" and when it's done it broadcasts "hey im done." your activity would listen for those broadcasts Apr 14 20:11:24 frankdoyle: Using a catch all AsyncTask for UserManagement was what I actually wanted to do to avoid code duplication in each nested class. Apr 14 20:11:47 frankdoyle: Do I need to stop that intent service in order to avoid memory leaks when the app is exited? Apr 14 20:11:51 *has Apr 14 20:13:20 So, I'm trying to set the src of an ImageView from a URL of a web resource. Whenever I do this, it ends up scaling the ImageView down. I'm using setImageDrawable. Apr 14 20:13:36 wget: I don't think it's incredibly bad practice to do it the way you're doing it. in fact, if you went with an intentservice, having a single intentservice that does different things based on given parameters would probably be the best way to do it. Apr 14 20:13:37 For some reason it ends up scaling down the ImageView. Apr 14 20:13:51 Even though it has a fixed maxWidth, maxHeight, minWidth, and minHeight. Apr 14 20:14:15 And it's set to be 0.5 layout weight of the containing component which has a total layout weight of 1.0 Apr 14 20:14:17 TheDracle: are you using a library to do this? Apr 14 20:14:29 frankdoyle, To obtain the bitmap you mean? Apr 14 20:14:58 frankdoyle, return Drawable.createFromStream Apr 14 20:15:10 frankdoyle, This is being doing from a Url stream from the resource. Apr 14 20:15:31 And then I'm just setting it on the ImageView using setImageDrawable. Apr 14 20:15:42 The drawable I specify in the XML is correctly scaled/positioned. Apr 14 20:15:52 TheDracle, well, first i'd suggest looking into picasso or another image loading library. Apr 14 20:15:56 It's actually the same dimensions... Apr 14 20:15:58 Ah. Apr 14 20:16:06 Yeah, this just seems to be a bitch. Apr 14 20:16:13 Lol, I'd gladly have a library figure it out for me. Apr 14 20:16:22 yeah, that's generally the right answer Apr 14 20:16:50 if you dont have some requirement preventing you from doing that, then i suggest using someone elses code Apr 14 20:17:00 Yeah, absolutely not, thanks for the pointer :) Apr 14 20:17:04 I've had good success with Picasso Apr 14 20:18:24 Yeah, it looks like exactly what I'm looking for. Apr 14 20:19:43 frankdoyle: Thanks for your POV. I'm gonna try to finalyse my current idea of solution and will use the intentservice as last resort. Apr 14 20:19:43 Btw, if I want to put some code to generalize a bit protected void onPostExecute(Object o){}, I'll have to create a bunch of accessors from my View class, it's rather annoying. Apr 14 20:19:43 We are losing the concept of encapsulation by allowing athers class to modify View class attributes Apr 14 20:22:29 wget: sorry I don't have a more definitive answer for you. there are a ton of different ways to do things like that, and i dont think there's a set of standards for any of it. there's definitely things you shouldn't do, but there are countless opinions on the "right" way to do things Apr 14 20:25:05 I'm looking for a comprehensive list of Views native to Android, say 4.0 and up. A google result usually brings up ListViews instead of a comprehensive list _of_ views. Anybody know where I should navigate to? Apr 14 20:26:09 http://developer.android.com/reference/android/view/View.html <- direct and indirect subclasses Apr 14 20:26:09 views as in resolutions or screen width x heights ? Apr 14 20:26:28 near the top Apr 14 20:28:25 Beautiful. Apr 14 20:30:20 frankdoyle: Let's drop my "purist" OOP mind; do you know how I can solve the problem of hard reference (and maybe garbage collector problems) and the one of the state of the async when the activity is killed? Apr 14 20:30:20 I see I cannot use onRetainNonConfigurationInstance() since it is deprecated, and I need to use a headless fragment instead; Apr 14 20:30:36 wget: WeakReference is what you want Apr 14 20:30:51 it's a neat thing Apr 14 20:31:22 wget: it keeps a reference to the activity, but lets it be garbage collected even while you have it Apr 14 20:32:40 frankdoyle: And the state of the async when the activity is killed (configuration changes for example)? "I see I cannot use onRetainNonConfigurationInstance() since it is deprecated, and I need to use a headless fragment instead;" Apr 14 20:33:14 huh, does otto have any weird interactions with inheritance? Apr 14 20:33:38 my subscriber in a base class isn't getting called Apr 14 20:35:02 if you're going to use a headless fragment, then you just put it in the headless fragment. nothing crazy, it should "just work". you'll have to figure out a good way to cache the result in case your task completes while your activity is being rotated Apr 14 20:38:14 pfn: yeah, only the immediate class gets its methods called Apr 14 20:38:24 ugh Apr 14 20:38:34 Yep Apr 14 20:38:37 yeah, that's pretty shitty Apr 14 20:38:47 JakeWharton is too lazy to fix Apr 14 20:38:58 go figure Apr 14 20:39:02 I should drop otto and go back to guava's Apr 14 20:39:38 He also promised to drop reflection and use code generation Apr 14 20:39:45 Haven't seen any of that either Apr 14 20:40:14 thanks Apr 14 20:40:41 I have a background service that updates the databases in my app with new data. How do I tell my user interface that the data has been updated? Apr 14 20:40:42 so I can display the new data Apr 14 20:41:38 // because otto is dumb Apr 14 20:41:38 private Object subscriber = new Object() { Apr 14 20:41:39 weee Apr 14 20:42:33 oh noes, an open source project has issues and doesn't meet my specific needs! whatever shall I do? Apr 14 20:42:54 Complain til they fix it Apr 14 20:42:55 frankdoyle, many alternatives Apr 14 20:43:07 not worth switching yet Apr 14 20:43:18 I have a background service that updates the databases in my app with new data. How do I tell my user interface that the data has been updated? Apr 14 20:43:23 so I can display the new data Apr 14 20:43:43 I think I have the implementation in a super class in one app, then each sub just overrides and adds subscribe annotation Apr 14 20:43:49 Was my lazy workaround Apr 14 20:43:53 GEEGEEGEE: the answer is probably loaders. if it's not, it's some kind of event bus/localbroadcasts Apr 14 20:47:30 SimonVT, yeah, that sucks, I'll just create anonymous listener objects Apr 14 20:47:42 SimonVT, and if it isn't worth, i'll switch back to guava Apr 14 20:47:49 since I'm using guava and otto in this particular project Apr 14 20:48:51 frankdoyle, Picasso solved all woes. Thanks very much! Apr 14 21:03:13 pfn: that's because Android is slow, not because Otto is dumb Apr 14 21:03:41 i'm happy to make Otto registration take 200ms+ for you if you want Apr 14 21:04:59 JakeWharton: are you guys still using otto or have you completely migrated to Rx? Apr 14 21:05:11 i don't think any app is using it anymore Apr 14 21:09:39 all apps in square have switched to rx? neat Apr 14 21:11:02 on the topic of rx: is there a way to turn an Observable> that spits out one List into an Observable that calls onNext for each item? Apr 14 21:11:57 frankdoyle: map a function which iterates. there's nothing built in Apr 14 21:12:08 mapMany* Apr 14 21:12:40 It was talked about but I don't think anything made it into core Apr 14 21:13:53 How can I get View.setScaleX() to change the layout size of a View? Apr 14 21:14:18 Essentially, I want certain components to zoom, and the others to reflow around it. Apr 14 21:15:25 JakeWharton: deprecated in favor of flatmap, but that's exactly what i needed. thanks Apr 14 21:15:37 freeone3000: you can't. you'll need to change the size of the view as well Apr 14 21:15:46 all view properties have no effect on layout Apr 14 21:16:21 JakeWharton: That's awkward. It's set to LayoutParams.WRAP_CONTENT. What's a more appropriate value? Apr 14 21:17:07 JakeWharton: Is this even something I should be doing, or is there a better way than doing this manually? Apr 14 21:17:17 well we really don't know what you're doing Apr 14 21:17:45 Hi, how do you make a variable that has the same value any in your class even if it goes outside a function, I know global variable will be null outside of the function so thats not one of my option. Apr 14 21:18:20 androidnewb, you just used bunch of terms that look very very wrong :) Apr 14 21:18:55 JakeWharton: I'm making something similar to https://famo.us/ , which is pretty similar to Facebook's Paper, but it has really poor performance on Android. So we need a native component. Apr 14 21:19:00 you're looking for a "static field"... and I have no idea where you got the "global variable will be null" thing... or the term "global variable" itself. Apr 14 21:19:16 JakeWharton: This requires the bottom row of "pages" to have one that gets bigger (and does some other stuff), while the others shuffle off to the sides. Apr 14 21:19:31 Mavrik: I need to keep track of a value within my class, what should I use? Apr 14 21:19:38 static field? Apr 14 21:19:42 androidnewb, a field? Apr 14 21:19:53 having ot use a static field to pass values is usually a code smell Apr 14 21:20:07 Static field? ok, its a code smell why? Apr 14 21:20:18 freeone3000, you know that that page just shows a registration form right? :) Apr 14 21:20:36 androidnewb, because it means you're relying/sharing state between objects... which is usually not done in such a way Apr 14 21:21:07 Mavrik: Ah. It redirects to http://demo.famo.us/paper/ here. Apr 14 21:21:20 Mavrik: Which looks like trash on desktop, but proper on mobile. Apr 14 21:21:43 Mavrik: how would you approach this? if you wanna track a value in your class? Apr 14 21:26:21 androidnewb, your question is too general for a good answer Apr 14 21:26:33 what does "track" mean? what value? Apr 14 21:26:45 freeone3000, yeh, it kinda breaks totally on desktop chrome :P Apr 14 21:27:17 Mavrik: A String value,.\ Apr 14 21:27:43 freeone3000, ah, I see Apr 14 21:27:45 Mavrik: Looks quite nice on a Snapdragon 800, but induces lag. So while they're working on their pretty phonegap version, I'm going to be doing it native. So. Is there an approach I should be taking other than a standard layoutmanager and messing with all the widths and heights manually? Apr 14 21:27:45 Mavtick: A string value, I wanna track in insde my class.java Apr 14 21:27:54 freeone3000, if you'll notice the trick they do Apr 14 21:28:10 freeone3000, is they just scale up the view statically about halfway through... and then crossfade to the new full-sized layout Apr 14 21:28:28 they're not doing reflowing while resizing because that just plainly won't work well on any platform :) Apr 14 21:29:50 Mavrik: Ah. So just resize the entire thing, then halfway through, trigger a layout change. Apr 14 21:30:12 freeone3000, make a "small" view and a large view Apr 14 21:30:28 do scale on small and when you're halfway through the animation, alpha in the larger view and fade out the smaller one Apr 14 21:30:33 the scale the larger one to full size Apr 14 21:30:50 Mavrik: It's not really an animation, since the user can stop at any point... Animation would be easier. Apr 14 21:30:56 NEVER trigger layout changes if at all possible especially not in animations becaure you're never getting away with that in 16ms Apr 14 21:31:28 layout changes are the enemy of performance ;P Apr 14 21:32:04 how do i change the animation curve for an ObjectAnimator? it starts slow, and ends fast… i need the opposite Apr 14 21:32:15 (but I don't know your full use case, but making smooth animations is all about faking stuff) Apr 14 21:32:20 FYI, easy dings in bash: Apr 14 21:32:21 export BELL=`echo x | tr 'x' '\007'` Apr 14 21:32:21 echo $BELL Apr 14 21:32:27 ultra-, use a different interpolator. Apr 14 21:32:38 ok, i’ll look into it Apr 14 21:32:39 tnx Apr 14 21:39:15 pfn: how call asynctask in another class? Apr 14 21:39:37 guys* Apr 14 21:40:04 well that was easy Apr 14 21:42:47 roxdragon, learn java Apr 14 21:46:10 okok Apr 14 21:56:15 pfn learn sed. ;D Apr 14 21:56:18 echo openssl | sed 's:[]\[openssl]:o&:g' Apr 14 21:58:47 How to show a Video with a VideoView in full screen but maintaining the Video aspect ratio? Apr 14 22:35:21 "As early as 2006, Android was designed to be a platform controlled by nothing but buttons." :O Apr 14 22:48:25 i guys... i get this error with myAsyncTask Apr 14 22:48:26 http://paste.ubuntu.com/7252360/ Apr 14 22:55:47 roxdragon: looks like you have something null on line 42 Apr 14 22:56:32 funkbox: line42 is @Override Apr 14 22:57:05 nope, it's probably something like new ProgressDialog(null) Apr 14 22:58:04 in mainactivity call my thread with // new arrivi().new MyTask().execute(""); Apr 14 22:58:19 in arrivi.java there is prog = new ProgressDialog(getActivity()); Apr 14 22:59:03 funkbox: http://paste.ubuntu.com/7252414/ Apr 14 22:59:18 there you go, activity is null Apr 14 23:02:10 why??? if i call my thread from class arrivi this work fine... Apr 14 23:02:24 the problem is if call thread into mainactivity Apr 14 23:02:37 how can i solve this? Apr 14 23:02:48 if the fragment is detached from the activity then getActivity() will be null Apr 14 23:04:50 yes... and how can fix? Apr 14 23:07:03 funkbox: Apr 14 23:10:26 just joined the chat, what are you trying to do? Apr 14 23:13:03 barbs: i have get this error... http://paste.ubuntu.com/7252414/ Apr 14 23:13:23 in mainactivity call my thread with // new arrivi().new MyTask().execute(""); Apr 14 23:13:32 in arrivi.java there is prog = new ProgressDialog(getActivity()); Apr 14 23:13:47 looks like code to me Apr 14 23:14:47 where are you calling that? Apr 14 23:16:51 this is arrivi.java http://paste.ubuntu.com/7252414/ Apr 14 23:17:41 The getActivity() in a fragment is null until it has been added to one Apr 14 23:17:48 in mainactivity barbs http://paste.ubuntu.com/7252465/ Apr 14 23:18:14 I can't see where you're calling prog = new ProgressDialog(getActivity()) Apr 14 23:18:19 yes... is null... but.. how can solve? Apr 14 23:18:32 do I have to log in to see the whole thing? Apr 14 23:18:59 I can only see up to line 19 of the arrivi fragment Apr 14 23:19:01 Either add the fragment to an activity and start the asynctask then, or don't make your asynctask an inner class Apr 14 23:19:04 no barbs Apr 14 23:19:13 yes Apr 14 23:19:14 one moment Apr 14 23:20:12 barbs: http://paste.ubuntu.com/7252472/ Apr 14 23:20:34 you were in here yesterday asking about NPEs ... Apr 14 23:22:19 one option might be to create and execute the task in the fragment's "onAttach(Activity)" method, so you know that the activity won't be null Apr 14 23:22:49 another idea might be to make a constructor for MyTask that takes a context, stores it as a field, and then uses that context to make the progressDialog Apr 14 23:23:16 you could then pass in the container's context in the oncreateview method (container.getContext()) Apr 14 23:23:40 but I'm not sure if that's a good idea, since you might be leaking the context by holding a reference to it in the AsyncTask, not too sure though Apr 14 23:24:15 ProgressDialog is so 2011 Apr 14 23:24:55 lol, what do you use SimonVT? Apr 14 23:25:12 An indeterminate progress bar in the layout Apr 14 23:25:26 well, lah-dee-dah! Apr 14 23:25:34 .. like everyone else Apr 14 23:25:45 thank u... try Apr 14 23:26:02 fancy shmancy! Apr 14 23:26:55 Hi, How to click on a button in a webpage and fill the fields? Apr 14 23:29:17 guys, is it possible? Apr 15 00:00:43 I am trying to record sound and print out the amplitude while the mic is on, but I am having trouble doing it. Apr 15 00:00:55 Here is my code for the RecordSound class: http://codeshare.io/aXHeo Apr 15 00:01:04 Here is my code for the MainActivity: http://codeshare.io/OnhR0 Apr 15 00:01:59 Can anyone help me out? Right now it is only printing zero when the mic is started. I have tried to code it so that it will change the text to the amplitude for the first fifteen seconds Apr 15 00:06:06 https://gist.github.com/llaskin/10691381 I am loading the main screen ok…but when clicking on the Add button, the app crashes Apr 15 00:06:09 can anyone help? Apr 15 00:07:13 jackand, So, that while loop in the callback for the button seems like it's probably a mistake. Apr 15 00:09:17 how do i force a webview to load all items from disk, not using any cache? sometimes a pictures is an old one, if i return from the picture changing activity (but i call webview.load(assets) on resume) Apr 15 00:10:28 if the new one should be loaded, the app crashes with "Consumer closed input channel or an error occurred" and "Attempted to unregister already unregistered input channel" Apr 15 00:12:32 briefchain, What triggers the picture to change within the webview? Apr 15 00:12:44 briefchain, Is it like a javascript thing that injects a new src to the element? Apr 15 00:12:54 th TheDracle yes Apr 15 00:13:05 briefchain, I'm assuming it's the same URL/ Apr 15 00:13:17 TheDracle yes Apr 15 00:13:20 :) Apr 15 00:13:33 briefchain, It might be easier to set it to a different URL. Apr 15 00:13:49 briefchain, I.E: Something with some mixed in variable that will prevent the image from being cached. Apr 15 00:14:13 briefchain, I do something similar, and the above scheme works. Apr 15 00:15:07 I.E: image.png?donotcache=SOMEGENERATEDTHINGAMAJIG Apr 15 00:16:17 briefchain, What framework are you using underneath? Apr 15 00:16:26 Like, PHP/Rails? Apr 15 00:16:35 no only js Apr 15 00:16:48 What's serving the image URLs? Apr 15 00:16:54 but thx for the hint Apr 15 00:17:05 a js array? Apr 15 00:17:10 briefchain, If you're using cloudfront or S3, you can do this shit pretty easily. Apr 15 00:17:27 Ah, wait, are the images local, and not foreign to the device? Apr 15 00:17:36 the images are within the apps local storate Apr 15 00:17:39 Right. Apr 15 00:18:03 @TheDracle yeah I wasn't sure where to put the while loop in order to make the TextView object update dynamically. I tried it just outside of the setOnClickListener method and it doesn't seem to pick it up either. A bit stumped Apr 15 00:18:05 There are ways to configure your cache settings on webview too. Apr 15 00:18:19 first, the image is the old one, after restarting the app some times, i crashes. until then, the old image was displayed Apr 15 00:18:53 jackand, You shouldn't take over the main thread of execution, use AsyncTask, then when you have something to update in the UI (Inside the While loop), runOnUIThread just the part that modifies the textview. Apr 15 00:20:24 TheDracle: thx for the hint Apr 15 00:20:30 i will try to disable caching Apr 15 00:22:41 TheDracle: a simple view.clearCache(true); in onLoadFinished does the job Apr 15 00:43:37 Hey, how i do for check internet status? ( Internet Status with Ping ) Apr 15 00:46:56 i have an ActionBarActivity with two actionbar tabs in it -- one is always present and another appears when needed. Apr 15 00:46:56 the problem is that when i remove the second tab and i'm left with only one tab, it allows me to swipe to the right, although the swipe never completes and just returns to the first tab. thet's when i'm left with one tab after removing the second, but when i initially have only one tab there is no swipe happening at all. i.e. in one case a single tab doesn't swipe anywhere, in another it does. Apr 15 00:47:46 in both cases `actionBar.getTabCount() == 1` and `pagerAdapter.getCount() == 1` Apr 15 01:22:44 JakeWharton have you found it necessary to tweak proguard for rxjava? i noticed matthias posted this https://groups.google.com/forum/#!topic/rxjava/_tRfKPeftIk Apr 15 01:23:17 not sure how i would have figured that one out Apr 15 01:26:11 i don't use proguard Apr 15 01:26:48 JakeWharton even for production? i've been thinking about ditching it, pita Apr 15 01:26:52 nope Apr 15 01:27:16 ok, thanks Apr 15 01:44:48 Hey, is there a designated area for getting paid help with apps? Apr 15 01:49:57 5k AUD and i'll help ya Apr 15 01:50:55 bankai_au but is the consulting from you or the dogs? Apr 15 01:51:12 the dogs know their stuff, man ... Apr 15 01:53:04 aud has gone back up Apr 15 01:55:52 https://gist.github.com/llaskin/10691381  I am loading the main screen ok…but when clicking on the Add button, the app crashes . What am I doing wrong? Apr 15 01:56:20 you're not reading the logs else you'd be able to answer that question your self Apr 15 01:56:51 errant_rider don't do that (crash) Apr 15 01:57:17 which logs bankai_au? and how do I read them? Apr 15 01:57:29 i've been trying to follow intelliJ but its not being very verbose…:( Apr 15 01:58:03 down the bottom, the logcat logs Apr 15 02:19:47 Log.d("SQL: ", sqlQuery); should log the string sqlQuery to the LogCat as a debug msg right? Apr 15 02:20:53 depends on sqlQuery.toString() Apr 15 02:21:46 I need to do some bit transformations of data coming in from an inputstreamm and put it back out another inputstream (so I can send to a nanohttpd) Apr 15 02:21:56 what subclass should I use? Apr 15 02:22:58 sqlQuery is of type String Apr 15 02:24:02 TSCHAKMac there is BitSet ... Apr 15 02:26:51 nah, just a ~ of the incoming byte is sufficient Apr 15 02:27:04 thanks tho, I'll remember that :) Apr 15 02:28:59 What are the sin, asin, cos and pi functions called in sqlite? Apr 15 02:29:37 doubt it has those Apr 15 02:30:02 GEEGEEGEE http://sqlite.org/lang_corefunc.html Apr 15 02:30:15 more or less, thats for the latest version. android doesn't have the latest though Apr 15 02:49:08 hello all **** ENDING LOGGING AT Tue Apr 15 02:59:59 2014