**** BEGIN LOGGING AT Sun Sep 21 03:00:00 2014 Sep 21 03:02:24 just a name i had been using from my days long, long ago of playing ultima online Sep 21 03:02:44 i guess its swedish or denmark, but i had no idea just popped into my 11 year old head one day Sep 21 03:23:25 hm still. can anyone give me a hint how to read rss that requires authentification with java.net.url or how to import another jar properly so i can use the httpclient workaround? Sep 21 03:29:08 hm, i have an idea for a dingleberry Sep 21 03:32:06 ewwwwwwwww Sep 21 03:34:47 capella thats what i call libraries that are mostly useless excep for removing boilerplate, and they cling to app but causes code smells & rashes, etc Sep 21 03:34:59 hey g00s Sep 21 03:35:13 heh - yah, "dingleberries" Sep 21 03:35:25 hey Napalm ! Sep 21 03:35:38 want to see what the world looked like in 1482? Sep 21 03:35:45 http://upload.wikimedia.org/wikipedia/commons/f/f0/Claudius_Ptolemy-_The_World.jpg Sep 21 03:36:07 just came across it whilst researching this mapping app idea i'm working on Sep 21 03:36:59 obviously this is only part of it.. but interesting picture none the less Sep 21 03:40:31 hmm i just packed the httpclient again as .jar, this time without the manifest file and no errors yet Sep 21 03:42:13 Napalm here's a map from reagan era https://collincomptwo.files.wordpress.com/2013/05/usronaldreagan.jpg Sep 21 03:47:03 hehe http://alphadesigner.com/art-store/usa-according-to-common-sense-print/ Sep 21 03:47:51 hehe, NJ is canned sardines wat Sep 21 03:49:22 capella are you being productive ? Sep 21 03:50:24 mildly ... tweaking our test library for easier use to new contributors ... trying not to pizz off other devs I work around Sep 21 04:16:18 NY is definitely Apples Sep 21 04:19:52 hello all Sep 21 05:09:27 does the ordering of the tags matter in the AndroidManifest.xml? Sep 21 05:14:38 i dont think so Sep 21 05:14:56 not 100% sure thou Sep 21 05:43:15 bilb_ono, when you click "run" in your IDE, the activity that gets started is the first one mentioned in the manifest which might not necessarily be the one you're working on; other than that it doesn't really matter Sep 21 05:49:35 erm I though it was the one with the intent LAUNCHER ? or the one overridden in the run config ? as in nothing to do with order Sep 21 05:49:52 well or intent filter MAIN Sep 21 05:50:39 well ok MAIN is an action and LAUNCHER is a category Sep 21 05:51:14 but yes, that can be anywhere, top bottom, and it would be the 1st activity no ? Sep 21 05:52:15 In android studio when i add a EditText field it gives Rendering Problems: Exception raised during render java.lang.System.arraycopy ([CI[CII)V Sep 21 05:52:24 whats wrong with it ??? Sep 21 05:52:59 t2mkn did you do a google search ? Sep 21 05:55:34 StingRay_: yes but did not find any resonable answer. still looking around in google Sep 21 05:56:01 http://stackoverflow.com/questions/24451490/exception-raised-during-rendering-java-lang-system-arraycopy Sep 21 05:56:46 1st result with google search Sep 21 05:57:36 and just to prove it http://bit.ly/1uqBp4K Sep 21 06:00:30 StingRay_: thanks for help. solved by changing it to API 19. Sep 21 06:00:55 if there are problems with api20w then why its comming by default with android studio !!! Sep 21 06:00:59 i did nothing, except spend 5 seconds on google Sep 21 06:01:11 thats what to take away from this ;) Sep 21 06:02:45 ya :) m new to android dev as well as to android studio. so less experience :P Sep 21 06:03:32 to develop app what should be good. eclipse adt or android studio Sep 21 06:03:42 google says new starters should pick android studio Sep 21 06:03:43 erm, talking about google searches ;) Sep 21 06:03:59 nothing to do with dev stuff :p Sep 21 06:04:39 ya as of less experience, searching right thing from google also takes some time. Sep 21 06:07:13 dod you look at the search terms I used though ? Sep 21 06:07:21 element and exception Sep 21 06:07:44 didn't even need android in the terms though sometimes you will Sep 21 06:09:02 ya looked at. Sep 21 06:09:20 i was searching for "Rendering Problems: Exception raised during render java.lang.System.arraycopy ([CI[CII)V" :P Sep 21 06:09:53 some how result i got is equal, but i was not able to get it riht Sep 21 06:10:07 it was talking about eclipse and i was looking for android studio Sep 21 06:10:40 then with your search term, and the result, i thought if its wrong with eclipse so do will be wrong with android studio Sep 21 06:10:50 then looked for rendering api option Sep 21 06:10:54 solved :) Sep 21 06:11:12 new bees always learn from mistakes :D so do i :D Sep 21 06:12:49 StingRay_: how u made the second link. i mean the demo the way u search for ? Sep 21 06:13:08 lmgtfy Sep 21 06:13:31 some1 asks a question that they shouldn't have to ask, let me google that for you Sep 21 06:13:37 lmgtfy :) Sep 21 06:14:31 ya ya ... i should google first :P Sep 21 06:16:17 a LocalService binding would in effect be unavailable once the application that started it dies off (killed by ANdroid or user)... is this correct? Sep 21 06:18:43 QubeZ: service may not stop i guess. because searvice is different thing then app. i hae not tried just guessing Sep 21 06:23:28 hey @all. got a question depending geolocation and i don't really know which approach to choose. Sep 21 06:24:12 need to sort some hundreds of items fetched from a server with user-position Sep 21 06:25:18 should the items coming sorted from server - so geolocated sql-query or should i sort items on the device? Sep 21 06:26:34 i guess server-load could explode when each and every call should be geolocated Sep 21 06:27:17 any experiences or best practices? thx in advance! Sep 21 06:27:57 mauricemoss you decide based on the app and what you feel is right Sep 21 06:28:04 cause no1 knows more about it that you Sep 21 06:28:07 :) Sep 21 06:30:02 right :) just wondered if there are any best practices. something like <1000 items: sorting on device >1000 items: sorting on server Sep 21 06:30:06 something like that Sep 21 06:30:26 well, erm "sorting" is a bit like.. Sep 21 06:30:35 well … wtf kinda :) Sep 21 06:30:57 dont know what you mean, also dont know the app, also dont know the data or use case Sep 21 06:31:03 pointless to speculate Sep 21 06:31:27 my gut with total lack of knowledge about whats going on would be sort on the server as thats what SQL does quick Sep 21 06:31:31 but who knows... Sep 21 06:33:07 k. i'm not the sql-guy but heard of geolocated calls over thousands of items which took seconds which is not that usable ... Sep 21 06:34:19 well you are doing that app Sep 21 06:34:49 kk. will have a deeper look at that Sep 21 06:34:49 tbh I would expect a discussion on it and explaining enough to get informed opinions is very much more time than test both ways :) Sep 21 06:36:08 guess that's what i should do Sep 21 06:36:11 thanks anyway Sep 21 06:36:13 mauricemoss i missed everything. what kinds of things are you sorting ? what is a geolocated call ? Sep 21 06:37:06 sorting geolocated items by distance to user-location Sep 21 06:38:10 thats a k nearest neighbor problem Sep 21 06:38:32 do that on the server, using the right data structures. pass it to the client Sep 21 06:39:18 has been the first attemp of the guy who is working on the api. but calls of 1+ seconds are not that effective Sep 21 06:39:54 what database are you using ? Sep 21 06:40:17 mysql Sep 21 06:40:24 lol Sep 21 06:40:43 that bad?! ^^ Sep 21 06:40:52 if it's a user initiated sort then 1s is fine. Nothing wrong with mysql. if it can power fb it can power your app.. Sep 21 06:40:52 maybe try postgis ;) Sep 21 06:41:03 Oh rubbish. Sep 21 06:41:58 rgr|android are you going on record saying FB uses mySQL for k-NN ? Sep 21 06:42:03 i call bullshit ;) Sep 21 06:43:02 mauricemoss well, are you at least using mySQL spatial extensions ? Sep 21 06:43:50 as i said. i am not the sql/api guy. will ask him about that Sep 21 06:44:26 well, pretty much everythning depends on that. if he isn't , try it Sep 21 06:44:30 Hi Sep 21 06:44:53 k. thanks for the hint Sep 21 06:45:03 How to automate browsers in android? Sep 21 06:51:38 mau you have lat long int he db? Sep 21 06:54:41 this was interesting http://stackoverflow.com/questions/574691/mysql-great-circle-distance-haversine-formula Sep 21 06:54:59 but it doesn't sound like he's the developer. so devil in the details Sep 21 06:55:02 yep Sep 21 06:55:17 i'm on the android-app Sep 21 06:55:31 http://srch2.com/android/releases/0.2.2/ you can use this Sep 21 06:55:49 if you hook it to your db with the sqlite connector (look at advanced) it'll handle all the search look up for you Sep 21 06:55:51 and the api-guy just said something about reduce some serverload and outsource some sorting to the device Sep 21 06:56:43 so i wondered if there are any best practices or if i should say that all sorting should stay on the server Sep 21 07:00:42 i'd recommend making the client thin; sorting should be on server Sep 21 07:02:19 unless the client has to sort it different ways Sep 21 07:03:15 just what i thought. guess i'll have a talk to him Sep 21 07:03:31 thanks for your input Sep 21 07:04:07 but if you already optimized everything, and you sure its as fast as you can get it - and you expect huge load, tables can turn to sort of the client Sep 21 07:05:43 somebody would have to benchmark the time it takes to sort on the device too; so it will be transit time + sorting time Sep 21 07:05:49 Pull your objects out, give them names. It will make your system much easier to understand. Sep 21 07:07:43 mauricemoss for android, you can load the unsorted data into mvstore and use r*tree indexing Sep 21 07:08:14 but anyhow, too many ways to slice this. if you have other platforms, you'll have to write the sorting for all of them Sep 21 07:08:37 k. will have a look at that. other platforms will be supported Sep 21 07:13:00 I have a question: Is selendroid used to test android apps or test android browser? Sep 21 07:13:24 can't found a good answer Sep 21 07:24:06 :'( Sep 21 07:24:07 test android browser ? Sep 21 07:24:15 yeah Sep 21 07:24:16 wtf for ? :) Sep 21 07:24:28 oh you doing a mobile site ? Sep 21 07:24:34 no Sep 21 07:24:50 I meant test browser to fill forms and login to websites Sep 21 07:26:09 not sure this is the place to test webforms Sep 21 07:26:21 maybe a web dev channel can help ? Sep 21 07:26:31 no Sep 21 07:26:39 it's related to android Sep 21 07:27:01 no i mean they maybe able to help you with a testing framework for mobile clients Sep 21 07:27:06 How to fill forms in websites automatically using android? Sep 21 07:27:32 StingRay_: not that what I meant Sep 21 07:29:06 oh, how to do web things automatically ? no idea Sep 21 07:32:36 hi Sep 21 07:32:51 I am using XAPKReader to load APK files Sep 21 07:33:12 this: Sep 21 07:33:41 https://github.com/psyon/phonegap-xapkreader Sep 21 07:34:17 is that not more to do with #phonegap than #android-dev ? Sep 21 07:34:26 However it uses a content provider Sep 21 07:34:28 no lemme finish Sep 21 07:34:59 Like this: http://pastebin.com/HC462LEw Sep 21 07:35:24 So the problem is, it won't work anymore if I try to do it with 2 apps Sep 21 07:35:39 Because those content providers or however they are called are public/global Sep 21 07:35:56 I want to remove this somehow, but I don't know how Sep 21 07:36:08 (Or make it so that it's private) Sep 21 07:36:12 Any tips? Sep 21 07:36:36 ,amofest exported=false for the cp Sep 21 07:36:48 Pretty sure it was "false" already. Sep 21 07:36:54 I changed it to "true" Sep 21 07:37:00 But ok, let me try that. Sep 21 07:37:06 well if it is exported then it makes it available to other apps Sep 21 07:37:08 Maybe i confused the two Sep 21 07:37:20 that DOES make sense.. Sep 21 07:39:02 is also explained in the docs Sep 21 07:39:08 but i know you have trouble with that ;p Sep 21 07:40:16 :x Sep 21 07:41:34 i got the same error .. i guess i need to uninstall the other one also Sep 21 07:48:50 ok Sep 21 07:48:56 lasserix: yeah it doesn't work. Sep 21 07:49:03 doesn't matter what the exported= value is. Sep 21 07:51:17 Just because exported is false, doesn't mean that the ID can be non-unique. Sep 21 07:53:45 http://stackoverflow.com/questions/6273592/content-provider-install-failed-conflicting-provider-installing-content-provide Sep 21 07:55:51 Yes, authorities must be unique Sep 21 07:58:40 earlier I tried to remove it Sep 21 07:58:42 hey yall. When I insert more than 500 elements into a db should i maintain the connection or connect and disconnect with every 500? Sep 21 07:58:44 but it crashed and burned Sep 21 07:59:34 but i think iknow a way around it Sep 21 07:59:57 Tricknology keep the connection open all the time :| Sep 21 08:00:20 why in the world ... Sep 21 08:02:54 ok Sep 21 08:03:38 getResources().getLong(R.long.filesize) Sep 21 08:03:43 Is this correct? Sep 21 08:03:49 Or is it something else? Sep 21 08:03:53 To get 64-bit ints? Sep 21 08:11:13 guess it is just R.integer Sep 21 08:18:51 Tricknology: you should be using statements to do the insert, surround it in a try/finally construct with a begintransaction settransactionsuccesful endtransaction if it didn't throw a catch Sep 21 08:22:27 hang on, isn't that the same question, conversation and answer as yesterday ? Sep 21 08:22:34 or a glitch in the matrix :) Sep 21 08:23:03 i'm restructuring the insert as we speak but i have to doit via transaction Sep 21 08:35:22 can anyone take a gander at this sqlite statement? Sep 21 08:35:45 http://pastebin.com/Z1TcCWkt Sep 21 08:36:13 gettign java.sql.SQLException: near "INSERT": syntax error Sep 21 08:36:32 (.) Sep 21 08:37:10 ZOOOOOOOOOM Sep 21 08:38:37 2 INSERT in 1 statement ? Sep 21 08:39:28 http://pastebin.com/7U2YA2Fy Sep 21 08:40:10 Tricknology Sep 21 08:40:48 but you really should use google for this thing, it's just sql basics 1o1 Sep 21 08:40:52 oops, 101 Sep 21 08:56:58 you can just use ? ? ? Sep 21 08:57:14 INSERT INTO tbale-name VALUES (?, ?, ?) Sep 21 08:57:28 then use bindString(1) bindString(2) bindString)3_ Sep 21 08:57:39 (index starts at 1 not 0 ) Sep 21 08:58:57 lasserix but if you were inserting 500 no you could not Sep 21 08:59:02 well not in a single statement Sep 21 09:01:59 So. what is the proper way to change the animation between Activities, i.e. overridePendingTransition? Sep 21 09:03:47 http://pastebin.com/BwgTJm8x Sep 21 09:03:59 what? Sep 21 09:04:19 Tricknology: lookat link Sep 21 09:04:34 you might have to move the statement initialization in the try, can't remember Sep 21 09:05:07 ahhh oops Sep 21 09:05:11 i forgot you have to add Sep 21 09:05:11 statement.clearBindings(); Sep 21 09:07:03 Tricknology: http://pastebin.com/0W537NG1 http://pastebin.com/0W537NG1 http://pastebin.com/0W537NG1 Sep 21 09:07:48 so if endtransaction without settransaction succesful is called it'll dump whatever changes were made Sep 21 09:38:17 So by adding extras to an intent I can pass information to an activity. How do I get back some kind of return value from an activity though? Sep 21 09:40:11 So here: http://developer.android.com/training/basics/intents/result.html they don’t state how to create the result intent. Sep 21 09:42:33 Intent resultIntent = new Intent() Sep 21 09:43:53 And send that to the original Activity? Sep 21 09:43:57 That started „me"? Sep 21 09:45:24 http://developer.android.com/reference/android/app/Activity.html#StartingActivities Sep 21 09:45:42 Call setResult Sep 21 09:47:17 ah thank you Sep 21 09:48:05 I am seriously wondering if I think this approach is quite elegant or rather disgusting. Sep 21 09:50:16 Hi all Sep 21 09:50:56 I have a ViewPager with a PagerTabStrip inside it Sep 21 09:51:28 Hi everyone Sep 21 09:51:32 I can set an adapter to the ViewPager and all works good Sep 21 09:51:36 hi ashemark Sep 21 09:52:05 but when I set a new adapter the contents stay the same Sep 21 09:52:10 any ideas? Sep 21 09:52:27 is there a library to add sharing capabilities to your app(g+, facebook, twitter, etc.) Sep 21 09:52:53 ashemark: did you google? Sep 21 09:53:20 erasmospunk: yes i did but cannot locate something useful Sep 21 09:54:06 ashemark: I don't know any library that combines all the social networks Sep 21 09:54:46 not all, but the main ones Sep 21 09:56:29 gotcha, it's called social-auth android Sep 21 09:56:36 thanks Sep 21 09:59:17 Is there some reactive library that is nice to use with android actually? Sep 21 09:59:23 Hello, so if my relative layout has margins set the admob ads (using Google Play Services) does not display. Sep 21 09:59:46 This destroys my margins. Sep 21 09:59:51 :( Sep 21 10:00:40 What do I do if I want to keep my margins ? Sep 21 10:01:43 marrrk, reactive in what way? rxjava-android? Sep 21 10:01:52 Yeah like that Sep 21 10:02:30 I would like to use this but it is not specifically for android so I’m not sure if it blow up: https://github.com/lihaoyi/scala.rx Sep 21 10:06:17 IIRC it does work if you use scala Sep 21 10:06:35 That would be very nice! Sep 21 10:06:43 I will just give it a shot. Sep 21 10:11:30 Is it possible to put a timeout or time limit on a notification so that it auto-removes itself? Sep 21 10:18:13 It seems that it's necessary to start background task for this.. Sep 21 10:28:11 This notification will self destruct in 5 4 3 2 1.. Sep 21 10:28:22 (little explosion animation on the home screen) Sep 21 10:37:09 Hello people, I'm sure some of you must have bumped into the admob ads not displaying when you have margins set ? Sep 21 10:40:15 lasserix: exactly Sep 21 10:40:40 I made a task in my service that does it, so it's fixed. I still think a timeout in the API would be appropriate. Sep 21 10:41:08 How to avoid AlertDialogs from closing when the users clicks outside the dialog? Sep 21 10:41:57 Ah, found something http://stackoverflow.com/questions/4650246/how-to-cancel-an-dialog-themed-like-activity-when-touched-outside-the-window/5831214#5831214 Sep 21 10:42:49 Hm, not very pretty as this requires modifying the Activity... Sep 21 10:44:04 Hi everyone Sep 21 10:44:06 How can I pass a string as the body of JSONRequest in android volley?? Sep 21 10:44:57 So any news on the testing front? What’s your favourite for android? Sep 21 10:48:23 alertDialog.setCancelable(false) =) Sep 21 10:50:47 Zta there is another way Sep 21 10:50:52 tho i can't remember Sep 21 10:51:02 something to do with intercepting the vent and not passing it Sep 21 10:51:16 alertDialog.setCancelable(false) is perfect Sep 21 10:51:49 k Sep 21 11:10:41 Hello. I am using `android.R.layout.simple_list_item_2` but its styling is not according to my application appearance. How can I fix this? Sep 21 11:10:58 So nobody is testing? Thought so. Sep 21 11:12:00 =) Sep 21 11:12:33 We test, but I don't really have any favorite testing framework, we've only tried two frameworks, and had problems with both Sep 21 11:12:49 Tests failed, huh? Sep 21 11:13:01 which two? what problems? Sep 21 11:14:02 hi, I have a .png drawable that I need at drawable-sw600dp-hdpi and drawable-xxhpdi - how can I prevent adding the file twice to my resources? Sep 21 11:14:34 I don't remember the first one, but we're currently using Robolectric, and the problems include tests being more complicated to set up than the code they're testing Sep 21 11:16:28 Hi, anyone familiar with IAB? I have some apps that use V2, and don't seem to be using the apps public key in my store listing. Is using the public key mandatory? I'm not having any problems with selling IAP. I am just updating those apps to billing V3 Sep 21 11:18:14 MarkG1234 do you fancy doing a test with me ? Sep 21 11:18:24 I think I can show a bug Sep 21 11:18:30 I can try Sep 21 11:18:38 MarkG1234: If you want to use the IABHelper from the example project, you require the public key as it uses it to validate the purchase in the app Sep 21 11:18:54 I'm not use the helper Sep 21 11:19:07 MarkG1234: If you use the V3 directly without the validation, i.e. Without the helper, the public key is not required Sep 21 11:19:16 OK, thanks. Sep 21 11:19:30 MarkG1234: You only need it to verify the signature on the purchase the V3 returns Sep 21 11:45:47 hi Sep 21 11:45:49 in xml resources, is android: the same as @android:style/ ? Sep 21 11:50:47 hi all, I'm trying to do the following: "import android.hardware.Camera; Camera.open();" and it fails with "Fail to connect to camera service". Any idea why? Sep 21 11:50:47 have problems running my app from eclipse in the emulator, not sure if this is valid here? Sep 21 11:53:27 meital cause you didn't follow a tutorial Sep 21 11:53:27 my problem is that when I try to load my vm from snapshot it always tells me that the snapshot was for another hardware config, which is untrue Sep 21 11:53:49 meital or you didnt do what the tutorial said exactly ? maybe didnt add the permission or something Sep 21 11:54:31 StingRay_: Which tutorial? I found a code example somewhere...And I don't think that it's a Manifest permissions issue, because it has a different error in such cases Sep 21 11:55:57 well either permissions or you are not releasing from a previous instance Sep 21 11:56:05 or simply something else has a lock on it Sep 21 13:36:47 hi guys Sep 21 13:37:16 does anyone know the name of the 'share this via' popup and how can I get it? Sep 21 13:46:13 How do I cancel view animation nice? Sep 21 13:46:30 I mean let it end the current animation before it stop Sep 21 14:35:06 Hello. my listiview is showing items in a different style. The items are unreadable. I have used default styling everywhere and my android app theme is Holo Light. Any ideas? Sep 21 14:37:34 hey, why cant i get a variable of a newly created class (after creation) ? Sep 21 14:37:41 i dont have any errors Sep 21 14:38:03 what do you mean? Sep 21 14:38:08 i cant even call any public methods :S Sep 21 14:38:26 Object t = new Object(String d) Sep 21 14:38:45 whose class is it, is it a class you made? Sep 21 14:38:47 t.method() Sep 21 14:38:55 a fragment Sep 21 14:39:50 is it an extended class of fragment? Sep 21 14:39:59 extends SherlockFragment Sep 21 14:40:18 are you casting to your class or just fragment? paste some code Sep 21 14:41:01 SherlockFragment newFragment = new MyFragment(); Sep 21 14:41:09 newFragment.test = test; Sep 21 14:41:16 there's no test found Sep 21 14:41:24 inside the fragment its a public string Sep 21 14:41:36 why doing SherlockFragment if it's a class extending it? Sep 21 14:41:48 MyFragment newFragment = new MyFragment() Sep 21 14:41:54 ;) Sep 21 14:42:01 ok Sep 21 14:42:12 the cast is wrong is all Sep 21 14:42:24 i see thanks Sep 21 14:42:27 cause SherlockFragment doesn't contain your method Sep 21 14:42:29 :) Sep 21 14:43:07 whats an /sdcardi Sep 21 14:43:16 italian sdcard? Sep 21 14:43:52 HAHAHAHA :D Sep 21 14:44:30 WTF? Since when is a missing translation considered a build error? Sep 21 14:44:37 also, good morning Sep 21 14:46:15 http://forum.xda-developers.com/showthread.php?t=1962507 Sep 21 14:47:25 /storage/sdcardi is the virtual SD card for the internal storage. You should see all the files you had saved to this space before using data2sd. These files should be accessibly by any standard non-root Android app. Sep 21 14:47:30 it tells you Sep 21 14:49:25 hi all Sep 21 14:50:05 i Have Big Problem To Animateted My ListView With Java Android Sep 21 14:50:20 Who Can Help Me Please Sep 21 14:51:56 Maybe you should try and explain your problem. And Stop Typing Like This. Sep 21 14:53:33 roomezonline: Ask the channel, not me Sep 21 14:53:42 ok Sep 21 14:54:04 i have ye Coustom Adapter And ListView Sep 21 14:54:05 ok? Sep 21 14:54:23 canvs2321: im stil a little confused Sep 21 14:54:46 i dont have a sdcardi on my phone Sep 21 14:55:13 screwsss: Don't hardcode paths https://developer.android.com/guide/topics/data/data-storage.html#filesExternal Sep 21 14:55:16 screwsss: it looks like they are doing a custom kernel that supports mounting different ways, sdcardi is a map to /data2/media or something, it's a mod for whatever they are trying to accomplish Sep 21 14:55:23 see Sep 21 14:55:39 If your question is related to that xda-dev post, you should go to #android-root Sep 21 14:55:54 dont hardcode paths Sep 21 14:56:01 simontv >>> i have am Costom Adapter Sep 21 14:56:14 all i want is to put app data on the sd Sep 21 14:56:20 as my phones internal space is minimal Sep 21 14:56:25 i want Show Data in My List View Sep 21 14:56:27 I want information on the Vaio list will show the accompanying animation is Sep 21 14:56:35 hardcoded paths are the devil Sep 21 14:56:44 well, if the devil was a path. Sep 21 14:56:48 screwsss: Unless you're developing an app, your question isn't appropriate for this channel Sep 21 14:57:05 how Show Data in ListView With Animate Sep 21 14:57:33 float initialTranslation = (mLastPosition <= position ? 500f : -500f); convertView.setTranslationY(initialTranslation); convertView.animate() .setInterpolator(new DecelerateInterpolator(7.0f)) .translationY(0f) .setDuration(300l) .setListener(null); // Keep track of the last position we loaded Sep 21 14:57:42 oh ffs Sep 21 14:57:55 im developing a way to get app data onto the sd Sep 21 14:58:08 http://paste.ubuntu.com/8396432/ Sep 21 14:58:14 i use this code Sep 21 14:58:26 Alright, try #android-root then Sep 21 14:58:30 just this code show on record on the list Sep 21 14:59:03 for secound record have problem . Force Close Sep 21 14:59:35 SimonVT: you Sep 21 14:59:48 are one hell of a guy Sep 21 15:00:01 Glad I could be of service Sep 21 15:02:17 roomezonline: You haven't made sense yet. If it crashes, read the stack trace. Sep 21 15:02:44 but im going into anywhere but android root as you and i both know nobody is ever active in there Sep 21 15:05:03 this is Full My Code In CoustomAdapter.java Sep 21 15:05:04 http://paste.ubuntu.com/8396496/ Sep 21 15:06:20 how can I Fix This? Sep 21 15:07:27 roomezonline: Please stop messaging me. If it crashes, read the stacktrace. Google logcat if you don't know how. Sep 21 15:07:56 roomezonline: try android-root Sep 21 15:09:17 Don't be stupid Sep 21 15:13:59 Is the great pfn here? Sep 21 15:16:00 Shit, I didn’t see that this highly interesting github project was from three years ago :( Sep 21 15:27:33 ? Sep 21 15:40:57 i have a Coustom List View , I Want Animation All Item In The List . How? Sep 21 15:42:29 i have a Coustom List View , I Want Animation All Item In The List . How? Sep 21 15:42:30 i have a Coustom List View , I Want Animation All Item In The List . How? Sep 21 15:42:31 i have a Coustom List View , I Want Animation All Item In The List . How? Sep 21 15:42:32 i have a Coustom List View , I Want Animation All Item In The List . How? Sep 21 15:42:33 i have a Coustom List View , I Want Animation All Item In The List . How? Sep 21 15:42:33 i have a Coustom List View , I Want Animation All Item In The List . How? Sep 21 15:42:34 i have a Coustom List View , I Want Animation All Item In The List . How? Sep 21 15:42:44 how animation man item in listview Sep 21 15:42:52 java android Sep 21 15:43:03 please any know , Help me Sep 21 15:47:59 i'm using Android Studio but I need to change the package name of the entire application. Is there a straightforward way of doing that? Sep 21 15:49:17 pfn I was wondering if you know a way to integrate the output of android:test in Intellij? Sep 21 15:49:36 Sorry for putting a question mark at the end of a normal sentence. Sep 21 15:50:03 you should be sorry Sep 21 15:50:09 marrrk, just have intellij run the tests Sep 21 15:50:19 don't need to android:test Sep 21 15:50:29 Really? Sep 21 15:50:46 Even if I mix in some scalatest? Sep 21 15:51:01 as long as the apk includes tests, intellij will run them ok Sep 21 15:51:14 if android:test works Sep 21 15:52:29 This is blowing my mind Sep 21 15:52:33 It just works Sep 21 15:52:58 So what do I need to execute so that the apk is compiled before? android:compile? Sep 21 15:57:21 wow there really is no way to change a package name efficiently in Android Studio.... Eclipse for the win! Sep 21 15:57:45 marklite: Sep 21 15:57:47 MartialLaw: Sep 21 15:57:49 sorry marklite Sep 21 15:57:57 So MartialLaw have you tried a refactor? Sep 21 15:58:16 I am offended by Eclipse for the win. Sep 21 15:58:37 yup tried it. Sep 21 15:58:52 and what happens? Sep 21 15:59:05 well at least in Eclipse you can change the FULL package name Sep 21 15:59:31 Just Sep 21 15:59:42 right click on your base package -> Refactor -> Rename Sep 21 16:00:00 In the project pane on the left is where I click Sep 21 16:00:40 Or just create your new package and move everything there Sep 21 16:02:43 pfn: is it android:packageDebug ? Sep 21 16:05:59 Yeah, seems like that does the trick. Sep 21 16:08:25 Eclipse for the win!!! Can not rename package...this element can not be renamed Sep 21 16:08:51 thnx android studio..now i get to go to about 200 classes and change import R values Sep 21 16:09:50 MartialLaw: Just use your stupid Eclipse then. Sep 21 16:10:04 And see how much you can WIN with that! Sep 21 16:11:24 sure know its faster then this Sep 21 16:11:31 doing everything manually Sep 21 16:21:08 hi I have a service.. and its starting but there is no icon showing in the status bar? Sep 21 16:25:14 did you issue start stop notifications? or Google..? Sep 21 16:27:23 I have a question. If i am to create a notification for my app, how do i do it even though my app is closed Sep 21 16:27:29 rename in manifest. clean. (after reading dir) Sep 21 16:27:54 onSteroids, use an alarm, or a service Sep 21 16:28:28 a service would remain open all the time periodically checking right? Sep 21 16:33:30 checking what? :D But yes, it could be. Depending on how you implement it... Sep 21 16:33:56 Both work, up to you to decide what you need Sep 21 16:44:37 Thanks MikeWallaceDev ! Sep 21 16:44:52 No Problemo. Sep 21 16:45:03 (I type with an Austrian accent) Sep 21 16:46:32 android play wants me to give them an apk that is not debuggable... I have my gradle set up correctly and the only other thing is to set android:debuggable="false" in the manifest but Android Studio won't let me set it Sep 21 16:47:51 rgr|android, how to send start/stop notifications? What do you mean by "or Google..?"? Sep 21 16:48:15 MartialLaw, Using Android Studio? Sep 21 16:48:47 MartialLaw, somewhere on the left there is a window where you can choose between debug and release, set to release and export the apk again Sep 21 17:02:29 So what about this Calabash thing, has anybody tried that? Sep 21 17:05:20 Hi, is it possible to transfer all files from the SDCard to the PC using ADB? Got an S4 that does not show up as a storage device, but does work with the SDK fine, and need to transfer all the photos across. Sep 21 17:05:40 Smashcat, "adb pull /sdcard/" Sep 21 17:05:47 hi Sep 21 17:05:52 darken: Great, thanks! Sep 21 17:08:04 I would like to access bound service from activity and it's fragment, how should I do that? Sep 21 17:08:37 I am binding service in activity, should I also bind it in fragment? Sep 21 17:13:45 you guys are much nicer than they are at ##java Sep 21 17:15:58 and pfn, just to make sure, there’s still no easy way to use robolectric and scalatest with your plugin, right? Sep 21 17:16:47 Is there another location that Android uses to store photos? Used adb pull /sdcard/ and it has the DCIM folder, but that only contains thumbnails. Sep 21 17:17:19 look around sdcard0 Sep 21 17:17:38 usually its DCIM100 or something like that Sep 21 17:17:50 Tricknology: Ah got it, it's in /storage/extSdCard Sep 21 17:18:00 oh nice Sep 21 17:19:11 marrrk, just android:package is sufficient Sep 21 17:19:32 thanks Sep 21 17:43:53 you have instrumented scalatest working? neat Sep 21 17:51:03 Guys, I just finished my last fixes on Focus. Could you do me a favor and check it out before I push it to the market, please? Sep 21 17:51:06 https://plus.google.com/communities/102203250894822497356 Sep 21 17:51:39 oh, that's community, sorry. This is the post: https://plus.google.com/+MikeWallaceDev/posts/RH7XHEmSdHp Sep 21 17:54:54 Is it OK to use Google Play Services 5.2.08? gradleplease suggests 5.0.77, but I have the newest Android Studio and the SDK doesn't seem to want to fetch the older version of Google Play Services? Sep 21 17:55:15 achuinard: don't use 0.77, that one is super duper buggy and shitty Sep 21 17:56:23 true Sep 21 17:57:28 funktronic: so which do I use? Sep 21 17:57:38 funktronic: will 5.2.08 not work on devices without L? Sep 21 17:57:45 it should Sep 21 17:57:50 i think there's 6.1 Sep 21 17:57:52 that just came out Sep 21 17:57:54 ah Sep 21 17:58:05 well i just reinstalled the sdk last night Sep 21 17:58:08 i guess 5.2.08 is the way to go Sep 21 17:59:30 Why do I get -1 for the first byte of the Screenshot? http://nopaste.euirc.net/index.php?id=08a84b658d&view=nl Sep 21 18:01:22 you're probably not, you are getting -1 as a return value of .read() failing? Sep 21 18:01:38 -1 means EOF Sep 21 18:01:47 so that isn't the first byte is it Sep 21 18:01:48 okay as root it's working.. Sep 21 18:07:17 I would like to access bound service from activity and it's fragment, how should I do that? Sep 21 18:08:14 bindService? Sep 21 18:13:28 hi Sep 21 18:13:57 my app theme is based on 4 resources. I would like to change the app theme onClick Sep 21 18:14:01 is this easily possible? :) Sep 21 18:19:25 not by theme, no Sep 21 18:19:38 unless you're OK with recreating your activity Sep 21 18:19:58 there's a sample app that demonstrates this Sep 21 18:21:06 Hi I have a question about location. I am using Google Play Services and Location client and listener and set the current location in onConnected(), but I'm wondering if that's the recommended approach in terms of accuracy etc Sep 21 18:21:45 I want the app to get the current location until the accuracy is good enough then stop Sep 21 18:34:37 Hi ! I have an actionbar that I use to have a tab based navigation Sep 21 18:34:49 I had tabs using "newTab .... fragment" Sep 21 18:35:08 once inside a fragment, how to switch to another fragmenet (ex: clicking on a listview) ? Sep 21 18:35:23 should I use a fragment manage ? Sep 21 18:35:28 i'm kind of stuck :/ Sep 21 18:37:43 There are 6980 android devices out there Sep 21 18:37:54 319 manufacturers Sep 21 18:39:12 not enough choice tho. Sep 21 18:39:15 need more. Sep 21 18:41:24 lol Sep 21 18:44:29 phonebloks / project ara should provide plenty of choices Sep 21 18:48:48 heh yeah Sep 21 18:48:54 but then this list gets weird Sep 21 18:48:58 https://github.com/znwabudike/AndroidPhoneDatabase Sep 21 18:49:24 unless they make the model number the platform Sep 21 18:49:29 "base" Sep 21 18:52:49 Hi, anyone here have experience with bluetooth development? Sep 21 18:52:53 Just a QQ Sep 21 18:53:42 kype what's your q? i don't know much about bluetooth but maybe someone else does Sep 21 18:54:39 I was wondering why calling connectThread.run() doesnt initiate a connection to the last connected device Sep 21 18:54:58 Assuming the device got disconnected halfway Sep 21 18:55:13 maybe because you need to bring the connection to a specific state? Sep 21 18:55:18 huh Sep 21 18:55:19 and the error destroys that state? Sep 21 18:55:23 i'm just guessing here. Sep 21 18:55:30 connect thread isn't any api... Sep 21 18:55:46 it's probably a variable name in his program. Sep 21 18:55:52 connectThread is a class to represent the connection thread. Sep 21 18:57:09 so naturally i do instantiate the class passing the device as the parameter, and then i call connect.run. It works, it connects to the device. But if i call connect.run() seperately in another function later on, it doesnt connect to the last known device Sep 21 18:57:31 cheater: Nope run() method does not do any state checks Sep 21 18:58:30 i don't think this is something that can be answered with common knowledge. run() is probably implemented in your own code. you'll have to look inside your code i think. Sep 21 18:58:37 maybe run() doesn't but something it uses has state Sep 21 19:00:31 you have to get a lit of connected devices kype Sep 21 19:00:38 err paired devices Sep 21 19:00:42 then select from those Sep 21 19:00:47 Tricknology: Yes i have done that Sep 21 19:01:07 got code to paste? Sep 21 19:01:09 If ConnectThread extends Thread, pretty sure you can't directly call .run() Sep 21 19:01:11 Now what im doing is assuming a connected device loses the connection...so how do i reconnect. Sep 21 19:01:24 Thus what i did try was just calling connectThread.run Sep 21 19:01:32 you can't you have to call connect_thread.start() Sep 21 19:01:43 let me see your code on pastebin Sep 21 19:01:47 Tricknology: The thread already exist, .start Sep 21 19:01:51 your method that has the thread Sep 21 19:01:53 outputs an error Sep 21 19:02:00 is there any "actionbar" widget ? (i need to have 2 actionbar... easily perfomed) Sep 21 19:02:18 what error? Sep 21 19:02:19 Ok hold up ill get a code running pastebin Sep 21 19:02:30 you have todo new Runnable with your thread to start it again Sep 21 19:02:39 ^ Sep 21 19:02:55 im ont sure what youre trying to do Sep 21 19:03:03 or what your error is but canvas seems to have an idea Sep 21 19:03:12 This error java.lang.IllegalThreadStateException: Thread already started Sep 21 19:03:27 So thats why i moved from connect.start() to connect.run() Sep 21 19:03:30 Kype read up on how Thread class works Sep 21 19:03:35 ah yeah youve started it.. try this Sep 21 19:03:42 you can't call connect.run once it's started Sep 21 19:03:59 if (!connect.isAlive()) connect.start(); Sep 21 19:04:20 you are probably calling start() in your thread declaration Sep 21 19:04:48 if(connect!=null){ connect = new ConnectThread(); connect.start(); } you have to recreate it to start it again Sep 21 19:04:57 Thread t = new Thread( public void run(){ ...}).start(); Sep 21 19:05:12 canvs2321: Then what happens to the old thread....it remains running? Sep 21 19:05:12 kype you should tread a tutorial on using java runnables / threads Sep 21 19:05:21 kype only if you have a loop in it Sep 21 19:05:23 you never call run explicitly Sep 21 19:05:23 yes Sep 21 19:05:25 otherwise you run it once Sep 21 19:05:42 ^ Sep 21 19:06:16 kype you are probably doing something like: Sep 21 19:06:31 Thread t = new Thread( public void run(){ ...}).start(); ... thread.start() Sep 21 19:06:39 err t.start() Sep 21 19:06:39 kype: Can check out Executors and how they work to execute Runnables, but like lasserix said you should read up on the process of Threads/Runnables/AsyncTask etc.. Sep 21 19:06:56 Tricknology: Yeah thats the code i had Sep 21 19:06:58 hehehe step at a time Sep 21 19:07:05 do this instead Sep 21 19:07:21 Thread t = new Thread( public void run(){ ...}); ... t.start() Sep 21 19:07:41 you are calling start twice Sep 21 19:07:48 once to start it and once after its started Sep 21 19:07:49 somehow Sep 21 19:07:59 paste your code to pastebin and we'll see Sep 21 19:08:04 pastebin.com Sep 21 19:09:24 kype: what you may want to do is make a class for your connection, then make a class that implements runnable (which you have to override the run method), and pass your connection class to it. then you do Thread t = new Thread(new ConnectorClassThatImplementsRunnable(mConnection)); t.start(); Sep 21 19:09:36 now when the thread stops Sep 21 19:09:41 you can retain the connection Sep 21 19:09:52 and pass it to a new thread via the runnable class Sep 21 19:10:19 that would be the cleanest way.. Sep 21 19:12:21 Lol i think i went into an infinite loop of calling threads Sep 21 19:17:02 kype you are not the first :p Sep 21 19:20:09 Tricknology: Here's the paste http://dpaste.com/1VGHVX6 Sep 21 19:38:13 Are there any good workarounds for making a BLE scan report duplicate packets? Sep 21 19:40:31 My json stuff is always of the type: “only_element“: { … } can I have gson strip that bit a way every time? Right now I always make a container class which points to the actual thing Sep 21 20:01:36 Is there a way to view /data/misc/wifi/wpa_supplicant.conf via adb on an unrooted device? Sep 21 20:02:11 did you try adding all the wifi permissions to the manifest? Sep 21 20:02:18 maybe it gives you permissions to access that file Sep 21 20:02:49 lasserix: Good point. I'll try that and see if it works. Sep 21 20:03:12 ARMIGER1: i think that file contains cleartext passphrases, so i hope there is no permission for that Sep 21 20:04:37 SuD: I would hope not. I've always been curious why they store them in plaintext in that file, anyway. I mean, sure, trying to grab it via adb will result in "permission denied", but you can get at them with a file manager app. Sep 21 20:05:33 only if it's a file manager that uses root? Sep 21 20:07:33 SuD: I've heard it works without root, too. I wanted to try via adb first, just to see if it was possible. I'm going to test with a file manager next. I have a rooted and an unrooted device, so it'll be interesting to see. Sep 21 20:09:15 it won't work without root Sep 21 20:09:53 they're stored in plaintext because if you have root permissions then encrypting them wouldn't add any actual security Sep 21 20:10:12 then if it worked it should be considered a bug in that particular rom Sep 21 20:10:30 a big one, yeah Sep 21 20:10:56 hi Sep 21 20:11:27 does it make sense to compile separate dex for very different anroid versions? Sep 21 20:11:37 e.g. 4.3 and 2.0 Sep 21 20:11:43 cheater if the code is significantly different, sure Sep 21 20:11:55 most people i think accomplish version support just via code checks Sep 21 20:12:20 i would like to compile code checks away Sep 21 20:12:27 i compile from a higher level abstraction anyways Sep 21 20:12:35 which targets multiple platforms Sep 21 20:14:05 so i could just add different android versions separate targets and fine-tune compilation steps (from the higher-level DSL down to say java as an intermediate language), so that e.g. 2.0 uses one way of doing a specific thing, and 4.3 uses another way Sep 21 20:14:20 cheater the only thing to keep in mind will be to make sure that the 2.0 apk has a lower versionCode than the 4.3 apk Sep 21 20:14:34 sarbs: That actually makes sense. I hadn't thought about that. Sep 21 20:14:37 sarbs i would use one apk, just multiple dex Sep 21 20:14:37 so when/if system upgrades happen, the app will upgrade Sep 21 20:14:48 the main dex would dynamically load the right dex for the android version Sep 21 20:15:13 *oh*.. i haven't heard of anyone doing that. seems like it'd be pretty code-bloat-y. Sep 21 20:15:24 it's quite the opposite Sep 21 20:15:38 you have just a very simple loader (it's like a page of code) and then load the right dex from a jar Sep 21 20:15:46 you sure? i'd be downloading multiple versions of the entire app, and only using one Sep 21 20:15:51 the jar gets copied from assets to private storage and loaded from there Sep 21 20:15:53 yeah Sep 21 20:15:57 well think of it this way Sep 21 20:16:04 the assets are going to be orders of magnitude larger Sep 21 20:16:21 mm Sep 21 20:16:24 and when you load one of the versions dynamically... that one version ONLY supports your android version Sep 21 20:16:36 unless your assets are in the 10's of mb's, that's not really necessarily true Sep 21 20:16:44 SuD: And yeah, true, that should definitely be considered a bug. I was just curious if I could even view it without root. Sep 21 20:16:47 whereas if you support all versions in a single dex, by doing if's and stuff, then you have one binary supporting ALL versions Sep 21 20:16:56 that's more bloat than a single binary supporting a single version Sep 21 20:17:12 if you're gonna do different compilations for different platforms, i would go with different apks as well. taht way the user only downloads *exactly* what they need, in the first place. Sep 21 20:17:13 you only ever load the single dex that is right for your phone, the rest stay untouched Sep 21 20:17:43 i don't think that would work that well, e.g. you wouldn't go to the play store and search for "facebook for android 2.1" Sep 21 20:17:51 you'd just get facebook, and that's it Sep 21 20:17:56 and i think that's the important bit here Sep 21 20:17:59 no, you specify the apks per platform, and play takes care of it for you. Sep 21 20:18:04 right Sep 21 20:18:09 the user has no idea they're getting a different apk than someone else. Sep 21 20:18:12 that already exists. Sep 21 20:18:16 oh, i didn't know that existed Sep 21 20:18:23 why do you need the version string hack then? Sep 21 20:18:37 it's not really a hack, it's to enable upgrading Sep 21 20:19:06 play doesn't allow multiple apks with same version string, and an apk for a lower version should be able to upgrade to the apk for the higher version, if the system upgrades Sep 21 20:19:22 but you said you can have multiple apks depending on platform? Sep 21 20:19:23 s/string/number/, version string can be whatever you want Sep 21 20:19:27 yeah Sep 21 20:19:35 so why are different version numbers needed? Sep 21 20:19:37 i don't get it Sep 21 20:19:51 if you're e.g. on kit kat and i say "use those APKs for kitkat" then you only ever see those Sep 21 20:20:14 cheater right, and then i upgrade my phone to L, and... what happens? Sep 21 20:20:15 so even if there's an apk version 1.1 for ice cream sandwich, you won't see it, you would only e.g. see the 1.1 for kitkat Sep 21 20:20:29 well i would expect play would somehow notice that.. Sep 21 20:20:36 via version codes. Sep 21 20:20:38 and make the upgrade work Sep 21 20:20:47 ok so it's stupid in that way Sep 21 20:20:56 in that it doesn't understand that android L > android 2.0 Sep 21 20:21:18 all that play does is limit which apk's your device is eligible for based on system parameters - screen size, device features, api level Sep 21 20:21:45 when you upgrade the system the parameters change, and a different set of apks become eligible for your devices Sep 21 20:22:02 that new set of apks needs to have a higher version code, in order for it to say "hey, you can upgrade" Sep 21 20:22:16 so my device doesn't know "this apk that is installed currently is for an older version"? Sep 21 20:22:36 correct Sep 21 20:22:41 so basically the last number in my semver is the number of the android api, right? Sep 21 20:22:48 i add an extra number for that purpose Sep 21 20:22:49 all it knows is that the versionCode of the apk installed is less than what's available in the market Sep 21 20:23:07 and then have like major.minor.patch.patch.android Sep 21 20:23:18 or something like that Sep 21 20:23:21 it's simple in practice; if your version system for 1.1.14 is code 101014, then make it 09101014 for gb, 14101014 for ics, etc Sep 21 20:23:39 oh, right Sep 21 20:23:40 yeah exactly Sep 21 20:23:42 the other way around Sep 21 20:23:55 i put the android version on the end, you put it on the front Sep 21 20:23:57 i see how that works Sep 21 20:24:03 you can't ever downgrade your android, can you? Sep 21 20:24:19 you can but it requires wiping the device, so app upgrades are out anyway Sep 21 20:24:35 versioncode and versionnumber one must be incremented the other is just for user to see Sep 21 20:24:52 sarbs right Sep 21 20:26:18 re: front vs back, it depends on which version (os or app) you want to take priority. on front, if i was on ICS version 1.5 and i upgraded to JB, and JB only had version 1.3 available, i'd "downgrade" to app version 1.3 Sep 21 20:26:32 ya Sep 21 20:26:42 i think that's what i'd want i guess Sep 21 20:27:08 not sure why that would ever be the case though?? Sep 21 20:27:39 platform-specific bugfixes is the only situation i can think of Sep 21 20:27:47 yeah Sep 21 20:28:15 i guess if you have a platform specific hotfix you only want to release for that platform, right? Sep 21 20:28:19 not for all Sep 21 20:28:36 because for other platforms it wouldn't make much of a difference, and that would mean you get a pointless upgrade Sep 21 20:28:41 and users get harassed with upgrades Sep 21 20:28:44 is that even a thing? Sep 21 20:28:54 like, do people get pissed off with too many upgrades? Sep 21 20:29:07 clearly you don't use any Adobe products Sep 21 20:29:25 Reader updates like 17 times a goddamn day, can't stand it Sep 21 20:29:51 i have reader but i never noticed that Sep 21 20:29:53 but then i have like Sep 21 20:29:57 500 apps installed Sep 21 20:30:01 i scaled down from 900. Sep 21 20:30:07 so that gives you perspective. Sep 21 20:30:20 lol Sep 21 20:30:28 didn't think there was space for that many Sep 21 20:30:43 96 gigabytes baby Sep 21 20:30:49 i tend to keep user-facing upgrades to 2wk *minimum* intervals Sep 21 20:30:58 at some point all the launchers start crashing though. Sep 21 20:31:25 even nova Sep 21 20:31:27 which is supposed to be god Sep 21 20:31:29 good Sep 21 20:31:59 it just doesn't seem to handle this amount of icons in the app view Sep 21 20:33:19 becomes a ram limitation i'm sure Sep 21 20:33:50 only if you're a shitty programmer Sep 21 20:34:04 and try to load the whole world at once into memory Sep 21 20:34:16 even though what you display at one point is just 8 icons Sep 21 20:34:42 cheater: What do you do, then? Use the terminal as your launcher? :) Sep 21 20:35:36 no, the launcher should only load the icons that it's actually going to display Sep 21 20:35:47 it's fairly retarded otherwise Sep 21 20:51:56 When using a path to draw with canvas, can i do moveTo and lineTo just once, or do i have to do it each draw? Sep 21 20:55:13 lasserix, lineTo starts from the last point set, be it from the previous lineTo or moveTo or whatever Sep 21 20:55:44 (if I understand the question correctly) Sep 21 20:56:21 i think he's asking whether he needs to draw the line every time he's updating the screen Sep 21 20:56:45 in that case, yes Sep 21 20:57:17 whenever onDraw is triggered, the actual drawing needs to happen again ;) Sep 21 20:58:35 er, I mean... this is in case it's a view; a Canvas draws to a backing Bitmap, if you retain the Bitmap you don't need to update it Sep 21 21:00:36 hello, why onLocationCahnged is not called. I requested update locationService.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, minTime, 0.0f, this); Sep 21 21:26:57 Ahh i mean how often do you make those calls? Sep 21 21:27:04 I just want to verify that I am not doing anything wrong. Is the Android Emulator supposed to be absolutely piss slow? Is it by any chance just my platform (Mac OS X)? Sep 21 21:27:04 not every draw call, definatly not every draw call Sep 21 21:27:29 you need to do canvas.drawPath but NOT path.lineTo/moveTo Sep 21 21:27:43 bros you want to use the haxm emulator Sep 21 21:28:02 is that recommended officially by google? Sep 21 21:28:29 I'm trying to work with Android ARM binaries. I don't think I can. Sep 21 21:32:26 oh Sep 21 21:32:27 well Sep 21 21:32:32 you probaly can't run the emu then Sep 21 21:32:47 if you are running your own arm binaries Sep 21 21:33:07 use an actual device... Sep 21 21:37:51 I need to mount an image to get some code off a failed harddrive image, anyone got recomendations inwindows for a mounter? Sep 21 21:39:05 daemon tools? Sep 21 21:39:14 there was a new one though Sep 21 21:39:16 forgot the name Sep 21 21:39:42 ISO is supported in Windows since 8 by default Sep 21 21:39:48 deamon tools has virus ware Sep 21 21:39:57 bros, yes, emulating whole ARM device is rather slow Sep 21 21:40:24 Mavrik: Is there anything I can do other than go get an actual android device? Sep 21 21:40:52 get a 16GHz processor? Sep 21 21:41:08 There's no magic to it, you're emulating another hardware CPU, memory model and IO Sep 21 21:41:16 it's not going to be fast Sep 21 21:42:14 yeah there was something newer than daemon Sep 21 21:42:27 Mavrik: that's kind of bs Sep 21 21:42:33 When i use a surface view, do I need to synchronize the updating of the state (of the "world" that is drawn) to the lock/unlock of the canvas? Sep 21 21:42:43 isn't this handled by locking the canvas? Sep 21 21:42:44 a lot of machine code can be translated 1:1 Sep 21 21:42:49 most even Sep 21 21:42:58 or can the state be modifying since just the canvas is locked, not the state Sep 21 21:43:25 Mavrik: ahh cool then i will transfer it to my labtop thanks Sep 21 21:43:28 cheater, yes, sadly just translating machine code is not enough. Sep 21 21:43:46 yeah Sep 21 21:43:53 but it's also not as simple as "everything is different" Sep 21 21:44:04 Mavrik: how slow are we talking here? *do* people use the emulator? Sep 21 21:44:13 bros, yes we use it all the time Sep 21 21:44:16 just... the x86 one ;) Sep 21 21:44:48 if an app is in the google play app store, does that mean it is available for all platforms? Sep 21 21:44:53 lasserix, hmm, I don't see why you'd have to link those together, you just have to make sure that the world state is consistent between lock/unlock calls Sep 21 21:44:57 bros, nope Sep 21 21:45:13 Play Store will automatically filter apps on device by supported platforms in the APK Sep 21 21:45:24 cheater, I really don't see what you're trying to argue about here :) Sep 21 21:45:36 nm :) Sep 21 21:45:37 i'm off Sep 21 21:45:38 cya Sep 21 21:45:41 Mavrik: can you verify if https://play.google.com/store/apps/details?id=com.instagram.android&hl=en is available for x86 images? Sep 21 21:46:05 just check if there's libs/x86 folder Sep 21 21:46:30 I don't have an x86 device at hand. Sep 21 21:46:33 I don't have an Android device. Do I need one to check? Sep 21 21:50:50 Mavrik yeah so i have to guarantee that the state is locked while the canvas is drawing Sep 21 21:52:05 lasserix, yes, or that you have a copy of it... otherwise you'll draw wrong stuff :) Sep 21 21:52:36 ahh a copy Sep 21 21:52:37 thanks Sep 21 21:53:40 ahh nice now i can seperate my drawable state from my phyiscs state awesome Sep 21 21:54:11 since i use getDrawingList each draw call, i can just back this with a pool on either side, on finish simulation populate the pool, then pass it over, then pass it back Sep 21 21:54:50 my game engine is coming along nicely! :) Sep 21 21:55:22 lasserix: why would you implement your own game engine when i imagine alternatives already exist? Sep 21 21:55:27 now if i can just recover that collision detection Sep 21 21:55:32 because i like to learn Sep 21 21:55:44 and developing a game engine is actually really really good programming practice Sep 21 21:55:56 forces you to understanding concurrency, design patterns, etc etc Sep 21 21:56:03 hehe yeah Sep 21 21:56:08 would you use it in the real world though? Sep 21 21:56:12 yeah Sep 21 21:56:14 if it works Sep 21 21:56:19 you're confident yours will be just as good as an already tested one? Sep 21 21:56:20 ultimatly i could always just switch over Sep 21 21:56:23 sure Sep 21 21:56:25 if it works Sep 21 21:56:34 but like i said, ultimatly because i use composition Sep 21 21:56:46 i can just pull my game out and plug it into libgdx Sep 21 21:56:49 if i wanted too Sep 21 21:57:28 + there is definate satisfication in making a game engine and seeing the game run flawlessly Sep 21 21:59:26 Mavrik: I have the SDK Manager open and I'm selecting Build Tools versions along with system images. Sep 21 21:59:38 I'm picking Android 4.4.2 (API 19) with the Intel X86 Atom System Image. Sep 21 21:59:50 Do I need Android SDK Build-tools version 19 too? Sep 21 22:00:01 no Sep 21 22:00:43 revision 20 will do? Sep 21 22:02:00 aye Sep 21 22:06:52 I should be able to download the app from the play store in the emulator if I install the necessary libraries, yeah? Sep 21 22:07:17 The emulator has no access to play store. Sep 21 22:07:35 oh shit, how do I install apps then? Sep 21 22:09:25 you deploy them from your computer Sep 21 22:09:40 how do I get the APK for the app to deploy it? Sep 21 22:09:46 the x86 version Sep 21 22:10:44 you compile it Sep 21 22:11:03 i want to debug an app i don't have the source to Sep 21 22:12:18 well you still deploy the apk from your computer Sep 21 22:12:33 (of course, if it uses APIs not available on emulator it'll crash on startup) Sep 21 22:14:03 are apps from the play store one APK fits all? Sep 21 22:14:08 hi, Sep 21 22:14:14 all platforms? Sep 21 22:14:26 What do I need to run getResources()? Sep 21 22:14:33 context Sep 21 22:14:45 Ok, got that, but what does that mean? Sep 21 22:14:58 where are you calling it? Sep 21 22:15:05 Random places. Sep 21 22:15:16 give your random places a context that is valid Sep 21 22:15:23 How do I "give" a context? Sep 21 22:15:27 Mavrik: how long should powering on the x86 emulator take? Sep 21 22:15:29 what is context? Sep 21 22:15:34 You tell me. Sep 21 22:15:38 haha Sep 21 22:15:53 You should read about it so you understand it Sep 21 22:15:56 Seriously, I don't know anything about this Sep 21 22:16:10 I have a snippet.. Sep 21 22:16:17 your activity can be a context Sep 21 22:16:20 etc.. Sep 21 22:16:33 http://pastebin.com/pc3REseC : this seems to work. Sep 21 22:16:36 just think of the word Sep 21 22:16:43 But what part of this code is giving the context? Sep 21 22:17:09 this Sep 21 22:17:13 this? Sep 21 22:17:27 your class that extends activity Sep 21 22:17:36 this is in reference to the class Sep 21 22:17:49 i see Sep 21 22:18:00 so i need to extend Activity? Sep 21 22:18:08 "public class XAPKDownloaderActivity extends Activity implements IDownloaderClient {" that's at the top Sep 21 22:18:20 it already extends activity Sep 21 22:18:23 but then what if i have Sep 21 22:18:27 "public abstract class APEZProvider extends ContentProvider {" Sep 21 22:18:27 that's why you don't have to call anything Sep 21 22:18:32 That doesn't extend Activity Sep 21 22:18:40 Hmm. Sep 21 22:18:45 look up Context Sep 21 22:18:45 do i do that inside the sub function? Sep 21 22:18:58 Agamemnus, http://developer.android.com/reference/android/content/Context.html Sep 21 22:19:04 In a ActivityInstrumentationTestCase2 is the activity being reset between tests? Sep 21 22:19:08 note the sub classes. Sep 21 22:19:41 marrrk, so are you doing scalatest inside instrumented tests? Sep 21 22:19:49 Well, no Sep 21 22:19:54 you mean "public methods"? Sep 21 22:19:57 oh Sep 21 22:20:08 or... Sep 21 22:20:20 I am doing junit tests with „with AssertionsForJUnit with Matchers“ Sep 21 22:20:22 Ok anyway.... so if I have "private boolean initIfNecessary() {"... Sep 21 22:20:34 do I just do "extends Activity" on that? Sep 21 22:20:41 So pfn, it’s being run with junit but I can use some scalatest niceness. Sep 21 22:20:41 :X Sep 21 22:20:43 No, I mean sub classes. Sep 21 22:20:56 Agamemnus, and you REALLY need to learn basics of OOP and Java before you work with android Sep 21 22:20:59 oh, i see.... "known subclasses"? Sep 21 22:21:04 Unfortunately I can’t specify the tests in ‚specs’ style Sep 21 22:21:05 because you're questions are not making any sense. Sep 21 22:21:15 idk Sep 21 22:21:29 Let me start from the top Sep 21 22:21:40 oh no Sep 21 22:22:07 I'm trying to remove a content provider, if that's even possible, from some apk download crap. Sep 21 22:22:19 .. and use xml strings instead. only xml strings Sep 21 22:22:51 and for that I suppose I need to add an import "myapk.R" at the top. Got that. Sep 21 22:23:28 but, well, this stuff only works in one of the files... the one that has "extends Activity". Sep 21 22:23:58 I don't know how to get to the strings in any other file. Sep 21 22:25:43 does that make sense? Sep 21 22:28:52 crickets mean no Sep 21 22:29:57 not necessarily Sep 21 22:31:42 Guys, I just finished my last fixes on Focus. Could you do me a favor and check it out before I push it to the market, please? Sep 21 22:31:42 This is the post: https://plus.google.com/+MikeWallaceDev/posts/RH7XHEmSdHp Sep 21 22:35:52 <[R]> i'm trying to compile a host executable with my host openssl, and it's failing... is there a special way to do this? Sep 21 22:36:02 <[R]> in the aosp tree, not an app Sep 21 22:41:14 Agamemnus, sorry, makes no sense at all to me Sep 21 22:42:12 You're trying to create an app from someone elses' completed apk by removing things you dont want and hacking together stuff you do, instead of writing your own Sep 21 22:43:37 Since you don't seem to know how to write for Android or you'd understand concepts like Context and Activity :P Sep 21 22:44:12 sounds like work Sep 21 22:46:21 I’m using the chicken to measure it Sep 21 22:47:50 haha, i had to look that up Sep 21 22:53:07 Very good Sep 21 22:55:06 can I make the tests execute really slowly so that I can see what’s happening (and what’s going wrong) Sep 21 23:00:57 marrrk put a turtle between each test Sep 21 23:01:10 inside one test I mean Sep 21 23:01:20 because I click on some other view Sep 21 23:01:34 and I want it to wait a bit so that the onFocusChangeListener to kick in Sep 21 23:03:46 capella: completed apk? Sep 21 23:03:58 It is hardly a completed apk. It is hacked up dog poop. Sep 21 23:04:50 good luck with that in either case Sep 21 23:06:36 yeah, good luck with that Sep 21 23:08:19 aww such a supportive channel!! Sep 21 23:09:20 hm, my shirt smells like dog breath Sep 21 23:10:12 probably just you, mate :/ Sep 21 23:11:00 :) all my stuff smells like jake :| Sep 21 23:11:52 question Sep 21 23:12:09 with android:authorities Sep 21 23:12:16 does that have to equal android:name ? Sep 21 23:12:21 in the provider Sep 21 23:12:39 Agamemnus if this isn't your own app, its kinda outa scope for the channel Sep 21 23:13:08 if what isn't my freaking app? Sep 21 23:13:45 "some apk download crap" Sep 21 23:14:00 that has no relation to my question Sep 21 23:14:21 * capella-s3 lost score if the game Sep 21 23:14:44 time to walk the dog Sep 21 23:14:59 hacked up dog poop g00s? Sep 21 23:15:45 he has to go on a daily adventure :) Sep 21 23:16:03 be sure to remove jake as the content provider Sep 21 23:16:35 ????? Sep 21 23:16:37 lol terrible joke Sep 21 23:16:55 xD yah Sep 21 23:17:38 oops... Sep 21 23:18:12 too many files... looks like it doesn't have to be Sep 21 23:18:52 probably.... Sep 21 23:20:44 so close, so close Sep 21 23:20:47 Just forgot a "/" Sep 21 23:22:36 [R] compile or run? Sep 21 23:22:45 <[R]> i figured it out Sep 21 23:22:54 <[R]> i'm linking with libcrypto-host Sep 21 23:23:00 o ok you can run exe form java.lang.process /processbuilder Sep 21 23:34:05 maybe they do need to be the same Sep 22 00:14:35 guy at work is showing off his samsung watch thing -- first time i've seen someone actually wear one. Looks alright Sep 22 00:16:09 apparently it even works with gloves on (for those guys who ride bikes) Sep 22 00:18:27 <[R]> what file lists the dsiabled packages? Sep 22 00:19:17 I put logging code into some smali and I pushed the APK to the device, but the logging code isn't working. Sep 22 01:37:17 i've got a ViewPager which has one extra page in portrait mode. consequently, i want to shift it one page right when going portrait, and back. however, i can't do it right after setting the adapter (it has no effect). when i try to use post(), it works in all cases except one in which i have an intent which also uses post() to scroll to another page. in this latter case, (setAdapter(), post(), post()) Sep 22 01:37:19 the latter post() doesn't work and PagerTitleStrip shows mismatching title (?!) Sep 22 01:37:22 what can i do? Sep 22 01:38:30 short of making the first post cancelable using a variable.. Sep 22 01:41:49 the code gets ridiculosly overly ridiculous. Sep 22 02:24:04 hey all, trying to embed a youtube video in a webview. I can play video and such, but I don't get a thumbnail before immediatly loading the video in a separate page than my activity. I don't mind that it opens another page (although it would be nice if the video played from the given webview), but I do mind that it loads directly without user interaction. Do I need to create a thumnail myself somehow or have I missed something? Sep 22 02:39:06 Got it had to embed using iframes **** ENDING LOGGING AT Mon Sep 22 03:00:00 2014