**** BEGIN LOGGING AT Sat Dec 21 02:59:59 2013 Dec 21 03:16:22 Sambarboz: I am getting errors with the cursorloader. I suspect you did this app in Eclipse. I am using Android Studio Dec 21 03:16:54 CursorLoader, CursorAdapter, SimpleCursorAdapter Dec 21 03:17:13 SimpleCursorLoaderAdapter Dec 21 03:17:43 explodes: ? Dec 21 03:18:17 IrishGringo: What errors are you getting? The platform that it was built does not interferes on the code. Dec 21 03:18:53 java: package android.support.v4.content does not exist Dec 21 03:19:00 java: package android.support.v4.widget does not exist Dec 21 03:19:15 java: cannot find symbol Dec 21 03:19:16 symbol: class SimpleCursorAdapter Dec 21 03:19:18 location: class com.example.androidlistimages.MainActivity Dec 21 03:19:26 I'll pastebin them Dec 21 03:21:43 IrishGringo: You should add the v4 support library. Dec 21 03:22:15 I thought that was automatic.... Dec 21 03:22:20 googling Dec 21 03:23:10 IrishGringo: SimpleCursorLoaderCursorAdapterAdapterForLoadingCursorAdapterCursors.java Dec 21 03:23:22 .getInstance() * Dec 21 03:23:50 hueaohuhoaehueoahuohauoeuoe Dec 21 03:24:28 explodes: That would throw a MethodNameIsTooLongException. Dec 21 03:24:47 haha Dec 21 03:24:48 needs more factory Dec 21 03:25:05 I don't think you can have method names be too long in java Dec 21 03:25:13 and yes, more factory please. Dec 21 03:25:41 FactoryFactory Dec 21 03:25:56 I have been tempted to write factoryfactories D: Dec 21 03:26:00 haha Dec 21 03:26:04 for shame Dec 21 03:26:06 then I usually think about what I am doing and the shame that it would bring upon my family Dec 21 03:26:18 indeed. but you only need 1 factory factory Dec 21 03:26:33 No, actually, I might need several. Dec 21 03:26:34 mocking! Dec 21 03:26:36 stubbing! Dec 21 03:26:38 FactoryFactory>> tooMuchMeta; Dec 21 03:27:02 buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo Dec 21 03:27:29 too many buffalo Dec 21 03:27:43 . Dec 21 03:28:08 Sambarboz: V4 support library is added via the SDK manager? Dec 21 03:29:07 IrishGringo: It's downloaded via SDK Manager. And then you should add it to your project with Android Studio. In "Project properties." Or via Gradle if you are using it. Dec 21 03:42:00 professorutonium Dec 21 03:45:50 Sambarboz: I can not find Project Properties... another hint please Dec 21 03:46:33 IrishGringo: https://developer.android.com/tools/support-library/setup.html Dec 21 03:55:01 what is a method i can override that gets called when a ViewGroup finishes loading and has its bounds? Dec 21 03:57:18 Sambarboz: I am going to have to play with your code tomaro... It looks like i have to use gradle to add the support lib Dec 21 03:57:27 learning something new all the time Dec 21 03:58:07 that's the way Dec 21 03:59:17 Yep. Dec 21 03:59:59 IrishGringo: Cool. I'll be here. ;) Dec 21 04:04:51 do i need some kind of Layout object if i'm doing the entire interface with code and i have a ViewGroup? Dec 21 04:05:24 i'm manually setting the positions of everything Dec 21 04:06:01 why are you doing it all in code? that's extremeley painful Dec 21 04:10:30 that's fine Dec 21 04:10:47 it's just that the interface is 100% custom drawn... it's a midi controller Dec 21 04:10:55 and i just prefer to do everything with code Dec 21 04:11:54 i guess it makes me feel like i better understand what's going on and have better control over it Dec 21 04:12:52 ahh. a gentoo user ... gotcha! Dec 21 04:13:12 also, it's a port from my iOS version that's all done with code... the interface builders aren't alike and doing it this way helps me keep the code at least similar Dec 21 04:13:45 i don't even know what that means Dec 21 04:14:52 hi guys, in android programming....how to set/get property? Dec 21 04:15:00 do i really have to create 2 functions to do that? Dec 21 04:15:04 yes Dec 21 04:15:06 in Vb.net i don't Dec 21 04:15:12 hmm Dec 21 04:15:13 i read there's a way but it's not recommended Dec 21 04:15:21 many languages you don't but in java you do Dec 21 04:15:28 that's sux Dec 21 04:15:39 sure but there's good things about java Dec 21 04:15:42 no f'n pointers, for one Dec 21 04:15:51 oh dear fscking god lord above, you mean I have to write *5 more lines of code*? Dec 21 04:16:08 that's it, I'm done with Android, I'm fully committing to BB10 instead Dec 21 04:16:12 let the IDE generate it for you -- use the tools that are there for you Dec 21 04:16:15 it's the semantics of the language, just go with it if you want results that can be obtained with java Dec 21 04:16:29 ultra-, okay then Dec 21 04:16:41 eclipse will ask you to generate it with a warning Dec 21 04:16:48 lol so the get = return the set = void Dec 21 04:16:49 lol Dec 21 04:16:50 i think if you set to private whatever name Dec 21 04:17:07 you could always just program in another language Dec 21 04:17:35 they all have their strengths and weaknesses Dec 21 04:17:39 what I like about BB is QNX Dec 21 04:17:39 ultra-, i got your point sir Dec 21 04:18:02 i don't care about the strengths and weaknesses though, i just care that they get something done on the platform i want to write for Dec 21 04:18:24 shmooz: what I like about BB is they make an easy target for jokes Dec 21 04:18:38 ultra-, is there a datatable in java? Dec 21 04:18:47 i call webservice using ksoap2 Dec 21 04:18:52 no idea Dec 21 04:18:54 sorry Dec 21 04:18:55 returning data but i want to put in datatable Dec 21 04:19:13 i just picked java back up after a year and only coded with it for a year before that, i strictly write midi apps Dec 21 04:19:15 sup Leeds Dec 21 04:19:29 phong_: is that a database? Dec 21 04:19:34 ultra-, i'm learning Dec 21 04:19:45 yeah me too... learning while porting from objective-c Dec 21 04:19:46 bankai_, yeah ms sql database Dec 21 04:19:59 phong_: google "android sqlite example" Dec 21 04:20:01 ha ha, ms sql Dec 21 04:20:03 ha ha Dec 21 04:20:08 bankai_, nah, i dont like sqlite Dec 21 04:20:15 deal with it, it's your only option Dec 21 04:20:22 that is local man Dec 21 04:20:27 i want to deal with ms sql Dec 21 04:20:33 most data is store there Dec 21 04:20:56 bankai_, i got ksoap2 working with MS sql Dec 21 04:21:07 happy with it..most important is that i work with MS SQL server Dec 21 04:22:07 bankai_, ms sql is the best choice man Dec 21 04:22:13 bankai_, that is what company use Dec 21 04:22:42 i don't see what your db server backing your WS has anything to do with android Dec 21 04:23:16 what do you meant? Dec 21 04:23:50 android app = ws + ms sql server database Dec 21 04:24:04 so what do you meant ? Dec 21 04:24:20 dude man,tell me why sqllite? Dec 21 04:24:28 isn't sqllite local database? Dec 21 04:26:54 my interface acts like a 2 dimensional scrollview, but instead of it being automatic, i'll override and track finger position... should i even use a scrollview or is there a better way? Dec 21 04:28:38 phong_: i would think it would be a more universal protocol that's not specific to java.. maybe ms sql lets you just put the sql statements into a packet and send them over? Dec 21 04:29:46 but most company use ms sql server Dec 21 04:30:33 http://stackoverflow.com/questions/5255984/connecting-android-with-ms-sql-server-2008 Dec 21 04:31:50 i'm just saying figure out the ms sql API and then see how it applies to java Dec 21 04:32:05 i use web Service man Dec 21 04:32:09 no need to figure nothing Dec 21 04:32:26 calling webservice function simple man Dec 21 04:33:01 ultra-, i guess you never use ksoap2 Dec 21 04:33:10 nope Dec 21 04:33:14 i am not using java odbc Dec 21 04:33:33 i haven't done anything with databases in a long long time Dec 21 04:33:53 way before there was android, and it was just with VB Dec 21 04:34:26 that is 1 of my test web service Dec 21 04:34:32 check ur pm Dec 21 04:35:13 ultra-, got it? Dec 21 04:35:16 yeah that's all stuff that comes way after my days of using databases and SQL Dec 21 04:35:25 i got it but i don't know anything about this stuff Dec 21 04:35:25 lol okay Dec 21 04:35:37 all the code i write deals with music and that's it Dec 21 04:35:43 i see. Dec 21 04:35:45 these days, at least Dec 21 04:36:04 sql dont have tranactional Dec 21 04:36:09 i meant sqlite Dec 21 04:36:15 so i prefer ms sql Dec 21 04:36:33 sqlite = no T-sql Dec 21 04:36:49 so that's bad in a way Dec 21 04:37:22 ultra-, this this Dec 21 04:37:52 ultra-, that page i sent in ur PM use WS Dec 21 04:38:18 ultra-, are you there buddy? Dec 21 04:38:49 yeah i'm here Dec 21 04:38:54 databases aren't my realm Dec 21 04:38:59 seee ur PM Dec 21 04:38:59 i don't know jack anymore Dec 21 04:39:06 just look at ur PM man Dec 21 04:39:11 jack is a nice fella, you should get to know him Dec 21 04:39:39 shouldn't it be "i know jack" anyway? Dec 21 04:39:57 Ankhwatcher, is there encryption tool use for enctype password in db? Dec 21 04:40:01 and it should be "I couldn't care less", but that doesn't stop millions of people getting it wrong Dec 21 04:40:03 bankai_, ?? Dec 21 04:40:23 hey Leeds are there any encryption tool use in DB to encrypt password? Dec 21 04:40:27 haha Dec 21 04:40:29 or use in code Dec 21 04:40:32 phong_: chocolate Dec 21 04:40:42 is it Dll file? Dec 21 04:40:50 or code Dec 21 04:40:51 ? Dec 21 04:41:05 Tuesday Dec 21 04:41:17 ultra-, did you look at your PM yet or not Dec 21 04:41:20 I was more thinking spring rolls Dec 21 04:41:38 bankai_: spring rolls tonight - Chinese family dinner in Thai restaurant Dec 21 04:41:55 Vietnamese rolls is the best Dec 21 04:41:57 in HK? lol Dec 21 04:42:09 sure Dec 21 04:42:10 Vietnamese egg rolls are best man Dec 21 04:42:29 I love Pho soup Dec 21 04:42:37 <--- Vietnamese here Dec 21 04:43:11 duh Dec 21 04:44:39 is there android encryption code? Dec 21 04:45:04 i know vb.net has this import: Imports System.Security.Cryptography Dec 21 04:45:08 not sure if java has it Dec 21 04:45:59 if you're storing user/pass information there's an authentication framework you should be using Dec 21 04:47:44 i think this Rijndael encryption is not vunarable Dec 21 04:47:57 no, unfortunately Android has no support for encryption Dec 21 04:47:59 or documentation Dec 21 04:48:37 oh Dec 21 04:48:47 hey Leeds does android has timer function? Dec 21 04:48:55 no, no functions at all Dec 21 04:48:59 read the fucking manual Dec 21 04:49:06 wow Dec 21 04:49:46 nevermind Dec 21 04:49:51 i got it sir! Dec 21 06:21:37 >ouch< Dec 21 06:31:07 activity crashes because of this error nd... not working again. Dec 21 06:31:07 * sandrakwan (~sandrakwa@7.sub-70-197-7.myvzw.com) has joined #android-dev Dec 21 06:31:07 * wildroman2 (~wildroman@5.29.0.95) has joined #android-dev Dec 21 06:31:07 Dec 21 06:31:07 * Loaded log from Sat Dec 21 02:14:30 2013 Dec 21 06:31:08 Dec 21 06:31:10 * Now talking on #android-dev Dec 21 06:31:12 * Topic for #android-dev is: Android application development | Android 4.4 SDK is out | Official docs at http://d.android.com/ | Root/custom ROMs, head to #android-root | No bots, and no advertising please, jobs or otherwise | Source at source.android.com | http://imgur.com/jacoj Dec 21 06:31:16 * Topic for #android-dev set by canadiancow!~skennedy@69.65.12.5 at Thu Oct 31 10:13:52 2013 Dec 21 06:33:33 where do i need this Your content must have a ListView whose id attribute is 'android.R.id.list Dec 21 06:35:33 wtf? Dec 21 06:41:40 hi all Dec 21 06:41:59 is it possible to sen data from server to android app Dec 21 06:42:06 *send Dec 21 06:42:11 through push ? yes Dec 21 06:42:44 hi. I am typing an html paragraph tag (

