**** BEGIN LOGGING AT Wed Jul 30 03:00:01 2014 Jul 30 03:00:03 how do I create multiple table content provider? I've searched google but none of the tutorials meet my needs, I followed this code: https://code.google.com/p/iosched/source/browse/android/src/main/java/com/google/android/apps/iosched/provider/ but it's too complicated Jul 30 03:01:23 detachYo iosched is one of the simplest providers there are Jul 30 03:01:40 you'll have to spend more time :) Jul 30 03:03:11 does google give sales statistics in realtime or is it available at some point during the day? Jul 30 03:03:17 i don't get one thing g00s, if you don't mind helping Jul 30 03:03:29 well, more than one things Jul 30 03:03:57 detachYo i'm getting rusty Jul 30 03:04:18 g00s alrighty, i'll just keep on reading Jul 30 03:04:30 do you know any other simple-er content provider stuff Jul 30 03:04:55 nope. good thing you didn't start at Contacts or Calendar, ha ! Jul 30 03:05:25 LOL Jul 30 03:05:29 i guess Jul 30 03:22:34 i should go back to perl Jul 30 03:29:54 what? no Jul 30 03:30:09 go to objective-c if anything, or stick with java Jul 30 03:30:30 detachYo apples and oranges; going back to perl means ... sysadmin ? Jul 30 03:30:46 perl replaces grep, awk, sed. wtf :| Jul 30 03:31:04 not to mention assembly Jul 30 03:31:19 yeah try assembly Jul 30 03:31:47 perl will seem light years away Jul 30 03:32:34 ultra-: not so much... Jul 30 03:32:55 https://github.com/JesusFreke/teensyhand/blob/master/usb.pm Jul 30 03:32:56 :p Jul 30 03:33:28 i work with perl, currently Jul 30 03:34:29 wtf is this? Jul 30 03:34:47 perl. and avr assembly. Jul 30 03:34:47 ultra-, you are too young or extremely old for that Jul 30 03:34:53 mash them up a bit, and wha-lah Jul 30 03:35:04 i’ve actually never worked with perl, and assembly just for school Jul 30 03:35:26 this doesn’t look enjoyable Jul 30 03:35:26 assembly is cool Jul 30 03:35:36 Perl is not bad, if you know how to program properly Jul 30 03:35:38 oh, that's nothing like regular perl, don't worry Jul 30 03:35:42 and not make a messshit out of it Jul 30 03:35:42 yeah it was interesting Jul 30 03:35:54 it was for EE school, so studying silicon Jul 30 03:36:01 yeah, I don't mind perl Jul 30 03:36:16 not something I use often, but it has its uses :) Jul 30 03:36:17 detachYo perl is bad, because its based on "postmodern" language design; which turned out (i'm pretty sure) to be a failed experiment Jul 30 03:36:35 great for starting processes and parsing a few things though ;) Jul 30 03:37:00 i figured perl was like python or javascript Jul 30 03:37:01 detachYo offer to help the bugzilla guys; take a loot at what "postmodern" languages result in Jul 30 03:37:03 And for abusing its flexible syntax Jul 30 03:37:07 messhit of a system :) Jul 30 03:37:12 ok so it is like python or javascript Jul 30 03:37:24 I have a truecrypt binary compiled for Android that is command line only. I can mount a TC volume as root in terminal but the mount point has the permission drwx------ and is owned by root is there a way for me to allow the regular sdcard user sdcard_r write access to this folder. Doing chmod 755 doesn't change anything and I can't chown it Jul 30 03:43:05 Is it possible to get data like sampling ratio, frequency of the currently streaming music on Spotify Jul 30 03:43:06 g00s, Perl is not bad, it's just your opinion. I know websites that are Perl based and hold up tight. I have a ec2 instance running Perl Catalyst framework and is solid. Jul 30 03:43:26 I do agree that its postmodern, but Perl 6 is going to address many of modern stuff. Jul 30 03:43:36 detachYo its not bad for replaceing grep, sed, and awk ;) Jul 30 03:43:55 g00s, nothing against expressing your ideas Jul 30 03:43:58 probably a reason why employment for perl is down year after year Jul 30 03:44:25 g00s, do you know the stats? Jul 30 03:44:31 detachYo they are easy to find Jul 30 03:44:39 I went to YAPC conference, and more people are using perl now than ever. Jul 30 03:44:46 what is YAPC ? Jul 30 03:45:04 Stands for: Yet Another Perl Conference, google it. Jul 30 03:45:12 more people are contributing than ever Jul 30 03:45:21 just because someone said Perl is dead, doesn't mean it is true. Jul 30 03:45:23 :) Jul 30 03:45:39 well, the population of the world is increasing, so it makes sense more people are using it. but its % of mindshare seems to be decreasing Jul 30 03:46:05 its used by lots of sysadmins, in some areas like bioinformatics Jul 30 03:46:16 of course if you go to YAPC , its going to be a circlejerk Jul 30 03:46:44 Anyone? Jul 30 03:47:55 g00s, way to disrespect Jul 30 03:49:27 is it? go to any conference and its all groupthink Jul 30 03:49:49 I might have exaggerated. Jul 30 03:49:51 let me tell you this Jul 30 03:49:54 perl is not my favorite language Jul 30 03:50:03 but I don't think badly of it because it is A language. Jul 30 03:50:15 and being a programmer, I like/hate things about languages Jul 30 03:50:39 its a tool, sure Jul 30 03:50:45 everything is a tool Jul 30 03:50:50 a great tool for grepping reports Jul 30 03:50:50 or can be Jul 30 03:51:08 Alright, let's not discuss perl because we can't come into an agreement. Jul 30 03:51:13 hehe Jul 30 03:51:19 :) Jul 30 03:51:28 detachYo i used perl quite enough, btw ;) Jul 30 03:51:42 HA ! Jul 30 03:51:46 so you're trolling :( Jul 30 03:51:50 i used to to run and bring together all of our compiler suite benchmarks Jul 30 03:52:04 no, i'm just saying ... its a good sed / awk / perl :) Jul 30 03:52:12 sed / awk / grep XD Jul 30 03:53:04 cool beans Jul 30 03:53:07 I am off to dinner Jul 30 03:53:12 TTYL Jul 30 03:53:33 yo has detached :D Jul 30 03:56:34 i think the problem with perl is, you don't use it for 6 mos and it all slips away. i can be productive in python in hours without using it for years Jul 30 03:57:58 not sure about ruby Jul 30 03:58:34 also kind of interesting that lots of the system admin stuff for linux is python not perl these days Jul 30 03:59:27 maybe perl a little more convenient with regex's but python is a better general purpose language , ok thats it Jul 30 04:04:05 Hey everyone, I have an android app and I want it to use the Android L look. How can I transfer my app to android L while still supporting old devices. Then the other issue is how do I test it. Jul 30 04:04:56 g00s::: Can you help me? Jul 30 04:04:57 .c Jul 30 04:05:09 Messiiii huh , what ? Jul 30 04:05:22 Ok Jul 30 04:05:49 When i setText to EditText, the string setText replace all text in my ediText box Jul 30 04:05:55 EditText input = (EditText) findViewById(R.id.input); Jul 30 04:05:55 String texts = input.getText().toString(); Jul 30 04:05:55 Input.setText(texts + emo1); Jul 30 04:06:08 Messiiii: please use pastebin... Jul 30 04:06:15 Ok Jul 30 04:08:40 didn't you ask this same question yesterday Jul 30 04:09:36 Messiiii: could it be your setting a diffrent string for a diffrent object... Jul 30 04:10:05 What? Jul 30 04:10:07 g00s I think I found simpler ContentProvider code Jul 30 04:10:09 Tell my a example Jul 30 04:10:10 Which is good. Jul 30 04:10:11 one with a capital Input and lowercase input Jul 30 04:10:15 why not use textView.append() or something Messiiii Jul 30 04:10:34 Mmm okkk Jul 30 04:14:15 capella this should be helpful https://issues.adblockplus.org/ticket/534 Jul 30 04:14:39 Anyone know the answer to my question? Its probably very easy Jul 30 04:15:22 ProjectBarks maybe it isn't easy :| Jul 30 04:15:35 Fo real? Jul 30 04:18:47 g00s: is it even possible Jul 30 04:29:34 What's the difference betweeen # and * in content provider? Jul 30 04:33:54 detachYo see http://developer.android.com/reference/android/content/UriMatcher.html Jul 30 04:33:59 addUri Jul 30 04:34:07 but ... there is some undocumented behavior Jul 30 04:35:59 detachYo see http://stackoverflow.com/questions/5030094/problems-with-androids-urimatcher Jul 30 04:36:06 #9 Jul 30 04:39:59 thanks g00s Jul 30 04:41:16 yw Jul 30 04:46:15 g00s, one other question for clerification. If I have 4 tables, A, B, C and D. B, C and D have forein key for A.id. And I don't want to query any of the latter three, but just return them with querying A, do I still have to put them in ContentProvider? Jul 30 04:47:19 you can mix regular db stuff and cp with the same tables Jul 30 04:50:31 anyone have problems linking to other apps in a play store description? Jul 30 04:51:00 the url is not getting formatted as a link Jul 30 05:15:02 Hello, I know this will probably be a "dumb" question, but Ive never used a 3rd party library before (at least not one I had to add to a project myself), I'd like to try HoloGraphLibrary, but am having trouble setting up the library to work with my project. How can I get Android Studio to recognize the library I just downloaded? Jul 30 05:15:03 thanks Jul 30 05:15:35 edit your build.gradle Jul 30 05:16:17 compile files('lib/blah.jar') or whatever Jul 30 05:16:47 or you might have to import it (i have no idea what this lib does) Jul 30 05:17:58 bankai_au: is this to build the jar myself? or if the jar is provided? Jul 30 05:18:28 (in this case only source is provided, no jars) Jul 30 05:20:41 probably have to import the project Jul 30 05:40:10 bankai_au interesting https://plus.google.com/+IanLake/posts/aanbpbAcUKW Jul 30 05:42:25 humm yeah alright :s see how that goes Jul 30 05:42:43 time for ToolbarSherlock :P Jul 30 05:43:11 g00s: have you explored xubuntu at all yet? Jul 30 05:43:36 barbs haven't had the chance. i used it a few years ago, don't expect too many surprises :) Jul 30 05:43:46 cool :) Jul 30 05:43:49 wasn't sure what lubuntu was up to these days Jul 30 05:44:08 barbs how active is xcfe development ? Jul 30 05:44:24 no idea, actually... Jul 30 05:44:45 "Today, after 1 year and 4 months of work, we are pleased to announce the release of the Xfce desktop 4.10, a new stable version that supersedes Xfce 4.8" Jul 30 05:44:51 seems kinda slow Jul 30 05:45:45 last one i used was 4.4 man that was buggy Jul 30 05:46:00 yeah. I'd like to think it's because it's already quite stable, and they're not trying to add any new flashy features. Jul 30 05:46:03 but I don't really know :) Jul 30 05:46:38 I think it's fair to say that's true - it's a relatively simple and stable environment, doesn't need massive amounts of work Jul 30 05:56:55 hehe http://thoughtworks.fileburst.com/assets/technology-radar-july-2014-en.pdf Jul 30 05:57:00 OSGi is on hold , ha! Jul 30 05:57:53 Languages & Frameworks, #85 Reactive Extensions across languages Jul 30 06:26:14 Is there a new sleek way to check if a string is an IP address? Perhaps using the InetAddress class? Jul 30 06:26:53 Most suggest using regex (on SO and such), but if there's a class that handles it, it would be better, right? Jul 30 06:27:10 Why would it be better? Jul 30 06:28:05 I guess it would be cleaner than a regex Jul 30 06:28:13 In my mind Jul 30 06:28:37 <_3mpty> Achillion: it would be just same under the hood Jul 30 06:29:00 <_3mpty> ofcourse there is always chance to use wrong pattern Jul 30 06:29:16 there is always that, yes Jul 30 06:29:42 if you prefer a function call you can perhaps try http://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validator/routines/InetAddressValidator.html Jul 30 06:30:26 I think I would, especially if it handles v6 as well Jul 30 06:30:33 zzxx: thanks! Jul 30 06:30:49 looks like that is IPv4 only Jul 30 06:31:10 oh... nevermind Jul 30 06:31:21 not certain if it will accept v6 Jul 30 06:32:19 Yeh, it's not very specific. isValid doesn't specify, but it has a separate method for ipv4 Jul 30 06:32:33 Maybe they're playing it futuristic and implying that v6 is the default Jul 30 06:37:00 thier implementation of isvalid looks like this: Jul 30 06:37:01 public boolean isValid(String inetAddress) { return isValidInet4Address(inetAddress); } Jul 30 06:37:07 sooooo no v6 Jul 30 06:38:01 regex could be a perfect and complete solution, though I personally dislike regexes that do the full validation of numeric range because it's just ugly. Jul 30 06:38:42 always looks like something like [1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5] Jul 30 06:38:53 and as they tend to say, fuck that noise Jul 30 06:39:05 zzxx: lol, yeah, not amazing Jul 30 06:39:08 alankila: http://www.regular-expressions.info/examples.html :D Jul 30 06:39:40 that big ugly thing in the middle Jul 30 06:39:50 anyway Jul 30 06:40:02 I think I'm going to carry on without validating FOR NOW Jul 30 06:40:08 get the actual thing working first Jul 30 06:41:57 yeah anyway I forgot that 0 is valid for regexes... must be asleep, so that above was even incorrect Jul 30 06:42:08 sorry, valid for ip address digits Jul 30 06:42:14 again, what did I say. Still asleep. Jul 30 06:43:38 it's so hot that I can't really even drink one of those life-affirming liquids like tea without sweating like a pig. I like summer but I tend to forget how uncomfortable this part is. Jul 30 06:46:03 heh Jul 30 06:46:11 I don't mind hot drinks in summer Jul 30 06:46:18 Except when we break 40 C Jul 30 06:46:22 that's when I stop drinking hot Jul 30 06:57:06 we never break 40C here in scandinavia Jul 30 06:57:15 but it can get up to 32 or 33, and has done that this summer Jul 30 06:57:21 it's been near 30 C most days now Jul 30 07:05:52 i downloaded latest sdk from android and new app shows error aapt is not found. the file exist , what to do? Jul 30 07:24:53 make sure you have latest sdk packages Jul 30 07:36:08 I'm using gdb to remote debug a test program built by NDK toolchain and run by qemu, but I don't know how to load the debug symbols. I start qemu-arm with "g port" options and then command gdb to connect, I can instruct the debugee to run, but gdb's file command is not an appropriate tool to load symbol in this context, right? Jul 30 07:46:39 what does this code do? "getContext().getContentResolver().notifyChange(newUri, null);" Jul 30 07:47:04 its pretty self explanitory, but do I have to worry about notifying change when I use LoaderCallbacks? Jul 30 08:12:41 anyone mind reviewing my asynctask that is supposed to A. generate a 5Mb file and then B. upload via httppost? Jul 30 08:12:46 Hey, I want to compile goldfish with debug symbols, what's the relevent config setting? Jul 30 08:21:39 hmmm are multipart entities only supported through the apache library? Jul 30 08:22:22 iirc there is no particular support for constructing browser-like http requests Jul 30 08:22:49 it took until servlet api 3.0 to be able to even read the mime-formatted requests without additional libraries Jul 30 08:23:46 the mime shit is irritating to construct by hand though it is perfectly doable Jul 30 08:26:33 Hello. Jul 30 08:26:44 I am trying to run jarsigner Jul 30 08:26:50 but nothing is working Jul 30 08:26:52 help Jul 30 08:28:25 <_3mpty> Jesperhead: I'm using modified volley library for multiparts - worth to try. Jul 30 08:28:50 _3mpty: plenty of write ups using the apache lib. i just hate going non native Jul 30 08:29:00 <_3mpty> :> Jul 30 08:29:05 <_3mpty> your choice Jul 30 08:29:14 :) ill keep it in mind if apache gives me problems Jul 30 08:30:12 any help?.. Jul 30 08:30:45 I was following this tutorial: Jul 30 08:30:47 http://suprimeaux.blogspot.com/2012/09/signing-cocoonjs-apk-for-google-play.html Jul 30 08:31:03 but didn't work Jul 30 08:32:15 I ran "keytool -genkey -v -keystore jigsaw_free.keystore -keyalg RSA -keysize 2048 -validity 10000", for example, and I got an error that the keystore format is invalid. Jul 30 08:33:32 It is a text file with a key. Jul 30 08:38:38 hi in my manifest http://pastebin.com/i6GrGS4a i have android:name=".FullImageActivity" Jul 30 08:38:38 android:label="Gallery" Jul 30 08:38:38 android:parentActivityName=".Gallery" > Jul 30 08:38:38 Jul 30 08:38:53 why this is an error? android:parentActivityName=".Gallery" ? Jul 30 08:39:01 frick. this is so frustrating Jul 30 08:39:23 07-30 10:29:27.015: E/AndroidRuntime(32279): FATAL EXCEPTION: main Jul 30 08:39:23 07-30 10:29:27.015: E/AndroidRuntime(32279): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mydogssocial/com.example.mydogssocial.Gallery}: java.lang.NullPointerException Jul 30 08:39:41 i downloaded 64bit sdk bundle but new project gives errors. errors list shows that i do need 32bit libs. the given command return this error Depends: ia32-libs-i386 but it is not installable Jul 30 08:39:52 if i put android:parentActivityName="com.example.mydogssocial.MainActivity" it work correctly Jul 30 08:39:56 why? Jul 30 08:40:42 Alfreda: please don't paste in here :( Jul 30 08:40:55 sorry Jul 30 08:41:14 android is making developers life more harder Jul 30 08:41:25 can anyone tell me where I can put the key I get from google's play store? please.... Jul 30 08:41:45 i don't understand the instructions about creating your own key... but they already give me a key?? Jul 30 08:42:11 abator: which platform? Jul 30 08:42:14 Hey guys, I'm relatively new to android development and i'm running into a strange issue when using the drawer navigation. The trigger button show up nicely, but when clicked nothing happens although onOptionsItemSelected() registers the action and i get a [0,Home] in the log. Jul 30 08:42:21 debain wheezy Jul 30 08:42:59 Estel: debain wheezy Jul 30 08:42:59 Estel: you can help me?' Jul 30 08:44:21 abator: have you tried installing ia32-libs through apt? Jul 30 08:44:23 rgr yeah I think you get it now :) Jul 30 08:44:40 morning. Jul 30 08:44:45 Estel: yes, and i got the error Jul 30 08:44:51 Description Resource Path Location Type Jul 30 08:44:52 Hint: On 64-bit systems, make sure the 32-bit libraries are installed: "sudo apt-get install ia32-libs" or on some systems, "sudo apt-get install lib32z1" abc line 1 Android ADT Problem Jul 30 08:45:17 Estel: gallery has parent Mainactivity and FullImage has parent Gallery i can do this? Jul 30 08:45:47 Alfreda: yes, there's no reason why not Jul 30 08:45:57 but it dont work in my manifest Jul 30 08:45:59 why? Jul 30 08:46:05 tetraktys: were you following a guide for the drawer? Jul 30 08:46:17 http://pastebin.com/i6GrGS4a Jul 30 08:46:31 anyone.... please... i got it signed but not with the key on Google's Play store... how do I use their key with jarsigner? Anyone? Jul 30 08:46:35 its kind of nice. but its a shed load more code since its a new runnable for each "listener" interface, set function, member and was simply a new message code in my way. I'll paste the code later so you can look and see if its right. Jul 30 08:47:05 <_3mpty> Agamemnus: what do you mean by 'their key' Jul 30 08:47:06 <_3mpty> ? Jul 30 08:47:10 I was Estel, but i had to make changes since i'm using a base activity, so i followed this SO post: http://stackoverflow.com/questions/22652556/creating-base-activity-with-navigation-drawer-in-android Jul 30 08:47:32 Google Play has a key... Jul 30 08:47:33 sudo apt-get install ia32-libs, that command return this error ia32-libs : Depends: ia32-libs-i386 but it is not installable Jul 30 08:47:55 For each app Jul 30 08:48:07 Someone help me pls? Jul 30 08:48:07 Under the place where you upload it, it says: Jul 30 08:48:11 "Do you need a license key for your application?" Jul 30 08:48:16 Alfreda: have you tried the fully qualified classname for the .Gallery class? Jul 30 08:48:31 If you click that, there is a base-64 encoded RSA public key. Jul 30 08:48:32 <_3mpty> Agamemnus: no, developer has a key that is used for apk signing Jul 30 08:48:37 Estel: older sdk will solve those issues? Jul 30 08:48:46 What do I use the key on Google Play for? Jul 30 08:48:57 It says "Your license key for this application" Jul 30 08:49:04 Estel: you mean android:parentActivityName="com.example.mydogssocial.Gallery">? Jul 30 08:49:12 same error! Jul 30 08:49:13 <_3mpty> Agamemnus: question is what do you want to do? Jul 30 08:49:17 abator: well personally I'd recommend Andtroid studio :P But http://serverfault.com/questions/415073/ia32-libs-depends-ia32-libs-i386-but-it-is-not-installable to fix your particular issue? Jul 30 08:49:30 I want to sign my APK with that key. Jul 30 08:49:39 hmm. scracth that. of course I only need one interface with a batch of callbacks. back later. Jul 30 08:49:41 <_3mpty> so create your own key Jul 30 08:49:43 Alfreda: pastebin the entire stacktrace for the error Jul 30 08:49:48 Estel: ok, thanks a lot Jul 30 08:49:49 Estel: ok Jul 30 08:49:53 <_3mpty> Agamemnus: with keytool Jul 30 08:49:59 _3mpty: I did that... but what's the purpose of the key on Google Play? Jul 30 08:50:12 how do I use it? I can't find any instructions Jul 30 08:50:36 Estel: http://pastebin.com/r4h70RWr Jul 30 08:51:05 I thought I had to sign the APK with THAT key, not my own key? Jul 30 08:51:15 Alfreda: the error is on line 67 of your Gallery activity. It has nothing to do with your Manifest file Jul 30 08:51:16 <_3mpty> Agamemnus: it's for google play games and other services don't mind that Jul 30 08:51:24 I am making a google play game. Jul 30 08:51:25 <_3mpty> Agamemnus: for releasing app you are using your own key Jul 30 08:51:37 Estel: 67? Jul 30 08:51:49 Yes, it says so in your stacktrace Jul 30 08:51:54 <_3mpty> Agamemnus: but you are using google play game serviceS? Jul 30 08:52:05 It says, Jul 30 08:52:07 "Licensing allows you to prevent unauthorized distribution of your app. It can also be used to verify in-app billing purchases." Jul 30 08:52:11 at com.example.mydogssocial.Gallery.onCreate(Gallery.java:67) ? Jul 30 08:52:17 So I want to prevent unauthorized distribution. Jul 30 08:52:19 So let's say yes. Jul 30 08:52:23 How do I use that key? Jul 30 08:52:56 jarsigner just tells me it's an invalid format etcetc. Jul 30 08:53:04 <_3mpty> Agamemnus: http://developer.android.com/google/play/licensing/setting-up.html Jul 30 08:53:10 I know man I read it! Jul 30 08:53:27 Estel: ah ok Jul 30 08:53:40 I'm not using Eclipse though.. I'm using CocoonJS. Jul 30 08:53:49 maybe I missed something. Jul 30 08:54:00 Estel: gallery must receive an intent.. but how i can do send an intent only when i return at parent? Jul 30 08:54:06 there is a method? Jul 30 08:54:10 onReturn? Jul 30 08:54:12 No Jul 30 08:54:18 and how i do? Jul 30 08:54:34 You can't. A parent activity shouldn't require a particular intent extra. Jul 30 08:54:35 "When you are implementing licensing in an application, you must copy the public key string into the application." This is just insane.... it doesn't say anything about how to do this Jul 30 08:54:43 any ideas, _3mpty? :( Jul 30 08:54:54 Estel: and how i can do? Jul 30 08:55:19 Wait. Jul 30 08:55:52 So, um, do I need to use Eclipse here? Jul 30 08:55:53 Estel: else if(bundle.getString("Provenienza").equals("Gallery") || bundle.getString("Provenienza").equals(NULL)){ is correct? Jul 30 08:56:11 Alfreda: the bundle will probably be null Jul 30 08:56:23 You should just do a default if there's no useful intent Jul 30 08:56:28 and how i do ? Jul 30 08:56:31 A generic else { at the end Jul 30 08:57:04 || bundle.getString("Provenienza").equals(null)) Jul 30 08:57:09 also || bundle.getString("Provenienza").equals(null)) ? Jul 30 08:57:12 lasserix_: hi Jul 30 08:57:42 <_3mpty> Agamemnus: I have no idea how it's can be implemented under somethingJS Jul 30 08:58:04 CocoonJS already made an APK for me. Jul 30 08:58:14 So that's what I have.... an unsigned APK. Jul 30 08:58:43 am I supposed to be able to use Google's supplied key somehow? Jul 30 08:58:49 with the APK? Jul 30 08:58:56 <_3mpty> if you want just sign apk - don't mind google keys Jul 30 08:59:09 but what about that "unauthorized access" bit? Jul 30 08:59:38 I'm just afraid if I don't use it, I can't prove to google that I own the app etc.. Jul 30 09:00:01 you prove to google that you own the app by owning the private signing keys Jul 30 09:00:04 or am I going totally in the wrong direction Jul 30 09:00:08 if you lose that, they will never update your app again Jul 30 09:00:13 I see, but the private signing keys are private... Jul 30 09:00:16 <_3mpty> Agamemnus: licensing is for end-users Jul 30 09:00:20 Where would I put them etc? Jul 30 09:00:30 Estel: with else if(bundle.getString("Provenienza").equals("Gallery") || bundle.getString("Provenienza").equals(null)) i have same error! Jul 30 09:00:33 Or Jul 30 09:00:33 Hey guys, I have a trouble with google play game service Jul 30 09:00:38 why? Jul 30 09:00:51 Do I just upload the signed APK? Jul 30 09:00:53 And that's it? Jul 30 09:01:08 Or is there something else I need to do with that key? Jul 30 09:01:14 <_3mpty> just upload Jul 30 09:02:21 all right... Jul 30 09:02:44 I setup game in play google play developer console and get id for game Jul 30 09:03:42 thanks! Jul 30 09:04:04 then I added id into manifest file( because of some reason, i added id string into manifest file ) Jul 30 09:04:16 but when start my game crash Jul 30 09:04:58 from logcat, it has a error: Using Google Play games services requires a metadata tag with the name "com.google.android.gms.games.APP_ID" in the application tag of the manifest for com.my.my.my Jul 30 09:05:36 Alfreda: Presumably the first time you do bundle.getString() you're returning null. You need to check for it being null before checking equality. Jul 30 09:05:46 ok Jul 30 09:06:02 and at com.google.android.gms.internal.ff$h.b(Unknown Source), at com.google.android.gms.internal.ff$h.a(Unknown Source), at com.google.android.gms.internal.ff$h.eN(Unknown Source) Jul 30 09:07:01 if (bundle!=null){ Jul 30 09:07:22 else{ goto line 82 Jul 30 09:07:25 how i do? Jul 30 09:07:30 i must rewrite the same code? Jul 30 09:13:13 i think im finally getting the hang of gradle Jul 30 09:13:24 a brand new project shows error of missing aapt while the file does exist on the correct path. installed libs to support 32bit on debian but still aapt not found error is there. Jul 30 09:14:19 the aapt was never there in previous version of sdk. that new hell was important to be be created Jul 30 09:15:01 abator, 1.) does aapt start if you run it manually? Jul 30 09:15:10 2.) Did you update your IDE to use new SDK structure? Jul 30 09:15:37 just downloaded bundle 3 days ago. Jul 30 09:15:48 still have to update eclipse? Jul 30 09:15:55 Update everything Jul 30 09:16:07 And personally, I recommend using Android Studio at this point. Jul 30 09:16:09 everything means? Jul 30 09:16:16 SDK, IDE Jul 30 09:16:23 SDK Tools, etc. Jul 30 09:16:30 Whatever SDK Manager says Jul 30 09:16:45 oh ok, so android studio must get priority over eclipse, is thatnthe whole story? Jul 30 09:17:20 No. It just receives more updates and I find it much better than Eclipse. Jul 30 09:17:38 say mav, im trying to add the apache httpclient dependency and getting this error in my gradle log: WARNING: Dependency org.apache.httpcomponents:httpclient:4.3.4 is ignored for debug as it may be conflicting with the internal version provided by Android. Jul 30 09:17:41 It will be the de-facto IDE at some point, if you're new, might as well make the switch now. YMMV. Jul 30 09:18:05 Jesperhead: Use OkHttp, Apache is already on Android anyway Jul 30 09:18:17 kakazza: no. Jul 30 09:18:20 (Though, starting with KitKat, OkHttp backs the HttpClient in Android) Jul 30 09:18:23 i need multipart entity Jul 30 09:18:55 so the error is straightforward but im a little confused on how to mitigate it Jul 30 09:19:37 So i posted my question regarding the non-opening navigation drawer on SO: http://stackoverflow.com/questions/25033027/android-navigation-drawer-not-opening Jul 30 09:20:13 Jesperhead: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/com/squareup/okhttp/recipes/PostMultipart.java Jul 30 09:20:39 And OkHttp 1.x already implemented the API of ApacheHttpClient, so I'm not sure what you're talking about. 2.x has a different API though Jul 30 09:20:48 tetraktys: the tutecentral link 404s Jul 30 09:20:54 It's in the recipies even https://github.com/square/okhttp/wiki/Recipes#posting-a-multipart-request Jul 30 09:22:42 its nothing against okhttp... i just want to stick to official sources when i can. if apache is releasing a lib with what I need it to do why would I use another? this one *should* work. Also curious what this error is about now Jul 30 09:22:59 Mavrik: i just checked , the aapt is not running even from the exact path. what does it mean? Jul 30 09:23:14 that you don't have required dependency libraries installed Jul 30 09:23:19 probably missing i386 versions Jul 30 09:23:27 use ldd on the executable to see what's missing and install that. Jul 30 09:23:49 Mavrik: ok, thanks, let me check. plz Jul 30 09:29:54 Estel, you're right, yesterday it worked fine though :/ Jul 30 09:33:53 "with what I need it to do why would I use another?". 1) Using OkHttp makes sure you have the same HttpClient everywhere, no matter what the platform ships with. _One_ set of bugs, if any, not one set per platform version, vendor, device,... 2) Development on the Apache site has almost stalled, OkHttp is a far better HTTP Client, which is also why Android uses it, beginning with 4.4. Jul 30 09:34:31 And if you're using a library, you're already not using "the official sources", your definition of "official" seems strange. OkHttp is also the "official" source. Jul 30 09:35:01 how can i increase max logcat line length in android studio? Jul 30 09:36:01 That was @Jesperhead Jul 30 09:36:32 how set an Edit Text like a TextView? Jul 30 09:36:37 no editable Jul 30 09:36:40 dpkg --add-architecture i386 , is that command not good enough to,enable support of 32bit apps? Jul 30 09:37:01 also updated Jul 30 09:37:10 Anyone know offhand of what typical dp sizes for 8" tablets are? Jul 30 09:37:26 kakazza: aw seems i struck a nerve. youll be happy to know im testing okhttp right now Jul 30 09:37:49 ;) Jul 30 09:38:08 Estel: Be more specific please Jul 30 09:38:46 kakazza: well a 7" tablet is -sw600, 10" is -sw720 usually, what's a typical 8" tablet if I want to bucket it? Jul 30 09:41:17 Phew, I don't know off the top of my head. There's a formula, but I don't know any specs of 8" tablets. Jul 30 09:41:38 I guess they are around sw650-ish. Guess they fall into the same category as 7" Jul 30 09:42:19 But I'm just guessing. I'd use the same layout as for the 7" I guess Jul 30 09:42:33 Yeah, I'm just experimenting to see if a two-pane layout could work Jul 30 09:43:02 Do you have the device? Jul 30 09:43:29 The ipad mini has shown that something about 8" can work really well as a proper tablet Jul 30 09:43:29 Then I recommend using the "Dalvik Explorer" app by Elliot Hughes, it tells you dp, density and everything about your device. Jul 30 09:43:43 I will at lunch Jul 30 09:43:52 Yeah, at least the iPad Mini with Retina. Jul 30 09:43:59 I cannot ever go back to the iPad without retina :x Jul 30 09:44:15 Same with the new and old N7 Jul 30 09:45:26 True, looks like I'll try a 800*1280 device Jul 30 09:47:05 Hey all, does google set difference limmits for the map API compared between a phonegap type application or a native type application? Jul 30 09:47:13 Estel: how set an edittext not editable? Jul 30 09:47:36 Alfreda: how much wood would a woodchuck chuck if a woodchuck could chuck wood? Jul 30 09:48:23 https://stackoverflow.com/questions/3928711/how-to-make-edittext-not-editable Jul 30 09:48:32 Pretty much your question in Google, first result. Jul 30 09:49:56 textView.setKeyListener(null); ? Jul 30 09:50:51 but i view 1- keyboard at start page Jul 30 09:51:04 2-with setText method i view string in gray color Jul 30 09:51:44 I do not follow. Jul 30 09:51:52 Anyway, gotta run. Best of luck Jul 30 09:54:21 Alfreda: it dont work Jul 30 09:54:44 kakazza: it dont work Jul 30 09:58:18 i'm looking for some code to read input sounds from the mic and output the frequency at that instant.. can someone help? Jul 30 10:00:17 how do i check if a music player is running? (i dont mean if music is currently playing) Jul 30 10:00:44 kakazza: http://postimg.org/image/4tr8w4iyz/ look Jul 30 10:01:00 i view textcolor gray Jul 30 10:01:43 hotPlate, just how much code did you write until this moment? Jul 30 10:02:32 android:textColor="#000000" Jul 30 10:02:48 Mavrik, for this application im thinking of, im yet to start. how does that help ? Jul 30 10:02:49 and after at start page i view my keyboard for insert text in Jul 30 10:06:57 I love when I get my hands on an old device still running the ~2012 Play Store Jul 30 10:08:47 wtf, the Samsung Tab8 reports exactly the same screen dimensions as the N7. D: Jul 30 10:16:36 Hey guys, for my own understanding (not knowing well what Google offers) if I need to store like 150K map points, and I need to find the close point’s around my currently location I can just use PostGiS, lucene search etc… to do my proximity searches? Then I can show theses filtered point’s on a google map and ask google for directions. Jul 30 10:16:54 It’s not like I can send these 150K point’s to google and they will manage the little DB, right? Jul 30 10:19:40 Is the Android L source code available somewhere? Jul 30 10:28:42 Nope Jul 30 10:29:05 ries: well, you could set up a GAE thing, for sure Jul 30 10:29:13 Even Parse would cope happily with that Jul 30 10:29:32 Estel: parse? Jul 30 10:29:55 parse.com is a super easy app backend Jul 30 10:30:29 hello guys Jul 30 10:30:32 which target sdk version should i use for the project? Jul 30 10:30:35 i doubt it's L Jul 30 10:30:44 arietis: 20 is fine, but yeah, not L Jul 30 10:31:23 arietis, 19 is currently something that will save you alot of headaches Jul 30 10:31:26 Estel: let me look at Parse… thanks for the pointer Jul 30 10:31:28 until L SDK is finalizaed Jul 30 10:31:31 *finalized. Jul 30 10:31:51 what about compileSdkVersion param? Jul 30 10:31:57 Mavrik: I think they're saying that 20 is fine to use now? Jul 30 10:32:00 it says android-L Jul 30 10:32:11 i suppose i need something else there too Jul 30 10:32:14 arietis: change that to 20 (or 19) too Jul 30 10:32:21 Estel, they might be saying that Jul 30 10:32:31 but the question is always, do you want to build software or deal with SDK bugs ;) Jul 30 10:32:40 targeting 20 will not bring you anything unless you actually write code for 20 Jul 30 10:32:55 Which bugs are there? I thought the only difference was added Wear sdk Jul 30 10:33:15 some IDE's (e.g. IDEA 13, AS) didn't like 20 for awhile Jul 30 10:34:35 <_3mpty> Mavrik: it's ok now on as. I'm not sure what was the cause :P. Jul 30 10:35:24 Gradle support obviously :P Jul 30 10:37:06 <_3mpty> maybe, my current config is gradle plugin 0.12.+, compileSdkVersion/targetSdkVersion 20, buildTools also '20' Jul 30 10:37:17 <_3mpty> and it's somehow working Jul 30 10:48:32 how do i enable my device in studio? Jul 30 10:48:42 i have turned usb debugging on Jul 30 10:48:53 also i have chosen PTP mode Jul 30 10:49:02 but it still wont appear in the list Jul 30 10:49:26 do an "adb devices" from the command line. It could be the cable - I had some which charged but wouldnt allow adb access. Jul 30 10:49:41 there are no adb command :S Jul 30 10:49:53 what os? Jul 30 10:49:59 os x Jul 30 10:50:03 no idea sorry. Jul 30 10:50:43 arietis: which device? Jul 30 10:50:54 smartphone Jul 30 10:51:00 Yes, which Jul 30 10:51:00 ... Jul 30 10:51:13 The adb command is in the /platform-tools directory of the SDK Jul 30 10:51:35 (which I assume even on the mac needs to be on a PATH as in linux?) Jul 30 10:51:55 no Jul 30 10:52:03 on os x it's inside the app package Jul 30 10:54:04 not for other tools to find it I would bet (not a lot of money!;)) http://www.droidforums.net/threads/how-to-setting-up-adb-on-mac-osx-for-your-droid-x.74089/ Jul 30 10:54:26 that might be way off but I just googled out of interest. Jul 30 10:54:50 and having adb from the command line is a big help : not least for things like "pull"ing phone backups. Jul 30 10:55:25 adb shows no devices connected Jul 30 10:55:54 i'm using Fly IQ436 Jul 30 10:56:46 I'd suggest trying to install the Android File Transfer app Jul 30 10:57:11 But beyond that, pff, you're probably on your own Jul 30 10:58:46 Android File Transfer won't help you Jul 30 10:58:53 on OS X the device has to work and show up in ADB Jul 30 10:59:04 if it doesn't your cable is either broken or you don't have USB debugging properly enabled Jul 30 10:59:10 or the device itself it broken / noncompliant Jul 30 11:00:49 or cable "not capable" as opposed to broken. Most do work some dont. Dont buy cheap cables. Jul 30 11:01:35 <_3mpty> arietis: did you use that device before for dev? Jul 30 11:01:44 no Jul 30 11:02:18 it's just from the box Jul 30 11:02:42 <_3mpty> dev mode is enabled? Jul 30 11:03:10 i think so Jul 30 11:03:24 USB debugging is turned on Jul 30 11:05:07 <_3mpty> arietis: http://www.xda-developers.com/android/guide-to-using-adb-in-osx/ Jul 30 11:06:04 note : you defo *do* have to modify your bash profile to include the path. Jul 30 11:07:04 rgr: not if you call it directly Jul 30 11:07:25 _3mpty: most of that is just a howto install the SDK, there's only once useful paragraph suggesting you use a highpwoer usb port Jul 30 11:08:59 I'm trying to compare 2 images, one from res/drawable and the original image. So I create a MD5 hash key for both but it seems that they are different. Is there a reason for this? Jul 30 11:10:09 <_3mpty> Estel: true, also I don't remember any probles related to it on my osx at home it's even easier than on linux Jul 30 11:11:47 compengi, images in resource folders are optimized when packaged. Jul 30 11:12:52 Mavrik, I see, then how do I test icons? I'm doing UI testing Jul 30 11:13:45 Mavrik, I was thinking of pixel to pixel testing, will that work? Jul 30 11:13:52 why are you testing that? Jul 30 11:14:05 Can someone help with out with something I just cant quite grasp Jul 30 11:14:07 I have this layout Jul 30 11:14:09 https://github.com/SomethingExplosive/android_packages_apps_Torch/blob/somex-4.4/res/layout/main.xml Jul 30 11:14:26 compengi, that's probably gonna be a maintenance nightmare Jul 30 11:14:27 asfdd, To make sure that the icons displayed are the icons provided by the designer Jul 30 11:14:44 now it looks fine in portrait mode, but in landscape mode, its no longer centered Jul 30 11:15:03 its to high up, resulting in the view covering the actionbar Jul 30 11:15:06 but why? that is the job of the packager or the compiler, that surly is tested and will always be the same no?, seems like a really strange thing to test Jul 30 11:15:20 its like compling a class and testing to see the byte code is the same as you expect Jul 30 11:15:26 it's a reasonable thing to test if you have a larger project Jul 30 11:15:31 Ive tried to change it to a relativeLayout and set it to center in parent.. but the same thing happens Jul 30 11:15:34 but I haven't found a way to do it except for doing it manually Jul 30 11:15:38 <_3mpty> compengi: overkill, but you can try with some kind of compare task before assembling app Jul 30 11:15:48 asfdd, no, it's checking if all your resource folders have an updated icon Jul 30 11:15:59 if you didn't forget any and things like that Jul 30 11:16:21 asfdd, Mavrik, yes it is a big project Jul 30 11:17:09 i still don't understand how that is a unit tests job Jul 30 11:17:39 Chainfire: can you take a peek at this. It might be tits up or it might be right. Im not sure. Seems clean enough : usign interface rather than a handler. discreete functions in the interface rather than a switch statement based on msgtype : certainly nicer. https://gist.github.com/rileyrg/c8cf90db04a8d7b90dc1 Jul 30 11:18:05 Mavrik, in which way are the images optimized? Jul 30 11:18:25 Estel: no. not if you hardwire the path each time obviously. Jul 30 11:19:21 asfdd, true, it's a ui test, not a unit test Jul 30 11:19:23 compengi, http://developer.android.com/guide/topics/resources/drawable-resource.html Jul 30 11:19:27 read the "NOTE" part Jul 30 11:19:50 asfdd, just because it's not a "unit" test, doesn't mean it's not a _VALUABLE_ test Jul 30 11:20:43 i suppose if it can go wrong its good to test, i just don't understand how it can go wrong =) Jul 30 11:21:00 but i don't work that much with android so maybe its something esoteric to that i don't know Jul 30 11:21:14 you don't understand how updating icons that require copying in different sizes in at least 4 different folders can go wrong? :P Jul 30 11:21:24 heh. if the test is automated take it as a bonus. Everything can go wrong.... Jul 30 11:21:47 forgetting / miscopying an icon for a density when updating design is a common issue Jul 30 11:21:59 especially if the dev uses something as mentally challenged as OS X Finder to do that Jul 30 11:22:22 i understand how that can go wrong, but i don't understand how you can save time writing an automated test for it since that would just mean you have to do the same 4x more for the tests to work? Jul 30 11:23:56 hey all, my app is implementing download/upload speed test. Im a bit stumped on the logic for converting to megabits per second. for example: return Double.toString((byte_size*8)/total_time/1000); is only effective if total time is > 10 seconds. any ideas on a more elegant solution? Jul 30 11:26:04 what is total time? time in ms? if so shouldn't you multiply by 1000 ? Jul 30 11:26:10 ms Jul 30 11:26:23 to convert the time only yes Jul 30 11:26:29 i caught that and im doing that now Jul 30 11:26:38 think i found my answer Jul 30 11:27:06 I think most speed test things usually try to ensure that they're downloading for > 10 seconds by increasing the download size? Jul 30 11:29:38 asfdd: ?? The tests prove it works. and run automatically as part of the build. Surely better that few ms than finding out a bunch of stuff is missing ten hours into a gameplay test or whatever? Jul 30 11:30:14 but if you are doing a hash comparison etc you would also have to update the test with the new hash for every icon size Jul 30 11:30:25 the time it takes to do that you might as well just doublecheck that the icon is there Jul 30 11:30:29 Jesperhead what do you mean with "only effective if" ? Jul 30 11:30:55 Hi Can any one tell me if its rooting possible to root without a computer???? fone Samsung gt-s7390 phone on Jellybean 4.1.2 Jul 30 11:31:16 rgr, that seems legit Jul 30 11:31:25 (I'm not Chainfire but I took a peak anyway) Jul 30 11:31:29 Hi Can any one tell me if its rooting possible to root without a computer???? fone Samsung gt-s7390 phone on Jellybean 4.1.2 this seems too good to be true: http://www.tfq.me/rooting-almost-any-android-smartphone-running-jelly-bean-4-1-x-4-3-x-without-computer/?ModPagespeed=noscript Jul 30 11:31:36 didn't mean to spam Jul 30 11:31:36 (nvm) Jul 30 11:31:38 BammBamm: #android-root Jul 30 11:32:00 Jesperhead: they sleep Jul 30 11:32:05 we dev Jul 30 11:32:40 rgr, apart from obvious optimizations in displayFrameRate() I'd only optimize the runInUiThread() call, create the runnable once at init and then just reuse it Jul 30 11:32:41 Estel: the problem was in missing vendor ids list Jul 30 11:32:53 so i have added my device vendor id and it works now Jul 30 11:33:28 i have no idea why but android update adb returns empty one Jul 30 11:33:37 rgr, also, I don't think you need 'int f = frameCount', I believe you can reference frameCount directly Jul 30 11:33:38 so i must do it manually Jul 30 11:34:33 rgr, oops, scratch that, I see now why you added a local var Jul 30 11:38:00 ravilov: no you cant since its not valid when its finally run. Jul 30 11:38:06 ah you saw ok. Jul 30 11:38:30 you cant reuse the runnable since you need to closure to include the framerate count. Or? Jul 30 11:38:55 good point, let me think Jul 30 11:39:30 my head is all over the place the last two days. You really need to think carefully abuot what is doing what on what thread in which context. Jul 30 11:39:52 you could always reset frameCount in the runnable, right after calling the listener Jul 30 11:39:59 anyways in this case its a once a second"ish" thing. Jul 30 11:40:12 ravilov: no I cant because I dont know how long until it will run. Jul 30 11:40:25 ugh Jul 30 11:40:30 yours is a complicated case Jul 30 11:40:49 seems pretty simply. just the architecture is new to me. Jul 30 11:40:56 simple Jul 30 11:41:12 I meant tricky and fiddly Jul 30 11:41:16 Hi I am having problems getting the URI of a picture I save to the sdcard, I am trying to send it over to Amazon S3 but I get a null pointer exception when I try to read the URI I created from the filename, I did an adb pull "file path" and that works Jul 30 11:41:17 thanks anyway. I need to re-read about the new runnable() but and understand what I can and cant do in the code block. Jul 30 11:41:19 any ideas? Jul 30 11:41:50 I am basically taking a picture, compressing it and then uploading it Jul 30 11:41:55 totic: where's your code? Jul 30 11:42:00 one second Jul 30 11:42:06 no code == no one can help. Jul 30 11:42:12 rgr: for compressing? Jul 30 11:42:13 dunno, I'd still probably look into ways of allocating the runnable just once, since it seems that would be the biggest potential performance win Jul 30 11:42:41 I dont think a lightweight runnable once a second is really worth over optimising at this stage. At a later date yes. Jul 30 11:42:50 help appreciated. Jul 30 11:42:51 totic, tried prepending "file://" to path? Jul 30 11:43:11 ravilov, let me try that Jul 30 11:43:29 Uri.parse("file://" + localAbsolutePath) Jul 30 11:44:35 over at android-root they seem to be sleeping, can i ask a few questions on rooting? Jul 30 11:44:46 BammBamm, probably not Jul 30 11:44:59 anyone? Jul 30 11:45:06 BammBamm, try looking on xda-developers Jul 30 11:45:09 I *think* I have to recreate it each time since the setting of f is from the worker thread creating the runnable. aargh. brains melting again. Jul 30 11:45:36 #xda-developers Jul 30 11:45:39 BammBamm: just ask. if someone knows they'll answer. this isnt such an anal group as ##java for example. Jul 30 11:46:01 BammBamm, I meant the forum, but I guess the channel might work too Jul 30 11:46:43 Hi Can any one tell me if its rooting possible to root without a computer? fone Samsung gt-s7390 phone on Jellybean 4.1.2 this seems too good to be true: http://www.tfq.me/rooting-almost-any-android-smartphone-running-jelly-bean-4-1-x-4-3-x-without-computer/ Jul 30 11:47:08 sorry, that link is not good Jul 30 11:47:51 is it normal that rooting software ALWAYS set off virus scanners? Jul 30 11:48:11 does anyone have good experiences with Towelroot and/or Kingo?? Jul 30 11:49:03 rgr: ;) yah, i couldn't know how anal you might be here .... which is why i asked first ;) Jul 30 11:49:19 ravilov: ok Jul 30 11:50:34 rgr, untested but should work: http://pastebin.com/QMFXELYe Jul 30 11:52:18 hi in my app i save a file in /data/data/"package"/files/test.txt Jul 30 11:52:32 but when i try to open it with in = new BufferedReader(new FileReader(FILENAME)); where FILENAME is "test.txt" i have error Jul 30 11:52:32 i save file with FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); Jul 30 11:52:39 java.io.FileNotFoundException: /prova.txt: open failed: ENOENT (No such file or directory) Jul 30 11:53:07 Alfreda, looks like you forgot to prepend the full path on read Jul 30 11:53:22 but in openFileOutput it work Jul 30 11:53:25 ravilov: I'll look. thanks. Jul 30 11:53:41 i must insert full path? /data/data/"package"/files/test.txt ? Jul 30 11:53:50 Alfreda, pastebin some actual code? Jul 30 11:53:58 ...openFileInput? Jul 30 11:54:13 alankila: exist openfileinput? Jul 30 11:54:30 ravilov: still doesnt work I tried http://pastebin.com/sXK9bEtk Jul 30 11:54:40 rgr: this is the code http://pastebin.com/sXK9bEtk Jul 30 11:54:59 (for compressing the image and uploading it) Jul 30 11:55:05 totic, read carefuly what I said -- file:// Jul 30 11:55:07 DOUBLE slash Jul 30 11:55:10 I did both Jul 30 11:55:16 oh wait Jul 30 11:55:19 sorry didn't see the comment Jul 30 11:55:36 is filenameOut a full absolute path? Jul 30 11:55:53 filenameOut = Environment.getExternalStorageDirectory() + File.separator + "test_image_1.jpeg"; Jul 30 11:56:01 hm, so yes Jul 30 11:56:06 is that not how you would get the absolut path? Jul 30 11:56:10 it is Jul 30 11:56:33 need any output or log? Jul 30 11:57:17 http://pastebin.com/BKFPXPmt dont work! Jul 30 11:57:22 also with fullpath Jul 30 11:57:39 totic, just the line where it throws null exception Jul 30 11:57:46 ok Jul 30 11:58:16 Line 17: http://pastebin.com/DPrMuTMX Jul 30 11:58:17 Alfreda, try adb shell ls -l /data/data/com.example.mydogssocial/files/prova.txt Jul 30 11:58:36 where is adb? Jul 30 11:58:54 ravilov: the code works uploading images just taken with a camera intent, or from the gallery Jul 30 11:59:07 but not when I provide the uri to the compressed image Jul 30 12:00:19 Alfreda, it is part of the android SDK, it should be available and functional if you installed the SDK correctly Jul 30 12:00:28 and where is? Jul 30 12:00:54 i have a console directly on my phone and ls -l /data/data/com.example.mydogssocial/files/prova.txt work correctly Jul 30 12:01:04 google up "setting up android sdk" for your platform. Jul 30 12:01:19 Alfreda, ok, good enough - just wanted to check if the file is actually there Jul 30 12:01:29 Alfreda: https://seo-michael.co.uk/how-to-setup-adb-on-os-x/ Jul 30 12:01:32 yes but is possible a problem of permission? Jul 30 12:01:44 Alfreda: what OS are you using? Jul 30 12:01:47 i view -rw-rw---- Jul 30 12:01:50 Alfreda, incorrect permissions wouldn't throw FileNotFound Jul 30 12:01:55 ah ok Jul 30 12:02:22 totic, I'm trying to figure this out... what's Log.d() print out? Jul 30 12:02:27 is ok this? String FILENAME = "/data/data/com.example.mydogssocial/files/prova.txt"; Jul 30 12:02:34 ravilov: what line? Jul 30 12:02:47 347? Jul 30 12:02:50 totic, Log.d("URI: SELECT IMAGE: -> " + selectedImage); Jul 30 12:03:22 lol, there aren't 347 lines in that pastebin Jul 30 12:03:28 Alfreda, that looks ok Jul 30 12:03:32 file://storage/emulated/0/test_image_1.jpeg Jul 30 12:03:45 or file:///storage/emulated/0/test_image_1.jpeg Jul 30 12:03:54 depending how many / I add Jul 30 12:03:54 so is ok FILENAME? Jul 30 12:04:14 here i have error: in = new BufferedReader(new FileReader(FILENAME)); Jul 30 12:04:37 Alfreda: try to do an "adb pull filename" to see if it exists Jul 30 12:04:58 with ls -l /data/data/com.example.mydogssocial/files/prova.txt Jul 30 12:05:01 there is Jul 30 12:05:50 ravilov: I even added a sleep to make sure the image had enough time to be saved Jul 30 12:05:59 totic, I think there's no need (or in fact way) to resolve file:// URIs through ContentResolver Jul 30 12:06:24 I mean resolve or work with Jul 30 12:06:40 you'll just have to strip the file:// prefix and then work with them as with regular files Jul 30 12:06:42 ravilov: so from a filename + path how can I get a uri that can be used with a content resolver Jul 30 12:06:57 I don't know if you can Jul 30 12:07:10 why do you insist on working through ContentResolver? Jul 30 12:07:23 Its what Amazon S3 uses for uploading Jul 30 12:07:31 hm Jul 30 12:07:43 as far as I know, ContentResolver only works with content:// URIs Jul 30 12:08:04 so if you really need to work with the ContentResolver, you might need to make your own content provider Jul 30 12:08:17 fudge.. Jul 30 12:08:21 yeah Jul 30 12:08:51 stuff like this shouldn't be that complicated Jul 30 12:08:52 how run adb from cmd in windows? Jul 30 12:08:54 ravilov: I see what you are getting at with your paste but the thread I wish to call runOnUIThread from cant access the static framrunner since its not doing a "new" on the thread of the container runner. Jul 30 12:09:16 Alfreda: http://www.droidforums.net/threads/how-to-adb-for-windows-made-easy.10924/ Jul 30 12:10:09 i dont know yourdeviceserialnumberhere... Jul 30 12:10:15 (if you get my meaning..) Jul 30 12:10:15 rgr, guess you might need to fiddle with it some, I can't since I don't have the full code Jul 30 12:10:51 rgr, yeah I think I do, although in the end it might not be so complicated ;) Jul 30 12:11:18 which is my serialnumber? Jul 30 12:11:22 deviceserialnumber? Jul 30 12:11:25 Alfreda, how would we know? Jul 30 12:11:29 adb devices Jul 30 12:11:36 where i find it? Jul 30 12:11:40 adb devices Jul 30 12:11:49 adb device? Jul 30 12:11:54 adb devices Jul 30 12:11:58 what is? Jul 30 12:12:00 where is? Jul 30 12:12:11 how about you just simply type that in your command window? Jul 30 12:12:38 479021dd44acb0ca Jul 30 12:12:42 ravilov your paste assumes the UI thread will actually run that runnable before your next iteration... that's pretty dangerous Jul 30 12:12:56 ok i'm on shell Jul 30 12:12:57 now Jul 30 12:13:15 good morning Jul 30 12:13:23 ravilov: scratch that. I put the class into the customview which has the runnable doing my work thread as a nested class. Now I just have to figure out *why* the scope works in that case. Thanks again. Jul 30 12:13:40 rgr, but also take into account what Chainfire said Jul 30 12:13:56 ravilov: permission denied when i acceed to com.example.mydogs..... Jul 30 12:13:58 why? Jul 30 12:14:02 didnt see. hang on. Jul 30 12:14:13 can i write some shell branching code in Android.mk? Jul 30 12:14:26 aha. Jul 30 12:14:29 rgr seems legit. Notice that (a) your are casting context to Activity without checking if it actually is an Activity (instanceof). (b) in the views create or attach or whatever, you could check if context implements HoneyBeezListener and auto-set honeyBeezListener, saves you some code Jul 30 12:15:18 Chainfire, since runInUiThread() merely just posts runnables into the main message queue, looks to me the worst that could happen is showing the framecount could be delayed and put closer to the next run Jul 30 12:15:42 Chainfire: hints appreciated. Not sure I follow with (b). Jul 30 12:16:03 ravilov yes, in this specific case you are correct, but as rgr is trying to get the hang of this, let's not use shortcuts that don't work in all (most?) situations Jul 30 12:16:15 Chainfire, fair point Jul 30 12:16:24 rgr, I think he means you could override onViewAttach (or whatever it's called) and do some magic there Jul 30 12:16:26 ravilov: Jul 30 12:16:28 ??? Jul 30 12:16:34 ravilov: permission denied when i acceed to com.example.mydogs..... Jul 30 12:16:56 Alfreda, what do you mean by "accessing"? via adb or java or...? Jul 30 12:17:32 rgr, indeed what ravilov said. One of the create/attach/whatever calls you can override in your custom view gets a context parameter already. You could do "if (context instanceof HoneyBeezListener) honeyBeezListener = (HoneyBeezListener)context;" Jul 30 12:17:35 onvieattach? Sorry. youve lost me. Ill google it. Jul 30 12:17:47 ravilov: Removed the content provider and didn't differently and it works! thanks Jul 30 12:18:06 totic, no prob, glad it worked Jul 30 12:18:06 rgr that way you don't have to call customView.setHoneyBeezListener() from your code, if you let MainActivity itself implement HoneyBeezListener Jul 30 12:18:27 ravilov: from adb shell Jul 30 12:18:38 ok... let me tinker. I had it implementing it earlier but it seemed unnecessary and I removed it. eek. right... Jul 30 12:18:46 Alfreda, are you root? if not, type su before trying to access anything in /data Jul 30 12:19:02 how ? Jul 30 12:19:04 sudo su? Jul 30 12:19:10 I didn't mention sudo... Jul 30 12:19:20 i'm not root Jul 30 12:19:22 you said you're in adb shell Jul 30 12:19:23 also, you could do away with the Runnables completely by using a message handler still, which is a little bit better for performance. But I wouldn't really worry about that right now Jul 30 12:19:28 yes in adb shell Jul 30 12:19:29 I'm talking about adb shell only Jul 30 12:19:42 (I tried to explain that to you yesterday but you wouldn't take it) Jul 30 12:19:43 administrator privilege from windows? Jul 30 12:19:43 I don't care about your host platform Jul 30 12:20:19 oh no. I did have a message handler to start with. just not using interfaces. Jul 30 12:20:41 there appears to be about 20390239203920 ways to skin a cat here. Jul 30 12:20:49 true, you could have a cross-thread message handler and then just post simple messages containing framecounts Jul 30 12:20:58 thats what I had. Jul 30 12:21:06 what was wrong with that? Jul 30 12:21:18 rgr right. The thing was, you had the message handler in your MainActivity. My suggestion was to have that in your customview... Jul 30 12:22:09 I must have misunderstood Chainfire . Hence move away from messages to using defined interfaces for the callbacks. Im getting confused again now. Need to take a break. Jul 30 12:22:34 ravilov: how i access to adb like root? Jul 30 12:22:48 you don't need access to adb as root Jul 30 12:22:55 you just need root access *within* adb Jul 30 12:23:00 rgr the thing you're not grasping is that you can use messages to call the interfaces. Instead of dispatching a runnable, which calls the interface, dispatch a message, and let the handler's onHandleMessage call the interface Jul 30 12:23:03 ravilov: how? Jul 30 12:23:10 I just told you how... Jul 30 12:23:12 no Jul 30 12:23:19 yes Jul 30 12:23:21 Chainfire: yes you suggested that. BUT the handling of the messages like framecount dont belong in the custom view since the custom view is but one component of the entire activity. Only the main acitivity class should know how to display the framerate, in this example, in another non custom view in my main layout. Jul 30 12:23:23 rgr that simply saves you from doing a "new Runnable" all the time Jul 30 12:23:38 yes, you are saying that again, and it is still completely unrelated Jul 30 12:24:00 do you have yesterdays gist links handy? Jul 30 12:24:20 ravilov: where? Jul 30 12:24:21 so the bit Im not getting is why you say the message handling should be in the custom view. thats what im missing. Jul 30 12:24:40 Chainfire: the three I showed you? Jul 30 12:25:30 yes Jul 30 12:25:41 think i stuck them in org-mode. hang on. Jul 30 12:26:08 rgr, I wasn't here when you were discussing this so I'm missing some history here, but seems to me his point is, the view should do framecount *dispatching*, not *printing* Jul 30 12:26:16 ravilov: where? Jul 30 12:26:35 that does look like it belongs in the customview Jul 30 12:27:51 Alfreda, right here in the channel, read the backlog if you need Jul 30 12:28:12 ravilov: run -as com.example.mydogssocial Jul 30 12:28:17 in files Jul 30 12:28:20 there is my file Jul 30 12:28:38 the view doesnt do the printing and never did. It sends a message back to the main acitivity which does the printing. Its just a Q of how its being told to do it at this stage. Jul 30 12:28:56 "message"... Jul 30 12:29:07 that seems correct Jul 30 12:29:19 the view should indeed not do any printing Jul 30 12:29:30 rgr if you give me the links to yesterday's gists I'll SHOW you Jul 30 12:29:38 it should make sense then Jul 30 12:29:53 Alfreda, ok, I think we confirmed in many ways now the file does indeed exist, now why are you getting that error I have no idea Jul 30 12:29:59 the path seems correct and the code seems good Jul 30 12:30:10 mmm Jul 30 12:30:16 :( Jul 30 12:32:39 I have them if you can remember context...(1) https://gist.github.com/anonymous/321ebb7379a2729a4c86 , (2) https://gist.github.com/anonymous/af1c4dcfc5b7bddb82bb , (3) https://gist.github.com/anonymous/5a406e3145874061a335 Jul 30 12:34:43 as for #2 - I'd probably have message processing in handleMessage() and not in processIncomingMessages() Jul 30 12:35:00 and then call displayFrameRate() if ViewMsgTypes.FRAMERATE is detected Jul 30 12:35:21 rgr http://pastebin.com/g51YqjHG Jul 30 12:35:24 but with m.arg2 (which is the framecount) instead of the full Message argument Jul 30 12:35:46 ... like that Jul 30 12:36:37 rgr all this code in your custom view, not in your activity. See how you're using both messages and the interface, and your customview still doesn't need to know anything about HOW to display the information? Jul 30 12:36:51 this saves you from creating new Runnables constantly Jul 30 12:36:56 How do I get the photo rotation of a photo in android? Jul 30 12:37:05 the one in the exif data Jul 30 12:37:22 totic, from mediamanager or from raw JPEG fileC? Jul 30 12:37:25 file* Jul 30 12:38:11 ravilov: raw jpeg file Jul 30 12:38:22 * ravilov agrees passing (recyclable) messagess is cheaper than creating and passing runnables Jul 30 12:38:43 totic, this might help: http://developer.android.com/reference/android/media/ExifInterface.html Jul 30 12:39:01 thanks good sir Jul 30 12:40:07 Chainfire: just digesting my salami toast and then I'll get to your advice. I like the tact youre taking too - youre a good teacher. Jul 30 12:40:11 a Runnable might not have any fields at all. You don't know how expensive it is. Jul 30 12:40:53 alankila, it's not about the fields, it's about the cost of allocation and creation of a new object Jul 30 12:41:04 versus an already made one Jul 30 12:41:27 (Message.obtain() recycles the messages instead of constantly creating new ones) Jul 30 12:41:54 that cost must be extremely minor. Jul 30 12:42:05 not to mention messages are much simpler than runnables which could be important for marshalling Jul 30 12:42:12 alankila, you'd be surprised Jul 30 12:42:14 I guess it isn't zero, but our Message.obtain() isn't free either. Jul 30 12:42:28 it must do something to track which objects can be reused, potentially maybe creating objects itself in order to do so :-p Jul 30 12:42:59 rgr thanks! Some food for thought: runOnUiThread just doest a .post(Runnable) on a hidden Handler. And .post(Runnable) is just a .postMessage in disguise, using a special Message object? If you don't get it, don't worry, it's not that important, but you'll get it sometime. Jul 30 12:44:37 well yeah, with Message.obtain() the cost is variable and unpredictable as opposed to constant and fixed cost of creating new objects, but even with the hidden stuff that checks and creates objects as necessary it generally turns out cheaper to use messages Jul 30 12:45:00 I'm hoping I can see how it's implemented soon Jul 30 12:45:19 just have to do a find . -name 'Message.java' over the android source tree and then wait 30 minutes for it to find it Jul 30 12:45:26 jesus that android is bloated... Jul 30 12:46:01 alankila, I just found the .java file in < 1s :p Jul 30 12:46:10 looks like a linked list Jul 30 12:46:20 that's what I assumed Jul 30 12:46:24 with a synchronized on it Jul 30 12:47:45 there you go Jul 30 12:48:36 at least it isn't itself creating objects, so it's not completely retarded Jul 30 12:48:57 but that synchronized implies a performance penalty, and to keep memory bounded it must also maintain a count and stop adding messages past a point to the pool. Jul 30 12:49:44 and yet in the end it is generally quicker to pass around messages than it is to pass around runnables ;) Jul 30 12:50:24 I still think android would be better off without shit like this. The general consensus in java in general is that pools are obsolete except in narrow circumstances. Jul 30 12:50:37 I wish Android wouldn't, due to shitty implementations, go backwards to this stuff. Jul 30 12:52:18 At least some time in the future they can just deprecate the whole thing and make Message.obtain to just do 'new Message()' and that's it. Except I bet it will never happen even if object construction and GC was literally cheaper than any effort to track object reuse. One of the reasons why the truth may favor GC is that GC can run on another cpu core. Jul 30 12:53:09 and that synchronized is going to be felt in a high performance application rather keenly. Last time I worked with synchronized, I got a result like there could be maximum of about 1000 synchronizations per second between 2 threads Jul 30 12:53:12 hi, i use Picasso, can i force reload of cached image? Jul 30 12:53:19 Sigh wtf Jul 30 12:53:20 hi how i can do a list of objects formed by image + textViews? Jul 30 12:53:47 Spent a week making the app universal with a tablet interface, now it gets scrapped for ease of testing :( Jul 30 12:57:13 Welcome to SW develop. You get an ulcer and the pleasure of seeing someone call your stuff crap and delete it 3 years down the road..... Jul 30 12:57:26 Dilbert covered that well ;) Jul 30 12:57:33 Yeah, but it works xD Jul 30 12:57:41 I've been deleting my own shit and calling it crap today... it was 10 years down the road though Jul 30 12:57:52 I have been insane Jul 30 12:57:55 if you write it properly people won't call it crap though =) Jul 30 12:58:00 i do call alot of stuff crap but not everything =) Jul 30 12:58:01 the infamous "engineer initiation"? Jul 30 12:58:18 Everything is crap six months later Jul 30 12:58:24 yeah alankila sucks when you ask wtf wrote this Jul 30 12:58:31 then you check and it was you 5+ years ago :P Jul 30 12:58:57 * ravilov has written web apps back in 2002 (says so in the app footer) that are still in major use today :) Jul 30 12:59:19 It reads like a programming excercise really. Utterly pointless feature in real world that's tricky and involved, and you can just delete the code without harming any measurable metric. Jul 30 12:59:20 nice =) Jul 30 12:59:41 * ravilov has also written some web code about 14 years ago that he can't stand to look at anymore, out of embarrassment Jul 30 12:59:43 so you know it's a winning feature from that description alone. Jul 30 13:00:08 Never design features ahead of time, sight unseen, on the theory that they could be useful some day :-p Jul 30 13:00:16 ravilov: fortunately if it works, you never need to look at it :P Jul 30 13:00:42 Estel, fortunately that code has been scrapped and refactored a few years ago :p Jul 30 13:00:50 another way of not having to look at it Jul 30 13:02:38 asfdd: wrong in my not inconsiderable experience. While there is always old and good stuff it tends to decay quickly. You can write it perfectly and new engineers would sooner delete it as "crap" and write their own in many many many cases. Its called "ownership" and enhances their "importance". Jul 30 13:03:18 it's just really hard to agree on what is good code and what is not Jul 30 13:03:39 and harder to understand the reasons for the "crap" ... invariably there were good reasons for certain "hacks". Jul 30 13:03:47 still, we move on... Jul 30 13:03:52 I've settled on the "least amount of bullshit that still works and isn't obviously horrible". Jul 30 13:04:00 heh Jul 30 13:04:00 then it should have been documented rgr =) Jul 30 13:04:26 Following this design ideal, I'd immediately kill Message.obtain as well. It isn't obviously better than 'new Message()' and it's the sort of thing that probably is completely invisible to anyone's application's performance in the real world anyway Jul 30 13:04:40 asfdd: well, obviously it "should". It should have been "bug free" and "totally maintainable" too .. after all C++ is OO and easy to maintain.... right? Bwahahahahaha...... Jul 30 13:05:15 theory and good intentions <> deadlines, changing teams and wandering goalposts in the real world. Jul 30 13:05:27 But I submit for consideration this truth: one person's crap is another's well-engineered jewel. Jul 30 13:05:58 since my expectation is that time itself turns all code into crap eventually anyway, I extract the meager victory of the crap being at least short to write and understand Jul 30 13:06:00 spot on! Jul 30 13:06:19 therefore, I value brevity and simplicity over almost any other concern. Jul 30 13:06:53 I often wonder if these new uber IDEs ruin code a little though : they make it SO easly to hack around with their refactoring, auto prompting, context javadoc etc etc that its easy not to sit back and think about things. Jul 30 13:07:08 Hey guys just started debugging a new project that I am taking over. it is a web application witch is simply loaded over a webview. My question is chrome://inspect is displaying two webview it seems from my application one says detached.May I ask what is the difference between detached and not? Jul 30 13:07:15 I think the IDEs are great precisely because they allow robust refactoring of code Jul 30 13:07:42 sure they're great. Fantastic. but often make it easy to make huge changes without considering the knock on or external affect. Jul 30 13:07:46 being able to search all users of a symbol is a feature I don't want to give up ever again Jul 30 13:08:03 well thats the least of it and available in most editors for decades. Jul 30 13:08:17 cscope, gtags etc in emacs. Jul 30 13:08:20 well, it doesn't work in python, javascript, perl, or any other dynamic language sort of thing. Jul 30 13:08:30 though they may approximate it Jul 30 13:08:39 very little works in dynamic languages Jul 30 13:08:41 in the long run Jul 30 13:08:45 Ill take your word on that. but then in fairness most tags stuff is approx too. Jul 30 13:09:13 in java, it's not approximate at all. The IDE really knows the symbol usages. Only if you dabble with reflection can there be places where a symbol's usage isn't seen Jul 30 13:09:23 but I couldn't imagine learning java and android without intellij in front of me. Jul 30 13:09:28 but reflection is relatively rarely used feature Jul 30 13:10:03 and I'm hoping that with lambda now there will be less use cases for reflection Jul 30 13:10:17 instead of 'new SomeShittyRuntimeAccessor(obj, "foo")' you can have x -> x.getFoo() Jul 30 13:10:32 i use reflection quite a bit when am working with databases etc Jul 30 13:11:08 sure the ide does (a good ide) but thats not what I meant by tags : I was referring to static generated taglists. (in case you were referring to that). Emacs has some system called cedet which is a million lines of elisp which nobody can get working. its what drove me to intellij in the end. Something I have never once regretted though I still use emacs for irc here, org-mode and email. Jul 30 13:11:20 one of the values of this kind of accessor is the ability to defer fetching the value to a future time. Sometimes, unfortunately that "foo" is a varying string though. Jul 30 13:11:30 Chainfire, hey now, I've written entire web apps in pure javascript! Jul 30 13:12:30 * ravilov used reflection in java just a few hours ago Jul 30 13:13:15 Chainfire: I read your paste. Now we#re back to exactly what my *first* Q was on this subject. And the answer is in your code : where you plumb into the main message queue using the line new Handler(Looper.getMainLooper()) . This is REALLY good news. Because it means I was on the right track yesterday. Jul 30 13:13:24 rgr: do you have any idea how to emulate an MTP device as an USB mass storage device? Jul 30 13:13:32 (I do understand my phrasing of the Q was very poor! I was tired and confused) Jul 30 13:13:59 BammBamm, UMS is reportedly no longer available in recent android versions Jul 30 13:14:06 none at all. Ask the group without a tag unless you're in a convo. Jul 30 13:15:04 i just wanna assign a drive-letter to my phone when connected to the taptop, is all ............ Jul 30 13:15:24 you make it sound simple Jul 30 13:15:27 and it used to be simple Jul 30 13:15:29 but not anymore Jul 30 13:15:31 all hail google Jul 30 13:16:02 all hate google? i can do that Jul 30 13:16:24 BammBamm, even if there IS such a feature, it would be highly device/driver dependant Jul 30 13:16:38 so you need to (re)search for your specific os and/or device Jul 30 13:16:41 not sure what precipation has got to do with it .... ;) Jul 30 13:16:55 and also, entirely off-topic for this channel Jul 30 13:17:18 really? i though this was where the fancy stuff gets done Jul 30 13:17:27 it's called -dev Jul 30 13:17:30 not -hack Jul 30 13:17:37 lol... yeah, right. Jul 30 13:17:38 rgr I did the Looper.getMainLooper() explicitly for clarity. However, the constructor of your view is called from the main thread anyway, and thus the handler would run in the main thread, regardless of you passing that looper Jul 30 13:17:57 on a philosophical level, theres no real diff Jul 30 13:18:13 semantics, and legalese Jul 30 13:18:16 and the constructor should have the handler as a parm? The only ones I saw was contect and attrs. Jul 30 13:18:16 BammBamm, depends on your level of ignorance :p Jul 30 13:18:26 got that pat Jul 30 13:18:46 rgr However, in your original example you were creating it in the Runnable, which is supposed to run on a different thread, in which case it does not necessarily run on the main thread ... hence my original note for you to construct it in your view's ctor, instead of the Runnable Jul 30 13:19:08 rgr "and the constructor should have the handler as a parm?" ?! Jul 30 13:19:24 or at least in some of the onViewAttach or similar methods Jul 30 13:20:07 btw all views have a handler, obtainable via getHandler(), that is attached to the main queue and, according to docs, "can be used to pump the events into the view" Jul 30 13:20:54 ravilov aren't we doing the reverse in this case Jul 30 13:21:22 oops, my bad Jul 30 13:21:26 got confused for a sec Jul 30 13:21:36 Chainfire: let me get back to you. I keep tripping over the same, undoubtedly simplest, thing. I need to step back a sec after reverting the code back to the message txfr in your paste. Jul 30 13:25:21 Question for people who have done iOS and Android dev. Is there an equivalent to a broadcast receiver in iOS? Specifically for network state change. Jul 30 13:25:28 Chainfire: (Y). Got it. OK, I dont necesarly like the "if else" to check the msg type but its efficient and works. thank you. Jul 30 13:28:27 ive run out of ideas or things to do with my app Jul 30 13:28:27 Chainfire: and furthermore I see the more complex but better logic. Tell the controlling view ( that which handles the creation and exec of the work thread) about certain "status" (eg framerate) from the work thread and the core there determines which listener interface will receive that message and do "whatever it wants to do". Clean. Excellent. Nice and thank you again. Jul 30 13:28:41 does it send email yet? Jul 30 13:28:54 rgr, you can always do a switch/case Jul 30 13:29:31 ravilov: yeah, I know. I can also use an enum and ordinal() : its what I had before. Jul 30 13:29:51 yes, I use enums normally Jul 30 13:30:54 * ravilov generally hates how int's are used for just about anything, from flags to values to states to, well, numbers... Jul 30 13:31:37 i know this is the 50th time i ask this: but youi guys have any feedback? :P http://i.imgur.com/T3fyini.png Jul 30 13:31:39 using an int allows you to do bit masking Jul 30 13:32:31 jonc, I know, using an int also allows you to make subtle mistakes that the compiler won't warn you about Jul 30 13:32:35 <_3mpty> jonc: iOS question - keyword "Reachability" Jul 30 13:33:06 55th. Jul 30 13:33:26 _3mpty: thanks I found that, but it didn’t seem like I’d get it while the app wasn’t in the foreground Jul 30 13:33:53 I find mobile apps that try to do more than one thing quickly get removed. I prefer simple best of breed apps which do one thing well. Thats also why I hate KDE but doesnt explain why I love Emacs.... Jul 30 13:34:34 emacs is the polar opposite of "do one thing and do it well" Jul 30 13:38:26 yes and no. The contributions tend not to come from idiots. Theplugins are invariably very very good and "fit into the emacs infrastructure". Its why I still use it for email, irc (here) etc. Mind you I use org-mode a lot for "day tracking". Its nice to have the same key chors between different "apps". Jul 30 13:38:45 s/chors/chords Jul 30 13:39:25 I kind of see emacs as a "virtual machine" if you will on my workspaces. Normally full screen on its own workspace. Jul 30 13:40:28 * ravilov is a vim kind of guy Jul 30 13:41:49 ooo .... *must resist*... ;) Jul 30 13:42:53 Emacs has some nice vim emulator modes... thats all I'll say on the comparison in the famous "Editor Wars"....... heh heh ... Jul 30 13:43:52 you made it sound as if emulating vim inside emacs is like emulating SNES on today's computers Jul 30 13:44:07 Viper and such, but I ended up just using vim Jul 30 13:44:35 ravilov: *whistle* .... ;) Jul 30 13:44:46 * pfn tried to use Viper for years Jul 30 13:44:55 ravilov/rgr historically, ints have been used on Android instead of enums because of some dalvik issue which made enums dead slow Jul 30 13:45:05 this is no longer the case though, so if you want to use an enum, go for it Jul 30 13:45:11 I read about that in my new Android book. Jul 30 13:45:25 Dead slow? I thought it was a resources issue Jul 30 13:45:39 They have like a 100x memory usage over ints Jul 30 13:45:58 possibly you are correct there, and that was the issue Jul 30 13:46:11 I remember there was some major issue, I thought it was performance, but if you say memory, fine with me :) Jul 30 13:46:11 (Android programming : pushing to the limits) Jul 30 13:46:12 Chainfire, hm, I see... when I was considering enums I immediately looked at any possible performance penalties involved, java docs said there aren't any significant penalties, but that's not dalvik... Jul 30 13:47:29 Memory makes sense somewhat, as enum members are full objects, vs ints which are just ints. But that is still the case now though, and I'm sure the "big issue" with enums is no longer present Jul 30 13:48:02 Going from a couple hundred megs to a few gigs if ram helps Jul 30 13:48:03 Heh Jul 30 13:48:17 meh Jul 30 13:48:20 apps are still memory limited Jul 30 13:48:29 its funky how my PC can do much more with the same amount of RAM Jul 30 13:48:44 or could, nowadays it has 64GB, of course Jul 30 13:49:25 aren't apps memory limited on purpose? Jul 30 13:50:20 different interpretation of memory limited. There is indeed an imposed memory limit (which isn't that bad), what I meant was that what apps can do can be limited by the small amount of memory Jul 30 13:50:24 When i want to compile my app on android 4.3 i take it will work on any android phone or do i just android 4.3? Jul 30 13:50:58 its not as much as an issue these days as it was in the past, but working with images (for example) has always been horrible on Android due to the old MemoryLimit=3xFullScreenImage Jul 30 13:51:04 Sorry if it a newbie question. Jul 30 13:51:34 type safe issues with enums? A short lived temporary screen shot from the android book hiliting various optimizations you can employ : http://i.imgur.com/BiyOKBO.jpg Jul 30 13:51:48 nowadays, you can use more memory, but when you do, you run a good chance of the GC going absolutely apeshit constantly and producing massive slowdowns in your app, unless you take great care to never instantiate new objects ever Jul 30 13:52:25 largeheap does not help, and it helpfully does not work cross process boundaries (one of your components runs in a different :process? largeheap is conveniently forgotten for that process) Jul 30 13:52:26 Chainfire, just today I finished an app that was dealing with large JPEGs, works very well on a real device but in the emulator I've seen the good ol' OutOfMemory exception a bit too often :) Jul 30 13:52:32 Sorry i just abit lost. Jul 30 13:53:20 perlsyntax, android version you compile with != android version you can run on Jul 30 13:53:37 generally, what you can run on would depend on what you declared in your manifest Jul 30 13:53:49 ravilov I'm used to working with DSLR images (generally something like 5700x3500), have been since Android 2.2. Absolute horror. Also doesn't help the GC changes with every Android release, so what works on one Android version is slow on another, and vice versa. Jul 30 13:54:01 ravilov,So i need to get a new android phone to test it on android 4.4 thanks you:) Jul 30 13:54:11 perlsyntax, .... sure, why not Jul 30 13:54:40 perlsyntax, usually you want to test on older versions that you want to support Jul 30 13:54:44 (works in a 4.4 emulator too, but if the guy just needs an excuse to get a new phone... ;) ) Jul 30 13:55:12 i didn't know that. Jul 30 13:55:31 :) Jul 30 13:55:35 Chainfire, good thing I was only dealing with photos taken with the phone itself, so not that horrible Jul 30 13:56:25 well I'm just happy mid-end phones are finally becoming capable and fast enough to do basic stuff, and are no longer consider complete lagfests Jul 30 13:56:43 Android has come a long way! Jul 30 13:56:56 yep it has. Jul 30 13:57:13 * ravilov feels it's kinda slowly going downhill now though... Jul 30 13:57:30 how so? Jul 30 13:57:34 I start to like android programming better nice people. Jul 30 13:57:48 Downhill? Jul 30 13:58:05 Not even close Jul 30 13:58:17 google is getting too pushy Jul 30 13:58:30 Pushy with what Jul 30 13:58:31 I'm still on android 2.3, I just don't like the flavor of anything newer Jul 30 13:58:44 You mean you prefer touchwiz and sense? Jul 30 13:58:49 absolutely not Jul 30 13:59:02 I can't wait to see android L:) Jul 30 13:59:02 You prefer garbage 2.3? Jul 30 13:59:06 Wow Jul 30 13:59:11 no, I prefer clean and smooth 2.3 Jul 30 13:59:18 No wonder you feel it's downhill Jul 30 13:59:26 2.3 is rock bottom Jul 30 13:59:44 because 2.2, 2.1, and 1.6 are much better? Jul 30 13:59:53 (yes, I still have phones running all those versions) Jul 30 13:59:58 ravilov,I think i wait on a new phone;) Jul 30 14:00:37 2.3?!?!? lol. Wow. Jul 30 14:00:49 yep Jul 30 14:01:08 and when I make an app, I try my best to make sure it runs on as low as 1.6 Jul 30 14:01:17 After moving to 4.2+ (now 4.4 on nexus) I simply couldnt imagine going back to the laggy bugfest that was Android prior. Jul 30 14:01:40 ravilov I've done some research on that Jul 30 14:01:42 (but is still capable of using features of newer versions if it happens to run on one) Jul 30 14:02:06 ravilow and while its certainly good form to support old androids... it doesn't make any economic sense whatsoever Jul 30 14:02:18 rgr, it also doesn't help my phone sadly has no official 4+ release Jul 30 14:02:32 Your phone sucks Jul 30 14:02:35 or in my case it's not really sadly, since I don't mind Jul 30 14:02:40 pfn, so do you Jul 30 14:02:48 And there's absolutely no reason to support below 2.3 Jul 30 14:02:58 you can't generalize like that Jul 30 14:03:03 And little to support 2.3 Jul 30 14:03:06 Its fact Jul 30 14:03:30 back in april, Gingerbread was 1.5% of my revenue Jul 30 14:03:47 kitkat, which was still a bit newer then than it is now, 60% Jul 30 14:04:15 https://plus.google.com/+Chainfire/posts/LDW4jMjj23Z?pid=5998375542832051234&oid=113517319477420052449 Jul 30 14:04:24 the target for 2.3 seems amazingly small as to not be worht the effort. Jul 30 14:05:00 building something new today, I might not even go out of my way to support 4.2 Jul 30 14:06:34 Chainfire: one truism in your post "(though every change you ever make will piss someone off)" ... welcome to the day where every fuckwit has an opinion AND can publish it at the same visibility levels of people whose opinion counts. The regat example of how idiots can ruin your life being the Google Play reviews e.g "One Star : this app sux becoz my battery runs out" or "this app sux because I cant see the score on my broken screen". Jul 30 14:07:14 I suspect that more generally: you should see what your target market uses and judge based on that :P Jul 30 14:07:39 Chainfire, forgot to mention, I'm not a proffesional android dev and I don't make any apps for money, so "economic sense" does not concern me ;) Jul 30 14:11:27 At first internet was to be a great democratizer. Then we discovered that the average person is really fucking stupid. Then we invented all sorts of voting and reputation schemes to get back to square one. Jul 30 14:11:56 rgr, my favorite kind - this app sux b/c its not pretty Jul 30 14:12:19 the average person is not stupid, the average person is average Jul 30 14:12:39 this while three quarters of people think they're smarter than average Jul 30 14:12:47 which obviously cannot be the case :P Jul 30 14:13:00 that is kind of acceptable....in a weak way, but stuff like "it suxorz because I hate text adventures" beggars belief. Jul 30 14:13:18 depends on what you mean as average... Jul 30 14:13:37 Average is average Jul 30 14:14:10 Well these are nice tautologies. Jul 30 14:14:20 Although, Chainfire, what you say ignores certain things, like curved distributiona Jul 30 14:14:27 however, statistically speaking, one extremely stupid person can easily ruin your average ;) Jul 30 14:14:43 Like average intelligence can lie above or below the median Jul 30 14:14:50 I'm sure there's a reason they came up witg medians Jul 30 14:15:04 And that can make 75% of people smarter than average Jul 30 14:15:11 Or vice versa Jul 30 14:15:27 pfn "thats stupid" ! :P Jul 30 14:16:55 if we want to nitpick though, if someone thinks to be smarter than average, the median is irrelevant Jul 30 14:17:30 rgr, "your app suxxx because your mom is a whore and your dad smells of elderberries" Jul 30 14:18:01 i want to play the music player from my app even when music app is not active/running like: play if active AND start "hidden" and play if not active . Simple play works with Intent intent = new Intent("com.android.music.musicservicecommand"); context.sendBroadcast(intent); Jul 30 14:18:07 any advice? Jul 30 14:20:29 adkins, so you want to send a broadcast intent while making sure some desired app will receive it? Jul 30 14:21:06 be the app running or not Jul 30 14:21:15 ravilov: yes Jul 30 14:23:22 It's still relevant, imagine a curve skewed to the right Jul 30 14:23:36 With a long tail to the left Jul 30 14:23:52 Er Jul 30 14:23:58 Other way around Jul 30 14:24:06 Hmm Jul 30 14:24:11 that only matters if someone thinks to be better than the median, not the average Jul 30 14:24:32 No, half of all people are smarter than the median Jul 30 14:24:43 if 99 people have IQ of 100, and one person has IQ of 200, then suddenly 99 % are below average, because the average is, I guess, 101. This is the simplest argument for how N % can be above/below average. Jul 30 14:24:44 That's absolute by definition Jul 30 14:25:03 it's just that things like human IQ distributions approximate gaussian, of course. Jul 30 14:25:20 ravilov: still thinking? ;) Jul 30 14:25:28 I don't believe it's an even distribution Jul 30 14:25:48 I'm a fan of it heavily skewed to the dumb side Jul 30 14:25:48 yes, of course, you are right, brainfart Jul 30 14:26:03 well it has 0 limit, so clearly it's probably more like poisson if it were result of some abstract statistically descricable process. Jul 30 14:26:13 hmm. I removed my local copy of firefox and now default back to iceweasel on debian. idea is not bringing up my gists on the open browser. is that a config value somewhere? Jul 30 14:26:21 Intellectuals make up the minority while trailer trash is the majority Jul 30 14:26:58 thats republican talk... Jul 30 14:26:59 but it's just real world data and you can fit a nice gaussian to metrics... though you might need one gaussian for men, another for women, and then more variation depending on nationality because these things are different for whatever reason depending on your genetic heritage and culture Jul 30 14:27:20 and the tests itself of course may highlight those differences or not Jul 30 14:28:31 you're not allowed to say that anymore. You'll be called racist. I pointed out recently in my pub that thinking an Inuit Eskimo is better at dealing with cold weather than Usain Bolt is , by the new definition, "racist" and could get you jailed.... Jul 30 14:28:51 tbh I've never really looked into, but my gut still says the average is average. it rarely happens that I think someone is "dumb" ("below average" ?). But maybe that's because I'm average myself, heh Jul 30 14:28:56 (well, actual definition of racism to be blunt) Jul 30 14:29:31 Chainfire: run a pub. Your halcyon views will soon change... I promise you that.... Jul 30 14:29:39 adkins, no, I was just clarifying, but I'm actually busy right now, sorry Jul 30 14:30:30 racism is both an objective term and a weapon. Jul 30 14:30:41 ravilov: aaaaalright ;) Jul 30 14:30:48 hi i want do a listview object my code is this: http://pastebin.com/JbRbGGCf but when i call this class in my Activity.onCreate method on MainActivity i dont view nothing: setListAdapter(new MobileArrayAdapter(this, Nomi,Razze)); Jul 30 14:31:23 Why are you telling your ListVIew you have 0 items? Jul 30 14:31:34 i downloaded 64bit of the android bundle but why there are 32bit files in the bundle? Jul 30 14:31:41 Of course it won't render anything if you're telling it it's empty :D Jul 30 14:31:46 Mavrik: no Jul 30 14:31:47 rgr I'm sure I wouldn't strike the average person as being very intelligent when I'm hanging out at the pub either... ;) Jul 30 14:32:12 pff Jul 30 14:32:20 sent email to zippyshare about my app... Jul 30 14:32:24 Chainfire, aren't we all the smartest people in the state when in a pub? :P Jul 30 14:32:24 http://pastebin.com/pzHqb1n8Mavrik: Jul 30 14:32:40 Mavrik: http://pastebin.com/pzHqb1n8 in my activity i call this class Jul 30 14:32:43 Chainfire: it's kind of worse than that. The Dunner-Kruger effect states that you can't appraise intelligences higher than your own. Jul 30 14:32:53 Alfreda, LOOK AT YOUR CODE Jul 30 14:32:56 excuse me, Dunning-Kruger. I had to look that up. Jul 30 14:32:58 Alfreda, you're returning 0 as a count Jul 30 14:33:03 what's unclear?! Jul 30 14:33:19 looks like time to meet the averages and go out to society Jul 30 14:33:29 Mavrik: no i pass to object 2 array Jul 30 14:33:56 Alfreda, doesn't change the fact you're returning 0 as a count. Jul 30 14:34:06 Alfreda, stop using ArrayAdapter because it's obviously not what you want to use Jul 30 14:34:12 and because you don't understand how it works. Jul 30 14:34:19 extend BaseAdapter and work from there. Jul 30 14:34:21 what i must use? Jul 30 14:36:43 and how i call this class in my Ativity? Jul 30 14:37:05 setListAdapter(new MobileArrayAdapter(this, Nomi,Razze)); dont work Jul 30 14:42:43 Hi guys - hope someone can help (it's a pretty weird one). Currently I am getting a sigsegv error when calling handler.proceed() on OnReceivedHttpAuthRequest but only on Samsung devices Jul 30 14:42:49 Has anyone experienced this before? Jul 30 14:44:42 logcat Jul 30 14:46:04 http://pastebin.com/rgirWexQ Jul 30 14:46:16 Nothing really on it to explain what is going on Jul 30 14:46:38 mono alert! Jul 30 14:47:35 I wouldn't ask here if I didn't think it was relevant native/mono Jul 30 14:58:19 How do I center an element vertically to another elment in RelativeLayout?\ Jul 30 14:58:26 I only find cnterInParent.. Jul 30 15:04:52 try to define a gravity in the parent Jul 30 15:16:52 hello o/ Jul 30 15:27:35 what's better when handling a listItemClick? Passing the whole object or passing the id of the object and loading that object in the new activity? Jul 30 15:29:11 matter of object size and taste Jul 30 15:29:31 hi this is my List Class http://pastebin.com/k9bnzFtY but when i recall it from my activity: http://pastebin.com/dp2GqnYg i dont view nothing, why? Jul 30 15:30:40 with debug it dont enter in this function: public View getView(final int position, View convertView, ViewGroup parent) { Jul 30 15:30:43 why? Jul 30 15:30:47 Afzal, depends on size and type of the object. Jul 30 15:30:59 Afzal, and where do you have it stored. Jul 30 15:31:57 there is not getView in that code Jul 30 15:33:02 Mavrik, well it's stored in a database so there's an extra db read Jul 30 15:33:15 Alfreda, I currently have the same issue... apperently I'm just to dumb to get listviews :( Jul 30 15:33:47 Afzal, mhm, basically remember that if you throw it into intent extras it has to be parceled, so the question is just what's faster: parceling the object or read it Jul 30 15:34:08 Afzal, there are also cases when you hold whole dataset in a singleton / hashmap from which you can grab it directly and then it makes no sense to parcel it :) Jul 30 15:34:14 also for parcel size is limited to 1Mb Jul 30 15:34:36 some helps? Jul 30 15:34:47 Syzygy, except that we told that guy about 100x that it's because he keeps returing zero as number of items in listview Jul 30 15:35:30 Syzygy, what kind of problems are you having with ListViews? Jul 30 15:36:15 nothing is displayed (i return a static 50 since I just want to display dummy stuff) Jul 30 15:36:34 on the getCount() Jul 30 15:36:48 Mavrik, well this data is cloudant-based, you do initialize their datastore once for the lifetime of the app so I guess it's fine Jul 30 15:37:00 danijoo, interesting, didn't know that one Jul 30 15:37:33 yeah, 1MB would also take awhile to parcel and back, you'd certanly notice it as slow activity transition Jul 30 15:38:01 Syzygy, hmm, basically your list view must: 1.) Return a positive value for getCount() 2.) Return inflated views from getView() Jul 30 15:38:20 lemme grab a basic adapter implementation from one of my crappy old projects Jul 30 15:38:31 yeah, it does that. give me a second, I'm putting it on pastebin at the moment Jul 30 15:38:53 anyone know if i can use System.arraycopy() to copy overlapping regions of the same array? (i.e. need to shift 5 elements left 2 positions) Jul 30 15:38:58 Syzygy, https://bitbucket.org/mavrik/prevoz-android/src/9ec64f149704669f0e159dd1e199f80ee25920e8/src/main/java/org/prevoz/android/push/PushNotificationsAdapter.java?at=master Jul 30 15:39:02 Try returning 0 in getCount on a WearableListView :p crashes the app lol Jul 30 15:39:15 Syzygy, this is pretty much the minimal Adapter for listview Jul 30 15:39:39 yan_, yes, look at the last paragraph of doc Jul 30 15:39:42 The source and destination arrays can be the same array, in which case copying is performed as if the source elements are first copied into a temporary array and then into the destination array. Jul 30 15:39:52 Mavrik: thank you Jul 30 15:39:54 besides listview.setAdapter(new myAdapter()) I don't need to do anything outside the adapter, right? Jul 30 15:40:11 nope Jul 30 15:40:30 (also that adapter doesn't use a viewholder but you can figure that out afterwards :) ) Jul 30 15:41:13 Mavrik: hi this is my List Class http://pastebin.com/k9bnzFtY but when i recall it from my activity: http://pastebin.com/dp2GqnYg i dont view nothing, why? Jul 30 15:41:20 with debug it dont enter in this function: public View getView(final int position, View convertView, ViewGroup parent) { Jul 30 15:41:32 why it dont enter in getView function? Jul 30 15:41:48 I told you. Jul 30 15:41:50 5 times. Jul 30 15:42:07 Mavrik: i'm using BaseAdapter now! Jul 30 15:42:19 and your getCount() is still 0. Jul 30 15:43:33 Does anyone know if holding onto a WebView and adding it programatically to a layout normally cause issues in JellyBean? Jul 30 15:45:33 It is a webview, so generally there will be issues. But I guess the most important thing to keep in mind if you are going to re-use the view multiple times would be to clear it when it is not visible, as it will otherwise keep the loaded data until new data is loaded over it. Jul 30 15:47:24 tMavrik: hanks Jul 30 15:47:28 it work now Jul 30 15:50:55 yan_, yes you can Jul 30 15:51:27 yan_, "The source and destination arrays can be the same array, in which case copying is performed as if the source elements are first copied into a temporary array and then into the destination array." Jul 30 15:51:51 oops, already answered Jul 30 15:51:53 late me Jul 30 15:52:24 any ideas about why AS/Intellij should now not be opening gists in the system default browser? Interestingly the "gist url" it lists in the event log cant be copied or used either. It could be linked to my removing firefox earlier today to revert back to debian default iceweasel but normally that "just works". I also added ice weasel to the AS list of web browsers and made it the default. Jul 30 16:00:59 greetings all Jul 30 16:01:05 need some help with a custom view i am writing Jul 30 16:01:21 Mavrik, http://pastebin.com/hUCSKyp7 so this is the code I'm using. Jul 30 16:03:25 it displays a white screen only for me. Jul 30 16:03:27 Syzygy, use the other form for inflating views so they attach to parent Jul 30 16:03:46 line 37: .inflate(R.layout.search_result, parent, false) Jul 30 16:04:02 everything else looks ok Jul 30 16:04:10 I have created a Gist: https://gist.github.com/xximjasonxx/28dd98b70b972cd164d3 Jul 30 16:04:31 basically the problem is, when I run the code I get nothing in my scrollview. If I break the code out, it works fine Jul 30 16:04:32 that's not java :) Jul 30 16:04:41 Xamarin, but feel free to answer in Java Jul 30 16:04:46 :) Jul 30 16:04:48 xximjasonxx, you're missing the onDraw method it seems Jul 30 16:04:54 that it? Jul 30 16:05:00 if you're extending a view (and JUST view) you need to handle drawing yourself Jul 30 16:05:12 let me give that a try Jul 30 16:05:25 but it doesn't look like that's what you really want Jul 30 16:05:30 can you tell us your use case? Jul 30 16:05:51 Mavrik: basically I got an object come across (DayEntry) Jul 30 16:06:07 and I want to display it with a predefined layout (buttonLayout (inflated)) Jul 30 16:06:22 its going to get dropped in a horizontal scroll view which the user can see dates in a given period and make a selection Jul 30 16:06:43 hmm Jul 30 16:06:45 Mavrik, nope, still not working Jul 30 16:06:50 all the DayButton class is used for is to represent the day as a view, I may need to adjust the colors Jul 30 16:07:27 Syzygy, hmm, why is your textview missing layout_width / layout_height ? Jul 30 16:07:32 in XML? Jul 30 16:07:37 xximjasonxx, hmmm Jul 30 16:07:40 the style defines it Jul 30 16:07:47 hrmm Jul 30 16:07:48 i wonder Jul 30 16:07:49 xximjasonxx, use a ViewPager Jul 30 16:07:53 xximjasonxx, and populate it with your views Jul 30 16:07:55 or so I thought, give me a second, I'll add it. Jul 30 16:08:00 xximjasonxx, you don't need a custom view for that Jul 30 16:08:03 Mavrik: isnt that overkill? Jul 30 16:08:20 I mean, its a 70px high space along the top Jul 30 16:08:25 ah Jul 30 16:08:30 well then you have two choices: Jul 30 16:08:30 s/px/dp/ Jul 30 16:08:41 1.) Make your own full view where you render it on Canvas Jul 30 16:09:06 2.) Or just define your layout and inflate it and call addView on a LinearLayout inside ScrollView Jul 30 16:09:19 in any case I don't think you strictly need a custom view/viewgroup for that Jul 30 16:09:28 Mavrik: I am doing the latter Jul 30 16:09:38 Mavrik: actually, your conversation with Syzygy made me think of something, I never did specify layout width and height on the DayButton Jul 30 16:10:37 Mavrik, set both to wrap content, changed the linear layout to width= fill_parent, height = wrap_content as well Jul 30 16:11:01 not sure if i should be happy that I'm not that stupid and it wasn't the error, or sad because it still doesn't work Jul 30 16:11:37 (and yeah, just found it again, the style defines layout_height and layout_width) Jul 30 16:12:02 mhm Jul 30 16:12:09 hmm, I see no direct reason why it shouldn't work Jul 30 16:12:28 *sigh* nothing Jul 30 16:13:05 Syzygy, does your getView get called at all? Jul 30 16:13:08 yeah Jul 30 16:13:31 i might have found something, testing now. Jul 30 16:13:39 god damn it, fixed it. Jul 30 16:13:45 what was it? :) Jul 30 16:14:12 layout orientation in the parent view was wrong, so the listview got pushed off the right of the screen Jul 30 16:14:33 most common LinearLayout mistake ever Jul 30 16:14:48 yeah -. Jul 30 16:16:20 people still use fill_parent? Jul 30 16:16:28 only the cool people Jul 30 16:16:34 yes Jul 30 16:16:48 is there a reason not to use fill_parent? Jul 30 16:16:58 guess I just like the word "match" because of tinder :/ Jul 30 16:17:18 perv :p Jul 30 16:17:23 it has been "replaced" by match_parent, which supposedly better describes what actually happens Jul 30 16:17:27 Syzygy, deprecated Jul 30 16:17:32 ah. Jul 30 16:17:34 ehh Jul 30 16:17:41 yeah doesn't matter at all, I know :p Jul 30 16:17:42 match_parent means whatever the parent is using, use that Jul 30 16:17:45 speaking of perv, what's wrong with "fill"? ;) Jul 30 16:17:49 so it could be wrap_content, fill_parent, or a fixed width Jul 30 16:18:03 ravilov, lol that's reaching :p Jul 30 16:18:22 i always thought it's what xximjasonxx just said, so fill_parent would be different Jul 30 16:18:22 so in a sense, i guess it does replace fill_parent, but it was designed more to support fragments, where your fragment may not be aware of what the container is using Jul 30 16:18:33 match_parent and fill_parent map to same thing Jul 30 16:18:43 they just renamed it because fill_parent was too confusing :) Jul 30 16:18:49 xximjasonxx: fill_parent and match_parent are identical Jul 30 16:18:51 lol, to who? Jul 30 16:18:51 agreed, I also believe fill != match Jul 30 16:19:00 Thorbear: I believe I just said that :) Jul 30 16:19:02 they're the same, fill === match Jul 30 16:19:06 how is fill_parent confusing? I find match_parent more confusing D: Jul 30 16:19:13 ... but I could be wrong: http://stackoverflow.com/questions/5761960/what-is-the-difference-between-match-parent-and-fill-parent Jul 30 16:19:17 is it possible for an app to authenticate the user by asking for the screen lock pin / password / gesture? Jul 30 16:19:25 oh boy, what have I done :/ lol Jul 30 16:19:37 * xximjasonxx slaps Afzal with a large mutated trout Jul 30 16:19:46 * Afzal is sorry Jul 30 16:20:13 Mavrik: you think if I progamatically build the view, it will work? Jul 30 16:20:31 xximjasonxx: "match_parent means whatever the parent is using, use that - so it could be wrap_content, fill_parent, or a fixed width" <-- either not true or ambigious if fill_parent and match_parent is identical Jul 30 16:20:31 since I think the problem is related to the buttonLayout NOT being attached to the containing view Jul 30 16:20:36 Ge0rG, nope, there are no APIs to check that against, that could be a potential security issue Jul 30 16:21:13 Thorbear: fine. I still dont get what fill_parent was confusing, but whatever Jul 30 16:21:16 *why Jul 30 16:22:01 same here Jul 30 16:22:03 xximjasonxx: I never understood that either, but they are still identical, and match_parent is the most recent, and fill_parent is deprecated :) Jul 30 16:22:04 Afzal: I don't want to use my app to enter the pin, I want to leverage the android lockscreen. i.e. display message, lock screen, wait for unlock Jul 30 16:22:24 kind of startActivityForResult(Android.LOCK_SCREEN) ;) Jul 30 16:22:42 android lockscreen is by design not reusable/accessible Jul 30 16:22:47 * xximjasonxx admits he uses fill_parent cause its fewer keystrokes Jul 30 16:23:08 it's as if you wanted to protect your windows app by utilizing the windows logon screen Jul 30 16:23:19 Ge0rG, I see what you mean, I don't think that's possible and even if it were, the user is already authenticated if they had a pin/pattern when they're using your app Jul 30 16:23:29 you *could* lock the screen Jul 30 16:23:36 but come on, that's just bad UI flow Jul 30 16:23:42 Afzal: unless they give their phone to somebody else, and that somebody else does malicious stuff. Jul 30 16:23:43 * xximjasonxx stabs View Jul 30 16:23:51 why cant you just be ViewGroup and let me add children to you Jul 30 16:24:03 my goal is to authenticate a password change without asking for the old password (which the user doesn't remember anyway) Jul 30 16:24:22 Ge0rG, then that's a risk they agree to take. You could incorporate your own PIN thingy using libraries but it won't be the same pin as the phone's unless the user decides that Jul 30 16:24:38 Afzal: that'd make it rather worthless :> Jul 30 16:24:42 xximjasonxx, why don't you just extend ViewGroup? Jul 30 16:24:46 or something Jul 30 16:24:50 nobody remembers credentials they enter once on installation and then never again Jul 30 16:24:56 ravilov: its on the table Jul 30 16:25:04 i just need to understand what this onlayout method does Jul 30 16:25:11 Ge0rG, if they don't use your app ever again then why make them enter the PIN at all :p Jul 30 16:25:37 seriously, if they let other people use their phone, they're just dumb and there's no way to protect against that :p Jul 30 16:25:39 Afzal: they use the app. the password is for the server connection, and it is stored in-app Jul 30 16:25:40 authenticate the old password using "something you have" then Jul 30 16:25:55 pfn: there is nothing. Jul 30 16:26:01 ohh okay, use tokens/oauth etc Jul 30 16:26:04 there's the device id? Jul 30 16:26:19 context: https://yaxim.org/ XMPP client. Jul 30 16:26:22 auth over voice recognition sounds fun :D Jul 30 16:26:37 the only server-side data about the user is username and password. Jul 30 16:26:40 I dunno man, sounds like an unusual securty decision without knowing the reasoning behind this Jul 30 16:26:44 fun in terms of coming up with ways to hack it :p Jul 30 16:26:53 the user creates an account, enters some password and forgets it immediately. when he's got a new device -> PITA Jul 30 16:27:05 Ge0rG, make the user register an email address Jul 30 16:27:19 or use any sort of oauth for registration Jul 30 16:27:21 pfn: and perform email address validation? Jul 30 16:27:24 yeah, doesn't everybody use emails as usernames nowadays? Jul 30 16:27:28 Ge0rG, use a token, store the token on the device, never need to ask the user for the password again Jul 30 16:27:30 not Apple Jul 30 16:27:30 Ge0rG, or phone number Jul 30 16:27:32 fingerprint Jul 30 16:27:52 Ge0rG, no, send reset instructions to email Jul 30 16:27:58 Ge0rG, as for being xmpp, it's the user's responsibility to remember their passwords for arbitrary servers Jul 30 16:28:03 or is this your own specific service instance Jul 30 16:28:19 oh man, I need to make a test app to try all this Android L animation goodness! Jul 30 16:28:31 pfn: the app is not bound to my own service, but many users register there as it is the default Jul 30 16:28:44 Ge0rG: what about some form of two-step verification, user enters username/email/password, gets email/sms/postcard with random code, enter code ... authed? Jul 30 16:28:45 adding phone numbers or emails is not an option for me. Jul 30 16:28:54 Ge0rG, then create a password recovery service for your own server Jul 30 16:28:59 and for all other xmpp servers, who cares Jul 30 16:29:07 Thorbear: I can't afford sending postcards to dumb users. Jul 30 16:29:24 pfn: password recovery implies a different, authenticated, communication mechanism Jul 30 16:29:36 Ge0rG, like I said, email or phone Jul 30 16:29:44 otherwise, use google backup to backup your app settings Jul 30 16:29:50 so they get restored on reinstall Jul 30 16:30:09 what about when forgotten? Jul 30 16:30:18 how wise would it be to use an API that will be deprecated in almost a year from now? Jul 30 16:30:31 and there might be almost no way to go around it? Jul 30 16:30:44 I don't see a huge problem with that Jul 30 16:30:48 just use it then Jul 30 16:30:49 deprecated code doesn't go away Jul 30 16:30:53 and change it when it goes away Jul 30 16:31:18 ravilov, facebook API v1.0 Jul 30 16:31:22 quote from docs: "android is by design fully backward compatible" Jul 30 16:31:23 ... oh Jul 30 16:31:25 facebook Jul 30 16:31:30 yeah I'm not touching that Jul 30 16:31:30 yeah, facebook >_< Jul 30 16:31:32 lol Jul 30 16:31:42 You are wise to not do so Jul 30 16:32:12 Afzal: generally avoid using deprecated code, but if you wish to support platforms where that code is still required, then use the code, and alternatively add a "for newer versions" implementation if you have a lot of time on your hands Jul 30 16:33:18 Thorbear, yeah I think if the app gets traction then it'll be usable with the new API as well but not even close to what it can be right now. Problem being that with v2.0, you only get the friends that use your app in a user's friend list Jul 30 16:33:51 oh well, maybe there's a #facebook, let's see Jul 30 16:34:28 more like #facebook-dev Jul 30 16:34:44 ravilov, lol #facebook is apparently for developers :) Jul 30 16:35:20 weird Jul 30 16:35:25 or not Jul 30 16:35:28 whichever Jul 30 16:35:42 lol, if there was a #facebook, it would be on the website :p Jul 30 16:35:46 lunch time Jul 30 16:35:47 (I mean for users) Jul 30 16:36:09 what would be a good layout behaviour similar to text (except not text specific). so basically adding stuff to the right until you hit the edge and then doing the same in a new line Jul 30 16:42:26 Syzygy, you might need to make your own layout manager as I don't see any readily available ViewGroup implementations that have that behavior Jul 30 16:42:48 sounds like work. Jul 30 16:42:50 ugh. Jul 30 16:45:22 well, at least I'm getting paid for that. Jul 30 16:45:22 you might be able to reduce the work involved by extending the closest existing implementation Jul 30 16:45:48 you get paid to complain about having work to do? :p Jul 30 16:45:52 I also get paid for minimum effort Jul 30 16:45:53 sure. Jul 30 16:45:58 Afzal: why not use latest API? The FB APIs work very well (well in JS and PHP) Jul 30 16:46:24 rgr, the latest API has a limitation where if you fetch the friend list, only users who use your app are shown Jul 30 16:46:47 which is kind of useless when you launch an app and there are no users and somebody wants to try your app Jul 30 16:48:28 Afzal, I belive that actually was the official channel for a while Jul 30 16:53:57 Sounds like a good improvement. I dont want some arbitrary app a friend uses texting me. Jul 30 17:14:25 hy all Jul 30 17:14:48 can I somehow get cm values from the tsl/tmd2772 proximity sensor? Jul 30 17:17:17 bestbuy CEO says tablet sales have tanked Jul 30 17:17:19 with this solution I get only 0.0 and 5.0 values. They write that some of the phones get back only far/near value, but I wonder if am I able to do that somehow Jul 30 17:17:23 http://developer.android.com/guide/topics/sensors/sensors_position.html#sensors-pos-prox Jul 30 17:18:52 Hi all. Anybody here using Crashlytics? Jul 30 17:28:29 gregtom6, I believe mine would be the one that only ever returns high/low reading Jul 30 17:28:34 no way around it as far as I know Jul 30 17:29:38 ravilov: what do you mean only your phone measures high and low values? Jul 30 17:29:46 why are you so sure about it? Jul 30 17:33:31 Im making a layout in which i have a "header", and below it a scrollview. Below the header, i want to add another fragment that should be drawn on top (i.e. overlay) the scrollview. I currently have this: http://bpaste.net/show/QT8wrhjA5qXjweozVvjv/ Jul 30 17:34:08 This of course does not achieve what im trying to do. I *could* add another container view below my initial fragment container, and let that be the overlay. But i'd much prefer to keep everything within a single fragment. Is that possible? Jul 30 17:34:45 Right now my "overlay" is not an overlay at all, as it pushes the scrollview further down instead of the overlay being drawn on top of it Jul 30 17:35:31 Hey, I'm building an app for patrol guards, which needs to allow them to submit an alert. This alert consists of their location, an alert type, additional comments and pictures. The submission of the alert has to go through different activities (not my idea) for each of those items. Is SharedPrefs a good place to store these temporarily? Jul 30 17:35:40 Ehhh... Sorry. Wrong paste, had the wrong android:id . This is correct: http://bpaste.net/show/a6dytpsrphjNkVcP6yOk/ Jul 30 17:37:47 gregtom6, because I know my phone? Jul 30 17:38:06 ravilov: but why the yours is the only one? Jul 30 17:38:45 gregtom6, I never said mine is the only one... Jul 30 17:39:25 syndarion: can you parcel the data that you are passing between the activities? Thats usually the preferred method. Might be too much work in your case Jul 30 17:40:46 ravilov: "...I believe mine would be the one that only ever...", that is what you said Jul 30 17:40:46 syndarion, SharedPrefs is absolutely NOT a good place to store any binary data, including pictures Jul 30 17:41:01 ravilov: I would only store their paths Jul 30 17:41:04 do you have control over all the activities involved? Jul 30 17:41:13 ravilov: what do you mean? Jul 30 17:41:24 sorry If my questions are noobish.. first timer here :) Jul 30 17:41:29 gregtom6, I know what I said Jul 30 17:42:19 gregtom6, "the one" != "the only one" Jul 30 17:42:54 syndarion, did you create (as in program) all the activities involved, or are some of them 3rd-party and you can only use them as they are? Jul 30 17:43:04 ravilov: oh, misread, sry Jul 30 17:43:42 ravilov: oh :p I'm programming all the activities involved Jul 30 17:44:32 why does my alertdialog with a custom view have a weird box "behind" it Jul 30 17:44:46 I was thinking of one activity with different fragments, but my employer wants different activities… Jul 30 17:45:19 syndarion: why would (s)he want to do that in 2014 Jul 30 17:45:22 only they know why, eh? Jul 30 17:46:00 syndarion, is some kind of temporary storage okay? Jul 30 17:46:02 guess they like the actionbar animation :p Jul 30 17:46:10 I guess it is since you're considering using SharedPreferences Jul 30 17:46:41 ravilov: yes, it needs to be temporary… Like until the alert is submitted Jul 30 17:47:06 yeah I know, I was just wondering do you mind having temporary storage or does it have to be in-memory only Jul 30 17:47:18 anyway, I'd consider bundling up all the needed info into some sort of binary bundle Jul 30 17:47:26 some file with custom structure... dunno Jul 30 17:47:34 but just one file Jul 30 17:47:46 because personally I like it when things are compact Jul 30 17:47:49 and how do I combine text and pictures in one file? Jul 30 17:48:10 here's where your creative side gets a turn Jul 30 17:48:11 Again, if we're only dealing with basic types here (strings, ints), why not just pass them in the intent extras? Jul 30 17:48:18 basically you'd have to "invent" your own format Jul 30 17:48:37 liefer: because you need to go back to the previous activity (with finish I suppose) Jul 30 17:48:52 startActivityForResult then? Jul 30 17:49:04 yes with finish Jul 30 17:49:07 not exactly what I mean Jul 30 17:49:24 like A -> B -> C is the process you go through Jul 30 17:49:44 ravilov: As long as you have the data in memory, it's perfectly easy to hand-write a serializer. Jul 30 17:49:49 but you need to be able to navigate between these, e.g. when you want to check everything's entered correctly Jul 30 17:50:22 syndarion, well that just heavily complicates things for no good reason Jul 30 17:50:30 I would totally bring that up with my employer Jul 30 17:50:34 you guys would all recommend fragments? Jul 30 17:50:46 because that's indeed pretty complicated Jul 30 17:51:02 flan3002, true I suppose, I've never had any need for such things so far Jul 30 17:51:11 syndarion, sounds much better than separate activities Jul 30 17:51:23 actually, almost anything sounds much better Jul 30 17:51:30 so one activity, containing all the data Jul 30 17:51:34 makes it easy Jul 30 17:51:40 *easier ;) Jul 30 17:52:17 will your employer ever actually look at the code? if not, maybe you could do fragments and tell them they're activities :p Jul 30 17:52:39 he has android experience, so he'd notice the actionbar not animating ;) Jul 30 17:52:47 but I'll bring it up Jul 30 17:52:54 good call Jul 30 17:52:58 I dont see why it has to be that complicated. Pass the data in the intent starting the activity. In the activity onCreate() store the extras in a field or w/e. Override onRestoreInstanceState() and save the extras in the bundle (which you then ofcourse check in your onCreate()). Done? Jul 30 17:53:18 liefer: but when you do finish() to go back, there's no intent Jul 30 17:53:21 liefer, apparently the process flow is not linear Jul 30 17:53:41 one needs to go back and forth through the process Jul 30 17:53:55 liefer, the way I understood, you don't just simply go [start] -> A -> B -> C -> [done] Jul 30 17:54:01 you go back and forth and such Jul 30 17:54:03 ravilov: indeed Jul 30 17:54:43 liefer, nevermind keeping track of data, how do you efficiently go between "screens" (which would be activities)? Jul 30 17:55:29 Which is why i suggested using the instance state...? to handle the "non-linearity" Jul 30 17:55:43 efficiently? startActivity(intent) Jul 30 17:57:48 so then you'd have to manage internal navigation (back/forward buttons or whatever), override onBackPressed(), save and restore state every so often... Jul 30 17:58:05 I mean it's not *terribly* complicated, but it is indeed *unnecessarily* complicated Jul 30 17:58:29 one of the nice things about finally "getting" soemthing with regard to android/threading etc is the post "aha" pruning of the code. Suddenly small and compact and clean. The best part being now extending a SurfaceView for my custom view and implementing a SurfaceHolder.Callback for canvas management but also imlementing Thread on the same custom view class and implementing the run() inside the custom canvas class itself. Luvverly. Jul 30 17:58:45 but -considering I'm new at this- using fragments would be most simple? Jul 30 17:58:58 "Forward" buttons you always have to handle. I would not handle back-buttons, no. Saving/restoring a couple of strings from savedInstanceState is trivial, especially compared to writing a custom serializer from scratch Jul 30 17:59:15 rgr, soon enough your "implements" list will be longer than your code :p Jul 30 17:59:24 Its not unnecesarily complicated. Jul 30 17:59:44 syndarion, I can't really tell if fragments are complicated or not as I've never used them Jul 30 18:00:58 liefer, as opposed to fragments where instead of 3 activities you have 3 views all bound to the same activity - no saving/restoring state, no fiddling with data... Jul 30 18:00:59 syndarion: If you use fragments, you could swap the UI as you like, while keeping all "global-ish" state in a single activity. Jul 30 18:01:41 ravilov: 3 activities vs 3 fragments... *shrug* Jul 30 18:02:13 liefer, it's more about all the stuff that goes on behind the scenes Jul 30 18:02:36 like I said, less/no fiddling with data Jul 30 18:02:47 but anyway Jul 30 18:02:48 That thinking is only a few steps away from putting everything in your Application class :P Jul 30 18:02:56 Who needs to pass anything when you have delicious global state? Jul 30 18:03:09 is there anyway to set a result from a fragment when the parent activity is finished with back button? Jul 30 18:03:12 liefer: "3 activities vs 3 fragments... *shrug*" so, which one is better? :) Jul 30 18:03:21 I've tried doing getActivity.setResult() in the fragment's onStop Jul 30 18:03:47 liefer, if those 3 "activites" are really just 3 steps of a single task, then it makes perfect sense to bundle it up into a single activity Jul 30 18:03:53 that's what an "activity" is for really Jul 30 18:04:10 syndarion: depends. Considering the fact that you said that your boss will kick your ass if you dont use activities, its not a very difficult choice is it? :P Jul 30 18:04:29 ravilov: sure Jul 30 18:04:34 liefer: besides that :p Jul 30 18:04:51 besides that i agree with what ravilov just said Jul 30 18:05:05 liefer: so 3 fragments would be better? Jul 30 18:05:22 like i said, it depends Jul 30 18:05:23 Hey guys. I'm trying to record some audio using MediaRecorder. I'm able to record one audio, but when I try to record more then one I always get "Media server died" and "AudioSystem AudioFlinger server died" warnings and MediaPlayer (100, 0) error on log cat. Here is the code I'm using. http://pastebin.com/1wvpApSu Jul 30 18:05:36 syndarion, by now you could've hacked together those 3 fragments already :p Jul 30 18:05:46 "it depends" is the most accurate and most annoying answer in programming ever :p Jul 30 18:05:55 thanks guys :) Jul 30 18:06:11 Sorry, i cant really give you a bettter one without being intimately familiar with your project Jul 30 18:06:13 np, good luck Jul 30 18:11:59 I guess I'll override the parent activity's finish() and have it pull the data from the fragment :| Jul 30 18:12:17 though then that makes the whole point of the fragment useless, since it can only be used with that activity Jul 30 18:14:09 I wouldnt go that far Jul 30 18:15:06 A fragment being 100% decoupled from its activity is an ideal scenario, not really a rule Jul 30 18:15:56 http://i.imgur.com/LD3IsKu.png why does my dialog have a weird background box Jul 30 18:16:23 iffa, that just looks like there's another dialog behind it Jul 30 18:16:50 but, we really can't say much from a picture :p Jul 30 18:17:05 it isnt another one Jul 30 18:17:13 could it be because i changed the theme from light to dark Jul 30 18:19:37 it works again! woo Jul 30 18:19:38 frankdrey, try using a different theme? Jul 30 18:19:47 Theme.Dark / Theme.Light or something Jul 30 18:19:59 er Jul 30 18:20:02 iffa, ^ Jul 30 18:20:03 haha ravilov Jul 30 18:20:07 i got it fixed... Jul 30 18:20:15 ok cool Jul 30 18:20:17 it does that when you put "android:alertDialogTheme" in your styles Jul 30 18:20:23 that is the most retarded thing Jul 30 18:20:42 probably has its uses Jul 30 18:20:44 new AlertDialog.Builder(new ContextThemeWrapper(getActivity(), android.R.style.Theme_Holo_Dialog)); Jul 30 18:20:45 ...somewhere Jul 30 18:20:46 this worked Jul 30 18:22:32 But now: is there a way to change the title color in my dialog? :P Jul 30 18:25:04 you can always set your custom view as the title Jul 30 18:25:39 that is very true Jul 30 18:40:35 Hey guys. I'm trying to record some audio using MediaRecorder. I'm able to record one audio, but when I try to record more then one I always get "Media server died" and "AudioSystem AudioFlinger server died" warnings and MediaPlayer (100, 0) error on log cat. Here is the code I'm using. http://pastebin.com/1wvpApSu Jul 30 18:40:58 Hi all- I need a bit of <> help; I have a class EVENTS that has array of CONDITIONS. For example; "leaving home" event has condition that when I got disconnected from my home SSID (broadcastreceiver):, it does something, lets say it shows me toast. for every broadcast i receive, i check again if condition still is true (meaning i'm not connected to home wifi). What i'm trying to do here is to set boolean hasRun to true, when it firs Jul 30 18:46:14 use tasker... ;) Jul 30 18:52:21 is there a better way to change an alertdialog's title color than setting a custom one? Jul 30 18:54:09 greetings all, I am trying to figure out how to specify the scroll position of my horizontal scrollview. However, whenever I try getting the x,y coordinates of an inner view I get zero Jul 30 18:54:23 if I specify an arbitrary scroll amount, I still get no scrolling action Jul 30 18:54:39 any thoughts on this issue? Jul 30 18:54:54 elements are added to the scrollview post create Jul 30 19:04:52 android studio refused to run on debian. OpenJDK 6 is not supported. Please use Oracle Java or newer OpenJDK. what i should do? Jul 30 19:05:13 use Oracle Java or newer OpenJDK Jul 30 19:05:17 openjdk did work with intellij fyi. dunn oabout AS. Jul 30 19:05:26 rgr, openjdk7 does, not 6 Jul 30 19:05:50 oh, so 7 is available. ok Jul 30 19:05:58 worked fine here a few months ago. I'm pretty sure since I only added 7 a while ago. Jul 30 19:06:13 well according to his error, it doesn't anymore :) Jul 30 19:06:26 not supported != "doesnt work". Jul 30 19:06:31 meh... Jul 30 19:06:33 Hi, i am having problems adding android-swipelistview in android studio. I get the error "unsupported gradle DSL method compile()" in this file https://github.com/47deg/android-swipelistview/blob/master/swipelistview/build.gradle Jul 30 19:06:39 is it that hard to install openjdk7? Jul 30 19:06:50 abator: install openjdk7 . easy Jul 30 19:06:56 which version of debian? Jul 30 19:07:03 no, im going to install openjdk7 Jul 30 19:07:16 wheezy 7.6 Jul 30 19:07:35 btw, im not sure, how do i check debian version? Jul 30 19:07:43 uname -a Jul 30 19:07:53 oh ok, ty Jul 30 19:08:28 oh, thats just linux version Jul 30 19:08:33 try lsb_release -a Jul 30 19:09:11 hmm. I have oracle and open jdk 7 installed but dont have the oracle ppa in my sources.list. Jul 30 19:09:39 Linux Abator 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64 GNU/Linux Jul 30 19:09:54 look like its 7.1 Jul 30 19:11:33 sudo apt-get install openjdk-7-jdk ; done Jul 30 19:11:54 rgr: ok, ty Jul 30 19:12:03 and with debian you needned worry about all that crap like JAVA_HOME. just use the alternatives package to select current java in use. Jul 30 19:12:13 (If I recall right) Jul 30 19:13:10 oh, the last part is confusing, the alternative java Jul 30 19:13:11 Ok, so it's been.. a few.. years (10..) since I last did Java. what import do I need to be able to use File? I thought it was java.io, but it doesn't seem like it (at least, anddroid stuid doesn't understand File even after asking for java.io, and also highlights the import as unfound). Jul 30 19:13:20 rgr, abator : it would be "sudo update-alternatives --config java" Jul 30 19:13:39 ok, ok, ty Floens Jul 30 19:13:43 oh, java.io.File! Jul 30 19:13:52 since there are a few packages that can provide a jvm, us use update-alternatives to get all of the symlinks and such pointing to the right thing. Jul 30 19:13:56 oh I am running 1.6 Jul 30 19:14:01 is there a known issue running connectedAndroidTest on android-l devices? Jul 30 19:14:03 yes thats the one. Jul 30 19:14:34 NeoThermic: ask your IDE... Jul 30 19:15:27 NeoThermic: is it possible,to write apps for android without using java? Jul 30 19:15:52 rgr: Yeah, I did, I just forgot that there's more after the .io :) Jul 30 19:16:00 my IDE is android studio Jul 30 19:16:41 abator: I have no idea, my other languages I know enough to do things are PHP and C++, and I'm confident the former won't work for Android apps :) Jul 30 19:21:09 is there way to check what commands are available at the kernal level of android? Jul 30 19:21:34 the kernel doesn't have "commands" Jul 30 19:21:51 it has syscalls, and ioctls. Jul 30 19:22:11 hmm, ok Jul 30 19:33:10 I'm getting a null pointer on actionbar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS) and I can't figure out why Jul 30 19:33:20 I googled around and none of the solutions provided worked Jul 30 19:33:31 I am trying to learn how to make a tabbed interface in android Jul 30 19:34:49 is actionbar null? Jul 30 19:35:21 canvs2321 that's what I think is the problem, but I can't figure out what would cause that Jul 30 19:35:23 post your code&or stacktrace Jul 30 19:35:41 canvs2321 ok one sec Jul 30 19:37:37 canvs2321 http://pastebin.com/eBApLqFv Jul 30 19:40:42 canvs2321 do you need the xml also? Jul 30 19:45:14 go ahead, i'm coming and going, so others maybe able to help Jul 30 19:45:36 canvs2321 go ahead and post it? Jul 30 19:45:38 and no problem Jul 30 19:45:40 post a logcat with stacktrace too Jul 30 19:45:47 ok one sec Jul 30 19:50:14 canvs2321 ok this is very strange: the app ran properly when i ran it on an actual device Jul 30 19:50:30 canvs2321 despite the fact that android studio says nullpointer Jul 30 19:51:42 I guess that means there isn't really a problem then Jul 30 19:52:33 can someone help me with gradle configuration. I have spent more time trying to get it build than I have written the code. I get an unsupported gradle dsl method compile() error Jul 30 19:56:20 I am creating a root app that executes a shell command. When I run the command in terminal it works. I am trying to execute in my application by doing Process p=Runtime.getRuntime().exec(command); but it doesnt seem to be executing. How would I go about troubleshotting why it isnt working ? Jul 30 20:04:23 is anyone here Jul 30 20:05:07 probably not Jul 30 20:05:18 I failed my challenge Jul 30 20:05:23 I used "==" to compare strings again Jul 30 20:05:33 many times Jul 30 20:06:06 can you help me Jul 30 20:06:11 with? Jul 30 20:06:33 I am creating a root app that executes a shell command. When I run the command in terminal it works. I am trying to execute in my application by doing Process p=Runtime.getRuntime().exec(command); but it doesnt seem to be executing. How would I go about troubleshotting why it isnt working ? Jul 30 20:07:04 Sorry, I've never dealt with root apps o.O Jul 30 20:07:59 i dont think it has to do specifically with root apps Jul 30 20:08:14 it troubleshooting executing a shell command Jul 30 20:12:54 haven't done that either :p Jul 30 20:27:29 devslash: first off, your terminal probably sets paths which your app doesn't, so you'd ahve to hardcode the path to the binary Jul 30 20:29:07 i did Jul 30 20:29:15 i do not use any relative paths Jul 30 20:30:25 how are you guys this fine evening? Jul 30 20:32:38 ok, I'm new to android development Jul 30 20:32:48 wrestling with listfragments at the moment Jul 30 20:35:14 dotDeb: listfragments? got an issue with them? :D Jul 30 20:35:30 im trying to debug my app using adb but its showing offline Jul 30 20:35:37 anyone know what i can try to do to fix it Jul 30 20:37:25 iffa yes actually, it is just displaying the loading spinner and never loads the list Jul 30 20:44:20 iffa are you familiar with that kind of thing? Jul 30 20:45:41 anyone know why my listfragment is just showing the loading spinner and never loading the list? Jul 30 20:46:42 dotDeb: ive only used a listfragment once, and that was with an adapter that i set to it when everything was already done Jul 30 20:47:13 iffa ah okay Jul 30 20:47:46 my adapter is just an array with { "Message1", "Message2", "Message3" }; Jul 30 20:47:49 dotDeb, do you call notifyDataSetChanged on your list adapter after loading the items? Jul 30 20:48:08 afzal no Jul 30 20:48:15 dotDeb, well then you gotta do that Jul 30 20:48:43 afzal trying it Jul 30 20:48:49 afzal didn't work Jul 30 20:48:59 dotDeb, can you show your listfragment code? Jul 30 20:49:04 afzal yes Jul 30 20:49:39 afzal http://pastebin.com/HbVTXfKq Jul 30 20:50:26 dotDeb, wait, that shows a progressbar and nothing more (and that notifyDataSetChanged is not needed there :) ) Jul 30 20:50:48 what's in your fragment_messages layout? Jul 30 20:51:04 afzal it shows the loading spinner, yea Jul 30 20:51:38 afzal http://pastebin.com/DG0Wrkae Jul 30 20:53:34 I fail to understand where the progressbar is coming from Jul 30 20:54:00 afzal not a progressbar, it's a counter-clockwise spinning circle with "Loading..." underneath Jul 30 20:54:03 and why is there a listfragment inside a listfragment? Jul 30 20:54:11 afzal oh Jul 30 20:54:13 oh wait Jul 30 20:54:17 o.o Jul 30 20:54:19 that's the issue Jul 30 20:54:22 dotDeb, lol that's an indeterminate progressbar :p Jul 30 20:54:26 ah Jul 30 20:54:52 afzal removed duplicate listfragment Jul 30 20:54:55 and it fixed Jul 30 20:55:17 lol, cool. So I guess it was just calling fragmentTab1's onCreate instead of MessagesFragment's Jul 30 20:55:27 afzal bingo Jul 30 21:01:40 my eyes after disabling f.lux Jul 30 21:01:41 D: Jul 30 21:11:40 iffa ikr Jul 30 21:11:44 iffa although I use redshift Jul 30 21:11:48 * dotDeb uses Debian Jul 30 21:14:54 i found a mysterious crash! Jul 30 21:14:56 this is exciting Jul 30 21:15:11 Can't perform Ken Burns effect on rects with distinct aspect ratios! what the hell does this mean Jul 30 21:16:18 ooooh Jul 30 21:16:19 i get it! Jul 30 21:17:38 i ran adb logcat when trigger the event that runs a shell command and this is the output: http://pastebin.com/s79VD8ed Jul 30 21:22:54 well FINALLY! http://android-developers.blogspot.ca/2014/07/google-io-2014-app-source-code-now.html Jul 30 21:32:20 Hi all.. I'm having some trouble with Analytics. So, I create a tracker, and then per event I set the type and send the values, correct? Or should I create a new tracker for each type that i set? Jul 30 21:42:06 I have a question, I think im doing something stupid. I'm new to android dev. Jul 30 21:42:22 I'm using Android Studio and I keep getting this error when I try to run my app on the emulator: Jul 30 21:42:24 Didn't find class "android.view.DrawerLayout" Jul 30 21:42:36 But I have the support libs added. Jul 30 21:42:48 This is in my build.gradle: Jul 30 21:42:48 compile 'com.android.support:support-v13:+' Jul 30 21:43:05 And I can't find much online Jul 30 21:43:19 what I found is that DrawerLayout is a v4 class Jul 30 21:43:23 android.support.v4.widget.DrawerLayout Jul 30 21:43:33 maybe add v7 and v4 also to your project? Jul 30 21:47:40 I've added them all and rebuilt and im still having the same issue :/ Jul 30 21:48:43 i ran adb logcat when trigger the event that runs a shell command and this is the output: http://pastebin.com/s79VD8ed Jul 30 21:49:22 devslash: what does that mean ? Jul 30 21:49:43 guys how do i change the color of the title in my alertdialogs (id want them to be like white instead of blue) Jul 30 21:49:44 I might just uninstall android studio and reinstall it? Jul 30 21:49:49 that is the result of running adb logcat while executing a shell command from my application Jul 30 21:49:51 i dont even know what to di Jul 30 21:49:53 which isnt working. Jul 30 21:50:31 all support libs are included but it can't find class DrawerLayout. Jul 30 21:50:46 But Android studio doesnt complain about it, only the device does Jul 30 21:53:37 i want to rip my laptop in half Jul 30 21:57:30 I suggest you refrain from it Jul 30 21:57:40 AKK9: what's your build.gradle look like ? Jul 30 21:57:57 you might be importing the non-support libs? (they accomplish the same thing, but live in different packages, and sometimes have a Support pre/suffix) Jul 30 21:58:40 Can someone help me with an issue I am having with one of my BroadcastRecievers being called too early? I have a BroadcastReceiver that does something when a package is removed from the phone(android.intent.action.PACKAGE_REMOVED). It works as intended, but I noticed today that I receiver an error in logcat as soon I launch the app into the login activity. My BroadcastReceiver should not be getting called yet because no packages have Jul 30 21:58:41 been removed, I havent even logged in yet. I get this error: java.lang.RuntimeException: Unable to start receiver java.lang.NullPointerException. It is trying to run my onReceive method inside the BroadcastReceiver which calls a method getUserID() from my SharedPreferences. This method will obviously return null since the user ID gets set after the user logs in. But somehow my reciver is being called before I even log in. Any ideas w Jul 30 21:58:42 is going on here? I have another receiver that does something when packages are ADDED, and that one doesnt receiver an error. Jul 30 22:01:13 iffa: if it has a style applied to it you can create a new resources xml to change its style in res/values by specifying the parent as the style used by the dialog and then modify the attinute whic wish to change. e.g my res/values/myactionbar.xml : http://pastebin.com/qzH168g9 Jul 30 22:01:34 attinute==attribute Jul 30 22:02:11 <[Aura]MaelStrom> hi! simple Q, when i used this code: ((TextView)findViewById(R.id.textBody)).setText(message);, on a pre-defined widget Jul 30 22:02:15 <[Aura]MaelStrom> the app stops Jul 30 22:02:20 <[Aura]MaelStrom> what am i doing wrong? Jul 30 22:03:04 bold assumption that you've given us enough information Jul 30 22:04:05 bankai_au, my gradle file looks like so: Jul 30 22:04:06 http://pastebin.com/6ti3EzxA Jul 30 22:04:35 <[Aura]MaelStrom> ok, if i create a new TextView object, and use setText method on it, then call setContentView(textView) I can see the message i sent with setText(message) Jul 30 22:05:07 [Aura]MaelStrom: textview is probably null Jul 30 22:05:10 <[Aura]MaelStrom> having a TextView object that i defined using the design layout Jul 30 22:05:18 or message is an integer Jul 30 22:05:32 <[Aura]MaelStrom> message should be ok, a string Jul 30 22:05:43 <[Aura]MaelStrom> i think the problem is with the textview, but how could it be null? Jul 30 22:05:48 bankai_au, any obvious problems with it? Jul 30 22:06:03 [Aura]MaelStrom: I cannot do any fortune telling, debug Jul 30 22:06:08 or show more code Jul 30 22:06:16 [Aura]MaelStrom: What kind of view are you extending here? You can't use findViewById() inside the view you're trying to get the ID of... Jul 30 22:06:18 did you invoke setContent() ? Jul 30 22:06:27 or inflated fragment layout ? Jul 30 22:06:48 it's probably activity since you have findById method Jul 30 22:07:13 you have findbyid inside views too Jul 30 22:07:38 Thorbear: if you do view.findById Jul 30 22:08:01 dont know if fragment has that method Jul 30 22:08:08 using butterknife too often ;) Jul 30 22:08:33 <[Aura]MaelStrom> there's not much code to show, this is purely based on the scratch generated automatically, i'm new to writing apps on android, so as simple matters as this raise questions to me Jul 30 22:08:56 <[Aura]MaelStrom> ok I think Thorbear you might be up to something Jul 30 22:09:03 <[Aura]MaelStrom> i did do what you said Jul 30 22:09:33 <[Aura]MaelStrom> i just wanted to put text on a TextView in the current view Jul 30 22:10:10 [Aura]MaelStrom: The simplest thing you can do right now is to paste your class, and the layout XML in pastebin, and give us the link Jul 30 22:11:13 <[Aura]MaelStrom> ok ty Jul 30 22:11:49 nvm, i have a fix Jul 30 22:12:06 i will tape my laptop to my face and dive head first off a bridge Jul 30 22:12:14 lol Jul 30 22:12:26 AKK9: why the laptop? Jul 30 22:12:36 Because the desktop is too large? Jul 30 22:12:45 because i only have a laptop Jul 30 22:12:51 Although if you have enough gaffa... Jul 30 22:12:55 AKK9: Why bring anything? Jul 30 22:13:10 AKK9: Why not just, jump off with someone you hate or something Jul 30 22:13:28 the primary objective is to break the laptop, i just included myself for fun Jul 30 22:13:33 ah Jul 30 22:13:41 I thought the primary objective was yourself... Jul 30 22:13:46 no no Jul 30 22:14:28 i made a new project with the navigation drawer activity template Jul 30 22:14:30 and it worked fine Jul 30 22:14:36 <[Aura]MaelStrom> this is the code: xml, and two classes: http://pastebin.com/6PPihfvk Jul 30 22:14:40 and the gradle.build file was identical Jul 30 22:14:47 and project settings also Jul 30 22:14:49 and it worked fine Jul 30 22:14:57 <[Aura]MaelStrom> the problem in line 103 Jul 30 22:15:02 but mine just for some reason doesnt see the classes in the support libs Jul 30 22:15:36 anroid studio sees the lib and uses stuf from it, but the device complains Jul 30 22:16:07 its bullshit Jul 30 22:16:11 [Aura]MaelStrom: Jul 30 22:16:12 // Set the text view as the activity layout Jul 30 22:16:13 //setContentView(textView); Jul 30 22:16:16 c'mon Jul 30 22:16:27 tht should be second line in that method Jul 30 22:16:35 [Aura]MaelStrom: DisplayMessageActivity hasn't inflated any layout, so it won't find any views. Jul 30 22:16:48 i give up Jul 30 22:17:08 AKK9: what kind of libs ? Jul 30 22:17:11 <[Aura]MaelStrom> so i must invoke setContentView on each update? Jul 30 22:17:12 is scope good ? Jul 30 22:17:17 [Aura]MaelStrom: yes Jul 30 22:17:18 support lib v4 Jul 30 22:17:34 sometimes if you don't sync your gradle, AS/IJ gets a bit weird Jul 30 22:18:04 im using DrawerLayout in my project. so i synced support lib v4. and android studio let me use the classes and automatically added the import statements Jul 30 22:18:25 <[Aura]MaelStrom> still crashes Jul 30 22:18:28 but when i run on any device it crashes and the stack trace says can't find class drawerlayout Jul 30 22:18:34 [Aura]MaelStrom: show that class again Jul 30 22:18:42 onyl DisplayMessageActivity Jul 30 22:18:49 <[Aura]MaelStrom> ok Jul 30 22:18:56 AKK9: what's the scope in build.gradle ? Jul 30 22:19:07 compile ? Jul 30 22:19:11 or provided ? Jul 30 22:19:32 <[Aura]MaelStrom> http://pastebin.com/3zPcqD7J Jul 30 22:19:47 Is there a way to retrieve a list of groups without getting at them through a contact? Jul 30 22:19:49 compile Jul 30 22:19:55 gordon_, compile Jul 30 22:20:40 [Aura]MaelStrom: Each Activity must have a layout, if you intend that DisplayMessageActivity should find textBody it'll need setContentView(R.layout.activity_my); where activity_my is the name of the XML you pasted on the top Jul 30 22:20:48 AKK9: should be fine... Jul 30 22:21:07 yeah.... :/ Jul 30 22:21:09 [Aura]MaelStrom: you are still doing it wrong Jul 30 22:21:17 <[Aura]MaelStrom> oh am i Jul 30 22:21:20 setContentView(R.layout.display_dadads); Jul 30 22:21:28 [Aura]MaelStrom: And that needs to be on a line before findViewById() Jul 30 22:21:33 and IT MUST BE AFTER super.onCreate(savedInstanceState) Jul 30 22:21:47 that too Jul 30 22:21:49 maybe ive fucked up something in my project Jul 30 22:21:57 AKK9: hmm Jul 30 22:22:03 seems like gradle problem Jul 30 22:22:13 dont have much experience in andrid gradle project Jul 30 22:22:20 unfortunetly Jul 30 22:22:27 does it work in the emulator ? Jul 30 22:22:44 doesnt work in emulator or my device Jul 30 22:22:48 emulator is 4.4.2 Jul 30 22:22:51 device is 4.4.4 Jul 30 22:23:06 crack open the apk and have a look inside Jul 30 22:23:27 stack trace points to this line: Jul 30 22:23:27 setContentView(R.layout.activity_start); Jul 30 22:23:52 activity_start is a Drawerlayout Jul 30 22:23:52 AKK9: show xml maye Jul 30 22:24:01 *maybe Jul 30 22:24:58 http://pastebin.com/XhRqprKQ Jul 30 22:25:01 activity_start there Jul 30 22:25:53 do I need to do it like this in the xml? Jul 30 22:25:53 android.support.v4.widget.DrawerLayout Jul 30 22:25:59 instead of DrawerLayout? Jul 30 22:26:22 cause i guess the xml won't know the package Jul 30 22:26:31 holy shit Jul 30 22:26:36 maybe thats it Jul 30 22:27:09 ill have to try this tomorrow Jul 30 22:27:12 thanks for the help Jul 30 22:27:19 Hello is there a way to pass touches through from a "Fragment Window" (source of touch) to a "NativeActivity Window" (Destination)? Jul 30 22:27:40 This fragment window sits on top of the NativeActivity Window, full screen. Jul 30 22:28:10 Or, another option would be to "synthetically generate" a touch event and pass that to the NativeActivity window? Jul 30 22:28:35 I'm not worried about the solution, more concerned with the functionality. :) Jul 30 22:29:52 Hello, I would like to extend activity and then write a method that requires my extended activity.. But I want this to work for a PreferenceActivity too... how can I do this? Jul 30 22:35:42 <[Aura]MaelStrom> ok instead of using a new activity, i used the same one, though after pressing 'send' button, how can i move the focus away from the text box (aka close it) Jul 30 22:42:16 Is there a way to figure out which group belongs to which account? Jul 30 22:42:31 (Android Contacts) Jul 30 22:44:08 <[Aura]MaelStrom> nvm found solution http://stackoverflow.com/questions/3400028/close-virtual-keyboard-on-button-press, non-trivial one though Jul 30 23:36:32 hey, i'm attempting to send a prepackaged sqlite DB along with my application, but keep running into an issue with verifying that the DP exists. I returna boolean based off of http://pastebin.com/SaESSDNW - it ALWAYS returns true though, what did i gimp up? Jul 30 23:37:00 there's a missing close parentheses there, because i just copied/pasted wrong, you can ignore that Jul 30 23:45:27 if I need to pass data between two activities, would it be worthwhile using an event based system? (like otto or eventbus) Jul 30 23:45:38 no, that is not what they are for Jul 30 23:56:06 guys what is the name of that online site that starts with a p lets you build a database for your website Jul 30 23:56:13 comes with its own libraries, i was confused thought it was called plex Jul 30 23:56:14 or something Jul 30 23:57:31 pbuildadatabaseforyourwebsite.com Jul 30 23:57:39 no no Jul 30 23:57:45 one word Jul 30 23:57:45 P Jul 30 23:58:00 if you talk really fast, that can be one word :) Jul 30 23:59:02 in the diagram on http://developer.android.com/reference/android/app/Activity.html there is an action 'App process killed' , is there a corresponding onKilled() method (or some equivalent, or is the onDestroy() method invoked)? Jul 31 00:01:37 perhaps guys Jul 31 00:01:43 its a cloud connection that lets you host a mysql database? ponline Jul 31 00:02:08 has a blueish website Jul 31 00:04:07 parse Jul 31 00:04:07 ! Jul 31 00:07:00 Nivag: you may get an ondestroy or you may just be killed. I believe there's a chart on the lifecycle page on the android docs which shows what you're promised to get. Onpause/onsuspend may be the only thing you're sure to receive Jul 31 00:17:31 dragorn: thanks! Jul 31 00:18:38 hey guys!, how do i change the background color of a tab? Jul 31 00:19:15 naschurmann: i think thats a theme! Jul 31 00:19:25 you might need to change the theme, and incorporate it in the style. Jul 31 00:19:31 i may be wrong Jul 31 00:19:33 i am still learning! Jul 31 00:19:45 yeah, but i need to do it in the activity. It changes depending on the behaviour :P Jul 31 00:20:49 after updating to google play services 18, running tests using robolectric is producing the following error. Can anyone shed some light? Jul 31 00:20:50 Caused by: java.lang.VerifyError: Expecting a stackmap frame at branch target 74 Exception Details: Location: com/google/android/gms/maps/MapView.(Landroid/content/Context;Landroid/util/AttributeSet;I)V @23: ifnull Reason: Expected stackmap frame at this location. Bytecode: 0000000: 2a2b 2c1d b700 982a b600 7612 9a03 1202 0000010: b800 7e3a 0419 04c6 0033 1904 2a2a b600 0000020: 8206 bd00 8459 03 Jul 31 00:25:30 anyone?, i need each tab to have a different color :) Jul 31 00:26:17 any intellij (not android studio) power users here? i'm trying to figure out why one of two simply projects i have isn't working. the broken one doesn't seem to realize that it needs to integrate with gradle - i'll change the build.gradle file and it won't say it needs to sync, like the proj that works does. Jul 31 00:39:46 Helllo Jul 31 00:39:50 Anybody help me? Jul 31 00:42:47 Messiii: step one: actually ask a question. It's worthless to ask "will anyone help me" if no-one knows what you might possibly need help with. Jul 31 00:42:49 is actually anybody here?? Jul 31 00:43:02 Ok Jul 31 00:43:09 cool. So i need to change a tabs color. Any pointer? Jul 31 00:43:11 I have a problem with a editText Jul 31 00:43:18 I need get text to edittext Jul 31 00:43:34 EditText input = (EditText) findViewById(R.id.input); Jul 31 00:43:34 String mensaje = (input.getText().toString()); Jul 31 00:43:34 Input.setText(mensaje + emo1); Jul 31 00:43:42 Messiii: are you a bot ? Jul 31 00:43:51 can someone ban him please? Jul 31 00:44:16 bankai_au: don't be rude... he just want to learn Jul 31 00:44:22 What? Jul 31 00:44:27 naschurmann: he'as sked this EXACT question four times now Jul 31 00:44:43 Nobody has answered me Jul 31 00:44:49 he's also been given the answer four times Jul 31 00:44:51 bankai_au::: Answer my Jul 31 00:44:53 Come on Jul 31 00:44:55 bankai_au: because nobody answered him.... Jul 31 00:44:56 he's also ignored the answer four times Jul 31 00:45:07 Messiii: what do you need Jul 31 00:45:20 Read my question Jul 31 00:45:31 No, nobody has answered me Jul 31 00:45:53 Messiii: no entiendo tu pregunta Jul 31 00:46:02 Ok Jul 31 00:46:17 Necesito tomar el texto en mi edittext Jul 31 00:46:30 Cuando yo mando una cadena a edittext, la cadena me lo borra Jul 31 00:46:47 Si yo mando un emoticon, se borra el texto escrito y es reemplazado por el emoticon Jul 31 00:46:53 * ravilov wishes there were some ops nearby Jul 31 00:47:06 eso es obvio, es porque estás reemplazando el texto. Jul 31 00:47:23 Ok entonces como debo hacer? Jul 31 00:47:30 Yo solo quiero aadir el emoticon al texto Jul 31 00:47:35 Como whatsapp por ejemplo Jul 31 00:48:50 si quieres añadir el texto primero debes obtener el mensaje y concatenarlo. Pero no se que es tu emoticon Jul 31 00:48:56 no se si es texto o un objeto Jul 31 00:49:11 if you're not going to speak english, take it to a PM please Jul 31 00:49:46 ^ Jul 31 00:49:53 Es un texto Jul 31 00:49:58 :) ;) :@ Jul 31 00:50:07 Como obtengo el mensaje? Jul 31 00:50:12 Fijate lo q pegue al principio Jul 31 00:50:18 String mensaje = (input.getText().toString()); Jul 31 00:52:59 naschurmann::: Jul 31 00:53:08 EditText input = (EditText) findViewById(R.id.input); Jul 31 00:53:22 Deberia funcionar Jul 31 00:53:30 editView.getText().toString() Jul 31 00:53:56 eso está en google, no deberías preguntarlo acá Jul 31 00:54:03 Messiii http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html Jul 31 00:54:20 De donde sos Jul 31 00:54:27 chile Jul 31 00:54:39 Ok, busque en google, pero ningun getext me funcionaba Jul 31 00:55:08 http://stackoverflow.com/questions/4531396/get-value-of-a-edit-text-field Jul 31 00:56:13 guys, anybody knows how to change a specific tab color?, i need all my tabs to have different colors Jul 31 00:57:07 * dotDeb learning how to write android applications by writing an android application Jul 31 00:57:13 * dotDeb actually really useful Jul 31 00:57:19 *-/me Jul 31 01:01:22 this: actionBar.setStackedBackgroundDrawable(new ColorDrawable(0xFFFF0000)); changes the hole actionBar background color, how can i change only 1 tab background color? Jul 31 01:03:30 please!, don't rush to answer :P Jul 31 01:03:59 After following the Udacity course, I noticed they always created an activity containing a fragment. I have two questions about this method: (1) would this be considered best practice? And (2) should I use this approach when building an app targeted at phones? Jul 31 01:06:11 syndarion yes Jul 31 01:06:52 you might be tempted to simplify and just put your layouts and UI directly in the activity, but that can make it harder to make a nicely adaptive UX later Jul 31 01:07:05 sarbs: thanks Jul 31 01:07:16 I'm asking because I'm failing to restore state in my fragment Jul 31 01:07:46 my fragment implements a loader, which takes a longExtra from the intent Jul 31 01:08:23 so in onSaveInstanceState I save the id Jul 31 01:08:40 but the savedInstanceState bundle in both onActivityCreated and onCreate is always null :( Jul 31 01:09:46 are you creating a new fragment instance in your activity's oncreate? Jul 31 01:10:15 sounds like when your activity is recreated, it generates a brand new fragment instead of grabbing the old one Jul 31 01:10:20 and letting the system recreate it Jul 31 01:11:01 sarbs: probably generating a brand new fragment Jul 31 01:11:11 how can I let the system recreate it? Jul 31 01:16:10 syndarion i think just try calling FragmentManager.findFragmentBy{Id|Tag} Jul 31 01:16:26 been a while since i've done anything related to that, tbh, but i know it's possible Jul 31 01:16:40 just can't recall off the top of my head + few mins of googling Jul 31 01:18:39 Right now I'm using this auto generated bit in my activity: http://bpaste.net/show/6BOKahBSZO8pAL6oYbmK/ Jul 31 01:19:05 I new at this, so I don't really know what to change here :/ Jul 31 01:20:43 oh, that shouldn't cause a problem.. it's only creating a new fragment if there's no activity savedInstanceState Jul 31 01:21:31 What could then? Jul 31 01:22:01 i'm not sure tbh. sorry :/ try creating a tinker project that reproduces the problem, making it as simple as you can get it Jul 31 01:22:20 if you can get it to work, then start adding complexity toward your main proj until it breaks Jul 31 01:22:34 guess I'll go with that Jul 31 01:22:55 if you can't simplify any further and it still doesn't work, then you can put it up on gist and ask for help from there, and ppl can dl the proj and see what's going on Jul 31 01:23:55 it's annoying that it works when the user clicks the back button, but not when he clicks the arrow back Jul 31 01:26:52 I'm reading a SO post right now, stating one has to save the fragment's instance in the activity as well: http://stackoverflow.com/questions/15313598/once-for-all-how-to-correctly-save-instance-state-of-fragments-in-back-stack Jul 31 01:26:57 Trying this out atm Jul 31 01:31:59 naschurmann::: Lo probe y no funciona lo q me dijiste Jul 31 01:32:20 EditText input = (EditText) findViewById(R.id.input);String mensaje = input.getText().toString();input.setText(mensaje + emo1); Jul 31 01:34:32 Se fue el maricon Jul 31 01:36:23 Anybody helpme? Jul 31 01:40:38 hello im getting a null pointer except on webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); on some phones.... Jul 31 01:45:41 Messiii, if you've asked this same question so many times and still didn't get the help you expect, then maybe it's time to move on and look for help elsewhere Jul 31 01:49:35 Hello anybody help me?? Jul 31 01:51:12 what exactly isn't working, coz yesterday ( and the day before ) you said it wiped your text field when you did setText, which of course it will, and 'append' was suggested...so now what? Jul 31 02:08:36 what's the use of “LocationListener”? If my app refresh location information every several micro second, can i remove it? Jul 31 02:22:54 yuqian, are you saying you registered a LocationListener and it gets called every few microseconds? Jul 31 02:25:21 can LocationListener update the location information several microseconds? Jul 31 02:26:25 a LocationListener cannot update location information at all Jul 31 02:26:57 first of all it's just a listener, second of all the location information generally only gets updated by physically moving the device Jul 31 02:27:36 in the latter case, it takes a while for the device to update the info so it is highly unlikely your listener will get called that often Jul 31 02:32:26 i think i know something. Jul 31 02:32:48 I would hope you do, lol Jul 31 02:37:37 you also register the amount of time you want between updates. no useful data is going to come out of a mobile device gps at more than a hz or so Jul 31 02:40:58 Is there any documentation for anywhere? Jul 31 02:47:42 hello, for some reason I am having the hardest time wrapping my head around when it is that variables need to be stored as to not be lost during rotation, or minimizing, or any of that stuff, and it is causing me to write a lot of bad NPE filled code. Jul 31 02:47:43 Could anyone recommend a good writeup that gives a complete picture of how to manage your variables and state information in android? Thank you! Jul 31 02:48:30 (I've read over d.android.com, but find it not the best for me to wrap my head around) Jul 31 02:50:32 zzxx, I suggest reading up on android activity lifecycle, then creating a test app/activity overriding all methods that deal with lifetime (onCreate, onDestroy, onStart, onPause, onConfigurationChanged...) and then playing with it in an emulator in all ways you can think of Jul 31 02:50:37 zzxx: anything you do in oncreate has to be redone or stored Jul 31 02:51:06 s/lifetime/process flow/ Jul 31 02:51:21 pfn, I've seen something somewhere but am now having trouble finding it Jul 31 02:51:26 ravilov: what do you mean my process flow? Jul 31 02:51:55 not your process flow, just *a* process flow Jul 31 02:52:10 that is I would understand that to be essenitally the same as lifecycle Jul 31 02:52:14 how would they differ? Jul 31 02:52:25 yeah they are the same really Jul 31 02:52:26 oh... like that Jul 31 02:52:26 i see Jul 31 02:52:43 don't get caught up on trivialities like specific terms ;) Jul 31 02:56:40 if I have java classes (not activities), they are killed as well (on rotation, and perhaps other times?) yes? Jul 31 02:57:26 java classes are parts of tasks/activities, so yeah, of course they would go away too Jul 31 02:57:37 java classes do not exist on their own Jul 31 02:58:37 hmmmm.... if I have a java class that does not extend activity or anything else, youre telling me that is an activity? Jul 31 02:58:54 no I am not Jul 31 02:59:08 sorry I guess I dont understand then Jul 31 02:59:13 where exactly do you think your class "exists"? Jul 31 02:59:17 ah wait Jul 31 02:59:30 you mean they are at least members of activities? Jul 31 02:59:36 no, not members... **** ENDING LOGGING AT Thu Jul 31 03:00:00 2014