**** BEGIN LOGGING AT Mon Jul 21 03:00:00 2014 Jul 21 03:00:34 bankai_au I tried to follow a Swift tutorial on how to build a small app with backend integration, and I found it extremely easy, compares to numerous videos on Objective-C. Jul 21 03:01:15 Objective-C might also be very good, its just that I found it a bit difficult to get into. Jul 21 03:01:39 the same thing can be said for java really. depends on your bg Jul 21 03:02:31 right Jul 21 03:02:59 How good is RoboVM in this context? Jul 21 03:03:06 anybody used it before? Jul 21 03:03:30 it's pretty good, i'm using atm for a project Jul 21 03:06:09 ok Jul 21 03:22:04 bankai_au, so, how robust is robovm, could I target it with scala? Jul 21 03:22:56 pfn: https://github.com/roboscala/sbt-robovm Jul 21 03:23:36 only thing is you can't do bytecode manipulation Jul 21 03:23:57 thus fun things like *mock* don't work, javassist etc. Jul 21 03:24:13 bankai_au, interesting Jul 21 03:24:31 i'm very interested in scala, i just don't have time, but i found a page that talks about robovm and scala Jul 21 03:24:32 don't use javassist in scala, or any byte code manip Jul 21 03:24:36 http://ajhager.com/ Jul 21 03:24:49 mocking for testing is it Jul 21 03:24:54 yeah Jul 21 03:25:55 i know next to nothing about scala, how well does it talk to 'traditional' java libs/methods etc? Jul 21 03:27:15 bankai_au, it interops 100% Jul 21 03:27:21 oh, then you're fine Jul 21 03:28:00 think of it as a better java with an easy path into FP if you're so inclined Jul 21 04:29:35 I am having problem with loaderManager Jul 21 04:29:49 I am trying to restart the load with : getLoaderManager().restartLoader(2, null, NewFragment.this); Jul 21 04:29:55 but I am getting error Jul 21 04:31:19 java.lang.NullPointerException Jul 21 04:31:48 i love me a good npe Jul 21 04:33:38 argggg so frustrating Jul 21 04:54:21 hmm seems to be solved now Jul 21 04:54:31 Yay Jul 21 05:25:46 why would onitemclick return position 0? Jul 21 05:35:33 In which path will the data get stored in a real device Jul 21 05:35:47 in emulator it used to be data/data/projectname/file Jul 21 05:36:35 same location, but you don't need to know this Jul 21 05:39:08 bankai_au: same location? Jul 21 05:39:15 I dont see anything inside data folder Jul 21 05:40:52 do I need any root permission to see my files? Jul 21 05:40:53 I am debugger mode enabled Jul 21 05:47:08 wow, seems inkscape has 0.48.5 installer for mac finally Jul 21 05:55:39 i am confused by the memory usage on my device Jul 21 05:55:41 so I have same question as this: Jul 21 05:55:41 http://stackoverflow.com/questions/21051348/how-to-retrieve-contacts-phone-number-with-one-cursor-or-projection Jul 21 05:57:36 cleanmaster says the total is 196.2MB available 4.8MB 98%. but the device has 1G memory internal. Jul 21 05:59:18 goodwin: are you running out of memory for your app or something? Jul 21 05:59:19 4.8 doesnt sound like 98% of 196 either Jul 21 05:59:47 you must have meant the othr way Jul 21 06:00:34 Leeds: yes i couldn't install apps any more it says not enough memory. Jul 21 06:00:43 goodwin: you mean an app you're working on? Jul 21 06:00:57 and are you talking about RAM or flash storage? Jul 21 06:00:59 oh you mean storage..... thought you meant ram Jul 21 06:01:04 lol Jul 21 06:01:44 Leeds: I am trying to install apps from Play store. Jul 21 06:02:00 goodwin: this channel is for app development, not user support Jul 21 06:02:25 Leeds: what is difference between RAM and flash memory? Jul 21 06:02:58 goodwin short-term vs long-term storage. you may find more help at #android Jul 21 06:03:00 njcomsec: the device has 4G SDcard which is almost empty Jul 21 06:03:28 like Leeds said, this channel is for programmers developing apps, not for troubleshooting the apps (or the devices) themselves Jul 21 06:03:44 ok Jul 21 06:05:52 detachYo lemme look real quick Jul 21 06:06:10 hi, anyone used Mixpanel? Jul 21 06:07:15 sarbs: I added bounty on that question, if you think you have the answer, just answer there and I'll accept it. Jul 21 06:11:05 If it was a raw SQL, I would write join to select the phone number Jul 21 06:11:06 with the contact Jul 21 06:11:11 join using contact_id Jul 21 06:11:36 but I guess it's not possible, because if a contact has one or more numbers, you will HAVE to have a way of specifying which one you want Jul 21 06:11:40 unless that's built in Jul 21 06:12:23 yeah.. i'm lookin thru the source for ya Jul 21 06:12:32 may take me a little while tho Jul 21 06:13:30 thanks sarbs for taking your time Jul 21 06:29:22 sarbs: any luck? Jul 21 06:29:40 looking thru Dialer's code.. it's quite complex Jul 21 06:29:50 i'll point you to the relevant repositories so you can look too if you want Jul 21 06:30:37 https://github.com/CyanogenMod/android_packages_apps_ContactsCommon https://github.com/CyanogenMod/android_packages_apps_Contacts Jul 21 06:31:49 Yup. I have ContactsList working Jul 21 06:31:54 that extends ListFragment Jul 21 06:31:57 everything is perfect there Jul 21 06:32:11 but then I tried to modify it to search contact's and phone numbers into autocompletetextview Jul 21 06:32:26 everything works fine now too, I am just trying to add phone number besides the name Jul 21 06:45:36 sarbs: I am outty. Thanks for putting the time again. Jul 21 06:45:41 detachYo this may be a fabulously dumb suggestion, but have you tried simply adding Phone.NUMBER to the projection you initially query on? Jul 21 06:45:51 oh sorry lol, took a little too long Jul 21 06:46:37 i haven't tried that solution yet, when i get some free time i'll whip up a tinker app with the SO question's example and incorporate what i've read in the dialer source Jul 21 06:47:22 see if i can either come up with a solution for you or at least run into the same wall you've hit Jul 21 06:51:21 Can someone tell me why Gradle is giving me the error: "package com.viewpagerindicator does not exist". I imported it correctly into AS without even using Gradle. Jul 21 06:55:24 There isn't a single error in AS' editor Jul 21 06:55:56 sarbs thanks a lot! Jul 21 06:56:09 i'll be online tomorrow Jul 21 06:56:13 same time most likely :) Jul 21 06:56:20 I'll let you know if I found a solution. Jul 21 06:57:44 .win 15 Jul 21 06:57:47 oops. Jul 21 07:00:19 sarbs: Tried Phone.NUMBER, didn't work. Jul 21 07:00:41 ok, cool. i'll be online tomorrow as well, i'll tinker around and let you know if i find anything. Jul 21 07:00:58 what's it fail with if you give it Phone.NUMBER? just doesn't find the projection? Jul 21 07:01:17 wonder if it's a system-only thing Jul 21 07:05:49 One last comment: I am going to follow this http://stackoverflow.com/questions/6587674/android-contacts-display-name-and-phone-numbers-in-single-database-query Jul 21 07:05:55 and I am pretty sure I'll solve the problem Jul 21 07:06:00 Its the way the queries are built Jul 21 07:06:06 Thanks again! Good night. Jul 21 07:06:44 hello Jul 21 07:07:10 i receive this string of text on my phone: http://shrani.si/f/3b/Xw/194ibOf4/string.png Jul 21 07:07:23 it should be only 1279 as a string Jul 21 07:07:25 cool man. gl! Jul 21 07:08:19 on the transmitter side is OK, because I was receiving text on another app Jul 21 07:08:41 and the string was correct Jul 21 07:09:25 I am using ASCII as a string in java Jul 21 07:09:44 does anyone know where is the problem? Jul 21 07:19:41 hey there Jul 21 07:19:45 hows it going Jul 21 07:20:03 Zeppelin: cool story bro Jul 21 07:20:10 your welcome Jul 21 07:20:29 i receive this string of text on my phone: http://shrani.si/f/3b/Xw/194ibOf4/string.png Jul 21 07:20:33 it should be only 1279 as a string Jul 21 07:20:42 on the transmitter side is OK, because I was receiving text on another ap Jul 21 07:21:18 i am using new String(buffer, "ASCII") Jul 21 07:22:38 maybe the string is being sent in unicode or something? Jul 21 07:22:55 two bytes per char Jul 21 07:23:43 *up to 2 bytes per char Jul 21 07:23:49 yes, I tried that Jul 21 07:23:56 but it does not work Jul 21 07:24:11 sindbad: this is an encoding issue Jul 21 07:33:50 what about baud rate setting in androidapp? Jul 21 07:34:05 the baud rate for module is 9600 Jul 21 07:34:30 is there any cmd or flashable to pre enable 3party apps (.apk) on a fresh installed rom? Jul 21 07:42:25 grex25: topic Jul 21 07:48:36 good morning, I'm trying to get contact info, and I'm getting an error that I need android.permission.READ_CONTACTS, although I added it to the manifest file. any idea why? Jul 21 07:52:07 anyone here use intellij idea? Jul 21 07:52:43 i have a jar file i placed in libs/ and while the IDEs syntax highlighting knows about the methods in the jar the build doesnt Jul 21 07:53:58 Is there a published mechanism of how to test in app billing on android with test purchases. Previously test purchases only worked on unpublished versions of the app. But now test purchases work on all published versions of the APK(Production included). For a new app this is okay, How do you then test incremental updates to the app when you have an APK in production already published. Since the test accounts that can make test payment on alpha or Jul 21 07:53:58 beta can then make test payment on a production version of the APK Jul 21 07:54:49 I asked Google Play dev support about this, they say this intended, how do you then go about testing incremental updates? Jul 21 07:58:14 anyone has any successful strategy regarding this ? Jul 21 08:13:58 Im trying to create a layout with a white background, and a smaller orange square inside it. Simple enough, except i want to wrap it inside a scrollview AND i want it to take up the entire screen even if the screen is large. On smaller screens, this works: http://bpaste.net/show/4U6VPS1kuCAF31wWwbJG/ - How do i make the inner linearLayout take up the entire screen (match_parent doesnt seem to do the trick) Jul 21 08:14:45 where can i find system property of unknown sources (sqlite)? found nothing on the web Jul 21 08:15:12 hello people, I am having trouble posting questions to https://groups.google.com/forum/#!forum/android-developers Jul 21 08:15:55 my questions are not showing up Jul 21 08:26:09 geoaxis: the link you pasted says 'Posts from new members are moderated' so probably your questions are being moderated. Jul 21 08:30:44 at which baud rate does a new phone with Android 4.2 read from bluetooth devices? Jul 21 08:31:02 Guys how do I send byte[] with Post with Retrofit? Jul 21 08:32:35 jush, but my questions are very relevent, i am not sure why they would be rejected Jul 21 08:35:03 Excellent, apparently Romain Guy covered my use case here: http://www.curious-creature.org/2010/08/15/scrollviews-handy-trick/ Jul 21 08:35:10 geoaxis: they're probably not being rejected, they just haven;t been accepted yet Jul 21 08:43:56 The default behavior of AutocompleteTextView should be to only display items in the dropdown that begin with the characters typed in, shouldn't it? I haven't set any other behavior, however, my AutocompleteTextView searches the list for the string at any position and then shows results alphabetically. I would like to use the default behavior. Any ideas what could be causing this? Jul 21 08:51:39 dced Jul 21 08:52:52 barq, what autocompletethextview shows is totally up to you and the adapter you passed. Jul 21 08:53:09 I passed an ArrayAdapter Jul 21 08:54:21 Is there no way to set the functionality to search starting at the beginning of the string? Jul 21 08:55:58 hey Jul 21 08:56:32 barq: have you looked at implementing Filterable on your adapter? Jul 21 08:57:19 No, I thought that was the default behavior. Jul 21 08:57:37 I guess not..? Jul 21 08:58:55 barq, yeah, just passing a random adapter that has nothing to do with filtering won't work Jul 21 08:59:06 implement runQuerty on your adapter to control filtering. Jul 21 09:11:40 Hi - I just created my first android wear app - APK installs fine on watch. Created the signed APK as per instructions to deploy on mobile. Checked and there is a android_wear_micro_apk.apk inside. but when I install it to the mobile it doesn’t get installed to the synced android wear device. Checked logcat on the mobile, no errors (that I can notice). Any other idea of what I should check? Jul 21 09:16:27 is it possible to hide the ui stuff (player controls, etc) from a youtubeplayerview/fragment Jul 21 09:25:25 drcursor: I'm not 100% sure but I think that if you install it manually (from AS or adb) then the micro apk is not transferred. Jul 21 09:25:48 So it would only work from the playstore? Jul 21 09:27:23 I had that impression, but I can't find anything related to it when searching in Google. Maybe somebody else has more knowledge. Jul 21 09:28:30 might be a middle ground to push it to the phone and install it locally? Jul 21 09:32:36 drcursor: I found this http://stackoverflow.com/questions/24685845/android-wear-app-not-installed maybe it helps Jul 21 09:43:38 what is the difference between onstart and oncreate Jul 21 09:43:52 they're called at different times Jul 21 09:44:10 is it that onstart is called for services and oncreate for activities? Jul 21 09:44:18 No Jul 21 09:44:22 http://developer.android.com/reference/android/app/Activity.html Jul 21 09:45:10 ah ok...so they are the phases of an activity Jul 21 09:45:30 Notice that onStart is called after onRestart() whereas onCreate() isn't. onCreate() is called beforehand if the app process doesn't exist. Jul 21 09:45:44 You should memorise the diagram there :) Jul 21 09:46:14 Estel: yes Jul 21 10:14:38 hey Jul 21 10:14:54 is it possible to capture other applications screen through my application? Jul 21 10:23:33 Hello! Is any possibility to share text into applications like twitter facebook linkedin etc. and receive result (was sharing successful or not)? Jul 21 10:24:38 Or in case that there is no "contract" - this applications will not handle situations when sharing done with startActivityForResult? Jul 21 10:33:19 exus 7I need to develop a specialized app aimed at v4.4+, specifically for a Nexus7, so I am working through the tutorial https://developer.android.com/training/basics/firstapp/starting-activity.html – this requires android.support.v7.app.ActionBarActivity. However, I have the feeling that I should not be extending ActionBarActivity, but another class. Jul 21 10:33:48 a bit garbled Jul 21 10:33:54 I need to develop a specialized app aimed at v4.4+, specifically for a Nexus7, so I am working through the tutorial https://developer.android.com/training/basics/firstapp/starting-activity.html – this requires android.support.v7.app.ActionBarActivity. However, I have the feeling that I should not be extending ActionBarActivity, but another class. Jul 21 10:34:45 Nivag: you're correct that that's a compatibility class Jul 21 10:35:08 But building against it should still work fine Jul 21 10:35:28 You'd probably be perfectly safe substituting for Activity though Jul 21 10:37:03 I'm a very experienced developer, but a complete novice at Android! Jul 21 10:37:49 so. It is okay to extend ActionBarActivity, but I could use Activity? Jul 21 10:37:55 pros & cons? Jul 21 10:38:24 @jush - that was it - the permissions on the mobile side Jul 21 10:38:26 thanks alot! Jul 21 10:38:36 (somehow I missed that stackoverflow thread Jul 21 10:38:37 ) Jul 21 10:38:57 Nivag: ActionBarActivity is a compatibility library to allow the action bar to work with Android 2.3 Jul 21 10:39:35 So in this case pro using it: you make sure you don't overlook some API difference whilst using that tutorial that results in some lengthy debugging for no good reason Jul 21 10:39:50 Con: well, there's some overhead probably Jul 21 10:45:20 just noticed simply replacing ActionBarActivity with Activity, removes the compile errors. So probably my best approach is to complete the tutorial with ActionBarActivity, then afterwards go back and replace it with Activity - this I'll do. So now, I'd simply like a better understanding of what is going on. It is a lot clearer now, thanks. Jul 21 10:47:55 Hi all Jul 21 10:48:30 Estel: My current understanding is that the action bar is relatively new, that ActionBarActivity ensured the action bar was n screen & created an activity to use it. With 4.4 (at least) the action bar exists, so simply need to create an activity to use it. Am I close? Jul 21 10:50:13 Yes that's correct :) Jul 21 10:50:47 Nivag: the action bar is actually over three years old now, and most developers around here would ignore any device that doesn't support it. Jul 21 10:53:03 I was so totally confused, and looking for complication that were not there! :-) Jul 21 10:54:21 Well there can definitely be complication if you look for it ^^ Jul 21 10:54:32 Estel: Curious, are you a student or lecturer? Jul 21 10:54:43 Hopefully neither! :D Jul 21 10:54:44 * Nivag chuckles Jul 21 10:55:36 Estel: was trying to deduce your background from your email address! Jul 21 10:56:15 Ahh yeah, I just still use the old society shell account :) Jul 21 11:07:11 Does anyone have an idea of how the Facebook Messenger app is making Lock Screen notifications on Android 4.4.4? I thought it was a new Android L feature?! Jul 21 11:09:12 EdGeorge: I noticed that yesterday, definitely surprised Jul 21 11:09:48 I have literally no idea how they are doing it... Jul 21 11:10:13 Presumably it comes from the draw on top of other activities permission? Jul 21 11:10:39 Estel: I need a small help Jul 21 11:10:58 (I also can't find any setting in the Messenger app that applies to it) Jul 21 11:11:11 Estel: please let me know how the database retrieval and the frontend works Jul 21 11:11:29 niru: how to use a database? Jul 21 11:11:49 Estel: I question is :Now I want to compare the userid and password typed with the database uid and pwd. If they match I should go to next page Jul 21 11:12:19 Is the database on the device? Jul 21 11:12:29 Estel: yes Jul 21 11:12:56 do i need to write the query in th frontend or should I use a Adapter program Jul 21 11:13:09 I mean any cursor? Jul 21 11:13:28 I don't really understand your question Jul 21 11:13:30 keeping the frontend programs clean Jul 21 11:13:51 You want to query the database for that particular userid and password pair. If it exists, authenticate the user. Jul 21 11:14:00 The query should be threaded, yes. Jul 21 11:14:07 Estel yer me neither. Strange. Jul 21 11:14:55 Estel: threaded means? Jul 21 11:15:54 Using a, uhh, thread Jul 21 11:29:19 EdGeorge: it looks like it's just a window withe the correct TYPE_SYSTEM_OVERLAY stuff happening. Strange that nobody has done it before. Jul 21 12:12:08 Hi, I want to use the stock browser icon for my application. am I allowed to do this? Jul 21 12:15:56 why is dexter logging to syslog? Jul 21 12:16:11 how can i disable it? Jul 21 12:18:55 I can't find Java Compiler/Annotation Processing @ Eclipse Project's Properties (adt-bundle-windows-x86_64-20140702) Jul 21 12:19:20 But I can find Java Compiler/Annotation Processing @ adt-bundle-windows-x86_64-20131030 Jul 21 12:19:53 I found out eclipse/plugins/org.eclipse.jdt.annotation_1.0.1.v20130111-135246 is missing. Jul 21 12:21:44 Want to know this! Jul 21 12:36:58 After installing "Juno/Programming Languages/Eclipse Java Development Tools" at Available Software, I can see Java Compiler/Annotation Processing Menu. Jul 21 12:37:19 And resetting all options under Annotation Processing Menu, I can build it. Jul 21 12:37:58 https://code.google.com/p/android/issues/detail?id=73798 Jul 21 12:42:07 Hey guys, does anyone know how the Google IO app propagates scroll events? I'm talking about the behaviour where scrolling the view reduces the size of the image at the top, until it disappears and the view below it snaps up to meet the action bar? Jul 21 12:42:22 anyone know how do I save text and add to it a textview? Jul 21 12:43:09 monkeyrunner is the best tool evar Jul 21 12:43:30 I'm trying to add to the existing textview, add to the textview each time. Jul 21 12:43:53 as in create a running list Jul 21 12:43:57 Why not read the textview's current value and concatenate? Jul 21 12:44:05 Either that or maintain a StringBuilder instance. Jul 21 12:45:28 I'm running a service that broadcasts and intent, displays the intent in the activity, but I only get the current broadcast rather than adding to it in the textview Jul 21 12:54:29 After I logged into my Google Developer Console I see this at All applications -> Statistics "On May 28th, 2014, we made some corrections to the installation statistics for apps that are preinstalled or are used by multiple users on the same device." Jul 21 12:54:34 Does anyone know what does this mean? Jul 21 12:54:54 i.e. what are the actual changes made by Google? do they count preinstalled apps now? Jul 21 12:55:01 I was told there's a way to make an app dependent on another app in the playstore so that both will automatically downloaded (presumably with some user input). can someone tell me more about that? Jul 21 12:55:44 Syzygy__: Check if it's installed and open the market to the correct app if not? Jul 21 12:55:49 not automatic Jul 21 12:56:32 flan3002, yeah, but supposedly there's something a bit more closed off from actuall app functionality Jul 21 12:57:03 Do you have an example? Jul 21 12:57:19 Like... you could like in the manifest of an app which manages to pull this off. Jul 21 12:58:41 I assume it's done via the manifest. Basically my goal is to split off the app into the app and a core app that handles stuff like database access or synchronisation with my backend which is the same between all of my apps Jul 21 12:59:10 *look Jul 21 12:59:34 Makes sense. If you find out how it works, tell me! :P Jul 21 13:00:33 there's resource apk downloads only Jul 21 13:00:45 which are automatic Jul 21 13:00:57 nothing else is Jul 21 13:01:03 Yeah, but these can't be shared, right? Jul 21 13:01:16 cannot Jul 21 13:01:45 and they can't really contain code, either Jul 21 13:02:25 Well... Define 'really'. :) Jul 21 13:02:34 You /could/... Jul 21 13:02:52 as pfn said, this is not possible. All you can do is check in app 1 if app 2 is installed and "force" the user to download app 2 Jul 21 13:03:56 I still want to understand why the newest support-v4 is an aar Jul 21 13:04:11 is there a human way to link xml to object views? I have a 3 fragments with 20 widgets fuck Jul 21 13:05:04 well, guess I'll have to stick to including the core functionality in every app and negociating a master that handles database access Jul 21 13:05:43 Syzygy__: whats wrong with a library project for database managment that gives that functionality to every app? Jul 21 13:05:59 Syzygy__: Wait. Don't you want to discuss about a cool but unproductive solution? Jul 21 13:06:14 flan3002, no, i want a productive solution :> Jul 21 13:06:45 Well, is dynamically downloading and loading dex files productive enough? Jul 21 13:07:07 It /could/would/ require less user interaction. :P Jul 21 13:07:32 It might blow up in ART though. Anyone knows more? Jul 21 13:08:11 How does Facebook handle ART and dynamic dex loading... Jul 21 13:09:04 facebook has dynamic dex loading? Jul 21 13:09:21 Well, it hit the method limit, so... Jul 21 13:09:22 yes Jul 21 13:09:35 since years Jul 21 13:09:44 okay Jul 21 13:09:46 because the app is stank Jul 21 13:10:16 flan3002: http://stackoverflow.com/questions/23739261/does-android-art-support-runtime-dynamic-class-loading-just-like-dalvik Jul 21 13:10:23 So, pfn, and idea beyong hashing and caching? Jul 21 13:10:33 according to answer 1 it works the same way it does in Dalvik Jul 21 13:10:39 *any Jul 21 13:11:21 Oh, cool! I'm going to update my relevant SO answer... Jul 21 13:11:22 flan3002, for what Jul 21 13:11:30 Nevermind... Jul 21 13:12:29 danijoo, so do anything interesting with scala yet? Jul 21 13:13:00 not really. But im playing with the idea of making a game with libgdx Jul 21 13:13:15 maybe with using scala Jul 21 13:13:35 (if it works, and if I dont lose my mind over that) Jul 21 13:13:47 neat, should work fine Jul 21 13:14:10 So I added a deep-link data intent filter to my activity, works fine from the adb shell but how do I get the app launched now from within the browser app? Jul 21 13:14:17 Entering the URL does do anything Jul 21 13:14:45 pfn: not sure how well libgdx handles scala though. Jul 21 13:15:04 Im still in game design phase so I cant say much about it yet Jul 21 13:17:27 danijoo, it just exposes a set of Java api and callback, so just fine Jul 21 13:20:39 houdy Jul 21 13:21:29 is there a decent way of making money on ad supported apps that have very little activity usage? Jul 21 13:21:50 like an app that is basically a background service Jul 21 13:23:03 or is the only choice for those apps to have a one time purchase or in-app buy of extra features Jul 21 13:23:23 If you make a background service popup loads of ads everywhere or use push notifications your userbase might be very small. Jul 21 13:23:32 flan3002: precisely Jul 21 13:23:43 So don't. :) Jul 21 13:23:51 and didnt even google ban those kinda ads? Jul 21 13:24:01 I think so. Jul 21 13:24:22 im just wondering if theres another angle I havent thought of Jul 21 13:24:24 What's your audience? Jul 21 13:24:40 just talking in general terms really Jul 21 13:24:57 why? Jul 21 13:25:32 Answer it, or don't. I'm /trying/ to help you... Jul 21 13:26:53 then I have to think of a specific example :) Jul 21 13:27:28 hmm.. for instance I have this countdown app which is only started when wanting to start the countdown Jul 21 13:27:43 so this will generate no ad income Jul 21 13:27:54 But ads from background apps are a no-go to me, barely acceptable in foreground apps. You can have trial + in-app for unlock, ordinary price, subscription (:/) or donations... Jul 21 13:28:00 unless I do a full screen ad for every launch, hehe Jul 21 13:28:09 And of course your usual in-apps for features... Jul 21 13:28:14 yeh Jul 21 13:28:24 Does anyone know if statistics on Google Play Developer Console for app installs also count preinstalled apps? Jul 21 13:28:40 Google says they've changed something https://support.google.com/googleplay/android-developer/answer/139628?rd=1#stats_updates Jul 21 13:28:46 but they don't tell us what Jul 21 13:29:09 So are preinstalled apps counted? Jul 21 13:29:17 quacked: Well, there's a countdown app preinstalled... How are you going to beat it if you display ads? :/ Jul 21 13:29:39 flan3002: I have this other app which has a lot of screen time, but I'm not really sure that a one time purchase is better than the ad income I get from it Jul 21 13:30:03 I'm not either. :) Jul 21 13:30:21 And it's hard to be. Some people would call it 'impossible'. Jul 21 13:31:20 the revenue generated for one time purchase is about 11-15 ad clicks I reckon Jul 21 13:31:44 thats perhaps the number of accidental clicks per user for a year Jul 21 13:31:45 hehe Jul 21 13:33:28 flan3002: I made the countdown app to start preconfigured timers quickly: https://play.google.com/store/apps/details?id=com.ninjacode.ninjatimer Jul 21 13:34:03 I use it quite a bit from the lockscreen Jul 21 13:35:23 Well, I wouldn't buy a countdown app while comparable alternatives exist. Never. But I also wouldn't an app with ads... Jul 21 13:35:33 *+ use Jul 21 13:37:48 nah, that app isnt something Im gonna try making money on Jul 21 13:38:21 600 or something got it installed Jul 21 13:39:01 have a some textviews inside a list view item. if i increase the textviews' font, the item height increases disproportionately Jul 21 13:41:29 is this a question bitkiller Jul 21 13:41:58 statement of a problem Jul 21 13:42:25 ok. then good luck Jul 21 13:43:38 how is it disproportionate, it is proportional by definition Jul 21 14:06:39 hello getAvailableBlocksLong is the new function that need to be used in place of the depricated getAvailableBlocks() but if i am targetting sdk 9 min i need ot use the depricated version... is there anyway to future proof this? Jul 21 14:08:09 version check, dug Jul 21 14:08:12 duh Jul 21 14:11:21 flan3002: I see your points, but I guess that sometimes adds are not that bad, I guess in-app is good but depend on the app tho Jul 21 14:11:25 donations are really a no-no Jul 21 14:11:29 nobody does that I am afraid Jul 21 14:11:53 How was that dungeon game called...? Jul 21 14:12:16 I really like it: Free, no ads, awesome. And a not too promimenent donation button... Jul 21 14:12:31 Not saying it's THE way, but it might work for some. Jul 21 14:13:38 and open source Jul 21 14:13:41 don't forget that :P Jul 21 14:15:01 Well, that just adds to it, but is not something the average user will recognize. :) Jul 21 14:15:12 I am not sure if I am going to do any app soon, but I would probably go for the free + open source anyway Jul 21 14:15:30 adds gives shit Jul 21 14:16:28 I should do a game at some point... :/ Jul 21 14:16:52 the bad part of gaming is that programming it is not enough ;( Jul 21 14:16:55 But I've still not arrived at 'ship the game, nobody sees your code'. :( Jul 21 14:17:05 Well, programmer art. :) Jul 21 14:17:27 Also, I got plenty artistic friends, so if I ask well enough... :) Jul 21 14:18:17 uh, that is good, I only have programming friends :P Jul 21 14:20:03 * lut4rp stretches out Jul 21 14:21:53 Foxandxss: Well, do you have a good idea for a game? You don't /have/ to draw it yourself. Apart from paying people to do it, there might be volunteers... :) Jul 21 14:23:54 maybe there is a tutorial somewhere - "drawing for geeks" Jul 21 14:24:21 I bet there is... Jul 21 14:24:39 flan3002: nah, I was never interested in games Jul 21 14:33:04 Foxandxss, heh, with the exception of qicr, all of my apps are both for-pay while open source Jul 21 14:33:46 pfn: oh really? that is good to know Jul 21 14:34:03 I have a few non-OS friendly friends that thinks that you can't earn money with OS Jul 21 14:34:10 why give it away for free unless it's completely worthless Jul 21 14:34:14 someone is going to steal your code and make profit Jul 21 14:34:36 Foxandxss, you can always bring in lawyers if it's enough Jul 21 14:34:58 yeah, licenses should do its work Jul 21 14:35:38 and no, most people don't steal work, cept Chinese knockoffs Jul 21 14:36:43 pfn: I see, found your OS stuff Jul 21 14:37:11 if people want a free copy of my apps, they can build it for themselves Jul 21 14:37:29 hey guys, I'm getting an error: "No resource found that matches the given name: attr 'layout_height'" on a custom subclass of LinearLayout, has anyone seen this before? (and knows how to fix it?) Jul 21 14:37:48 asQuirreL, use the proper namespace Jul 21 14:37:50 pfn: If people want your apps they'll have to fight scala, sbt and proguard? Jul 21 14:38:06 flan3002, there's that as well, but it'd trivial Jul 21 14:38:07 flan3002 or pay him Jul 21 14:38:17 there's no fighting Jul 21 14:38:42 pfn, I've got the xmlns set on the root linear layout Jul 21 14:38:49 I have several users of my apps that have done non trivial things to get them working, like registering google drive app keys Jul 21 14:38:51 should I set it on the custom classes too? Jul 21 14:38:54 Of course. It's just that it's probably not worth the time for a huge amount of people. Which is fine, of course. :) Jul 21 14:38:58 asQuirreL, saywhat Jul 21 14:39:14 use the proper namespace Jul 21 14:39:19 ah I see what you mean... Jul 21 14:39:38 that's odd, because the error points to a line that does have the "android" namespace Jul 21 14:39:51 but a few lines below, I have a style which doesn't have it :P that's probably it... Jul 21 14:40:25 pfn, thanks very much :) that was it Jul 21 14:40:28 anyone know how a webview cache can all of a sudden be invalidated (not exist) without clearing the cache or app data specifically? Jul 21 14:48:54 flan3002, https://github.com/pfn/keepshare/issues/2 someone that went through the trouble Jul 21 14:48:55 heh Jul 21 14:49:42 pfn: Well, what kind of user is he? Certainly not $possesive_pronoun mother... Jul 21 15:06:47 what do i need to do to enable CORS in a WebView ? Jul 21 15:07:31 CORS on a webview? not sure if I follow Jul 21 15:09:20 i run some javascript in the webview, which needs to use cors Jul 21 15:10:19 actually i run a local webserver which serves a page, after which i start some javascript: but i get Origin http://localhost:4400 is not allowed by Access-Control-Allow-Origin Jul 21 15:24:40 is anyone familiar with eclipse? Jul 21 15:25:25 I've imported actionbar-pull-torefresh library but when I import, eclipse sees the packages but not the files within them Jul 21 15:32:12 Hello? Jul 21 15:36:11 ;/ Jul 21 15:38:53 osxorgate: CORS headers must be sent by the website that the javascript hits. Jul 21 15:39:53 I imported the android project, I marked it as a library in the properties and I added the library to my own project. Jul 21 15:39:56 And then I can't import the files, only the packages Jul 21 15:40:32 Moony22, usually you only import a single file that specifies the whole project Jul 21 15:41:24 Syzygy__: what? No, I mean using "import package.anotherpackage.javafile Jul 21 15:41:35 in that specific library that would be the build.gradle file Jul 21 15:41:54 o.o I'm confused Jul 21 15:42:20 very confused Jul 21 15:42:29 There is a file that defines what the project is. if you import this file, everything will be imported. Jul 21 15:42:37 in eclipse? Jul 21 15:42:52 in the library project you're trying to import Jul 21 15:43:16 yeah, but I import it in eclipse? Jul 21 15:44:13 I'm not an eclipse user, but in eclipse you probably have to click on something like "import android project" or "import gradle project" Jul 21 15:44:17 * Moony22 is extremely confused Jul 21 15:44:22 I have import android project Jul 21 15:44:31 but there isn't anything to do with gradle Jul 21 15:47:06 o.o It fixed itself Jul 21 15:47:18 ok :> Jul 21 15:47:34 sorry Jul 21 15:47:45 I had to refresh loads of times Jul 21 15:47:46 then it worke Jul 21 15:47:48 dworked Jul 21 15:47:51 worked* ugh Jul 21 15:48:27 that's fine, good that it works now Jul 21 15:49:09 anyone upgraded to intellij 13.1.4? Jul 21 15:49:40 now back to my own problem, I'm trying to define a ring shape, but I can not get the outer radius filled, it's only the inner radius that's filled, so it's basically a circle. Jul 21 15:52:06 I managed to implement it via a layer-list including two circles (oval) Jul 21 15:52:21 but since there actually is the ring shape, I would like to use that Jul 21 15:52:50 frankdrey, why? Jul 21 15:53:12 getting internal error on build Jul 21 15:53:15 gonna try updating sdk Jul 21 15:55:38 frankdrey, bunch of people say the same thing in their blog Jul 21 15:55:44 I would expect a fix soon Jul 21 15:55:51 http://blog.jetbrains.com/idea/2014/06/intellij-idea-13-1-4-eap-135-1019-is-out/ Jul 21 15:56:43 http://youtrack.jetbrains.com/issue/IDEA-127374 Jul 21 15:56:46 yup that's it Jul 21 15:58:47 I have an EditText with inputType numberDecimal. The NumerPicker has comma and decimal point, however, comma input is not working. How can I enable european numberdecimalformat? Jul 21 15:59:36 I notice in the tabs example that they set the action bar to NAVIGATION_MODE_TABS. Will this cause problems when using both tabs and a nav drawer? Jul 21 16:01:49 no Jul 21 16:01:51 why would it Jul 21 16:03:32 How do I use android:shape="ring"? I only get a circle, even if I do the same things as every totorial that I look at Jul 21 16:03:34 pfn well, the navigation drawer sets the NavigationMode to NAVIGATION_MODE_STANDARD, but the tabs example sets it to NAVIGATION_MODE_TABS Jul 21 16:03:41 pfn so not sure what would happen if doing both Jul 21 16:06:42 pfn yeah, that jacks up if I have a drawer and tabs, probably due to the NavigationMode being set differently Jul 21 16:09:32 hey everyone. what android classes should i inspect if I want to perform a check to see if a default phone app/sms is installed? My app has a button that will load the dialer with a preset phone number. I want to display a nice toast message if on a tablet with no phone app Jul 21 16:09:44 packagemanager Jul 21 16:10:05 quick answer, sounds confident, sure why not. Thanks for your input dragorn Jul 21 16:10:15 or make an intent and catch the exception (I beleive you'll get an exception if you have no handlers for a URI) Jul 21 16:10:22 the second is probably the better option Jul 21 16:10:41 because someone might have an unexpected dialer/voip/etc app that handles the URI Jul 21 16:10:51 like skype? Jul 21 16:10:56 so identifying the built-in apps might not be the smartest route Jul 21 16:11:02 yeah; or voip dialers on a tablet, etc Jul 21 16:11:08 can i create a symlink to a zip to FlashAfterUpdate folder somehow? Jul 21 16:11:39 so FlashAfterUpdate/myflash.zip and this gets flashed everytime Jul 21 16:12:21 grex25: probably #android-root is where you want to ask, this channel is predominately appdev Jul 21 16:12:31 ok Jul 21 16:15:09 Jesperhead: you can probably generate an action_dial and catch an exception; it should show ActivityNotFoundException if nothing can handle a dial (or whatever your action is) Jul 21 16:15:36 yeah i actually am launching from a uri and im checking logcat to see if that exception is thrown Jul 21 16:17:35 dragorn: nobody answers there, also not to simple questions. Jul 21 16:18:02 Jesperhead: well if you don't catch it you'll get killed anyhow :P Jul 21 16:18:20 dragorn: incorrect, at least on my run. Jul 21 16:18:36 Jesperhead: then it's not getting thrown. I know it gets thrown on a direct intent to a package that doesn't exist. Jul 21 16:19:15 hrmm Jul 21 16:24:12 dragorn: let me give you some quick background Jul 21 16:24:59 the ui isnt handled by me unfortunately. it is handled serverside. I set up a javascript interface to handle html button clicks. I inspected logcat and an NPO exception is getting thrown when I try to load the ACTION_DIAL intent Jul 21 16:25:14 but the app isnt reporting it/crashing Jul 21 16:25:33 the exception shows up as "info" for chromium (webclient) Jul 21 16:25:50 Jesperhead: just joined, so i have no context, but that means a seperate thread is eating the exception Jul 21 16:26:05 Hi Jul 21 16:26:06 separate* [ gotta learn to spell that word ] Jul 21 16:26:11 explodes: makes sense to me. Jul 21 16:26:28 Hello pessimik Jul 21 16:26:29 explodes: is there a way I can still catch that? Jul 21 16:26:34 or that no exception is generated when there is no handler for a broadcast intent Jul 21 16:27:10 I've got a question - I try implementing a list view with falling down elements (animation) Jul 21 16:27:33 something like tetris but in one dimension (only Y axis) Jul 21 16:27:52 Jesperhead: Having a try/catch around the critical code and saving the exception on the thread object, then testing for that exception when needed; There is probably a cleaner way depending on how your threads are being created Jul 21 16:28:09 does anyone know a open source library / code which is doing that? Jul 21 16:28:21 Does anyone know where I can find a chart showing ARM, Intel, MIPS percentages for Android? Jul 21 16:28:21 pessimik: are you targeting L ? Jul 21 16:28:32 any multithreading is not intentionally sought after for this app. I only have a few asynctasks and webviews Jul 21 16:28:53 Ok, that asynctask can be modified to get error state Jul 21 16:28:58 let me write up a paste, Jesperhead Jul 21 16:29:23 explodes: L? you mean a shape? Jul 21 16:29:59 explodes: no no, please dont burden yourself. the content *in question* is being loading via webview Jul 21 16:30:35 Or does anyone know how to find information on hardware achitecture share for Android? Jul 21 16:30:41 *architecture Jul 21 16:30:52 i wrote a JS interface to interact with html clicks to launch the dialer when a button is tapped. the problem is that the exception is then caught by the webviewclient (or so i think) Jul 21 16:31:07 instead of the app Jul 21 16:33:20 Jesperhead: Oh... heh.. well here it is: http://pastie.org/9409893 Jul 21 16:33:28 Jesperhead: but i guess that's not going to answer your question Jul 21 16:33:38 pessimik: Android-L is API 20 Jul 21 16:33:45 21 Jul 21 16:33:51 explodes: hey i really appreciate it regardless. going to save it in case I can use it in the future Jul 21 16:33:53 ah, sorry Jul 21 16:33:58 21?? Jul 21 16:34:02 20 is 4.4W Jul 21 16:34:17 hm. Jul 21 16:34:27 no, >= 16 Jul 21 16:34:41 man ive heard of losing a day... explodes lost an api. cocaine is a hell of a drug my friend. Jul 21 16:34:50 ha Jul 21 16:35:23 pessimik: RecycleView is a new view kind of like ListView that supports animating in your individual pieces. Unfortunately for you, its in "beta" Jul 21 16:36:03 explodes: thanks, I will look at that Jul 21 16:36:27 pessimik: https://developer.android.com/preview/material/ui-widgets.html Jul 21 16:36:57 pessimik: It comes with its own support library but I haven't been able to actually use it on "non-L" devices Jul 21 16:37:40 Anyone here able to help me out: https://gist.github.com/anonymous/1f93411965986b4f4140 Why won't my ImageView become visible ? It's added but it does not show out unless I move it outside ScrollView Jul 21 16:38:29 pessimik: to the best of my knowledge, they're trying to prevent you publishing apps with RecycleView until L is publicly launched Jul 21 16:38:46 I am a noob expeirmenting with nfc tags. I have a program where I can put in “com.google.android.apps.maps” as the android application record on a tag, and then androids open google maps when they read that tag. Now I want to open the camera app. It seems like com.google.android.apps.maps is the package name maybe? Where can I find the pakage name for the camera so that I can open that? Jul 21 16:39:02 I feel like an idiot. theres an app warning thrown just before the webclient exception Jul 21 16:39:23 explodes: uh, it's bad, because it is a quite commercial soft and need be published. Jul 21 16:39:41 I will look, maybe I will get any idea Jul 21 16:41:54 I think the biggest problem is I need render elements of a list in reverser order (from bottom to top), so need rewrite a listview Jul 21 16:42:07 neredsenvy: what happens if you use this layout: http://pastie.org/9409911 Jul 21 16:42:14 because they need fall down Jul 21 16:42:40 does the list have a set size? Jul 21 16:42:42 Working on an NDK app and I’m trying to find hardware architecture percentages, has anyone found this information somewhere? I already tried Googling for a bit. Jul 21 16:43:45 exploes, yes, the size is fixed Jul 21 16:44:05 colintheshots: I've never seen that Jul 21 16:44:06 to be honest, it is a expandableListView Jul 21 16:44:20 pessimik: are you able to post a screenshot Jul 21 16:44:23 explodes: Same thing saying ScrollView can only contain one child Jul 21 16:44:35 neredsenvy: it does only contain one child! Jul 21 16:45:04 neredsenvy: do you add some elements in the code to this view? Jul 21 16:45:12 explodes: give me a second Jul 21 16:45:53 explodes: I can add only one ImageView nothing happens Jul 21 16:46:50 neredsenvy: as in, you get no image? Jul 21 16:47:02 Nothing shows up Jul 21 16:47:07 WOW My coworker won't be in until 3 - again Jul 21 16:47:07 That's not the problem tho Jul 21 16:47:26 What is the problem Jul 21 16:47:37 I I go back to https://gist.github.com/anonymous/1f93411965986b4f4140 and programmatically add elements to the LinearLayout it works like a charm Jul 21 16:48:15 However when i try to manually add a ImageView to my LinearLayout inside ScrollView it breaks Jul 21 16:48:25 saying ScrollView can only have one child Jul 21 16:48:37 neredsenvy: were you calling "removeAllViews" on your linear layout? Jul 21 16:48:52 no Jul 21 16:49:11 neredsenvy: ok, i cannot see any reason that the scrollview is invalid in that gist. Jul 21 16:49:34 There is only 1 child of the ScrollView, a LinearLayout. Jul 21 16:55:28 a fragments arguments won't be lost if it's destroyed and recreated? Jul 21 16:55:31 if 4-spaces tab the convention on android? That is what AS puts when generating new files and I have to convert all of them to 2-spaces but maybe 4spaces is the best for android/java Jul 21 16:59:27 Is there a way I can give an element in a relative layout zero weight, so that it doesn't affect the center of another element? Jul 21 17:10:04 I'm sure this is asked far too often - But what would be a good resource for getting started with app development? (I'm already a proficient programmer, I just would like to be pointed to a solid resource for getting going with Android development) Jul 21 17:10:23 d.android.com :) Jul 21 17:10:43 David_Bradbury: commonsware has a nice big big book Jul 21 17:10:52 if you likes that Jul 21 17:11:29 Hello Jul 21 17:11:33 major problem Jul 21 17:11:44 All the R's in my project cannot be resolves Jul 21 17:11:46 resolved Jul 21 17:12:08 Cool - Thanks, I'll look at both. I was thinking that the link to the official docs was mainly for documentation - Good to see it has a training resource as well. Jul 21 17:12:10 How can I fix this? Jul 21 17:12:35 does an “android application record” actually launch the app in question, or just alert the system that its the package that will be used for the next commands? Jul 21 17:14:09 I don't have R.java in m y gen Jul 21 17:18:39 You ever get towards the end of a project and kind of wish you would have done quite a bit differently? Jul 21 17:19:12 Moony22: it is an indication that one of your resource .xml files are broken Jul 21 17:20:09 in_deep_thought: Its a way for the intent system to identify entry points, so more like the last half of your answer Jul 21 17:20:31 jonc: welcome to programming ;D Jul 21 17:20:39 haha yeah Jul 21 17:21:12 the app I am working on isn't huge, but I definitely could have done a much better job at making it more flexible too change Jul 21 17:21:37 Can someone tell me if the android studio debugger can display an image when I trigger a breakpoint? so I can step through each effect application. Jul 21 17:21:56 or if there are other debuggers that can do that Jul 21 17:23:43 although there was quite a bit of headache involved because the library the biometric band manufacturer handed us wasn't spectacular Jul 21 17:23:58 so I ended up having to write my own Jul 21 17:24:39 jonc, looking forward to google fit? Jul 21 17:26:08 I hear there comeing out with android autio for car soon:) Jul 21 17:26:36 That be cool Jul 21 17:28:25 I'm more excited for google fit... as someone who doesn't drive a car and works on a medical app Jul 21 17:30:13 explodes: when I put com.google.android.apps.maps as an “android application record” onto an nfc tag, when my phone reads it, it opens google maps. In this case, is com.google.android.apps.maps the package name? Jul 21 17:30:15 I don't think i hear of that. Jul 21 17:30:42 Syzgy,ok Jul 21 17:30:56 i see Jul 21 17:31:04 Hello, anyone know the correct way to initialize an intent to start the default SMS activity given a thread id? Jul 21 17:31:38 Hi. Is there a difference between ContactsContract.Contacts and ContactsContract.CommonDataKinds.Phone Jul 21 17:31:41 ? Jul 21 17:31:57 detachYo yeah Jul 21 17:32:14 what are you trying to do? Jul 21 17:32:49 Select contact phone number and display name. Jul 21 17:33:04 perlsyntax, although android auto might be cool too - might bring us closer to fully voice controlled systems Jul 21 17:33:09 BTW, by "yeah", does it apply also if one is alias for the other? Jul 21 17:33:21 yeah you can think of it that way Jul 21 17:33:38 Syzygy,That true Jul 21 17:33:43 it really depends on what you are trying to do Jul 21 17:33:48 Syzygy__: what's android auto? Jul 21 17:33:53 Syzygy, sort of Jul 21 17:33:59 we use research quality devices Jul 21 17:34:19 so I'm kind of curious how many sensors google fit will actually use Jul 21 17:34:22 I not sure how good there going to be. Jul 21 17:34:39 and how many Hz the data will be collected at Jul 21 17:34:59 lasserix_, android designed to be integrated into cars, mostly voice controlled Jul 21 17:35:06 ahh Jul 21 17:35:27 that makes sense ;p Jul 21 17:35:30 with heart rate you need 8+ Hz if you want to be able to manipulate the data at all. The current band we have does 64Hz bvp, 32Hz electrodermal response, 4Hz temperature, 32Hz accelerometer Jul 21 17:36:34 google fit look good to;) Jul 21 17:36:50 I just wish there was more info on it. Jul 21 17:38:12 I'm actually working on making a band myself Jul 21 17:38:20 just one that does blood volume pressure Jul 21 17:38:48 IR Led, IR Photodiode, battery, and microcontroller with bluetooth Jul 21 17:39:06 best of luck with that, creating your own device can be exhausting Jul 21 17:39:33 I have all of the parts on my desk at home except a microcontroller with bluetooth Jul 21 17:39:52 but I can get a 15mm x 15mm arduino board with built in bluetooth for $15 Jul 21 17:40:07 but I am going to make sure I can get the data first Jul 21 17:40:13 then swap to that microcontroller Jul 21 17:40:29 we had our first prototype here recently Jul 21 17:40:40 I'm just glad I'm not working on that :> Jul 21 17:40:59 so far it seems like the draw will be around ~40 mA for the completed circuit, maybe a little higher Jul 21 17:41:02 yep Jul 21 17:41:12 It's something I've wanted to play with for awhile Jul 21 17:41:25 and I have a couple of people I work with who have done it for quite awhile Jul 21 17:42:34 it's actually REALLY easy to get your blood pressure Jul 21 17:42:47 an IR LED and then something to measure how much is reflected off your skin Jul 21 17:42:58 which changes based on how much blood is flowing Jul 21 17:43:16 jonc: does it measure flow over a certain time? Jul 21 17:43:23 i'd like a watch that showed my O2sat Jul 21 17:43:35 should be pretty doable Jul 21 17:43:49 g00s, that's a bit harder, because that has to be calibrated per person Jul 21 17:44:16 with the BVP, as long as you ignore the values coming in and just try to adhere to the shape of the signal coming in, you can do heart rate pretty easily Jul 21 17:44:39 so we use the derivative of the signal to determine when we find a large peak Jul 21 17:44:47 that is probably a heartbeat Jul 21 17:45:40 in_deep_thought, I'll be sampling at around ~16 Hz the value coming from the photo diode Jul 21 17:45:53 and sending it over bluetooth to a phone or computer Jul 21 17:46:39 I'm trying to use this sample to draw a rounded image : http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/ Jul 21 17:46:55 but my image just ends up black, here's the actual code I'm using: http://pastebin.com/abNcu1hG Jul 21 17:46:58 Although I may have to get my own ADC that is higher than 12 bits Jul 21 17:47:05 any idea what would cause this? Jul 21 17:47:47 Syzygy__, is it rounded with black in the middle? or just a black square? Jul 21 17:47:59 rounded, but just black Jul 21 17:49:02 have you tried setting: USE_VIGNETTE to false to test whether it's the gradient or scaling that screws it up? Jul 21 17:49:20 yes, I've also uncommented that code Jul 21 17:49:49 but for now i left it in, since it's from the sample Jul 21 17:52:09 tried a smaller cornerRadius? Jul 21 17:52:33 yes Jul 21 17:53:10 although the currenc corner radius is kind of a requirement (since I want a circular image, not a box with rounded of corners) Jul 21 17:53:21 yeah Jul 21 17:53:39 let me show you a screenshot, give me a second Jul 21 17:53:49 I wouldn't pass in the cornerRadius at that point Jul 21 17:53:57 I would calculate it in onBoundsChange Jul 21 17:54:01 but for now that's not the issue Jul 21 17:54:53 https://www.dropbox.com/s/h88a7rozft465ym/profile.jpg Jul 21 17:55:11 That's beautiful! Jul 21 17:55:17 you have a sexy face Jul 21 17:55:21 i know, right Jul 21 17:56:01 tried canvas.drawBitmap instead of drawRoundRect? Jul 21 17:56:08 just for the hell of it Jul 21 17:59:25 that draws a black box Jul 21 17:59:36 so it's probably something to do with your image Jul 21 17:59:43 or your Paint Jul 21 18:00:15 it may be your paint object Jul 21 18:00:30 You make your own icons? Jul 21 18:00:41 we do Jul 21 18:00:57 If you are dealing with dynamic images loaded from a webserver, it's better to just make it a circle on clientside Jul 21 18:01:04 i see Jul 21 18:01:09 jonc, I believe the bitmap is ok, i could set it earlier Jul 21 18:01:19 Syzygy__, then look at your paint Jul 21 18:01:30 yeah, playing around with the code atm Jul 21 18:01:30 i was just thinking where you can find a good tools that make icons for android? Jul 21 18:01:41 the actual icons for an app? Jul 21 18:01:50 incons8.com Jul 21 18:01:53 iconfinder.com has some good things Jul 21 18:01:55 You code them i didn't know you could. Jul 21 18:02:02 thanks Jul 21 18:02:02 he's not coding an icon Jul 21 18:02:14 he's making a circle image to display in a view Jul 21 18:02:18 perlsyntax, oh, are you talking about the ring and stuff like that? Jul 21 18:02:55 that's a ring drawable and a rectangle drawable set as the background of two views Jul 21 18:03:21 anythijng with icons i was talking about still new at ths android thing:) Jul 21 18:03:33 anythings Jul 21 18:03:53 jonc, it's not technically an image, I did define that in xml Jul 21 18:04:00 why does AS sometimes look for jars instead of aar :/ Jul 21 18:04:08 jonc,I take you have to buy them icons on that web site. Jul 21 18:05:03 Syzygy,I think i understand now:) Jul 21 18:06:03 Afzal: Because an android project can load jars too. Jul 21 18:06:09 perlsyntax, you can define drawables in xml and use them similar to images, for the most part you're using basic shapes in that case Jul 21 18:06:35 freeone3000, yeah but most of the time, I don't have to specify like @aar, sometimes I do though Jul 21 18:07:04 I just hope i don't sound like a newbie here:D Jul 21 18:07:26 don't worry, everyone's a noob Jul 21 18:07:28 brb Jul 21 18:08:25 perlsyntax, iconfinder has free ones Jul 21 18:08:32 you just set what you want on the left hand side Jul 21 18:09:00 jonc, as for the paint object, in the pastebin is all the code for that. Not sure if that's the correct usage, but I don't see what would be wrong with that. Jul 21 18:09:26 and if you comment the code out it's all black also? Jul 21 18:09:47 the if(USE_VIGNETTE) code* Jul 21 18:10:16 yeah Jul 21 18:10:22 Say I have LinearLayout that's empty and I have XML where I have a couple of Views like TextView, ImageView etc.. Is it possible for me during run-time to add Views in that XML to my LinearLayout ? Jul 21 18:11:22 so basicalyl it's a new Paint(), with AA enabled and setShader(mBitmapShader = new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); ... that's it Jul 21 18:12:30 and if i just set the bitmap without letting it go through my own class, my stupid face is displayed (but as a rectangle obviously) Jul 21 18:12:45 Syzygy__, try commenting that out, and then setting the mPaint.setXferMode(PorterDuff.Mode.); Jul 21 18:13:34 Is there something comparable to .NET databindings in WPF (/MVVM) in android? Jul 21 18:13:36 the setShader call? Jul 21 18:13:37 try SRC_OVER, SRC_ATOP, maybe even LIGHTEN just to see it showing up Jul 21 18:14:01 try commening out the if(USE_VIGNETTE) or just setting USE_VIGNETTE to false Jul 21 18:14:20 it's commented out, but in the constructor the setShader call, should I leave that in? Jul 21 18:14:22 and changing the XferMode in the constructor Jul 21 18:14:26 yeah Jul 21 18:14:38 back Jul 21 18:14:54 ah crap, last guy with a key at the office is leaving, so I guess I'm going as well Jul 21 18:16:19 i got to finsh my java for android book:D Jul 21 18:16:37 Anyone know where the recomended padding sizes are? Jul 21 18:16:57 talk to you guy's latter. Jul 21 18:19:24 jonc, will you still be here in an hour? Jul 21 18:19:40 yeah Jul 21 18:20:15 alright, I'll try continuing when I get home, see you then. Jul 21 18:20:19 and thanks for the help so far Jul 21 18:31:34 in an android app (using the activity "stacks" structure), the "back" button always goes back one activity right? Jul 21 18:32:11 *usually* Jul 21 18:32:17 There's also fragment stacks Jul 21 18:32:26 And special options on activities... Jul 21 18:38:20 sometimes i don't get people. res/layout/foobar.xml has an element with a height of @dimen/foo_height and res/layout-land/foobar.xml has the same element with a height of @dimen/foo_height-land. Jul 21 18:38:42 this paradigm repeats itself for a couple of screen configurations. :) Jul 21 18:57:21 hi there Jul 21 18:57:41 I need some help on best practices to consume an https api Jul 21 18:57:46 some help? Jul 21 18:58:08 sigv, what's the problem unless foo_height = foo_height-land ? Jul 21 18:58:25 hi all Jul 21 18:58:39 back from the dead? Jul 21 18:58:44 Afzal: two dimension resource files are easier to manage than two layout files. :) Jul 21 18:58:44 Is there a view for flipping sideways? like flipboard (the app) but sideways. you sweep with your finger to go to the new page.. Jul 21 18:58:50 come to prove the reimman zeta hypothesis i bet! Jul 21 18:58:55 heh Jul 21 18:59:04 sigv, oh lol makes perfect sense Jul 21 18:59:11 batmansappmaker: view pager? Jul 21 18:59:33 damn riemann sheets Jul 21 18:59:48 Afzal: i mean, if i run a `diff` on them, i can clearly see what values differ, but that isn't so clean when you have a layout with multiple elements with a lot of parameters simply open in your studio. :) Jul 21 18:59:55 well you should really put a lid on the kollatz conjecture Jul 21 19:00:27 sigv, yeah, different layouts should only be used when the actual layout/placement changes. You're right Jul 21 19:00:49 that Collatz guy is crazy Jul 21 19:00:53 you can always make a call to request re-layout Jul 21 19:01:26 well the funny thing is that that problem is really an algorithmic problem, with some number theory, not the other way around... Jul 21 19:02:34 ...anyways... Jul 21 19:03:08 :) Jul 21 19:05:39 What android questions might you have oil man? Jul 21 19:05:54 heh, sorry, distracted. Jul 21 19:05:56 basically, Jul 21 19:06:00 i've got a library project Jul 21 19:06:07 and a couple apps using said library project Jul 21 19:06:31 Yeah Jul 21 19:06:37 but i've got some constants that i want to define at the app level but want to use in the library Jul 21 19:07:09 it's not clear best practices for doing that Jul 21 19:07:30 Euler, maybe dependency injection Jul 21 19:07:41 I would probably just have a set of static fields in some class with a static initialize function to set them Jul 21 19:08:46 yea, i guess if the static sticks around the entire lifecycle that would work Jul 21 19:08:59 yeah that's the point of static more or less Jul 21 19:10:05 euler: or what i mean is you can use application class to call the initialize function Jul 21 19:10:17 then you just have to make sure to set them in the application class per app Jul 21 19:10:29 but if i were you Jul 21 19:10:34 and you know all this stuff before hand Jul 21 19:10:45 why not just add the constants before hand? Jul 21 19:11:04 (presuming this is an internal library project) Jul 21 19:11:06 i switch them based on the app Jul 21 19:11:28 oh they are run-time dependent? Jul 21 19:11:50 if they are not run-time dependent, then you can just have multiple static nested classes inside a class Constants Jul 21 19:11:53 not really; mostly stuff like urls Jul 21 19:12:16 oh then just don't worry about having useless fields for some apps, just add them all to your constants class, since you know them before hand... Jul 21 19:12:31 might seem wrong, but its better than having to initialize them Jul 21 19:13:15 or you could similar use a switch in the init function to set them Jul 21 19:13:16 yea, i just have to build in a switch Jul 21 19:13:19 based on the app Jul 21 19:13:22 right Jul 21 19:13:47 i mean, it's doable, but just seems a little awkward for some reason Jul 21 19:14:20 what happens when you have setFillBefore to false and you call an animation where the starting animation value differs from the current value on the view? Jul 21 19:14:46 anyway, thx for the duck Jul 21 19:14:50 Euler it is a little odd, but remember this is all convience for you it's not necessary to begin with Jul 21 19:15:57 Hi guys, i want to access currentlt playing music by some other app from my app. Can someone let me know how can that be done Jul 21 19:16:20 sDurgam, define "access" Jul 21 19:28:03 @EPG I want to read information related to currently playing music file by another app from my app Jul 21 19:28:39 sDurgam, you might be able to receive meta data via a broadcast Jul 21 19:29:16 afaik this depends entirely on the app and is usually broadcasted if a new track is playing Jul 21 19:30:08 in "the busy coder's guide", he talks about using setLayerType at the start and end of an animation to make sure that the view doesn't continue to take up video memory. how necessary/important is this? Jul 21 19:30:24 should it be a standard practice when animating stuff? Jul 21 19:31:50 hey guys, I got a line in a book that says UUID uuid = UUID.fromString(“123e4567-e89b-12d3-a456-426655440000”); Jul 21 19:32:06 thanks EPG will see if I can read the meta data of the file Jul 21 19:32:24 and Eclispe seems to be not understamding the uuid as one string Jul 21 19:32:32 sDurgam, try the "com.android.music.metachanged" action Jul 21 19:34:04 it underlines individual pieces pretty much at random Jul 21 19:36:03 how can you tell what is driving downloads on the play store? Jul 21 19:37:19 is there a way to embed a dialogfragment in a view, with the positive and negative buttons? Jul 21 19:37:43 typically dialogs are "pop out" style fragments Jul 21 19:38:00 Winslow yeah, guess I am better off just making my own buttons with listeners? Jul 21 19:38:34 yeah do you have an example of what you are trying? Jul 21 19:39:04 Winslow I had a login alert dialog, but we are going to just make an activity rather than a dialog, so was hoping I could just embed it and still get the functionality of the submit buttons Jul 21 19:39:15 Winslow rather than manually doing the onClick, but no big deal Jul 21 19:39:18 @EPG here is the code i used http://pastebin.com/dEcxpkuT. I see that it is getting called when I play next or previous song Jul 21 19:43:02 sDurgam, ok (?) Jul 21 19:43:19 mattblang: gotcha, yeah just normal fragment Jul 21 19:44:16 @EPG i am not able to get information about currently playing song Jul 21 19:45:52 sDurgam, so you want to 1. start the playback 2. start your app and get the info? Jul 21 19:47:10 @EPG if the app is open already and then i play the song I am not getting the info Jul 21 19:47:23 hi, when developing apps is there a way to maintain the same codebase for internal stuff like control and models while having platform specific stuff for the different platforms (android, ios, firefox os, sailfish os)? Jul 21 19:47:34 but if I play the song and then open the app I am getting the info Jul 21 19:48:22 sDurgam, register a receiver for the action i mentioned previously Jul 21 19:50:23 sDurgam, oh, you already do. maybe reformat your code Jul 21 19:50:49 what do you do in your app to get the info? Jul 21 19:51:41 private BroadcastReceiver mReceiver = new BroadcastReceiver() Jul 21 19:51:42 { Jul 21 19:51:42 @Override Jul 21 19:51:42 public void onReceive(Context arg0, Intent intent) { Jul 21 19:51:42 String action = intent.getAction(); Jul 21 19:51:42 String cmd = intent.getStringExtra("command"); Jul 21 19:51:42 Log.d("mIntentReceiver.onReceive ", action + " / " + cmd); Jul 21 19:51:43 String artist = intent.getStringExtra("artist"); Jul 21 19:51:43 String album = intent.getStringExtra("album"); Jul 21 19:51:44 String track = intent.getStringExtra("track"); Jul 21 19:51:44 Jul 21 19:51:45 } Jul 21 19:51:45 }; Jul 21 19:53:01 it is normal for the default actionbar to create a ugly gray bar on top of the bottom buttons bar? (or at least on nexus machines) Jul 21 19:53:52 sDurgam, how do you start the playback when your app is open? Jul 21 19:54:26 minimize the app , start play back and then reopen the app Jul 21 19:54:42 ok, this might destroy your activity Jul 21 19:55:47 depending on what you want to do you could either use a Service or declare a BroadcastReceiver in your manifest Jul 21 19:56:03 and you should unregister a receiver Jul 21 19:56:24 Foxandxss: for the split action bar? you can style it Jul 21 19:56:29 sDurgam: use pastebin when showing code Jul 21 19:56:34 I got it will do that. Thanks EPG Jul 21 19:56:40 f2prateek: ah, that is called split action bar, at least I Can google now Jul 21 19:57:16 Foxandxss, not sure but could be windowContentOverlay Jul 21 19:57:26 I am sorry SimonVT. I thought it will paste in a single line. Next time I will use pastebin for showing code. Jul 21 19:57:27 nah, it is the split one Jul 21 19:57:41 try setting it to @null in your Theme Jul 21 19:57:43 sDurgam: that in a single line is even worst :P Jul 21 19:58:55 ah, there is an option on the manifest to allow the split or not, I had it Jul 21 19:59:01 I am sorry guys next time i will use pastebin Jul 21 20:01:33 thanks EPG it is working now I registered broadcast in onResume() and unregistered it in onPause() Jul 21 20:02:00 sDurgam, are you getting info about the currently playing song if you open the app after starting the playback or of a later track? Jul 21 20:02:16 currently playing song Jul 21 20:02:31 hm, interesting Jul 21 20:02:52 it is working now Jul 21 20:03:16 aren't android's fonts supposed to be consistent accross all devices? Jul 21 20:05:25 frankdrey: no, as far as I know Jul 21 20:05:37 the font changed from one version to another Jul 21 20:05:47 and that is talking about clean OS Jul 21 20:06:05 with the customizations of the launcher, there are other fonts Jul 21 20:06:25 dang :/ Jul 21 20:06:35 Anyone have experience with clear flags? http://stackoverflow.com/questions/24873131/android-clear-task-flag-not-working Jul 21 20:06:43 well, I guess i'll go with a custom textview that sets an included font Jul 21 20:14:05 sDurgam, which music player are you using for testing? Jul 21 20:14:34 Is a ListView normally contained inside another layout like LinearLayout? Jul 21 20:15:18 i am using Google music Jul 21 20:15:30 batmansappmaker when you get down to it, everything's always contained in some other layout Jul 21 20:15:47 batmansappmaker most of my lists are usually in something like a LinearLayout, or a FrameLayout if i want it to be the full activity Jul 21 20:16:11 strange. me too but I don't receive an Intent if I register my receiver after the music playback started (and I don't think I should but I wonder that you receive one) Jul 21 20:16:27 it's important to remember that ListViews never go inside ScrollViews, however. Jul 21 20:18:09 I am registering on onresume Jul 21 20:24:17 sDurgam, ok, last question: does it maybe take a while until the playback really starts (loading etc.)? Jul 21 20:25:46 no Jul 21 20:27:16 then I'm out of ideas :D Jul 21 20:27:17 EPG here is the code http://pastebin.com/9WS5Zamc Jul 21 20:28:25 How do you make sure a list of items covers a whole screen of the phone? if this is not doable, how would you recommend a highscores table? say you have 15 levels and you want to display them 1 to 15 on the screen. Jul 21 20:29:58 batmansappmaker make a full-screen listview? Jul 21 20:30:39 so the items will get stretched to fit the screen? unlike a tablelayout? Jul 21 20:31:13 no, that won't stretch anything. if there are only 2 items in the list and each cell is 100px tall, you'll have 200px worth of items displayed Jul 21 20:31:19 but the rest of the screen will be blank Jul 21 20:31:43 nothing else will show thru the listview, i guess is what i'm saying Jul 21 20:40:51 Hi. I'm making an app(just learning) and would like to know how could I add a permission(Phone status and identity) to the code? Jul 21 20:42:06 why... would you do that? O.o Jul 21 20:44:03 first you must bend the knee Jul 21 20:50:25 Anyone knows why this query doesn't work in Sqlite fts table? SELECT data FROM fts WHERE tbl_no='1' AND parent_id='4' Jul 21 20:50:49 skulltower nope. would help to post how it doesn't work Jul 21 20:51:17 sarbs, It returns nothing. However using single WHERE works Jul 21 20:51:22 @Mavrik @Whomp Bent the knee. I surrender. But I'm testing out the permissions and really need help Jul 21 20:51:41 perhaps fts table doesn't support multiple wheres? Jul 21 20:51:58 that's not really how sql works Jul 21 20:52:25 KingInTheNorth, what are you actually trying to do? Jul 21 20:52:28 whichever WHERE clause is eliminating your results, it means that there are no rows that match that clause Jul 21 20:52:59 Hmm weird.. WHERE parent_id='4' returns nothing but i can see it in the table Jul 21 20:53:12 Trying to learn the different permissions. Specifically the phone status and identity. Want to see if a person downloads an app, does the developer get the imei Jul 21 20:53:22 yes. Jul 21 20:53:54 http://developer.android.com/reference/android/Manifest.permission.html#READ_PHONE_STATE Jul 21 20:54:14 it isn't encrypted or anything? Jul 21 20:54:17 http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId%28%29 Jul 21 20:54:27 why would IMEI be encrypted? O.o Jul 21 20:55:41 Ok follow up question. Why in the world does SELECT data FROM fts WHERE tbl_no='1' AND parent_id=4 work. When ...parent_id='4' doesn't? Jul 21 20:55:56 4 and '4' aren't the same thing Jul 21 20:55:59 one's a number, one's a string Jul 21 20:56:17 But fts table columns don't have a type.. Jul 21 20:56:20 Was just wondering. :| Jul 21 20:56:26 Heard something about that Jul 21 20:56:35 they most definitely do Jul 21 20:56:54 So how does the developer see the imei? someone downloads installs? And where does imei go? Jul 21 20:57:30 sarbs, "This is pure syntactic sugar, the supplied typenames are not used by FTS or the SQLite core for any purpose" from http://www.sqlite.org/fts3.html Jul 21 20:57:38 Hi guys! How can I replace one fragment with other fragment from the fragment being replaced? Jul 21 20:58:00 KingInTheNorth, I linked you the API that returns IMEI Jul 21 20:58:11 KingInTheNorth, it shows it required the READ_PHONE_STATE permissions Jul 21 20:58:16 the other questions... are rather strange Jul 21 20:58:17 I get exception because it can't see the view specified in replace() Jul 21 20:58:28 how would we know what ALL developers do with that piece of information? Jul 21 20:58:47 Jangal, you should really do that in the activity holding the fragments :) Jul 21 20:59:01 What could those developers do with that info. Do they see it straight up plain text numbers for every person that downloads? Jul 21 20:59:22 sarbs, furthermore if fts really doesn't ignore types, how can I specify to SQLiteDatabase query method that i am passing ints not strings? Jul 21 20:59:23 Marvik, and how would I reach the activity from the Fragment? Jul 21 20:59:41 getActivity()? use a message bus? use an intent? etc. Jul 21 20:59:44 skulltower gist the table creation sql, now i'm curious Jul 21 21:00:27 KingInTheNorth, what? Jul 21 21:00:49 KingInTheNorth, it's an API... it returns the IMEI, what they do or see with it is dependent what they program. Jul 21 21:00:55 My question is. Do the developers see the imei in plain text and how do they see it? Jul 21 21:00:57 Uh Jul 21 21:01:01 sarbs, https://gist.github.com/anonymous/8b089e9bea5924a9bd80 Jul 21 21:01:11 I get that. Jul 21 21:01:17 But how is it represented Jul 21 21:02:13 Can a ListView contain other views? like three textviews? Jul 21 21:02:14 KingInTheNorth, it's a String. Jul 21 21:02:19 KingInTheNorth, did you EVER program anything? Jul 21 21:02:22 Yes. Jul 21 21:02:26 KingInTheNorth if you get access to the IMEI, you get access to the IMEI.. at that point even if it were encoded, it'd be trivial to decode it Jul 21 21:02:28 Lol. Just not lots in java. At all Jul 21 21:02:37 KingInTheNorth, so I don't understand what's unclear Jul 21 21:02:53 KingInTheNorth, you call getDeviceId(), you get String with IMEI Jul 21 21:03:04 batmansappmaker you don't add views directly to a listview, you give it an Adapter which creates list items, each of which is a view that can contain other views Jul 21 21:03:14 Where does the imei stay...How does it get saved...Or something Jul 21 21:03:24 erm sarbs edit: https://gist.github.com/anonymous/aa741fccfa2aba9b0b68 Jul 21 21:03:37 again Jul 21 21:03:43 that's totally dependent on the developer. Jul 21 21:03:52 they can do anything with it. Jul 21 21:04:39 KingInTheNorth you seem concerned about security with this.. but once the user has granted the developer permission to access that information, the developer is able to do whatever they want with it Jul 21 21:04:53 Do you know how developers would be able to save it? Jul 21 21:05:05 if you gave me access to your IMEI and i chose to post it on a website... shouldn't have given me access. android can't do anything to stop that Jul 21 21:05:26 Not even security anymore Jul 21 21:05:37 Just interested how they would save it Jul 21 21:05:44 .. how would a developer save random information ? Jul 21 21:05:52 skulltower i'm not too familiar with FTS tables but i'd bet $20 your note in that gist is correct Jul 21 21:06:09 You could save it in a text file on the device.. You can send it to a webservice.. You could email it to yourself.. Jul 21 21:06:09 no idea how you'd accomplish it in raw sql tho. there may be a cast function available in sqlite Jul 21 21:06:35 sarbs, yes just found out about that. cast is available will try it out now, thanks Jul 21 21:06:36 KingInTheNorth SimonVT hell you could even tweet it, imagine the possibilities Jul 21 21:06:53 No not like that. Jul 21 21:07:02 I have a logo of my website I added to my Layout as ImageView the original image size is 242x149px however once added the image in layout/application appears much smaller kinda like it would be the size of a thubnail 125x125px Jul 21 21:07:05 I mean how do you see the imei of the person as a developer Jul 21 21:07:12 What do I have to do to get the full size of the image in Jul 21 21:07:24 I have my logo image in -xxhdpi folder Jul 21 21:07:27 neredsenvy, where do you have it stored? Jul 21 21:07:35 ah Jul 21 21:07:37 By using the provided api's in your app to get the imei, then send it somewhere you can read Jul 21 21:07:41 Mavrik: drawable=xxhdpi Jul 21 21:07:45 neredsenvy, and on which device are you testing? Jul 21 21:07:47 Can you send it in the background? Jul 21 21:07:54 yes. Jul 21 21:07:54 Sure Jul 21 21:08:07 How would one accomplish that Jul 21 21:08:07 again KingInTheNorth these are full-fledged real programs.. you can do anything you want with them Jul 21 21:08:37 How would one accomplish sending the imei in the background Jul 21 21:08:49 neredsenvy, basically, you probably have to look up the concept of densities Jul 21 21:08:52 Mavrik: Nexus 7" OS 4.4.2 Jul 21 21:08:53 KingInTheNorth http://www.amazon.com/Beginning-Android-Application-Development-Wei-Meng/dp/1118017110 Jul 21 21:09:20 Mavrik: I'm using genymotion emulator the resolution is 1024x600, 160dpi Jul 21 21:09:27 yes Jul 21 21:09:33 Tbh: I don't even want to learn full fledged programming. Just this. Jul 21 21:09:34 your image will be downscaled then Jul 21 21:09:49 For sarbs suggestion, twitter has an api.. If you have your own webservice, query that Jul 21 21:10:02 KingInTheNorth happy reading :P Jul 21 21:10:05 neredsenvy, 160dpi == mdpi Jul 21 21:10:06 Just the background thing...Lil Jul 21 21:10:17 neredsenvy, and since you've stuffed your image in xxhdpi folder Jul 21 21:10:33 neredsenvy, it's size will be (size / 3.0) * 1.0 Jul 21 21:10:36 Start a thread Jul 21 21:10:38 KingInTheNorth your that student that doesn't want to do his homework, but asks for the answers to make the grad Jul 21 21:10:39 sarbs, thanks for the help it works after casting the values. Weird how fts says it ignores types but actually it doesn't... Jul 21 21:10:44 since xxhdpi scale == 3.0 and mdpi scale == 1.9 Jul 21 21:10:46 *1.0 Jul 21 21:11:05 Ah now it renders with a proper scale Jul 21 21:11:13 is there any resource where I can read more about this Jul 21 21:11:27 skulltower i find that weird too. i mean, it *has* to be typed *somehow* on the backend.. i would imagine with the FTS concept that everything would get typed as a string, and non-string values would be case Jul 21 21:11:28 http://developer.android.com/guide/practices/screens_support.html Jul 21 21:11:29 I'm guessing I will have to prepare original logo image for different screens Jul 21 21:11:41 http://developer.android.com/training/displaying-bitmaps/index.html Jul 21 21:11:54 that's probably actually a bug, thinking about it. i'd bet that parent_id gets entered into the table below the FTS logic Jul 21 21:12:10 s/case/cast/ Jul 21 21:12:36 sarbs, I believe the columns are multi-type then. As they can take integers as well as text. Jul 21 21:12:39 if I have a bt device, how do I tell if I should make the android device a clinent, server, or both? Jul 21 21:13:19 either way it's wonky. support multi-type and dynamic casting, or support only one type and make sure everything goes to it Jul 21 21:13:20 is a progress bar needed for a 15 item list in a ListView? Jul 21 21:13:46 assuming I can connect to it using the system bluetooth (under configuration) Jul 21 21:13:51 batmansappmaker only if they take a really long time, but i probably wouldn't put one (especially for a high score list) Jul 21 21:14:11 sarbs! Jul 21 21:14:52 detachYo! ever figure it out? Jul 21 21:15:09 yes! Jul 21 21:15:20 excellent. was it the second SO thing you linked? Jul 21 21:15:48 Basically, change Contacts.DISPLAY_NAME (or whatever else) to ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME Jul 21 21:15:51 for all columns Jul 21 21:16:04 Phone has everything in Contacts + additional Jul 21 21:16:10 ok, cool Jul 21 21:16:13 Yup, exactly that Jul 21 21:16:51 I was skeptical at first, thinking that they are not the same, but now it makes more sense when I think they are aliasess Jul 21 21:17:02 more like Phone is alias for Contacts and just adds additiona layer Jul 21 21:17:14 yeah they're all ultimately just string constants Jul 21 21:17:31 Yeah. Jul 21 21:17:45 How would I easily see what string each one is? (I use android studio.) Jul 21 21:19:10 for android wearables; can the phone and watch communicate using wifi direct when no other connectivity is available ? Jul 21 21:19:44 g00s: Standard connectivity is bluetooth or bluetooth low energy. Jul 21 21:20:15 freeone3000 ok thanks Jul 21 21:21:02 afaik the watches don't even have wifi chips Jul 21 21:21:36 the current watches afaik have only BT (or only BT LE) connectivity Jul 21 21:22:59 which makes sense, since wifi burns quite alot of power Jul 21 21:28:41 detachYo if you have sources attached you could just go to source, otherwise set a breakpoint and inspect the constant in the debugger Jul 21 21:29:11 Or look it up in the docs Jul 21 21:29:21 or that, probably even easier Jul 21 21:29:51 even though it's wrapped by a constant, the string itself is conceptually the published api, so it's not going to change Jul 21 21:30:18 I have a high-level question about the android lifecycle: What should I be doing differently in resposne to Pause/Resume vs LostFocus/GainedFocus? I have a game with a draw loop and audio I need to start and stop when the device is locked, the app is backgrounded, etc. Jul 21 21:30:50 Heyo, what's the best way to gain access to signature-level permissions like DEVICE_POWER? A keyword is enough, I'm stuck searching for the solution, not sure what to look for Jul 21 21:31:03 ekx i'd treat pause/resume identically to lost/gained Jul 21 21:31:27 anyone think there will be an L Preview update before final release? Jul 21 21:32:25 yorrd get the private key of the app who owns the permission you're trying to use, and sign your apk with it Jul 21 21:32:54 that's the only way to match signature. signatureOrSystem would also succeed if your app lived in /system Jul 21 21:33:38 but beyond those two preconditions, and assuming the device you're running on isn't running a custom android version with a gutted security model, you're not getting that perm no matter what Jul 21 21:34:17 sarbs, I assume in my case this would be the system. Any hint on where I can get the signature of that? Say for example on slim rom Jul 21 21:34:52 If I rely on Pause/Resume to stop and start my game's animation, the draw() call still fires from the lock screen on older devices whenever I wake the screen. Jul 21 21:34:55 yorrd if it's literally "signature", not "signatureOrSystem", you can honestly just give up now, you won't get that permission ever Jul 21 21:35:25 unless you convince the publishers of the ROM to give you their private key. which, they won't.. ever Jul 21 21:35:35 signatureOrSystem you can achieve just with root access Jul 21 21:36:17 sarbs: so how does one do stuff you need those permissions? Make your own rom? xD all right, then my question hast to be how to install my app as a system app Jul 21 21:36:51 yorrd yeah basically heh. "signature" protection means "only my own stuff, ever" Jul 21 21:37:28 installing your app as a system app is as simple as pushing it to /system/app and rebooting. but that's more of a discussion topic for #android-root Jul 21 21:38:55 hmm, so I hand the listview an adapter. but if my listview should have 3 fields, levelnumber, playername, time. Jul 21 21:39:05 how would that work? Jul 21 21:39:52 all right, ima head there then sarbs, many thanks for your advice :) Jul 21 21:40:35 batmansappmaker you'd want each cell to have those fields, i assume Jul 21 21:40:50 check out http://www.vogella.com/tutorials/AndroidListView/article.html Jul 21 21:44:09 sarbs: i want a header row that says "level" "player" "time" and then on each row i want "1" "playerx" "4" then on row 2 "2" "player y" "9" and so on. Jul 21 21:44:56 that article i linked will tell you how to do anything you could ever imagine with a listview Jul 21 21:45:34 How long does it usually take for one to be "decent" in android dev, given one puts about 8-15 hours a week into experimenting/making app? Jul 21 21:45:53 Depends on your definition of decent? Jul 21 21:46:07 You'll always keep improving Jul 21 21:46:08 detachYo thats a naive question Jul 21 21:46:09 decent = put on resume as a skill Jul 21 21:46:26 g00s, of course, I am a naive programmer. :) Jul 21 21:46:28 'how long does it take person X to be proficient in Y' how can anyone know :) Jul 21 21:46:41 Take a simple app idea from start to finish = resume Jul 21 21:46:43 Naive Android Programmer* Jul 21 21:46:55 Winslow, nice and simple. Thank you. Jul 21 21:47:16 with a C#/PHP, mainly server-side background, it took me about a month of full-time to really feel proficient in my first job as an ios developer Jul 21 21:47:20 I didn't say Proficient. Jul 21 21:47:35 jumping to android after that was fairly easy because the concepts were laid and i already knew java Jul 21 21:47:38 sarbs, my backgroun dis C++/PHP/Perl/Javascript Jul 21 21:48:11 It's easy for me to understand code and implement. Most trouble for me is understanding WHY this should be implemented this way and not another way Jul 21 21:48:20 and +1 Winslow's answer, take any app from concept to published and that'd be resume material Jul 21 21:48:45 It can copy a webcam driver from a rom to another? Jul 21 21:49:14 sberla grammar? Jul 21 21:49:43 sberla: Root/custom ROMs, head to #android-root Jul 21 21:49:45 detachYo the "why" only ever comes with experience :) Jul 21 21:49:55 I wanted to know if there is an app to copy the driver Jul 21 21:50:12 is possible? Jul 21 21:50:43 sberla a file manager app maybe but you'd do better with adb. like SimonVT said, #android-root is the place to ask Jul 21 21:52:31 but how do I know which driver that takes care of the webcam device? Jul 21 21:54:10 By asking in #android-root Jul 21 21:55:49 ok Jul 21 21:59:42 is it possible to override a "call requires api level X" warning in eclipse? I'm checking the API level programmatically and only invoking the relevant code if it's supported Jul 21 22:02:55 d0de: take a look at the @TargetApi annotation Jul 21 22:05:58 How do I turn on the screen programmatically? I'm confused, seen too many methods that don't work or are deprecated. Keyword to point me to the solution is enough Jul 21 22:06:16 JesusFreke, ty Jul 21 22:06:55 yorrd: In essence, anything that keeps the screen on will force the screen to be on. Jul 21 22:07:10 yorrd: So wakelocks or alwaysOn are your best options. Jul 21 22:07:30 freeone3000: and how do i turn it on? Keeping it on is only secondary Jul 21 22:07:49 yorrd: You set one of the things that'll keep it on, and the screen will be on. Jul 21 22:09:34 freeone3000: I tried "PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, "tag");" and then .aquire() but that didn't work Jul 21 22:10:42 Well, that should. Jul 21 22:10:54 yorrd: Do you have WakeLock permissions in your manifest? Jul 21 22:11:38 freeone3000: yes i do Jul 21 22:12:53 freeone3000: i remember setting one specific deprecated paramter PowerManager.FULL_WAKE_LOCK worked, but that's deprecated :D Jul 21 22:13:23 yorrd: That's the one that got replaced by WindowProperties, yeah? Jul 21 22:14:15 freeone3000: not sure, haven't understood what WindowProperties is yet Jul 21 22:15:05 yorrd: activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); Jul 21 22:15:31 freeone3000: ill try, thanks Jul 21 22:21:14 sarbs, how would the Adapter know where to put the items if each row has 3 textviews? Jul 21 22:21:46 batmansappmaker did you read the article? Jul 21 22:22:49 sarbs, which one? Jul 21 22:23:06 https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB0QFjAA&url=http%3A%2F%2Fwww.vogella.com%2Ftutorials%2FAndroidListView%2Farticle.html&ei=xZLNU9PHLoeCiwLu3IHwDw&usg=AFQjCNEmKxSOQWTEdnIteMT1duTBuc2Xsg&sig2=TThXw4VGJC8BT0QVswl5Pg&bvm=bv.71198958,d.cGE Jul 21 22:23:09 whoops Jul 21 22:23:15 http://www.vogella.com/tutorials/AndroidListView/article.html Jul 21 22:24:04 would be nice if google didn't encode that shit into its urls and simply used a tinyurl-style token, if it's gonna pull the redirecting shit anyway Jul 21 22:24:40 freeone3000: it keeps the screen on for longer than its timeout, but it doesn't turn it on when it's turned off Jul 21 22:25:37 I'm having a weird issue with GCM Jul 21 22:25:58 My code works like a charm on my dev machine but it gives me a 401 on my server Jul 21 22:26:12 even though the key was made for 0.0.0.0/0 Jul 21 22:30:09 What's the best way to store a name (String), type (String) and distance (int) so you can easily sort on and check the distance? Jul 21 22:30:20 For an adapter btw Jul 21 22:30:24 yorrd: Then go with the deprecated one. Jul 21 22:30:30 https://nnmm.nl/?uKq Jul 21 22:30:38 ^ The code I'm using* Jul 21 22:30:46 Muchoz: A class with a distance comparator. Jul 21 22:31:14 Alright Jul 21 22:31:15 freeone3000: kinda seems dirty but it looks like I can't do anything else atm :D Jul 21 22:31:21 freeone3000: thanks though! Jul 21 22:31:46 freeone3000, wait. I don't know how to start Jul 21 22:32:35 Muchoz not dirty at all, that's what comparators are designed for Jul 21 22:33:02 google Comparator and look up the docs for that as well as List.sort() Jul 21 22:34:05 sarbs, He wasn't talking about the approach being dirty. yorrd and freeone3000 were talking about something else. I didn't even know there was a Comparator class. I'll check it out. Jul 21 22:34:29 oh, totally missed that Jul 21 22:35:37 sarbs, alright. I found an approach, seems easy. Thanks. Jul 21 22:38:04 How do I match http://example.com/anyString ? with data? Jul 21 22:38:26 ? Jul 21 22:38:30 seems not to work Jul 21 22:39:09 platzhirsch: I don't understand your question. You need a regex? Jul 21 22:39:37 shodan`: well, for the data xml field specific, whether I should use pathPattern attribute or path attribute Jul 21 22:39:42 http://developer.android.com/guide/topics/manifest/data-element.html Jul 21 22:41:16 platzhirsch you mean you want your urimatcher to trigger on http://www.example.com/something but not simply http://www.example.com/? Jul 21 22:41:29 or would the second also suffice? if so, just take out the pathPrefix attribute Jul 21 22:42:12 either way, pathPrefix is the wrong attr to use with "/.*", that looks like a pathPattern Jul 21 22:42:37 sarbs: yep :) Jul 21 22:42:45 so just the /something Jul 21 22:42:51 yeah, okay Jul 21 22:42:52 i'm setting a tint with something like imageView.getDrawable().setColorFilter(0x555522, PorterDuff.Mode.OVERLAY). i just want to tint my existing image so that it's more yellow. what would be the best porter duff blending mode? Jul 21 22:43:14 if I leave pathWhatEver out that every URI with the scheme and host works, but I want to cut it down Jul 21 22:43:24 overlay seems useless, as does multiply, which leaves me with no image at all Jul 21 22:43:27 any ideas? Jul 21 22:44:08 platzhirsch /.* would technically match on http://www.example.com/ tho it wouldn't match http://www.example.com Jul 21 22:44:35 it's unfortunate, it doesn't appear from the docs that true regex is supported.. would be nice to be able to do "/.+" Jul 21 22:44:52 oh my, you are right Jul 21 22:46:46 interestingly though it does not react with pathPattern="/.*" Jul 21 22:46:56 if I remove the attribute it matches again everything Jul 21 22:49:11 or, stop. I it does work. Haven't said anything :) I'll try the typical + now Jul 21 22:49:19 platzhirsch frustrating. debugging urimatchers from xml always sucks, you have my sympathies Jul 21 22:49:27 haha well good. i've gotta split but best of luck. Jul 21 22:49:37 sarbs: thanks! :) Jul 21 22:49:40 have a good one Jul 21 22:55:39 Hello Jul 21 22:56:12 So a ListView will either shrink or upsize its rows to fit the screen and if not possible it will make it scrollable? Jul 21 22:56:50 I want to give some context here: I have a listpreference which allows the user to select a certain notification sound. I want the user to be able to someone preview this sound before setting it, since setting it will require downloading Jul 21 22:57:45 somehow preview* Jul 21 22:58:00 I thought about a button - but then I realise that ListPreference doesn't have setAdapter Jul 21 22:58:55 I also thought about an onLongItemClickListener, but ListPreference doesn't have that either Jul 21 22:59:01 so what would be the best solution here? Jul 21 22:59:07 a* Jul 21 23:01:22 My uncreative mind has thought of something - A dialog in the onSharedPreferenceChangedListener Jul 21 23:01:38 if anyone can suggest anything simpler please say :) Jul 21 23:03:22 Moony22, don't use ListPreference :p Jul 21 23:03:28 that's my suggestion Jul 21 23:04:53 frankdrey: what should I use then? Jul 21 23:05:47 ok so now i have hit a new stumbling block. i need to be able to access java byte arrays from within my assembler code Jul 21 23:05:50 with no c wrapper Jul 21 23:06:09 this wont be easy Jul 21 23:06:15 Moony22, your own listview Jul 21 23:06:19 Moony22: just play the sound when they select it Jul 21 23:06:40 JesusFreke: they are---er...around 30 second long sounds Jul 21 23:06:47 frankdrey: what, in an AlertDialog? Jul 21 23:08:04 Moony22, why not? Jul 21 23:08:20 frankdrey: I guess that's a more elegant solution Jul 21 23:08:53 I've usually seen it work like this though: Jul 21 23:09:04 play song on select Jul 21 23:09:10 only way to stop it is to exit dialog Jul 21 23:09:16 personally, I hate it Jul 21 23:09:31 and I think it'd be much nicer to have a play/stop button in the list Jul 21 23:10:03 frankdrey: Yeah, I was going to say - sounds unintuitive Jul 21 23:10:48 guys guys, what's the wisdom on Location? use the GMS or stay SDK? Jul 21 23:12:27 I wish I asked that question a decent amount of time ago Jul 21 23:13:18 Moony22 please share your experience! Jul 21 23:13:40 I would say GMS unless you've got a reason not to Jul 21 23:13:49 shipit: Well, GMS is easy enough to use - seems simpler and easier Jul 21 23:13:51 I've used SDK before, for the present case, I simply want to look up the closest city the user's phone is around. Jul 21 23:14:08 shipit: GMS with Geocoder I guess Jul 21 23:14:21 I did some G+ work earlier this year, it was painful Jul 21 23:15:07 I'm currently making an application which involves location - that day was painful Jul 21 23:16:38 ugh Jul 21 23:16:51 shipit: consensus of 2 people == use gms Jul 21 23:17:05 I faced issues with integrating G+ from within a fragment Jul 21 23:17:35 Moony22 I think I'm going to be the outlaw and high tail w/ SDK ;) Jul 21 23:17:52 I shall admit defeat or announce victory Jul 21 23:17:54 Thank goodness - I've never messed with G+ shipit so far Jul 21 23:18:12 * Moony22 waits until morning for shipit to surrender to GMS Jul 21 23:18:30 * shipit accepts Moony22's challenge! Jul 21 23:19:15 * Moony22 goes to sleep until morning in order to find out the outcome of the challenge Jul 21 23:19:44 * Moony22 thinks this sounds like a high school computer science project Jul 21 23:20:10 * shipit blushes for age reduction ;) Jul 21 23:20:44 * Moony22 's age is suddenly reduced to 12 years old Jul 21 23:21:55 * Moony22 is working on a stupid C# project called "determining the outcome of two simulated dice rolls" Jul 21 23:22:58 * Moony22 suddenly gets older and goes to sleep. Goodnight Jul 21 23:40:00 Looking for a freelancer android dev, reverse engineering an APK to document an API request and how it is constructed. Jul 21 23:51:02 For some reason GCM gives me a 401 when I try to send a request from my server but it works fine when doing it on my local machine. I set the ip for the server key to 0.0.0.0/0 so that shouldn't be an issue. Do an of you guys know what's happening? Jul 21 23:51:44 The code I'm using: https://nnmm.nl/?PVJ Jul 21 23:58:00 Helloo, hola Jul 21 23:58:06 I need help, necesito ayuda Jul 21 23:58:30 I just asked about Location on Android. And here's my prophet using Reactive extensions: https://github.com/mcharmas/Android-ReactiveLocation Jul 21 23:59:12 Cannot make a static reference to the non-static method findViewById(int) from the type Activity Jul 22 00:00:25 here's code sample for quick location lookup: https://gist.github.com/shipit/fbb88d504c152b7d150d Jul 22 00:00:32 saves from GMS boilerplae Jul 22 00:00:37 *boilerplate Jul 22 00:01:03 Messii: sounds like you're trying to call findViewById from a static method in your Activity. Or maybe using syntax like Activity.findViewById() Jul 22 00:01:24 Ok Jul 22 00:01:27 I see it Jul 22 00:01:54 I need send a button command to another activity Jul 22 00:02:29 Yes, is a public static void Jul 22 00:06:48 Who is active here to help with me and my newly built 4.1.2_r1 lg system img? Jul 22 00:07:21 shipit very nice library Jul 22 00:07:50 detachYo indeed! reduced my dev time from 3-4 hrs to 5 mins! Jul 22 00:08:03 plugging in the map fragment now Jul 22 00:08:21 shipit definitely i'll give it a try in couple of days.. I need something that simple too. Jul 22 00:08:32 Well, I'll begin. I compiled the rom and got a system.img. Im trying to make a flashable zip with it. But i cant seem to loopmount it. It gives me some annoying output. Like it cant find an ext4 filesystem in the img. Jul 22 00:08:41 also file does this "file *.img system.img: dBase IV DBT of \377\377.DBF, blocks size 1, next free block index 3, 1st item "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"" Jul 22 00:09:00 shipit let me know how that goes Jul 22 00:13:06 lgrootnoob try #android-root Jul 22 00:13:50 detachYo: Ok Jul 22 00:14:15 Wtf Jul 22 00:14:28 JesusFreke::: I need SetText in another activity Jul 22 00:14:35 In a edittext Jul 22 00:16:59 hi Jul 22 00:17:11 ad-noob-00001 sup Jul 22 00:17:31 hi detachYo Jul 22 00:17:37 detachYo: They still havent helped. and some guy is spamming "HODOR". Jul 22 00:17:45 LMAO Jul 22 00:17:54 lgrootnoob never been there, just made more sense to ask that question there Jul 22 00:18:06 lel, k Jul 22 00:18:49 is this a place where is ok to ask some questions, the kind of like, you wont find on the net ? Jul 22 00:18:55 detachYo: Well what about you. Do you compile roms? Jul 22 00:19:02 yes, depends what you're looking for. Jul 22 00:19:09 ad-noob-00001: What kind? Jul 22 00:19:10 Nope, never done anything similar. Jul 22 00:19:15 hi guys, why bitmap.compress() with 100% quality generates an image bigger that original image? Jul 22 00:19:17 I was planning on though. Jul 22 00:19:28 detachYo: k Jul 22 00:19:30 well, i've downloaded the las adt Jul 22 00:19:33 I have an LG too Jul 22 00:19:35 last Jul 22 00:19:43 ad-noob-00001 and? Jul 22 00:19:52 rithea: Cause compression overhead Jul 22 00:20:14 detachYo: Which model? Jul 22 00:20:19 and, when creating an avd for nexus s, it doesnt look like anything when i was working with a previous version of the adt Jul 22 00:20:21 lgrootnoob_ Actually, I have a Moto G Jul 22 00:20:22 My bad Jul 22 00:20:23 lgrootnoob_ how to solve? Jul 22 00:20:35 detachYo: Damn you. lel Jul 22 00:20:41 ad-noob-00001 what do you mean by doesn't look like anything Jul 22 00:20:45 lgrootnoob_ can Jul 22 00:20:50 can't beat the price Jul 22 00:20:56 i got it only for development Jul 22 00:21:06 rithea: Dont use 100% quality or it is not even compressing! Face it, you have to lower the quality Jul 22 00:21:06 Personally, I have an iPhone. :) Jul 22 00:21:15 well, the avd starts like before, with the android logo and such, but then... Jul 22 00:21:19 detachYo: 10/10 Gay - ign Jul 22 00:21:25 ign? Jul 22 00:21:32 ad-noob-00001: Same thign happens to me, avd never works Jul 22 00:21:33 it prints a line saying "just a minute" Jul 22 00:21:44 haha it takes a good 5-10 minutes to start Jul 22 00:21:44 then "can´t connect to the internet"... Jul 22 00:21:48 detachYo: http://www.ign.com/ Jul 22 00:21:55 is it SFW? Jul 22 00:21:59 and for the love of god, the apps and such are nowhere Jul 22 00:22:13 ad-noob-00001: I think you have a jacked up build if your apps are missing Jul 22 00:22:25 detachYo: umm, yea. lel Jul 22 00:22:29 lgrootnoob_ I see, what quality do you recommend? Jul 22 00:22:52 rithea: Its up to you. Compress until what you think is smallest size but still looks good Jul 22 00:23:20 lgrootnoob_: what's the way to fix it ? Jul 22 00:23:21 lgrootnoob_ I had android since beginning, then switched to iPhone because I got tired. I only picked up Android dev 1 year after having an iPhone. You know what my next phone is going to be. Jul 22 00:23:29 ad-noob-00001: Rebuild. Jul 22 00:23:39 lgrootnoob_ ok, thank you a lot :) Jul 22 00:23:49 detachYo: I see, you found out the power of android afterwards. gotcha Jul 22 00:23:54 haha Jul 22 00:23:56 before and after Jul 22 00:23:56 rithea: Welcome Jul 22 00:24:04 iPhone is just seamless. Jul 22 00:24:10 but definitely getting nexus 6 Jul 22 00:24:14 yep, its great for a work phone. Jul 22 00:24:15 cuz i don't like samsung Jul 22 00:24:15 seamless hahaha Jul 22 00:24:32 did I spellt hat wrong? Jul 22 00:24:35 detachYo: Samsung software skins are horrible. I'm lucky to run a mesmerize. with aosp Jul 22 00:24:46 detachYo: No, he is making fun of iphone Jul 22 00:24:53 lgrootnoob_: is not my apps which i dont find in the avd, is the usual apps that are when you create the avd the ones that are missing Jul 22 00:25:02 ad Jul 22 00:25:03 what's mesmerize and aosp? Jul 22 00:25:17 ad-noob-00001: I dont get it. Jul 22 00:25:43 lgrootnoob_: it's like the avd never shows the usual user interface Jul 22 00:25:57 on top, it says disconnected Jul 22 00:26:04 detachYo: Samsung Mesmerize. Go to the xda mesmerize development forum. And you can see we have 4.4.2 builds. The device was initially a 2.1 device in 2011 Jul 22 00:26:17 ad-noob-00001: Well your fucked. Cuz i dont know Jul 22 00:26:42 lgrootnoob_: lol Jul 22 00:26:44 lgrootnoob_ that's cool. I'll check it out. Jul 22 00:26:49 k Jul 22 00:27:06 detachYo: I'm gonna go work on a track now. Nuff of this bullshit android shit bullshitness. Jul 22 00:27:26 I mean seriously. It wont flipping compile!!!! Jul 22 00:27:35 well it compiles. just not properly Jul 22 00:29:27 When I have reached the end of my listview, what should the adapter return in getView? Jul 22 00:29:40 how do you say that there are no more items? Jul 22 00:31:30 I guess I'll ask again... Jul 22 00:31:33 For some reason GCM gives me a 401 when I try to send a request from my server but it works fine when doing it on my local machine. I set the ip for the server key to 0.0.0.0/0 so that shouldn't be an issue. Do an of you guys know what's happening? My code: https://nnmm.nl/?PVJ Jul 22 00:31:41 gcm seems to hate me Jul 22 00:37:37 detachYo: got map/marker working -- pretty straight forward once you have the Address. Jul 22 00:38:05 https://github.com/mcharmas/Android-ReactiveLocation <-- savior!!! Jul 22 01:09:49 I need setText in another activity Jul 22 01:10:20 Please check: http://pastebin.com/J4DUUh2s Jul 22 01:10:58 why? :/ Jul 22 01:11:05 One dialog, on the first activity is opened, I need to insert text into the first activity Jul 22 01:11:37 Messii: look into startActivityForResult(), you'll have to do some reading here. Jul 22 01:11:40 Emoticon dialog activity -> settext -> activity1 -> edittext Jul 22 01:11:57 anyone know a good alternative for setBottom() before API level 11? (targetting 8) Jul 22 01:12:48 Messii: you are trying to access findViewById as a static method. delete the ConversationActivity. Jul 22 01:13:04 oh, nevermind. that's a variable? Jul 22 01:13:22 I need send the text to edittext, only this Jul 22 01:13:38 sqpat: ditch anything before 11 Jul 22 01:14:01 Ok Jul 22 01:19:03 JesusFreke, http://pastebin.com/qGxNak1u Jul 22 01:19:10 The complet code Jul 22 01:19:48 Input.setText(emo1); --> java null pointer exception Jul 22 01:21:31 * shipit nominates JesusFreke for MrMiyagi trophy Jul 22 01:22:40 wax on... wax off... wax on... wax off.... Jul 22 01:23:00 124 views??????????????'' Jul 22 01:23:02 Lol Jul 22 01:23:33 Can provide some help Z_z Jul 22 01:23:49 153 Jul 22 01:23:50 lol Jul 22 01:25:52 what are these view/no.s? 124, 153 ... ? Jul 22 01:26:45 146, my link Jul 22 01:29:45 ((EditText) findViewById(R.id.input)).setText("Can you help me??"); Jul 22 01:30:34 Messii: EditText is not in the layout xlm Jul 22 01:30:47 No, in another layout Jul 22 01:30:50 In another activity Jul 22 01:30:51 Messii: your emoticon layout doesn't have a button with id=input Jul 22 01:31:09 so when you call findViewById, there's no button for it to find. Jul 22 01:31:20 then you are trying to communicate between two activities ie input in one, display in another Jul 22 01:31:27 you can't get/modify buttons in another activity directly Jul 22 01:32:04 Nono, i need put the text in another background activity Jul 22 01:32:05 You probably want to use startActivityForResult to start the EmoticonActivity, and then return the selected emoticon Jul 22 01:32:40 Perhaps Jul 22 01:32:44 you can return a result using http://developer.android.com/reference/android/app/Activity.html#setResult(int, android.content.Intent) Jul 22 01:33:01 assuming you started the activity with startActivityForResult, instead of startActivity Jul 22 01:33:20 Ok i read your link Jul 22 01:33:53 This did not seem so complicated, I create a dialogue with 150 emoticons Jul 22 01:45:09 I guess I'll ask my question again tomorrow... Jul 22 02:04:26 Can an application track/work when it's closed? Jul 22 02:06:23 yes Jul 22 02:06:45 detachYo: if you run it as a service you can Jul 22 02:35:26 guys guys, I'm about to use AutoCompleteTextView to suggest entries, does anyone prefer SearchableInfo way of doing things? Jul 22 02:56:02 in the NDK how would i set __attribute__ ((visibility ("default")) on an asm function? Jul 22 02:58:13 Hi, I have a closed network with a laptop and Android phone. I would like to create an app that generates a blank txt file on the laptop when a button is pressed inside the app. Could anybody guide me with this? **** ENDING LOGGING AT Tue Jul 22 03:00:01 2014