contents

) inside an EditText widget and the text is wrapped inside the widget. however, if the paragraph tag contents is long , and I test the contents on a WebView, the contents get newline characters from nowhere. so how should i fix this? the string replacement of newlines with space characters does not work. Dec 21 06:44:31 can anyone check my code http://pastebin.com/4Dut9uvM, cannot understand this error Your content must have a ListView whose id attribute is 'android.R.id.list Dec 21 06:45:29 i pasted both java and xml Dec 21 06:47:04 i am newbie to this things.. can u explain me Dec 21 06:47:28 how to do push data from server to android Dec 21 06:47:48 cooldharma06, what kind of service are you talking about? Dec 21 06:47:58 webservice Dec 21 06:48:36 usually there is no server because sqlite i used cooldharma06 Dec 21 06:48:45 how to do the webservice addressing from android to server.. Dec 21 06:48:46 is** Dec 21 06:48:47 cooldharma06: http://developer.android.com/google/gcm/index.html Dec 21 06:49:06 cooldharma06, what do want to do exactly? Dec 21 06:49:08 i didnot find any api examples for ws addressing from android Dec 21 06:49:35 just wait brb Dec 21 06:49:54 i want to send some data from server to android app.. and my server is webservice Dec 21 06:50:09 use gcm Dec 21 06:51:32 cooldharma06, you can easily do periodic lookups from the app to the server. Dec 21 06:52:00 for server webservice can i use java instead of gcm(above you mentioned) Dec 21 06:53:46 java as in java endpoint Dec 21 06:54:11 you're talking about two completely different things Dec 21 06:55:06 cooldharma06, are you a user or a coder/programmer? Dec 21 06:55:26 i ll tell my scenario Dec 21 06:55:36 ok . i think you should. Dec 21 06:55:57 and take your time in typing. make it well written. Dec 21 06:56:22 i want to create or design an app. in which the server have to send the data to all his clients. Dec 21 06:56:46 gcm or you can poll for this data Dec 21 06:56:54 Or use pigeons. Dec 21 06:57:04 LOOOOOOL Dec 21 06:57:15 Google is built on pigeons, so I recommend pigeons. Dec 21 06:57:26 they migrated to butterflies, Nilium Dec 21 06:57:28 IPoAC Dec 21 06:57:33 ip over avian cariers, heh Dec 21 06:57:53 You're a filthy liar. Dec 21 06:58:27 from GCM can i connect to java webservice Dec 21 06:58:36 is it possible Dec 21 06:58:49 you can tell your apps that a connection to the webservice should be madew Dec 21 06:58:58 plz see where i need that android.R.id.lis my activity crashes at start. http://pastebin.com/4Dut9uvM Dec 21 06:59:17 cooldharma06, like i said, with a webserver it's easier to make periodic updates from the client side. otherwise the clients you're talking about should be servers. Dec 21 06:59:34 jaami-win: post the stacktrace Dec 21 07:00:03 http://imgur.com/jacoj Dec 21 07:00:20 I wanted to make it web service addressing instead of polling Dec 21 07:00:46 then Dec 21 07:00:54 use gcm to tell your app to connect to the webservice Dec 21 07:01:01 20th time this has been said Dec 21 07:01:13 ok, i am going to use it, thanks. Dec 21 07:02:57 once again thanks for you valuable suggestions Dec 21 07:05:44 bankai_, sorry emulator is runing too slow. here is the output http://pastebin.com/PFdxy1p0 Dec 21 07:09:15 why mainfoodactivity need this android.R.id.list Dec 21 07:09:45 http://developer.android.com/reference/android/app/ListActivity.html look at the example here Dec 21 07:10:01 ok Dec 21 07:11:24 in gcm it says user have to register and sign in to the account Dec 21 07:12:20 but i dont want to do this one.. Dec 21 07:12:21 you read wrong Dec 21 07:12:49 wat Dec 21 07:13:10 http://android-developers.blogspot.in/2010/05/android-cloud-to-device-messaging.html Dec 21 07:13:26 that is not gcm Dec 21 07:13:30 http://developer.android.com/google/gcm/index.html Dec 21 07:13:31 that is Dec 21 07:17:36 You're not doing it right unless you've got 50 sockets open Dec 21 07:17:53 lol Dec 21 07:18:43 I made a derpicorn for the Stack Overflow Android chatroom rules page. For this, I am proud. Dec 21 07:20:23 derpicorn? Dec 21 07:23:42 http://dl.dropbox.com/u/31892/Screenshots/42dw.png ⇐ Derpicorn. Dec 21 07:23:55 umm Dec 21 07:23:58 well then Dec 21 07:24:08 thats certainly interesting Dec 21 07:24:30 interesting, so the intellij 13.0.1 users can't used 0.7.1 gradle-plugin Dec 21 07:24:38 lol g00s Dec 21 07:24:46 just about every msg you make on this channel Dec 21 07:24:58 is some sort of comment about how the latest AS or intellij fcks something up with gradle Dec 21 07:24:58 lol Dec 21 07:25:01 ;) Dec 21 07:25:15 heh, no i was just reading a bug report Dec 21 07:25:28 the one i filed :| Dec 21 07:25:47 lol Dec 21 07:25:51 where do you need gradle, it's not a req for personal coding as far I've experienced Dec 21 07:26:08 somebody mentioned they saw the same issue on 13.0.1 - so this must mean, that plugin is pinned to the ide version pretty tightly Dec 21 07:26:28 capella its pretty nice Dec 21 07:26:42 yeah gradle is really nice Dec 21 07:26:47 I glanced at it long enough to realize I didnt need it :( Dec 21 07:26:56 :p Dec 21 07:27:17 so now my next q is; will the 13.0.1 people see an update to their android plugin that works with gradle-plugin 0.7.1 Dec 21 07:27:29 I get to be weird and use sbt. Dec 21 07:27:52 i use ant Dec 21 07:27:58 lol Dec 21 07:28:05 see thats where I get lost :) Dec 21 07:28:34 ANOTHER tool I don't use? What AM I missing ?? :D Dec 21 07:29:59 so i was recommended by 2 smart people, i should not use android's native TLS via openssl and opt for spongycastle instead Dec 21 07:30:43 capella does firefox on android use NSS ? Dec 21 07:31:32 At it's core, sure ... Dec 21 07:31:53 Same Gecko stuff Dec 21 07:32:33 Those nss devs are crazy from what I've been told XD Dec 21 07:33:11 you have to be crazy to work on that ;| Dec 21 07:33:28 its hard to understand for me that what the listview id should be in xml file and coresponding R.layout Dec 21 07:33:31 Why should I root my device and how is it different to installing Cyanogen? Dec 21 07:33:35 Well it's good experience, and I like the guys in the group ... Dec 21 07:34:06 Bacta you probably shouldn't root your device; i thought it confers a security risk Dec 21 07:34:22 hm, maybe thats old info Dec 21 07:34:52 capella see http://isecpartners.github.io/whitepapers/passwords/2013/11/05/Browser-Extension-Password-Managers.html Dec 21 07:35:57 g00s: lite reading? Dec 21 07:37:09 heh, i never use those things Dec 21 07:37:53 password managers? nah, me neither Dec 21 07:38:44 well i use KeePassX , nothing integrated with the browser though Dec 21 07:38:59 can someone tell me when to use R.layout and when R.id, and what listview id should be in xml file? plz help Dec 21 07:39:13 I started out avoiding our built in manager, but I'm slowly trusting my way into it Dec 21 07:39:42 I don't access truly secure environments like banking etc. Dec 21 07:40:28 Ok this is driving me slightly insanes Dec 21 07:40:32 *insane Dec 21 07:41:02 I bought a 32gb SD card for my Galaxy Tab 3 today but it's effectively useless because there doesn't appear to be a way to install apps to the SD card Dec 21 07:41:19 Why would they have the SD card slot if you can't use the additional memory? Dec 21 07:42:03 you cant run apps off sdcard unless Im WAY out of date Dec 21 07:43:28 So why would anyone slot in a micro SD card? Dec 21 07:43:45 music - videos - backup apps and system Dec 21 07:43:58 "data" Dec 21 07:45:32 Ok so what's data? I've got Asphalt 7 from GameLoft which has a 1.2 gig data file (application is 77 megs). Is that data? Dec 21 07:46:48 I'll play! Is it executable? Dec 21 07:47:27 imageview, please. http://gyazo.com/53fecd44d6f4a95b884a2bdb283844f8 Dec 21 07:47:55 this kinda shit always gets me Dec 21 07:50:25 can never get it to look right Dec 21 08:10:04 need some help with id attribute , dont know what id format should be in xml and what coresponding R. ? in main java file Dec 21 08:10:31 plz see code http://pastebin.com/4Dut9uvM Dec 21 08:11:08 im trying to use listview, with listactivity Dec 21 08:11:49 my main activity has listview buttons and textedit Dec 21 08:12:49 is there someone who can look at the code Dec 21 08:12:49 can never get it to look right Dec 21 08:12:50 need some help with id attribute , dont know what id format should be in xml and what coresponding R. ? in main java file Dec 21 08:12:50 plz see code http://pastebin.com/4Dut9uvM Dec 21 08:12:50 * apple741_ is now known as apple741 Dec 21 08:12:51 im trying to use listview, with listactivity Dec 21 08:12:53 my main activity has listview buttons and textedit Dec 21 08:13:55 BS look like another day gona pass in thet tricky issue Dec 21 08:56:00 hi Dec 21 08:56:56 i checked about the GCM it says we have to send data to GCM server. but i want to send msgs in local wifi Dec 21 09:02:41 bluetooth? Dec 21 09:11:43 Anybody here use the youtube player api v3? I'm having some 'invalid request' errors trying to use a youtubeplayerfragment in my app. Here is my class using the api: http://pastie.org/8567394 Dec 21 09:11:55 Near lines 73ish is where the relevant bits are. Dec 21 09:12:33 This is the actual stacktrace error I'm getting. http://pastie.org/8567397 Also, my api key was generated using the keytool on my debug keystore for android studio, this may be the problem, im not sure.. Dec 21 09:15:49 desmin88 its somewhat bigger range.. which is covered by wifi only Dec 21 09:17:16 why cant you use gcm Dec 21 09:20:33 in gcm i have to do with google and it will be in online.. but i want send msg to android which is in local wifi.. Dec 21 09:20:49 the local wifi doesnt have a connection to the internet Dec 21 09:21:56 yes my scenario is like that Dec 21 09:22:04 can someone check this error log. i cant figureout exact reason for the error. plz check Dec 21 09:22:06 then i dont know of any other way to do this Dec 21 09:22:12 http://pastebin.com/3EbrEswJ Dec 21 09:22:14 other than bluetooth Dec 21 09:22:34 somebody said paho mqtt things in past days Dec 21 09:22:46 u know about those things.? Dec 21 09:24:06 bs Dec 21 09:26:43 cooldharma06; http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html Dec 21 09:30:15 some cool goodies here http://www.androidpolice.com/2013/12/20/android-police-holiday-2013-gift-guide-this-is-the-shit-you-want/ Dec 21 09:31:46 i hate android Dec 21 09:32:01 then why are you still her Dec 21 09:32:02 here Dec 21 09:32:18 need damn help Dec 21 09:33:28 g00s: if i do shift f10 (run) on AS which cert does it use? Dec 21 09:33:32 the debug keystore? Dec 21 09:33:53 or am i going full retard Dec 21 09:34:02 probably Dec 21 09:34:42 wait Dec 21 09:34:44 think i got it Dec 21 09:35:02 nope Dec 21 09:35:34 desmin88.. paho mqtt things.??? Dec 21 09:35:41 dude Dec 21 09:35:46 did you see the link/ Dec 21 09:37:22 yes i am going through those things.. Dec 21 09:37:30 then read it Dec 21 09:37:32 its what yuo need Dec 21 09:37:38 k Dec 21 09:37:39 also it was the first google result Dec 21 09:38:15 i want to send those msgs to more than 200 devices at a time Dec 21 09:38:36 i want a ferrari Dec 21 09:38:57 ok i pay for it:-p Dec 21 09:39:14 tell me some suggestions Dec 21 09:39:40 i linked you Dec 21 09:39:41 to a page Dec 21 09:39:51 that is most likely your answer Dec 21 09:39:53 is there some website which can tell me possible text color for a given background Dec 21 09:39:57 device to device communication using wifi Dec 21 09:40:22 yes Dec 21 09:40:41 but large number of devices and it is in one way.. Dec 21 09:41:12 ? Dec 21 09:41:34 one min.?? i ll tell whole thing Dec 21 09:42:35 Why does Android make the height of my ImageView relative to the actual resolution of the file, leaving the top and bottom transparent? http://i.imgur.com/BoeYdJk.png And XML: http://pastebin.com/pz9YbvE1 Dec 21 09:44:11 many clients device have to connect to server. for every 10 min the server have to send the message to all clients. Dec 21 09:44:40 then open up a socket on the local wifi to the main server Dec 21 09:45:11 autrilla: first clean up that xml hehe :) Dec 21 09:45:26 Nesting that many linear layouts and relative layouts isnt good Dec 21 09:45:34 desmin88, how would you do it? Dec 21 09:45:40 I'm very bad at layout Dec 21 09:45:48 so am i :P Dec 21 09:46:15 I'd have a list of these 3 cards Dec 21 09:46:16 and I suck big time at choosing colours :'( Dec 21 09:46:16 Why are prerooted tarballs so large? Does rooting involve reinstalling the OS? Dec 21 09:46:38 each card would only be 1 layout, 2 child views Dec 21 09:46:38 I wanted the socket management to be handeled internally and therefore wanted to go for web service endpoints but I could not find jax-ws implementation in android Dec 21 09:46:54 cooldharma06: you can't have everything you want Dec 21 09:46:58 nut up and do some socket work Dec 21 09:47:01 So, I came here to know if there ae any other apis like gcm u mentioned Dec 21 09:47:14 probably not for a local wifi situation Dec 21 09:47:19 ok Dec 21 09:47:51 hello gay! Dec 21 09:48:06 autrilla: You can make each of those cards a list item, then the item would only be a linear layout + image/text view. You can have the text and button be apart of a view with a list beneath it Dec 21 09:48:18 thanks..:) Dec 21 09:48:35 desmin88, let me try that :) Dec 21 09:48:38 Thanks! Dec 21 09:49:00 in android project I put external jar file in libs dir, but it can't commit to git, what can i do? Dec 21 09:51:40 desmin88, like this? Dec 21 09:52:17 some body can help me ? I wan't to add external jar in project that eclipse can run, and need to commit it to git also! Dec 21 09:52:41 RiGuang: you last asked 3 minutes ago. Dec 21 09:52:42 be patient Dec 21 09:54:23 desmin88: ok, but you must help me sir! Dec 21 09:54:31 have you consulted google Dec 21 09:55:27 I can't search the answer in Google, sir Dec 21 09:55:39 well guys im out Dec 21 09:55:50 at night this channel kinda sucks Dec 21 09:56:28 desmin88: what's night? Dec 21 09:56:37 Not as bad as the state of Android game development Dec 21 09:56:53 Your choices are AndEngine or Unity Dec 21 09:57:33 cocos2d-x Dec 21 09:59:55 Can I tell a ListView on XML what xml layout I'm going to use for the elements? Dec 21 10:01:28 you can use what you like Dec 21 10:03:40 cocos2d-x sounds like an Apple thing? Dec 21 10:04:50 does the mediaplayer caters the https in case of video stream Dec 21 10:41:29 autrilla: no, you have to set it via the adapter Dec 21 10:41:52 f2prateek, yeah... also I can't change the orientation, so... Dec 21 10:46:28 Does someone know why the theme with the parent "android:Theme.Holo.NoActionBar" isn't black in the app? Dec 21 10:46:53 When using just plain android:Theme.Holo.NoActionBar for each application it looks black in the IDE but not in the app for some reason. Dec 21 10:47:30 hey folks, does anyone here know how Google achieves the card UI effect for their apps, do they use an internal library or one of the public ones? Dec 21 10:49:18 I'm fairly confident it's internal Dec 21 10:49:35 hmm, ok, thanks f2prateek Dec 21 10:49:55 f2prateek would be nice if they released it Dec 21 10:49:59 if it exists Dec 21 10:50:19 then again, i don't recall seeing any design guidelines for it Dec 21 10:54:01 personally I like it in the context of Google Now, but it has too much whitespace when used in something like the Newsstand app Dec 21 11:05:48 can someone check this error http://pastebin.com/xZfvPPhe Dec 21 11:07:01 something is null at EcodeAdapter.java:37 Dec 21 11:07:28 oh ok, what do i need to do to fix it Dec 21 11:07:48 oh, i think its firewall Dec 21 11:08:16 hmm, line 37. yeh need to check that Dec 21 11:08:21 thanks alot Dec 21 11:12:50 Does someone know how to create something like this in an app? I'm not very experienced with app design. How would you make it so if you click on the Icon Pack option, that you get a popup with some radio buttons to choose from? android:Theme.Holo.NoActionBar Dec 21 11:12:53 woops Dec 21 11:13:24 link: http://i.imgur.com/Zd5YI5B.png Dec 21 11:15:40 Why does Android make the height of my ImageView relative to the actual resolution of the file, leaving the top and bottom transparent? http://i.imgur.com/BoeYdJk.png And XML: http://pastebin.com/pz9YbvE1 Dec 21 11:19:23 Who's using Android Studio? Dec 21 11:19:37 errybdy Dec 21 11:20:02 Bacta, I am Dec 21 11:21:13 autrilla, because you didn't set scaleType :) Dec 21 11:21:25 Mavrik, what should it be set to? Dec 21 11:24:15 is GridLayout designed to be a 2d scrolling view? Dec 21 11:24:29 i see scrolling stuff in the docs but no description of this Dec 21 11:30:59 oh it's gridview Dec 21 11:32:36 i cant see error on line 37. could you plz take a look http://pastebin.com/Q2gaYPpT Dec 21 11:32:58 error detail http://pastebin.com/xZfvPPhe Dec 21 11:34:52 convertView is null Dec 21 11:34:54 You never set it Dec 21 11:37:04 thanks alot, i try to fix it. SimonVT Dec 21 11:46:53 i set convertView and it worked, convertView = Inflater.inflate(R.layout.ecodes_list_item, parent, false); Dec 21 11:54:30 i wanted to use listActivity because i had buttons and textedit also in my main activity that extended Listactivity but my app was crashing at startup but there was no warning or error. i wrote new code of my main xml file and used list view as root instead of linearlayout. also changed extend to Activity then my app worked. infact i want to use buttons and other controls and listview in same main activity but when i use linearlayout and exted ListA Dec 21 11:54:30 ctivity my code does not work. Dec 21 11:54:40 hi Dec 21 11:55:21 My project is building just fine on android studio but the IDE shows me multiple errors including on Toast.makeText(this,x,x) when this is an acitivty Dec 21 11:58:38 I have an alert dialog with input and I 'm trying to show the keyboard Dec 21 11:58:40 without the user to have to click on the input edit box first...Is that possible? Dec 21 12:00:00 no clue how but should work without a doubt Dec 21 12:08:07 any ideas? Dec 21 12:51:26 Does someone know how in new IDEA 13 does one filter by PID, but using app's package name? Dec 21 12:51:39 I mean: filter logcat. Dec 21 12:52:05 I have this package name along with it's current PID in parentheses in the list on the left side of logcat window. Dec 21 12:52:12 But double-clicking it does nothing. Dec 21 12:52:17 Also: no context menu. Dec 21 12:52:24 How to apply this filter? Dec 21 12:53:30 What on earth do people mean when they talk about recovery? I'm reading up on how to root my device Dec 21 12:53:55 why are you asking this on app developer channel? Dec 21 12:55:24 Mavrik, at whom is your question aimed? :> Dec 21 12:55:33 Bacta try android-root but the idea is that when you root you can lose all your phone's data and worse brick it if in the process of rooting you screw up the config to trick the bootloader Dec 21 12:56:01 hence recovery is basically an escape from that sceneraio strategy Dec 21 12:56:52 michalrus, afaik IDEA can't filter by package/PID Dec 21 12:57:00 Solved! Dec 21 12:57:08 either PID or glob :) Dec 21 12:57:20 Mavrik, it can, at least in version 13.0.1! Dec 21 12:57:44 What you need to do is create your own filter with package name set to your package name. Dec 21 12:57:51 There's even code completion in that field. <3 Dec 21 12:58:58 pretty sure it could do that in 12 too Dec 21 13:00:11 in 13 you could just select the app from the list on the left side click the greenish button near there Dec 21 13:00:36 michalrus, ah, didn't notice that then Dec 21 13:00:49 Zharf, yeah, that resets when you restart app because it gets a new PID Dec 21 13:00:57 true Dec 21 13:08:56 How would you immitate Google Play's first screen UI? (as in components) Dec 21 13:09:44 autrilla: It might be a ToS breach. You could just clone the UI's appearance in theory though. Dec 21 13:10:13 If it is not a ToS breach, it would be okay since there is not any IP over the look and feel of computer programs. Dec 21 13:10:24 Ge, well, it's for a different purpose, not for a market Dec 21 13:10:57 Yar, still could be a ToS breach though... would just have to read the ToS and/or contact Google to find out. Dec 21 13:11:24 I know you are not allowed to call your applications "Android" Calculator etc etc. Dec 21 13:11:31 Ge, nothing on the ToS for the apps Dec 21 13:11:37 Not sure about copying the look and feel of the market. Dec 21 13:11:42 Ge, you can call it Calculator for Android though Dec 21 13:11:56 Ge, market's look and feel is technically Holo Dec 21 13:12:13 Yes, you can do that. Dec 21 13:13:06 So how could I know how they did it? Because I tried to do something similar, and someone told me I was being very inefficient (lots of nested layouts) Dec 21 13:14:38 flow view or gridview? Dec 21 13:15:11 at least on this phone it just looks like a vertical linear layout Dec 21 13:15:42 actually let me rephrase: underneath the apps/games etc part it is in the linear layout Dec 21 13:20:14 any of you have problem with building support13 samples ? Dec 21 13:21:48 lasserix, really what I want is the categories, where it says Special offers etc, with the see more button and the three cards underneath Dec 21 13:22:38 It regards any support sample project under eclipse for me. Dec 21 13:34:52 I know that I have to add custom resources because jars are out of scope but... why? Is it fault of my configuration or maybe just android API samples are messed up? Dec 21 13:37:45 I am reading that people adds it manually to the project so it seems that everything is in order... Dec 21 14:14:10 Does someone know how to automatically upload a built .apk file artifact from within IntelliJ Idea 13 Ultimate to a FTP Server? Dec 21 14:14:40 Zharf, Marvik, in IDEA 13 you can filter by package and this won't reset. <3 Dec 21 14:16:04 Can I somehow add my custom view (extending just View(context)) to a RelativeLayout (rl.add(view)) and let the view draw anything it wants on rl's Canvas? Dec 21 14:18:06 It seems not to work the way I'm doing it now: 1) new CustomView(SomeActivity.this), 2) relativeLayout.addView(customView), 3) draw in CustomView.dispatchDraw(canvas). Dec 21 14:18:27 In fact CustomView.dispatchDraw is not even called. Dec 21 14:20:16 hmmm I think after you add the view you have to setContentView Dec 21 14:21:58 csst0111, this RelativeLayout is definitely displayed, I've got some other subviews inside. Dec 21 14:22:16 I just want to add some custom shapes (using canvas.drawLine etc.). Dec 21 14:24:29 did you check hierarchy viewer ? Dec 21 14:25:18 csst0111, no, does it work with programmatically added elements? Dec 21 14:25:55 hello I'm trying to place a scroll view on top of an image. How do I do that? At the moment the scroll bar isn't clickable so it just sits on top of the image but the text doesn't move down. Dec 21 14:27:48 michalrus, should be working Dec 21 14:47:20 time to try and decipher the listviews empty view~ Dec 21 14:48:55 oO Dec 21 14:52:32 wonder if there's a way to animate showing/hiding the empty view Dec 21 14:55:25 Probably need it to be a custom view Dec 21 14:55:49 Then just override setVisibility and getVisibility Dec 21 14:58:59 could use a viewswitcher with two children: a listview and some other layout Dec 21 15:02:35 Can someone tell me why IntelliJ doesn't save my SSH information when I hit Tools -> Start SSH Session and give in my information? It connects fine but I need to give it in every single time. Dec 21 15:02:49 Google isn't giving me any single result regarding this issue. Dec 21 15:07:55 scroll view Dec 21 15:08:03 anyone good with scroll view? Dec 21 15:20:16 anyone here? Dec 21 15:20:53 Lots of people are here Dec 21 15:21:21 I want to do this...http://imgur.com/fSDSzwq Dec 21 15:21:39 I figured out how to do the scrollable text and that is my landscape view of a phone Dec 21 15:21:59 I want to know how I can have that box which contains multiple images Dec 21 15:23:19 what ideas can I use to make that happen SimonVT ? Dec 21 15:26:09 How are you gonna switch between the images Dec 21 15:32:21 Anyone do anything with mediastore audio? I was wondering if there is a convient method for returning the thumbnail of an album by per entry of MediaStore.Audio.ExterenalContent? Dec 21 15:40:21 SimonVT, scrollview horizontally Dec 21 15:44:18 And what's the problem? Dec 21 15:46:35 SimonVT, I found a solution to my incompatible USB driver thingy on my PC. I set my Raspberry Pi as an ADB machine. When I upload something to the pi, the pi will automatically install it on my phone and get the log and optionally filter a tag out. Dec 21 15:47:03 Putting some other languages and skills to use finally pays off. Dec 21 15:49:33 can you add metadata to videos generated by MediaRecorder? Dec 21 15:50:27 good idea Dreeass! X) Dec 21 15:51:20 lacx, thanks Dec 21 15:51:27 np Dec 21 15:51:45 I need to get myself a pi they are good fun Dec 21 15:55:30 lacx, http://www.amazon.com/Raspberry-Ultimate-Includes-Essential-Accessories/dp/B00CXACPN0/ref=sr_1_2?ie=UTF8&qid=1387641314&sr=8-2&keywords=raspberry+pi Dec 21 15:56:40 I want a Leap Motion too tho X) Dec 21 15:58:32 amazon.com lacx Dec 21 15:59:11 hehe thanks skinkitten Dec 21 15:59:41 set your options to buy in one click. Dec 21 16:08:14 do I need to read all of this to support multiple screens....http://developer.android.com/guide/practices/screens_support.html Dec 21 16:21:12 How would you replicate this http://i.imgur.com/TM34V4M.png in terms of UI elements= Dec 21 16:22:21 I'm trying to organise my app in several package folder (for example com.example.com.activities for all of the activities). Can someone help me out with what I have to do in the android manifest file? The app isn't showing up anymore. Dec 21 16:26:53 autrila relativelayout with 3 "upper parts" and linearlayout for 3 bottom parts Dec 21 16:45:55 listActivity can have a linear layout? Dec 21 16:47:14 hey Guys, what does layout_weight="0" means Dec 21 16:47:53 why listActivity in a leanear layout stuck at R? Dec 21 16:48:20 lasserix, and the cards themselves? Dec 21 16:50:38 brickhead, this might help you. http://stackoverflow.com/questions/3995825/what-does-androidlayout-weight-mean Dec 21 16:52:38 thanks Dec 21 16:54:05 I'm trying to have different layout for nexus 7, single panel for potrait, and double panel for landscape Dec 21 16:54:18 I'm confused about the sw required for these Dec 21 16:55:25 autrilla depends: you could do it lots of ways, depends if you can swing compound drawables to do some of the stuff Dec 21 16:55:32 easiest would be a relative layout? Dec 21 16:55:45 I guess Dec 21 16:55:46 really depends on your target Dec 21 16:55:56 i would tailor it to screen size Dec 21 16:56:00 though you could do it all in code Dec 21 16:56:17 i think table layout will ge good @ rotation Dec 21 16:56:32 be** Dec 21 16:57:30 lasserix, so if I have a layout in layout-sw600 Dec 21 16:57:53 would it pick the layout even for landscape mode too Dec 21 16:58:25 basically I want it to pick the single panel for potrait and double panel for landscape Dec 21 17:00:55 lasserix, I'd prefer to do everything on XML Dec 21 17:01:13 brickhead, check the "land" qualifier too Dec 21 17:02:10 csst0111, aahh yeah that makes sense Dec 21 17:03:05 I see abs still using layout-large, layout-xlarge Dec 21 17:03:13 I thought they were deprecated Dec 21 17:03:53 They weren't added until 3.2 Dec 21 17:04:54 sw etc Dec 21 17:05:08 guys, which is better for fragment2fragment communication: targetfragments or communication via activity? Dec 21 17:05:19 the second method is recommended by the doco, but it is kinda ugly Dec 21 17:05:24 Why does Android make the height of my ImageView relative to the actual resolution of the file, leaving the top and bottom transparent? http://i.imgur.com/BoeYdJk.png And XML: http://pastebin.com/pz9YbvE1 Dec 21 17:33:36 SimonVT, imgur.com/zx0P5L4 my scroll view can have only one direct child. How do I place three images in there? Dec 21 17:37:31 or anyone in this room Dec 21 17:37:36 386 - bots Dec 21 17:38:03 Maybe there are other views that can hold multiple childs that you could put in the scrollview Dec 21 17:43:10 hello Dec 21 17:43:26 hey so how do I make a screen scrollable while editing Dec 21 17:44:24 Why does Android make the height of my ImageView relative to the actual resolution of the file, leaving the top and bottom transparent? http://i.imgur.com/BoeYdJk.png And XML: http://pastebin.com/pz9YbvE1 Dec 21 17:45:11 autrilla: still fooling with that? it's not android, it's your code. So you have to fix it. there is scaling and cropping of images. Find your solution Dec 21 17:46:02 canvs2321, it is Android. Android renders the UI (with my code). I want to fix it. None of the scalings give the outcome I want Dec 21 17:49:35 canvs2321, which one do you think should work? Dec 21 17:49:39 how do you allow for scrolling to fit everything on a screen? Dec 21 17:51:23 canvs2321, android:scaleType="fitStart" looks best, but it still has a lot of spacing beneath Dec 21 17:52:50 LoneSoldier728: put everything in scrollview Dec 21 17:56:57 ok buok but the screen itself in eclipse is still not scrollable? Dec 21 18:01:49 wtf is up with the empty relativelayouts Dec 21 18:02:06 your layouts are all fucked, #1 Dec 21 18:02:34 and for that matter, you want to scale something like centercrop Dec 21 18:06:41 thanks SimonVT !!!!!!!!! thank you Dec 21 18:12:21 can somebody help me with loading a dex file dynamically? I have some problems with DexClassLoader :( Dec 21 18:17:30 pfn, empty relativelayouts? Dec 21 18:18:24 empty as in they're too simple to make use of relative layouts Dec 21 18:18:56 pfn, what would you use' Dec 21 18:18:59 ?* Dec 21 18:19:02 linear? Dec 21 18:19:29 if you're only going to have a couple children and the positioning is trivial, frame or linear layouts are sufficient Dec 21 18:19:44 And what I want is not what happens if I set it to centerCrop Dec 21 18:19:55 what do you want to happen exactly Dec 21 18:20:26 and you wrap_content your imageview dimensions Dec 21 18:20:31 of course it's not going to be any bigger Dec 21 18:20:31 Like this http://i.imgur.com/TM34V4M.png Dec 21 18:21:10 pfn, match_àrent? Dec 21 18:21:14 parent* Dec 21 18:21:23 depends on what you're trying to accomplish Dec 21 18:21:52 pfn, I want what is in the image I posted now, mostly Dec 21 18:22:20 so set a fixed width x height for the image Dec 21 18:22:25 since it appears to be square, make it square Dec 21 18:22:40 then load the image with centerCrop Dec 21 18:22:42 and you're done Dec 21 18:23:33 pfn, fixed with? But that will break on different screen sizes Dec 21 18:24:01 width* Dec 21 18:24:06 I'm a spelling bee today lol Dec 21 18:24:15 what do you consider "break" Dec 21 18:24:28 the images will be a consistent size across screen sizes Dec 21 18:24:33 sounds correct to me Dec 21 18:24:50 pfn, each card should take up 33% of the screen's width Dec 21 18:25:14 And the image should occupy 100% of each card in terms of width. Dec 21 18:25:16 then create a square layout Dec 21 18:25:23 if that is what you want your image to be Dec 21 18:25:27 pfn, I need a textview underneath too Dec 21 18:25:46 then create a layout that creates an image of the dimensions that you want, and place your textview below it Dec 21 18:26:09 pfn, oh, so the files I provide must be all the same dimension? Dec 21 18:27:32 no, that's what scaling is for Dec 21 18:27:53 but if they don't have the same aspect ratio, how can you expect not to have a white space below or above or to the left and right? Dec 21 18:28:12 pfn, all of my assets are square Dec 21 18:28:46 then you need to create a square layout if you want it to be 33% Dec 21 18:28:52 google android square layout Dec 21 18:35:03 pfn, done. Now it just shows the blank card, the image is invisible Dec 21 18:36:24 anyone please, if i generate valid bitcoin addresses offline how i can declare it to system that they are my? Dec 21 18:36:51 done? Dec 21 18:36:56 how did you create a square layout... Dec 21 18:37:03 pfn, with a class Dec 21 18:37:11 pfn, http://stackoverflow.com/questions/16748124/custom-square-linearlayout-how Dec 21 18:37:27 then you did it wrong, fix it Dec 21 18:37:42 oups sorry wrong channel Dec 21 18:37:45 Can someone tell me how to do a settings menu like this? Without having to create an activity for every single option? http://i.imgur.com/tt901ef.jpeg Dec 21 18:37:46 pfn, wrong? Dec 21 18:38:11 damned if I know what you did or how you did it Dec 21 18:40:38 Dreeass: Why would you create an activity for every single option? Dec 21 18:41:12 Eng-Foaud, I have no idea how to do it. I'm just guessing, I haven't started, that's a screenshot from ActionLauncher. Dec 21 18:45:53 do we have some regex channel on freenode Dec 21 18:45:59 #regex Dec 21 19:12:03 to create an upload image button that lets a user choose a picture from his gallery or take a picture from their phone Dec 21 19:12:22 what does that involve, I am trying to find it in the android docs and googling but not getting any results that I like Dec 21 19:20:36 How do I know whether to use a fragment or another activity? Dec 21 19:22:58 flip a coin. Dec 21 19:25:20 Okay Dec 21 19:26:39 use a fragment if you want to re-use the code between activities Dec 21 19:27:23 Or if you want to swap out fragments in the same activity Dec 21 19:27:55 Hmm but why not just always use one activity with a fullscreen fragment and swap that one out? Dec 21 19:28:13 That's what I do Dec 21 19:29:20 Maybe it takes less memory to put things that happen only once inside a separate activity (like a sign up screen). Dec 21 19:29:45 It would take more Dec 21 19:30:59 The difference is insignificant tho Dec 21 19:31:56 Alright, so I will also try the one fragment approach Dec 21 19:32:14 What I like about it, is that that way I don't have to go back to the manifest all the time. Dec 21 19:35:21 SimonVT is there a good way to use actionbar tabs, but not with fragments? i'd rather it switch between views Dec 21 19:35:49 dont want to repeatedly call setContentView Dec 21 19:35:49 just use a view in your viewpager instead of a fragment... Dec 21 19:35:51 So do that Dec 21 19:36:01 Action bar tabs aren't tied to fragments in any way Dec 21 19:36:30 nor is a viewpager Dec 21 19:36:32 right, the api is generic listener. OK, so use a ViewPager, and have the listener poke the viewpager then ? Dec 21 19:36:46 *tab listener that is Dec 21 19:37:54 undecided whats the best way for me to split up this complicated form; at the top i can have 'show advanced options' or maybe split it into 3 tabs Dec 21 19:38:30 the first way keep everything on the same page; probably easier to deal with in terms of multi-size support Dec 21 19:44:42 Also, I am confused about the support library. If I target ICS and above, shouldn't I be able to not use the support library for things like FragmentActivity and ActionBarActivity Dec 21 19:44:43 ? Dec 21 19:46:40 Yes, it's called Activity Dec 21 19:47:23 Alright, okay. Good name. Dec 21 19:50:41 heh, textual keeps crashing out of the blue Dec 21 19:56:07 what is the keystroke for 'Run' in Android Studio? Dec 21 19:56:20 I just bind mine to ctrl-r Dec 21 19:56:27 world's most obvious mnemonic Dec 21 19:56:35 ok, so you had to configure it? Dec 21 19:56:44 there's a default, I don't know what it is Dec 21 19:56:56 ok, thanks. i'll go with your method. Dec 21 19:58:31 i see, the default is Shift-F10. So intuitively obvious. Dec 21 20:06:30 How do you change the android build path? I'm not using Eclipse. Dec 21 20:12:05 Anybody here use the youtube player api v3? I'm having some 'invalid request' errors trying to use a youtubeplayerfragment in my app. Here is my class using the api: http://pastie.org/8567394 Dec 21 20:12:10 Near lines 73ish is where the relevant bits are. Dec 21 20:12:16 This is the actual stacktrace error I'm getting. http://pastie.org/8567397 Also, my api key was generated using the keytool on my debug keystore for android studio, this may be the problem, im not sure. Dec 21 20:13:15 How do you change the android build path? I'm not using Eclipse. Dec 21 20:14:04 wait i think i got i figured it out Dec 21 20:25:19 do you guys notice with AS, that errors aren't found often until you go to build? its like the incremental / continuous compiling stuff isn't working right Dec 21 20:26:15 g00s: they adapted the lazy model Dec 21 20:26:25 I dunno, but I think I rarely had looped compilation (I refuse to call that travesty "incremental") in IntelliJ, ever Dec 21 20:28:21 g00s: notice it all the time. Dec 21 20:29:02 test Dec 21 20:29:02 ohey Dec 21 20:30:41 Hello all. I'm learning Android development and I'm trying to make a rudimentary list app. Dec 21 20:34:02 Can someone show a tutorial on using the PreferenceFragment since PreferenceActivity's "addPreferencesFromResource" is deprecated? I don't understand it. I can't start it from startActivity() with an intent. Dec 21 20:35:16 Dreeass, http://developer.android.com/reference/android/preference/PreferenceActivity.html Dec 21 20:36:50 desmin88, but why do those things all need to be in a seperate file? Dec 21 20:36:59 ? Dec 21 20:37:04 separate* Dec 21 20:37:22 the xml preferences file, why do I need to use fragment for headers and stuff? Dec 21 20:37:52 uhh Dec 21 20:37:59 because google people decided it to be that way Dec 21 20:38:37 you could just not use a prefactivity and use a preffragment alone i think Dec 21 20:39:23 g00s: do you know how to make AS use a signing config when you do shift f10 (run) Dec 21 20:40:25 otherwise i cant use all my fancy shmancy google apis Dec 21 20:40:44 desmin88, alright. Thanks. Dec 21 20:45:45 desmin88, why don't you just register your debug key? Dec 21 20:46:03 pfn I did register my debug key with the google apis Dec 21 20:46:11 but AS doesnt seem to use it when building Dec 21 20:46:20 AS always uses your debug key Dec 21 20:46:30 jarsigner -verify -verbose -certs yourpackage.apk Dec 21 20:46:37 and you'll see that it is Dec 21 20:46:45 huh Dec 21 20:47:06 then i guess i have another problem with goog apis Dec 21 20:47:40 because I keep getting the same invalid request, bad gdata Dec 21 20:48:46 I'm thinking about getting my first macbook pro, I was thinking of the ME864B/A, Intel Core i5, 128GB SSD, 4GB RAM, 13.3" for £1,099 is that a good deal? Dec 21 20:48:51 sorry wrong window Dec 21 20:49:02 not a good deal Dec 21 20:49:02 lol Dec 21 20:49:37 isn't that kind of a rip Dec 21 20:49:41 is that a haswell one Dec 21 20:49:46 thats what apple is, lol Dec 21 20:50:15 pfn: okay, you're right it does use the debug key Dec 21 20:50:25 of course I'm right Dec 21 20:50:26 :p Dec 21 20:51:30 oh you. Dec 21 20:53:27 Google pls. Http error: status=[400] msg=[Bad Request, GData error(s): Dec 21 20:53:27 [{domain:GData,code:InvalidRequestUriException,location:null,internalReason:Invalid id}]] Dec 21 20:53:47 invalid id Dec 21 20:53:49 so fix your id Dec 21 20:54:04 you have an invalid request uri, too Dec 21 20:54:21 The youtube url I'm using is correct though Dec 21 20:54:26 and my id should be good Dec 21 20:56:06 I've generated the sha1 on the debug keystore and have the correct package name also.. Dec 21 20:58:16 Well I changed the youtube url to a static one, and now I'm just getting an 'Invalid Developer Key' Dec 21 21:06:27 pfn: can you please share some of your knowledge on this since you are always right ;) Dec 21 21:07:18 My app registration is the debugkeystore sha 1 and then my manifest xml package, and im using a static working yt link, still doesnt work. Dec 21 21:13:21 If I make a drawable in xml and add a bitmap, how do I specify the width/height of the bitmap? Dec 21 21:13:37 Dec 21 21:14:25 uhh Dec 21 21:14:31 whatever size is the your slider drawable Dec 21 21:22:03 blah. Dec 21 21:27:07 desmin88, damned if Know what you're doing or what you're using Dec 21 21:27:23 the youtube player api, v3 Dec 21 21:27:51 don't know it, can't be bothered to look it up for free Dec 21 21:28:08 INSERT COIN Dec 21 21:28:21 hold on Dec 21 21:28:25 im getting there Dec 21 21:31:03 API Page: https://developers.google.com/youtube/android/player/ http://pastebin.com/q89erdHW Here is the code, around line 73 is where it starts being used, stacktrace here: http://pastebin.com/raw.php?i=6MN2NEpf Dec 21 21:31:32 My API key should be correct, it was generated with the debug keystore, package name is also correct. The youtube url is valid also. Dec 21 21:31:53 desmin88: are you using youtube api to have access to its search ? or is there another reason as well ? Dec 21 21:32:19 I'm including a youtube player inside my app Dec 21 21:33:27 specifically im using a youtubeplayerfragment inside a framelayout Dec 21 21:33:44 I thought VideoView could do the same thing, but you can't search with it Dec 21 21:33:44 is in-app bill subscriptions restricted by device also? Dec 21 21:33:59 and it needs rtsp or mms links Dec 21 21:34:57 id rather use the proper api for this Dec 21 21:37:09 desmin88: can it find and play video files on the device's external storage ? Dec 21 21:37:14 try a different ID, desmin88 Dec 21 21:37:30 shmooz: ? Dec 21 21:37:37 leslie: You mean api key? Dec 21 21:37:43 just wondering if it can Dec 21 21:37:44 no, video ID Dec 21 21:37:59 ahh Dec 21 21:38:10 I'm planning on using it for at least searching youtube as a part of a bigger search Dec 21 21:38:13 shmooz, no, the youtube player api is only for playing youtube videos and stuff Dec 21 21:38:53 desmin88, you mentioned line 73. line 73 would not throw that error Dec 21 21:39:28 73 is just where i was saying the youtube code starts around Dec 21 21:39:48 ok. desmin88: youTubePlayer.cueVideo("http://www.youtube.com/watch?v=Y0HjaR0tj7Q"); Dec 21 21:40:01 that line is wrong. you don't give it a URL, you give it just the ID. the bit after v= Dec 21 21:40:31 i just realized that lol Dec 21 21:40:36 went back to the javadocs Dec 21 21:40:39 saw it said video id, not url Dec 21 21:40:42 fuuuuuuuuck Dec 21 21:40:55 was such a simple thing Dec 21 22:03:21 i have root my android 4.0.3 lenovo tablet , now i want to install a 4.2 version in it please help Dec 21 22:03:50 hi Dec 21 22:06:27 Go to #android-root Dec 21 22:15:19 <^cheeky> hai guise :P Dec 21 22:15:27 <^cheeky> hope all is well :)) Dec 21 22:16:13 There's a spider above you, FYI. Dec 21 22:17:40 <^cheeky> i <3 spiders , hope i get bitten and BAM i have spidey powers !!!!!!!! Dec 21 22:17:42 <^cheeky> ohhh yaaaaaaa Dec 21 22:23:04 <^cheeky> man i want to implement this view pager in a view pager fragment but sheesh i fail !!! Dec 21 22:23:41 the real challenge comes when you have multiple viewpagers in side a viewpager. Dec 21 22:23:48 its viewpagers all the way down Dec 21 22:23:59 I have no idea what you just said so sure yeah you fail Dec 21 22:25:12 <^cheeky> yeah yeah i fail. Dec 21 22:25:17 <^cheeky> blah i will come back to it Dec 21 22:37:45 the following is crashing on the last line https://gist.github.com/anonymous/8076045, I'm testing to make sure notificationManager and builder aren't null ... thoughts? Dec 21 22:43:36 Then I'd imagine notificationManager and builder isn't null, so that isn't the cause of the crash Dec 21 22:45:06 SimonVT: id agree, so what in that code could be null causing the crash? Dec 21 22:45:59 I don't know Dec 21 22:46:08 Weird that it doesn't give you a stack trace to tell you what the issue is Dec 21 22:49:00 SimonVT: this is what it gives me https://gist.github.com/anonymous/8076204 Dec 21 22:52:20 So something's probably wrong with the notification you're building Dec 21 22:52:56 Start by making a simple notification, then expand gradually Dec 21 22:58:16 Also, doesn't really make sense to pass a drawable id as the notification id Dec 21 23:17:31 hey guys, is there any way to stop the default project of android studio making fragments? Dec 21 23:22:20 Is there a listener to elements of a preference screen? Dec 21 23:33:48 pa mebah Dec 21 23:34:04 can't believe there's still no support for packaging native libs in Gradle 0.7 Dec 21 23:34:04 wtf Dec 22 00:12:55 How do I edit the build path via the command line? Dec 22 00:15:03 smlance: you're going to have to be a little more.. verbose. :) Dec 22 00:16:50 JesusFreke: I get this error when I run `ant debug`: "package android.support.v4.app does not exist" Dec 22 00:17:12 I am importing this package in a Java activity file. Dec 22 00:17:44 Sounds like you need to follow https://developer.android.com/tools/support-library/setup.html Dec 22 00:20:10 ah... so the support libraries are bits of code that support "extra" functions. Dec 22 00:21:06 also, I'm not using Android Studio or Eclipse... Dec 22 00:23:25 smlance: I think you should just be able to copy the support libary into your application's "libs" folder Dec 22 00:23:41 and ant should pick it up and "Do The Right Thing" Dec 22 00:24:01 but if it doesn't Do The Right Thing, I can't really help. Not that familiar with the ant build :) Dec 22 00:24:12 JesusFreke: where physically is the support lib? this support.v4.app.NavUtils Dec 22 00:24:40 smlance: read that page again ;) Dec 22 00:25:18 JesusFreke: ah. in the sdk folder. Dec 22 00:25:20 in particular, the eclipse sections are mostly still relevant, even though you're not using eclipse Dec 22 00:25:29 other than the eclipse specific bits, of course Dec 22 00:26:46 JesusFreke: Okay, thanks. Also, copying the .jar into libs/ did the trick! :-) Dec 22 00:27:07 great :) Dec 22 00:33:38 guys, R.id.text1 vs android.R.id.text1 , comments? Dec 22 00:34:12 android.R refers to a platform resource Dec 22 00:34:21 R refers to your application's resources Dec 22 00:34:57 JesusFreke: ah, Isee Dec 22 00:35:41 How would you do this, or fake it even… Dec 22 00:35:58 I have one view, say its 3x3 squares. then several other views 1x1 square Dec 22 00:36:05 i want all of these squares to scroll. Dec 22 00:36:28 Now, I can put the 1x1 squares in a gridview, but the 3x3 square isn't part of it, and thus scroll independently. Dec 22 00:38:14 And I want a pony BUT WE DON'T ALL GET WHAT WE WANT. Dec 22 00:38:19 * Nilium runs off sobbing Dec 22 00:38:57 yea but Dec 22 00:38:59 but Dec 22 00:38:59 put the 1x1 in a linear layout, then that layout and the 3x3 in another layout Dec 22 00:39:12 that layout needs an adapter tho Dec 22 00:39:14 Nilium: i'll get you apony Dec 22 00:39:17 it could have 1000's of items Dec 22 00:39:26 Now I have an error saying: "cannot find symbol: title_..._message \n location: class layout" on this line: " setContentView(R.layout.title_activity_display_message);", but I know that title_activity_display_message is defined in my strings.xml file. Dec 22 00:39:51 what Dec 22 00:39:55 R.layout.title_activity_display_message is a layout? Dec 22 00:39:56 or a string? Dec 22 00:40:04 you said its defined in your strings.xml Dec 22 00:40:08 a string Dec 22 00:40:18 but you're using it with setContentView Dec 22 00:40:19 there is a lot wrong here. Dec 22 00:40:21 Ok Dec 22 00:40:29 then do R.string.title_activity_display_message Dec 22 00:40:32 I'm following the Android development tutorial... Dec 22 00:40:32 not R.layout.title_activity_display_message Dec 22 00:40:49 read it a little bit more closely Dec 22 00:41:49 I know the problem. It's a layout, but I haven't created a layout, because the tutorial is using Eclipse and I'm using the command line Dec 22 00:41:57 .____. Dec 22 00:42:00 .____. Dec 22 00:43:13 .______. Dec 22 00:43:14 this is concerning... how do I create a layout? Dec 22 00:44:08 1) download eclipse Dec 22 00:44:10 2) create a layout Dec 22 00:44:19 3) ???? Dec 22 00:44:20 i don't want to use eclipse Dec 22 00:44:22 4) profit Dec 22 00:44:23 you create an xml file in res/layout (or layouts? can't recall :p) Dec 22 00:44:28 use android studio Dec 22 00:44:39 doing android dev without an ide is pretty insane Dec 22 00:44:41 So here is my view, to give a visual to what I'm trying to do: http://i.imgur.com/nPvadn6.jpg the whole shitz needs to scroll Dec 22 00:44:45 sonOfRa: why? Dec 22 00:44:53 smlance: you're too hardcore Dec 22 00:44:59 join #hardcore to get answers Dec 22 00:45:12 explodes: >_> Dec 22 00:45:14 explodes: is that a thing? Dec 22 00:45:19 no Dec 22 00:45:21 explodes: i have had a lot of trouble with IDEs in the past Dec 22 00:45:22 #vim is tho Dec 22 00:45:29 mmmm vim Dec 22 00:45:31 you're giving me trouble ATM Dec 22 00:45:35 i'm using Emacs fwiw Dec 22 00:45:43 lol, church of emacs Dec 22 00:45:47 that is a thing Dec 22 00:45:47 ... :-) Dec 22 00:46:11 EmacsOS® Dec 22 00:46:33 if only it had a decent text editor Dec 22 00:47:40 emacs is supreme Dec 22 00:47:52 (though vim is probably also pretty good) Dec 22 00:51:48 i will be back soon to inquire about how best to make my new layout. Dec 22 01:06:15 How much space does ABS add to a apk? Dec 22 01:06:29 Is it smaller than the Support Lib? Dec 22 01:07:59 Anyone? Dec 22 01:09:12 a few hundred kB Dec 22 01:09:14 iirc Dec 22 01:09:39 can't really say for sure but my app is just above 1MB ... Dec 22 01:10:43 me too Dec 22 01:10:55 Zharf: Are yo using ABS or the Support lib Dec 22 01:11:40 both.. Dec 22 01:24:31 minSdk=15 and you save the space completely. Dec 22 01:27:16 yeah, for new projects I would absolutely recommend that Dec 22 01:28:09 hi all Dec 22 01:36:11 how do I make a new .xml layout file without an IDE? Dec 22 01:37:12 You don't know how to create a file? Dec 22 01:39:00 SimonVT: I'll be more precise... I'm looking at an Android development tutorial on the official site, and I'm told to make a new activity, but the tutorial does this with Eclipse. In making this activity, they make a layout, but don't explain how to properly make the layout (what to put in it) using only the command line Dec 22 01:39:18 I guess Eclipse automates it, and the tutorial doesn't explain what is automated Dec 22 01:40:03 http://developer.android.com/training/basics/firstapp/starting-activity.html under "Create the Second Activity" Dec 22 01:40:10 i don't know what to put in the layout for this activity Dec 22 01:41:45 Just look at what you have in the xml for the first activity Dec 22 01:42:03 oh i see. the tutorial explains why they don't do explain what to put in the .xml. i was too impatient :-) Dec 22 02:00:26 Hello I have an adapter for a listview where i have subclasses of a viewcontroller. Reinflating each time works, but now I am trying to use a ViewHolder and getting a null pointer exception (that points to nowhere in code). Anyone do somethign like this? Dec 22 02:03:37 hello, does anyone have any recommendations for android programming books? Dec 22 02:10:14 I'm using `ant debug` to compile my project. When I do this, I get the following output: http://pastie.org/8568736 Dec 22 02:10:28 I have no idea what's wrong or how to find out Dec 22 02:20:09 oh, `ant clean debug` reveals the error Dec 22 02:24:40 Lets say I have a class: Array Dec 22 02:25:01 I want to subclass it such that my T will be a list of T… i.e Array> Dec 22 02:25:06 how do I declare the class? Dec 22 02:37:04 hello, if i start a TimerTask in one activity, then the activity switches, will my TimerTask continue? Dec 22 02:37:58 :I public class PreviewArrayAdapter extends DataArrayAdapter> Dec 22 02:49:01 How in the name of god is it possible that `java.lang.NoSuchMethodError: android.support.v4.app.FragmentActivity.isDestroyed` hangs the whole system?!?! Dec 22 02:49:15 * michalrus mad. This happened twice now. Dec 22 02:49:26 perhaps the author of your firmware broke it Dec 22 02:49:45 They should be burned alive. Dec 22 02:50:12 michalrus memory leak? Dec 22 02:50:30 Quick question. I have an android app that's gaining popularity. Its educational. Would you recommend localizing it? Dec 22 02:50:36 Or would that be annoying for the user. Dec 22 02:50:40 man, nsdmanager is so buggy, I guess I'll spend some time going back to jmdns Dec 22 02:50:42 * pfn sighs Dec 22 02:50:45 Its a physics-level application. Dec 22 02:50:51 * pfn & Dec 22 02:51:09 AndreYonadam isn't localization handled under the hood? or you can always add to preferences Dec 22 02:51:53 good night Dec 22 02:51:54 lasserix: Yeah but I would have to supply my own localized strings right? I didn't think of giving the user the option of changing the language. thanks for that. Dec 22 02:53:19 lasserix, regarding memory leak: I don't think so. It looks like... a typical exception. :^ **** ENDING LOGGING AT Sun Dec 22 03:00:00 2013